:root {
  --canvas: #f4f7f8;
  --surface: #ffffff;
  --ink: #203835;
  --muted: #586b66;
  --line: #dce5e3;
  --primary: #17655c;
  --primary-hover: #104f48;
  --tint: #eaf3f0;
  --amber: #926017;
  --amber-bg: #fff7e8;
  --danger: #a63838;
  --danger-bg: #fff0ed;
  --blue: #3769a2;
  --scroll-thumb: #a4b8b2;
  --scroll-track: #eef3f1;
  --scroll-hover: #708e85;
  --scroll-active: #456b5f;
  --radius: 12px;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-mono: Consolas, monospace;
  color-scheme: light;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}
.connections-grid.workflow-grid {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
}
.workflow-grid p a {
  text-decoration: underline;
}
.workflow-detail,
.workflow-detail > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.workflow-detail h3 {
  margin-top: 24px;
}
.workflow-detail textarea {
  width: 100%;
  font-family: var(--font-mono);
}
.workflow-structure {
  padding-left: 24px;
}
.workflow-structure > li {
  padding: 10px 0 12px 8px;
  border-bottom: 1px solid var(--line);
}
.workflow-structure p {
  margin: 6px 0;
}
.workflow-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.workflow-evidence {
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  margin: 12px 0;
  background: var(--tint);
}
.workflow-timeline {
  list-style: none;
  padding: 0;
  max-height: 420px;
  overflow: auto;
}
.workflow-timeline li {
  display: grid;
  gap: 4px;
  padding: 12px 0 12px 16px;
  border-left: 1px solid var(--line);
}
.workflow-timeline time {
  color: var(--muted);
  font-size: 12px;
}
.workflow-detail pre {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .connections-grid.workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.workflow-grid #run-filter {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 8px 0 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
@media (max-width: 640px) {
  body[data-page] .sidebar a.active-nav {
    display: flex;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
.button.mobile-history {
  display: none;
}
.resize-none {
  resize: none;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  color: inherit;
}
button,
textarea,
input {
  border: 0;
}
button {
  background: none;
}
::selection {
  background: var(--tint);
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
*::-webkit-scrollbar-thumb:active {
  background: var(--scroll-active);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
}
.small {
  font-size: 12px;
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-family: var(--font-display);
  letter-spacing: -0.4px;
}
.brand:hover {
  text-decoration: none;
}
.brand b {
  font-weight: 700;
}
.brand-mark {
  height: 43px;
  width: 43px;
  background: var(--primary);
  border-radius: 12px;
  color: white;
  font-size: 32px;
  text-align: center;
  position: relative;
  font-weight: bold;
  padding-top: 1px;
}
.brand-mark span {
  font-family: var(--font-body);
  font-size: 18px;
  position: absolute;
  right: 3px;
  top: -2px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 28px 0 18px;
}
.tiny-dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 39px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}
.primary {
  background: var(--primary);
  color: var(--surface);
}
.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.subtle {
  background: var(--surface);
  border-color: var(--line);
}
.subtle:hover:not(:disabled) {
  background: var(--tint);
}
.stop {
  color: var(--danger);
  border-color: var(--line);
}
.stop:hover:not(:disabled) {
  background: var(--danger-bg);
}
.new-session {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  min-height: 42px;
}
.new-session > span {
  font-size: 21px;
  font-weight: 400;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.25px;
  font-weight: 600;
  color: var(--muted);
}
.active-nav {
  display: flex;
  gap: 9px;
  align-items: center;
  background: var(--tint);
  color: var(--primary);
  padding: 12px 10px;
  margin-top: 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.version {
  margin-left: auto;
  font-size: 9px;
  font-weight: 400;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 27px;
  margin-bottom: 9px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 17px;
  flex-shrink: 0;
}
.icon-button:hover:not(:disabled) {
  background: var(--tint);
  color: var(--primary);
}
.sessions {
  max-height: 280px;
  overflow: auto;
}
.sessions > p {
  padding: 6px 4px;
}
.session-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  border-radius: 7px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.session-link:hover,
.session-link.selected {
  background: var(--canvas);
  color: var(--primary);
}
.session-link small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 8px 0;
}
.lab-tag {
  font-size: 8px;
  letter-spacing: 1px;
  background: var(--tint);
  padding: 5px 7px;
  border-radius: 4px;
  color: var(--primary);
}
.sidebar-bottom p {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
  margin: 14px 0 10px;
  letter-spacing: -0.5px;
}
.sidebar-bottom a {
  display: block;
  font-size: 11px;
  margin-top: 22px;
}
.sidebar-bottom a span {
  margin-left: 10px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 13px;
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 500;
}
.breadcrumb > span {
  color: #b8c7c3;
}
.mode-badge {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.mode-badge .tiny-dot {
  background: var(--amber);
  width: 5px;
  height: 5px;
}
main {
  padding: 35px 38px 18px;
  max-width: 1550px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 11px;
}
h1 {
  font-size: 33px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 600;
}
h1 > span {
  color: var(--primary);
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.runtime-label {
  display: flex;
  gap: 9px;
  font-size: 11px;
  align-items: center;
  white-space: nowrap;
}
.runtime-label small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.orbit {
  font-size: 30px;
  font-weight: normal;
  color: var(--primary);
}
.setup-banner {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid #d3e4dd;
  border-radius: 9px;
  background: var(--tint);
  margin-bottom: 22px;
}
.setup-icon {
  font-size: 28px;
  color: var(--primary);
}
.setup-banner strong {
  font-size: 12px;
  font-weight: 600;
}
.setup-banner p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 3px;
}
.setup-banner .button {
  margin-left: auto;
  min-height: 34px;
  font-size: 11px;
}
.error-banner {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 14px 18px;
  border-radius: 9px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.run-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
}
.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-heading h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.panel-symbol {
  color: var(--primary);
  font-size: 19px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  border-radius: 5px;
  padding: 5px 8px;
  line-height: 1.3;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.status.working,
.status.completed {
  color: var(--primary);
  background: var(--tint);
  border-color: transparent;
}
.status.waiting {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: transparent;
}
.status.failed {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: transparent;
}
.status.working:before {
  animation: pulse 1.2s infinite;
}
.run-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px;
  background: #fafcfb;
  border-block: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.run-meta > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.run-meta .tiny-dot {
  background: #acbbb7;
  width: 5px;
  height: 5px;
}
.run-meta .tiny-dot.connected {
  background: var(--primary);
}
.timeline-scroll {
  height: 493px;
  overflow: auto;
  scrollbar-gutter: stable;
  scroll-behavior: auto;
}
.empty-state {
  max-width: 450px;
  padding: 44px 26px 24px;
  margin: auto;
  text-align: center;
}
.flow-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 29px;
}
.flow-node {
  height: 34px;
  width: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--muted);
  background: var(--surface);
}
.flow-agent {
  height: 59px;
  width: 59px;
  border: 1px solid #c6dad1;
  box-shadow: 0 0 0 7px #f3f8f5;
  background: var(--tint);
  border-radius: 17px;
  font-size: 43px;
  line-height: 1.1;
  font-weight: bold;
  color: var(--primary);
  position: relative;
  font-family: var(--font-display);
}
.flow-agent > span {
  font-size: 15px;
  position: absolute;
  right: 3px;
  top: 2px;
}
.flow-link {
  width: 36px;
  border-top: 1px dashed #a9c4b9;
  margin: 0 9px;
}
.empty-state .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
}
.empty-state h3 {
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 500;
}
.empty-state > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin: 10px auto 24px;
  max-width: 330px;
}
.suggestion {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 14px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 9px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.suggestion:hover {
  background: var(--tint);
  border-color: #a9c4b9;
}
.suggestion > span:nth-child(2) {
  flex: 1;
}
.suggestion strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.suggestion small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.suggestion > span:last-child {
  color: var(--muted);
  font-size: 15px;
}
.suggestion-icon {
  width: 29px;
  height: 29px;
  background: var(--canvas);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--primary);
}
.empty-foot {
  font-size: 9px;
  color: var(--muted);
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.composer {
  margin: 0 17px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 13px 11px;
  background: var(--surface);
}
.composer:focus-within {
  border-color: #83aca0;
  box-shadow: 0 0 0 2px var(--tint);
}
textarea {
  display: block;
  resize: none;
  outline: none !important;
  min-height: 57px;
  max-height: 160px;
  overflow: auto;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
  background: transparent;
  line-height: 1.6;
}
textarea::placeholder {
  color: #758782;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
}
.composer-bottom > span {
  font-size: 9px;
  color: var(--muted);
}
.composer-buttons {
  display: flex;
  gap: 7px;
}
.composer .button {
  font-size: 11px;
  min-height: 34px;
  padding: 7px 11px;
}
.connection-actions {
  padding: 12px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.connection-actions .button {
  font-size: 10px;
}
.jump-latest {
  position: absolute;
  bottom: 145px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 12px #20383515;
  z-index: 2;
  font-size: 10px;
}
.inspector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px;
  background: var(--surface);
}
.aside-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.aside-title h2 {
  font-size: 13px;
  font-weight: 600;
}
.outline-tag {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--primary);
  border: 1px solid #cfe1d9;
  border-radius: 4px;
  padding: 3px 5px;
}
.data-label {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 21px 0 8px;
}
.id-field {
  display: flex;
  align-items: center;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 3px 2px 9px;
}
.id-field input {
  width: 100%;
  min-width: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-overflow: ellipsis;
  padding: 0;
  outline-offset: 0;
}
.session-facts {
  font-size: 10px;
  margin: 17px 0;
}
.session-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 13px 0;
}
.session-facts dt {
  color: var(--muted);
}
.session-facts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.approval-value {
  color: var(--amber);
}
.session-help {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.count-tag {
  font-size: 9px;
  background: var(--canvas);
  border-radius: 4px;
  padding: 3px 7px;
  color: var(--muted);
}
.tools-panel > p {
  margin: 7px 0 13px;
  font-size: 10px;
}
.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tool-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
}
.tool-list b {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.tool-list code {
  font-size: 8px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.tool-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 19px;
  flex-shrink: 0;
}
.tool-icon.meta {
  color: var(--blue);
  font-size: 24px;
}
.tool-icon.google {
  color: var(--blue);
  font-size: 18px;
  font-weight: 600;
}
.tool-icon.draft {
  background: var(--amber-bg);
  border-color: #f0e0c3;
  color: var(--amber);
}
.read-label {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
}
.approval-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  flex-shrink: 0;
}
.tool-list .approval-dot {
  margin-left: auto;
  margin-right: 8px;
}
.tool-note {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.learning-note {
  display: flex;
  gap: 10px;
  background: #eaf0f6;
  border: 1px solid #d9e3ed;
  border-radius: 10px;
  padding: 16px;
  color: #405c76;
}
.learning-note > span {
  font-size: 22px;
  line-height: 1;
}
.learning-note h2 {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.learning-note p {
  font-size: 10px;
  line-height: 1.75;
}
.raw-panel {
  font-size: 11px;
}
.raw-panel > summary {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 10px 4px;
  color: var(--muted);
}
.raw-panel > summary:before {
  content: "›";
  margin-right: 8px;
}
.raw-panel[open] > summary:before {
  content: "⌄";
}
.raw-panel > summary > span:first-child {
  flex: 1;
}
.raw-panel > summary:hover {
  color: var(--primary);
}
.raw-panel > p {
  margin: 5px 4px 10px;
}
#raw-events {
  max-height: 400px;
  overflow: auto;
}
.raw-event {
  border-top: 1px solid var(--line);
  padding: 8px 4px;
}
.raw-event summary {
  font-size: 9px;
  overflow-wrap: anywhere;
}
.raw-event small {
  color: var(--muted);
  display: block;
  margin: 4px 0 0 13px;
}
.page-footer {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  line-height: 1.6;
}
.page-footer > span:first-child {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-footer .tiny-dot {
  width: 4px;
  height: 4px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 23px 24px 22px 29px;
}
.timeline > li {
  position: relative;
  padding: 0 0 23px 31px;
  min-width: 0;
  border-left: 1px solid var(--line);
}
.timeline > li:last-child {
  border-left-color: transparent;
  padding-bottom: 4px;
}
.timeline-node {
  position: absolute;
  left: -11px;
  top: 0;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.timeline > li[data-kind="user"] .timeline-node {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.timeline > li[data-kind="analysis"] .timeline-node {
  background: var(--tint);
  color: var(--primary);
  border-color: #c9ded5;
}
.timeline > li[data-kind="approval"] .timeline-node {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: #e9d1a6;
}
.row-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  justify-content: space-between;
  min-height: 21px;
}
.row-heading h3 {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  overflow-wrap: anywhere;
}
.row-heading time {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--font-mono);
}
.row-text {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 7px;
}
.user-content {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.tool-args {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.source-label {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.row-details {
  margin-top: 9px;
  font-size: 9px;
  color: var(--muted);
}
.row-details summary:hover {
  color: var(--primary);
}
pre {
  font: 10px/1.6 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  max-height: 300px;
  overflow: auto;
  text-align: left;
  color: var(--ink);
}
.result-box {
  background: #f5f9f7;
  border: 1px solid #d8e8df;
  border-radius: 8px;
  margin-top: 7px;
  padding: 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 9px;
}
.metric-label {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.metric-value {
  font-family: var(--font-display);
  font-size: 17px;
  display: block;
  margin-top: 3px;
  letter-spacing: -0.3px;
}
.result-caption {
  font-size: 9px;
  color: var(--muted);
  margin-top: 11px;
  line-height: 1.6;
}
.product-result {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.product-result:last-child {
  border: 0;
}
.product-result b {
  font-size: 11px;
  font-weight: 600;
}
.product-result > span {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.approval-card {
  margin-top: 8px;
  background: var(--amber-bg);
  border: 1px solid #ecd4aa;
  border-radius: 9px;
  padding: 16px;
}
.approval-card .approval-eyebrow {
  color: var(--amber);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.approval-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin: 8px 0;
}
.approval-card p {
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.approval-card .reason-label {
  display: block;
  font-size: 9px;
  color: var(--amber);
  margin: 12px 0 4px;
}
.approval-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}
.approval-actions small {
  font-size: 9px;
  color: var(--muted);
}
.decision-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 13px;
}
.draft-preview h4 {
  font-size: 15px;
  margin: 7px 0;
}
.draft-preview p {
  font-size: 12px;
  line-height: 1.7;
}
.draft-preview .outline-tag {
  display: inline-block;
}
.working-indicator {
  padding: 4px 30px 24px 60px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}
.spinner {
  height: 12px;
  width: 12px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.timeline > li[data-kind="error"] .row-heading,
.timeline > li[data-kind="error"] .row-text {
  color: var(--danger);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (min-width: 1500px) {
  .timeline-scroll {
    height: 565px;
  }
  .empty-state {
    padding-top: 67px;
  }
  .shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }
  main {
    padding-top: 43px;
  }
  .lab-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .empty-state {
    max-width: 485px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 15px;
  }
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 28px 24px 18px;
  }
  .lab-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 16px;
  }
  .runtime-label {
    display: none;
  }
  h1 {
    font-size: 30px;
  }
  .info-panel {
    padding: 16px;
  }
  .composer-bottom > span {
    max-width: 135px;
    line-height: 1.6;
  }
  .empty-state {
    padding-inline: 18px;
  }
}
@media (max-width: 980px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .lab-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .inspector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .learning-note,
  .raw-panel {
    grid-column: 1/-1;
  }
  .timeline-scroll {
    height: 470px;
  }
  .empty-state {
    max-width: 470px;
  }
  .sidebar-bottom p {
    font-size: 19px;
  }
  .active-nav {
    font-size: 10px;
  }
  .version {
    display: none;
  }
  .page-footer {
    flex-wrap: wrap;
  }
  .setup-banner {
    align-items: flex-start;
  }
  .setup-banner .button {
    padding: 7px 10px;
  }
  .setup-icon {
    display: none;
  }
  .composer-bottom > span {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .brand {
    font-size: 13px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 26px;
    border-radius: 9px;
  }
  .brand-mark span {
    font-size: 14px;
  }
  .sidebar .workspace-label,
  .sidebar .nav-caption,
  .sidebar .active-nav,
  .sidebar .history-heading,
  .sidebar .sessions,
  .sidebar-bottom {
    display: none;
  }
  .new-session {
    margin: 0;
    width: auto;
    min-height: 35px;
    font-size: 11px;
    padding: 6px 10px;
  }
  .topbar {
    height: 45px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .mode-badge {
    font-size: 9px;
  }
  main {
    padding: 25px 15px 18px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 270px;
    line-height: 1.7;
  }
  .eyebrow {
    font-size: 8px;
  }
  .setup-banner {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .setup-banner .button {
    margin-left: 0;
  }
  .setup-banner p {
    font-size: 10px;
  }
  .panel-heading {
    padding: 15px;
  }
  .panel-heading h2 {
    font-size: 12px;
  }
  .panel-heading .status {
    font-size: 9px;
  }
  .run-meta {
    padding: 9px 15px;
  }
  .timeline-scroll {
    height: 460px;
  }
  .empty-state {
    padding: 35px 17px 23px;
  }
  .empty-state h3 {
    font-size: 22px;
  }
  .empty-state > p {
    font-size: 11px;
  }
  .suggestion {
    padding: 12px 9px;
  }
  .suggestion strong {
    font-size: 10px;
  }
  .suggestion small {
    font-size: 9px;
  }
  .composer {
    margin: 0 10px 10px;
    padding: 12px 10px;
  }
  .composer-bottom {
    align-items: flex-end;
  }
  .composer-bottom > span {
    max-width: 110px;
    font-size: 8px;
  }
  .composer-buttons {
    gap: 4px;
  }
  .composer .button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .inspector {
    grid-template-columns: 1fr;
  }
  .learning-note,
  .raw-panel {
    grid-column: auto;
  }
  .timeline {
    padding: 23px 16px 22px 23px;
  }
  .timeline > li {
    padding-left: 23px;
  }
  .row-heading {
    gap: 5px;
  }
  .row-heading h3 {
    font-size: 10px;
  }
  .row-heading time {
    font-size: 8px;
  }
  .row-text {
    font-size: 11px;
  }
  .approval-card {
    padding: 12px;
  }
  .metric-value {
    font-size: 15px;
  }
  .connection-actions {
    flex-wrap: wrap;
  }
  .page-footer > span:last-child {
    font-size: 8px;
  }
  .info-panel {
    padding: 18px;
  }
  .tool-list code {
    font-size: 9px;
  }
  .tool-list b {
    font-size: 12px;
  }
  .session-facts {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 640px) {
  .sidebar {
    flex-wrap: wrap;
  }
  .button.mobile-history {
    display: flex;
    width: 100%;
    margin-top: 12px;
    min-height: 30px;
    font-size: 10px;
  }
  .sidebar.show-history .sessions {
    display: block;
    width: 100%;
    max-height: 150px;
    margin-top: 8px;
  }
  .sidebar.show-history .session-link {
    font-size: 12px;
  }
}
@media (forced-colors: active) {
  :root {
    scrollbar-color: auto;
  }
  .button,
  .status,
  .timeline-node {
    border: 1px solid ButtonText;
  }
  .tiny-dot,
  .approval-dot {
    background: CanvasText;
  }
}

/* One inspector, three peer views; natural height on desktop and mobile. */
.inspector-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.inspector-tabs button {
  flex: 1;
  min-height: 42px;
  padding: 8px 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.inspector-tabs button:hover {
  background: var(--canvas);
}
.inspector-tabs button[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.inspector-heading {
  font-size: 13px;
  margin-bottom: 14px;
}
.agent-tree,
.agent-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agent-tree ul {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.agent-entry {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.agent-entry strong {
  font-size: 13px;
}
.agent-entry details {
  font-size: 10px;
  color: var(--muted);
  max-width: 100%;
}
.agent-entry code {
  display: block;
  overflow-wrap: anywhere;
}
.capability-meta {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 5px;
}
.session-inspector {
  min-width: 0;
}
#context-facts dd {
  max-width: 65%;
}
@media (max-width: 980px) {
  .session-inspector {
    grid-column: 1 / -1;
  }
}
.workspace-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 16px;
  font-size: 11px;
}
.workspace-picker select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  max-width: 220px;
  padding: 6px;
}
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.template-library {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 11px;
}
.template-library article {
  margin: 12px 0;
}
.template-library h3 {
  font-size: 12px;
  margin-bottom: 6px;
}
.template-library p {
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .topbar {
    height: auto;
    min-height: 45px;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 10px;
  }
  .workspace-picker {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .workspace-picker select {
    flex: 1;
    max-width: none;
  }
}
/* Environment controls reuse inspector tokens and document scroll ownership. */
.environment-setup {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.environment-setup select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
}
.environment-advanced {
  margin-top: 12px;
}
.environment-advanced label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}
.environment-advanced textarea {
  width: 100%;
  min-height: 160px;
  resize: none;
  box-sizing: border-box;
  font: 12px/1.6 var(--font-mono);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}
.environment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.environment-actions[hidden] {
  display: none;
}
.environment-actions .button {
  white-space: normal;
  min-height: 38px;
}
.field-error {
  color: var(--danger);
  font-size: 12px;
  margin: 8px 0;
  width: 100%;
  overflow-wrap: anywhere;
}
.artifact-list {
  padding-left: 18px;
  width: 100%;
  overflow-wrap: anywhere;
}
.artifact-list a {
  color: var(--primary);
  text-underline-offset: 3px;
}
.environment-close-confirm {
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.environment-close-confirm h3 {
  font-size: 14px;
}
.environment-close-confirm .button {
  margin-top: 8px;
}
.button.danger {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--surface);
}
.button.danger:hover:not(:disabled) {
  background: var(--danger-bg);
}
.nav-link {
  display: block;
  color: var(--ink);
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}
.nav-link:hover {
  background: var(--tint);
}
a.active-nav {
  text-decoration: none;
}
.connections-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 24px;
  align-items: start;
}
.connection-heading,
.connection-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.connection-list-panel h2,
.connection-editor h2 {
  font: 600 20px var(--font-display);
  margin: 0 0 16px;
}
.connection-card,
.connection-editor,
.connection-empty {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.connection-card h3 {
  font: 600 16px var(--font-display);
  margin: 0;
  overflow-wrap: anywhere;
}
.connection-card p {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.connection-card-actions,
.connection-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.connection-editor form > label,
.connection-editor form > div > label {
  display: block;
  font-size: 13px;
  margin: 14px 0 5px;
}
:is(.connection-editor, .studio-fields) input:not([type="checkbox"]),
:is(.connection-editor, .studio-fields) select,
:is(.connection-editor, .studio-fields) textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.resize-none {
  resize: none;
}
.connection-editor textarea {
  resize: none;
  min-height: 85px;
  font-family: var(--font-mono);
  font-size: 12px;
}
:is(.connection-editor, .studio-fields) select {
  cursor: pointer;
}
.connection-editor fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  padding: 12px;
}
.connection-editor legend {
  font-size: 13px;
  padding: 0 5px;
}
.check-row {
  display: flex !important;
  align-items: start;
  gap: 8px;
  margin: 10px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.check-row input {
  margin-top: 4px;
  accent-color: var(--primary);
}
.discovered-tool {
  border-top: 1px solid var(--line);
  margin: 15px 0;
  padding-top: 5px;
}
.discovered-tool pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.discovered-tool details {
  margin-top: 10px;
}
.connection-form-actions {
  margin-top: 18px;
}
.connection-form-actions .primary {
  min-width: 180px;
}
#connection-announcement {
  min-height: 24px;
}
[aria-invalid="true"] {
  border-color: var(--danger) !important;
}
@media (max-width: 1000px) {
  .connections-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Run evidence uses the existing panel, disclosure and token owners. */
.browser-qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--panel-gap, 22px);
}
.browser-qa-viewport {
  min-width: 0;
}
.workflow-evidence dd,
.workflow-evidence code {
  overflow-wrap: anywhere;
}
.workflow-screenshot {
  margin: 16px 0;
}
.workflow-screenshot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.workflow-screenshot figcaption {
  font-size: 13px;
  margin-top: 8px;
  color: var(--muted);
}
.workflow-screenshot figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .browser-qa-grid {
    grid-template-columns: 1fr;
  }
}
