*, *::before, *::after { box-sizing: border-box; }

html, body, #root {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--tn-color-text-primary);
  background: var(--tn-color-app-bg);
  font-family: var(--tn-font-ui);
  font-size: var(--tn-font-ui-base);
}

button, input, select, textarea { font: inherit; }

.tn-app {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) 24px;
  width: 100%;
  height: 100%;
  min-width: 960px;
  background: var(--tn-color-app-bg);
}

.tn-app[data-connection="offline"],
.tn-app[data-connection="reconnecting"],
.tn-app[data-connection="connecting"] {
  grid-template-rows: 44px 34px minmax(0, 1fr) 24px;
}

.tn-global-chrome {
  display: grid;
  grid-template-columns: minmax(180px, 252px) minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  padding: 0 8px;
  border-bottom: 1px solid var(--tn-color-border);
  background: var(--tn-color-chrome-bg);
  -webkit-app-region: drag;
}

.tn-brand-group, .tn-global-actions, .tn-surface-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  -webkit-app-region: no-drag;
}

.tn-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  padding: 0 8px 0 4px;
  font-weight: 700;
  letter-spacing: 0;
}

.tn-brand small {
  color: var(--tn-color-text-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tn-workspace-select {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 170px;
  height: var(--tn-size-control);
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--tn-radius-md);
  color: var(--tn-color-text-secondary);
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.tn-surface-nav { align-self: stretch; justify-self: start; }

.tn-surface-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--tn-color-text-secondary);
  background: transparent;
  font-weight: 600;
}

.tn-surface-tab { color: var(--tn-color-text-primary); border-bottom-color: var(--tn-color-accent); }

.tn-global-actions {
  justify-self: end;
  gap: 2px;
  padding: 0;
}

.tn-global-actions .tn-ui-icon-btn[aria-expanded="true"] {
  background: var(--tn-color-selected);
}

.tn-workbench {
  position: relative;
  display: grid;
  grid-template-columns: var(--tn-layout-left-width) minmax(0, 1fr) var(--tn-layout-right-width);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--tn-color-stage-bg);
}

.tn-pane-restore {
  position: absolute;
  top: 50%;
  z-index: 80;
  width: 28px;
  height: 40px;
  border-color: var(--tn-color-border);
  background: var(--tn-color-elevated-bg);
  box-shadow: none;
  transform: translateY(-50%);
}

.tn-pane-restore:hover:not(:disabled) {
  background: var(--tn-color-selected);
}

.tn-pane-restore--outline {
  left: 0;
  border-left: 0;
  border-radius: 0 var(--tn-radius-md) var(--tn-radius-md) 0;
}

.tn-pane-restore--focus {
  right: 0;
  border-right: 0;
  border-radius: var(--tn-radius-md) 0 0 var(--tn-radius-md);
}

.tn-workbench[data-outline-open="false"] { grid-template-columns: 0 minmax(0, 1fr) var(--tn-layout-right-width); }
.tn-workbench[data-focus-expanded="true"] { grid-template-columns: var(--tn-layout-left-width) minmax(360px, 1fr) clamp(480px, 46vw, 680px); }
.tn-workbench[data-outline-open="false"][data-focus-expanded="true"] { grid-template-columns: 0 minmax(360px, 1fr) clamp(480px, 46vw, 680px); }
.tn-workbench[data-focus-open="false"] { grid-template-columns: var(--tn-layout-left-width) minmax(0, 1fr) 0; }
.tn-workbench[data-outline-open="false"][data-focus-open="false"] { grid-template-columns: 0 minmax(0, 1fr) 0; }
.tn-workbench[data-immersive="true"] { grid-template-columns: 0 minmax(0, 1fr) 0; }

.tn-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--tn-color-panel-bg);
}

.tn-outline-pane { border-right: 1px solid var(--tn-color-border); }
.tn-outline-pane[data-outline-mode="inbox"] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tn-inspector-pane { border-left: 1px solid var(--tn-color-border); }
.tn-workbench[data-outline-open="false"] .tn-outline-pane,
.tn-workbench[data-focus-open="false"] .tn-inspector-pane,
.tn-workbench[data-immersive="true"] :is(.tn-outline-pane, .tn-inspector-pane) { visibility: hidden; }

.tn-canvas-pane {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--tn-color-stage-bg);
}

.tn-canvas-host { position: relative; min-width: 0; min-height: 0; overflow: hidden; }

.tn-canvas-host::after {
  position: absolute;
  inset: 8px;
  z-index: 30;
  border: 1px dashed transparent;
  border-radius: var(--tn-radius-lg);
  background: transparent;
  content: "";
  pointer-events: none;
  transition:
    border-color var(--tn-motion-duration-fast) var(--tn-motion-ease-out),
    background-color var(--tn-motion-duration-fast) var(--tn-motion-ease-out);
}

.tn-canvas-host[data-drop-state="target"]::after {
  border-color: var(--tn-color-border-strong);
  background: color-mix(in srgb, var(--tn-color-selected) 42%, transparent);
}

.tn-canvas-drop-preview {
  position: absolute;
  z-index: 31;
  box-sizing: border-box;
  border: 1px dashed var(--tn-color-border-strong);
  border-radius: var(--tn-radius-md);
  background:
    linear-gradient(var(--tn-color-border), var(--tn-color-border)) 11px 31px / calc(100% - 22px) 1px no-repeat,
    color-mix(in srgb, var(--tn-color-elevated-bg) 84%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tn-motion-duration-fast) var(--tn-motion-ease-out);
}

.tn-canvas-host[data-drop-state="target"] .tn-canvas-drop-preview {
  opacity: .76;
}

.tn-canvas-drop-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 35;
  max-width: min(280px, calc(100% - 48px));
  padding: 7px 10px;
  border: 1px solid var(--tn-color-border-strong);
  border-radius: var(--tn-radius-md);
  background: color-mix(in srgb, var(--tn-color-elevated-bg) 94%, transparent);
  box-shadow: var(--tn-shadow-card);
  color: var(--tn-color-text-primary);
  font-size: var(--tn-font-ui-small);
  font-weight: var(--tn-font-weight-ui);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + var(--tn-motion-distance-sm)));
  transition:
    opacity var(--tn-motion-duration-fast) var(--tn-motion-ease-out),
    transform var(--tn-motion-duration-standard) var(--tn-motion-ease-out),
    border-color var(--tn-motion-duration-fast) var(--tn-motion-ease-out);
}

.tn-canvas-drop-feedback[data-state="target"],
.tn-canvas-drop-feedback[data-state="success"] {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.tn-canvas-drop-feedback[data-state="success"] {
  border-color: var(--tn-color-success);
  color: var(--tn-color-success);
}

.tn-pane-empty {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px 18px;
  color: var(--tn-color-text-secondary);
}

.tn-pane-empty strong { color: var(--tn-color-text-primary); font-size: 13px; }
.tn-pane-empty p { margin: 0; font-size: 12px; line-height: 1.55; }

.tn-outline-modes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
}

.tn-outline-modes .tn-ui-btn {
  min-height: 24px;
  padding: 2px 7px;
  border: 0;
}

.tn-outline-modes .tn-ui-btn[aria-pressed="true"] {
  background: var(--tn-color-selected);
  color: var(--tn-color-text-primary);
}

.tn-outline-tree {
  box-sizing: border-box;
  min-width: 0;
  height: calc(100% - 32px);
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
}
.tn-outline-node {
  --tn-tree-depth: 0;
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 14px 3px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 3px 6px 3px calc(7px + var(--tn-tree-depth) * 13px);
  border: 1px solid transparent;
  border-radius: var(--tn-radius-md);
  color: var(--tn-color-text-primary);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--tn-motion-duration-fast) var(--tn-motion-ease-out),
    border-color var(--tn-motion-duration-fast) var(--tn-motion-ease-out),
    color var(--tn-motion-duration-fast) var(--tn-motion-ease-out),
    opacity var(--tn-motion-duration-fast) var(--tn-motion-ease-out);
}

.tn-outline-node:hover { background: var(--tn-color-hover); }
.tn-outline-node[data-selected="true"] { background: var(--tn-color-selected); }
.tn-outline-node[data-drag-active="true"] {
  border-color: var(--tn-color-border-strong);
  background: var(--tn-color-selected);
  opacity: 0.62;
}
.tn-outline-node:focus-visible { outline: var(--tn-focus-ring); outline-offset: -1px; }
.tn-outline-node[data-projection="stale"], .tn-outline-node[data-projection="unresolved"] { color: var(--tn-color-text-secondary); }
.tn-outline-disclosure { display: grid; width: 14px; height: 20px; place-items: center; color: var(--tn-color-text-faint); }
.tn-outline-disclosure:not([data-visible="true"]) { pointer-events: none; }
.tn-outline-disclosure[data-visible="true"] { cursor: pointer; }
.tn-outline-disclosure svg { width: 12px; height: 12px; transition: transform var(--tn-motion-duration-fast) var(--tn-motion-ease-out); }
.tn-outline-disclosure[data-expanded="true"] svg { transform: rotate(90deg); }

.tn-outline-spine { width: 3px; height: 20px; border-radius: 3px; background: var(--tn-color-border-strong); }
.tn-outline-spine[data-type="goal"] { background: var(--tn-color-node-goal); }
.tn-outline-spine[data-type="prompt"] { background: var(--tn-color-node-prompt); }
.tn-outline-spine[data-type="output"] { background: var(--tn-color-node-output); }
.tn-outline-copy { display: block; min-width: 0; }
.tn-outline-node[data-selected="true"] .tn-outline-copy { display: grid; gap: 2px; }
.tn-outline-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tn-outline-meta { overflow: hidden; color: var(--tn-color-text-faint); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tn-outline-node .tn-ui-status-badge { padding-inline: 5px; }
.tn-outline-presence {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--tn-color-text-faint);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tn-outline-presence[data-pending-sync="true"] {
  border-style: dashed;
  border-color: var(--tn-color-border-strong);
  background: color-mix(in srgb, var(--tn-color-selected) 46%, transparent);
  color: var(--tn-color-text-secondary);
}

.tn-inspector-content { height: calc(100% - 32px); overflow: auto; }
.tn-focus-identity { padding: 18px 16px 14px; border-bottom: 1px solid var(--tn-color-border); }
.tn-focus-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--tn-color-text-secondary); font-size: 11px; }
.tn-focus-identity h1 { margin: 9px 0 5px; font-size: 17px; line-height: 1.25; letter-spacing: 0; }
.tn-focus-identity p { margin: 0; overflow: hidden; color: var(--tn-color-text-faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.tn-projection-notice { display: grid; gap: 3px; margin: 12px 16px 0; padding: 9px 10px; border-left: 3px solid var(--tn-color-warning); background: var(--tn-color-warning-soft); color: var(--tn-color-warning); font-size: 11px; line-height: 1.45; }
.tn-projection-notice[data-state="error"] { border-left-color: var(--tn-color-danger); background: var(--tn-color-danger-soft); color: var(--tn-color-danger); }

.tn-focus-placement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--tn-color-border);
}
.tn-focus-placement > div { min-width: 0; }
.tn-focus-placement h2 { margin: 0 0 3px; color: var(--tn-color-text-secondary); font-size: 11px; }
.tn-focus-placement p { margin: 0; color: var(--tn-color-text-faint); font-size: 11px; line-height: 1.45; }
.tn-focus-placement .tn-ui-btn { flex: none; }
.tn-focus-placement__source {
  display: block;
  margin-top: 4px;
  color: var(--tn-color-text-secondary);
  font-size: 11px;
}
.tn-focus-placement__source[data-source-state="changed"],
.tn-focus-placement__source[data-source-state="deleted"] {
  color: var(--tn-color-text-primary);
}
.tn-focus-placement__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--tn-space-1);
}

.tn-inspector-content > .tn-ui-tabs { margin-top: 8px; background: transparent; }
.tn-focus-sections { padding: 0 16px 24px; }
.tn-focus-sections > .tn-focus-document { margin-inline: -16px; }
.tn-focus-sections section { padding: 15px 0; border-bottom: 1px solid var(--tn-color-border); }
.tn-focus-sections section:last-child { border-bottom: 0; }
.tn-focus-sections h2 { margin: 0 0 8px; color: var(--tn-color-text-secondary); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.tn-focus-sections p { margin: 0 0 12px; color: var(--tn-color-text-secondary); font-size: 12px; line-height: 1.55; }
.tn-focus-sections dl { display: grid; gap: 8px; margin: 0; }
.tn-focus-sections dl div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
.tn-focus-sections dt { color: var(--tn-color-text-faint); }
.tn-focus-sections dd { margin: 0; overflow-wrap: anywhere; }

.tn-collaboration-panel { display: grid; min-width: 0; padding: 0 16px 24px; }
.tn-collaboration-state { display: grid; gap: 3px; margin: 12px 0 0; padding: 9px 10px; border-left: 3px solid var(--tn-color-warning); color: var(--tn-color-warning); background: var(--tn-color-warning-soft); font-size: 11px; line-height: 1.45; }
.tn-collaboration-state[data-state="error"] { border-left-color: var(--tn-color-danger); color: var(--tn-color-danger); background: var(--tn-color-danger-soft); }
.tn-collaboration-section { min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--tn-color-border); }
.tn-collaboration-section:last-of-type { border-bottom: 0; }
.tn-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.tn-section-heading h2, .tn-dispatch-entry h2 { margin: 0; color: var(--tn-color-text-secondary); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.tn-active-task { display: grid; gap: 3px; font-size: 12px; }
.tn-active-task strong { color: var(--tn-color-text-primary); }
.tn-active-task span, .tn-active-task time, .tn-quiet-copy, .tn-secondary-notice { color: var(--tn-color-text-faint); font-size: 11px; line-height: 1.5; }
.tn-quiet-copy, .tn-secondary-notice { margin: 0; }
.tn-dispatch-entry { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tn-dispatch-entry > div { min-width: 0; }
.tn-dispatch-entry p { margin: 4px 0 0; color: var(--tn-color-text-secondary); font-size: 11px; line-height: 1.45; }
.tn-dispatch { display: grid; gap: 11px; }
.tn-control-pair { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; }
.tn-context-picker { color: var(--tn-color-text-secondary); font-size: 11px; }
.tn-context-picker summary { cursor: pointer; }
.tn-context-picker summary span { color: var(--tn-color-text-faint); }
.tn-context-picker > div { display: grid; gap: 5px; max-height: 150px; margin-top: 7px; overflow: auto; }
.tn-context-picker label, .tn-decision-options label { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.tn-context-picker input, .tn-decision-options input { flex: none; margin-top: 2px; accent-color: var(--tn-color-accent); }
.tn-inbox { display: grid; gap: 0; }
.tn-inbox > .tn-section-heading { margin-bottom: 0; }
.tn-inbox-item { display: grid; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--tn-color-border); }
.tn-inbox-item:last-of-type { border-bottom: 0; }
.tn-inbox-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tn-inbox-item-heading strong { color: var(--tn-color-text-primary); font-size: 12px; }
.tn-inbox-item > p { margin: 0; color: var(--tn-color-text-secondary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.tn-result-report { min-width: 0; color: var(--tn-color-text-secondary); }
.tn-result-report .tn-markdown-reader { padding: 0; font-size: 12px; line-height: 1.6; }
.tn-inbox-actions, .tn-inline-form > div { display: flex; justify-content: flex-end; gap: 6px; }
.tn-inbox-view { min-height: 0; overflow: auto; padding: 0 10px 18px; }
.tn-inbox-status { padding: 10px 2px 4px; }
.tn-inbox-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tn-inbox-row-wrap { min-width: 0; border-bottom: 1px solid var(--tn-color-border); }
.tn-inbox-row-wrap:last-child { border-bottom: 0; }
.tn-inbox-row { display: grid; gap: 4px; width: 100%; min-width: 0; padding: 11px 2px; border: 0; border-radius: 0; background: transparent; color: var(--tn-color-text-secondary); font: inherit; text-align: left; }
button.tn-inbox-row { cursor: pointer; }
button.tn-inbox-row:hover { background: var(--tn-color-hover); }
button.tn-inbox-row:focus-visible { outline: var(--tn-focus-ring); outline-offset: -2px; }
.tn-inbox-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.tn-inbox-row-heading strong { min-width: 0; overflow: hidden; color: var(--tn-color-text-primary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tn-inbox-row-heading time { flex: none; color: var(--tn-color-text-faint); font-size: 10px; }
.tn-inbox-row-summary { display: -webkit-box; overflow: hidden; color: var(--tn-color-text-secondary); font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tn-inbox-row-source { color: var(--tn-color-text-faint); font-size: 10px; }
.tn-inbox-row[data-actionable="false"] { opacity: .72; }
.tn-inline-form { display: grid; gap: 8px; }
.tn-decision-options { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; color: var(--tn-color-text-secondary); font-size: 11px; }
.tn-decision-options legend { margin-bottom: 6px; color: var(--tn-color-text-faint); font-size: 10px; }
.tn-action-error { margin: 0; color: var(--tn-color-danger); font-size: 11px; line-height: 1.45; }

.tn-focus-document { min-width: 0; border-bottom: 1px solid var(--tn-color-border); }
.tn-focus-document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 7px 12px 7px 16px; border-bottom: 1px solid var(--tn-color-border); }
.tn-focus-document-toolbar > div { display: flex; align-items: center; min-width: 0; gap: 8px; }
.tn-focus-document-toolbar h2 { margin: 0; }
.tn-focus-document-actions { justify-content: flex-end; flex-wrap: wrap; }
.tn-focus-document-body { min-height: 160px; max-height: min(52vh, 520px); overflow: auto; background: var(--tn-color-elevated-bg); }
.tn-markdown-reader { padding: 14px 16px 42px; color: var(--tn-color-text-primary); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.tn-markdown-reader > :first-child { margin-top: 0; }
.tn-markdown-reader > :last-child { margin-bottom: 0; }
.tn-markdown-reader h1 { margin: 1.2em 0 .55em; font-size: 21px; line-height: 1.25; }
.tn-markdown-reader h2 { margin: 1.15em 0 .5em; color: var(--tn-color-text-primary); font-size: 17px; letter-spacing: 0; text-transform: none; }
.tn-markdown-reader h3 { margin: 1em 0 .4em; font-size: 14px; }
.tn-markdown-reader p, .tn-markdown-reader ul, .tn-markdown-reader ol, .tn-markdown-reader blockquote, .tn-markdown-reader pre, .tn-markdown-reader table { margin: .7em 0; }
.tn-markdown-reader pre, .tn-markdown-reader code { font-family: var(--tn-font-mono, ui-monospace, monospace); }
.tn-markdown-reader code { padding: 1px 4px; border-radius: 4px; background: var(--tn-color-hover); font-size: .92em; }
.tn-markdown-reader pre { overflow: auto; padding: 10px 12px; border: 1px solid var(--tn-color-border); border-radius: var(--tn-radius-md); background: var(--tn-color-stage-bg); }
.tn-markdown-reader pre code { padding: 0; background: transparent; }
.tn-markdown-reader blockquote { margin-left: 0; padding-left: 12px; border-left: 3px solid var(--tn-color-border-strong); color: var(--tn-color-text-secondary); }
.tn-markdown-reader table { width: 100%; border-collapse: collapse; }
.tn-markdown-reader th, .tn-markdown-reader td { padding: 5px 7px; border: 1px solid var(--tn-color-border); text-align: left; }
.tn-markdown-reader a { color: var(--tn-color-info); }
.tn-markdown-empty { margin: 0; padding: 24px 16px; color: var(--tn-color-text-faint); font-size: 12px; }
.tn-markdown-editor { height: min(52vh, 520px); min-height: 220px; color: var(--tn-color-text-primary); background: var(--tn-color-elevated-bg); font-size: 13px; line-height: 1.65; }
.tn-document-message { display: grid; justify-items: start; gap: 7px; padding: 20px 16px; color: var(--tn-color-text-secondary); font-size: 12px; }
.tn-document-message strong { color: var(--tn-color-text-primary); }
.tn-document-notice { padding: 8px 16px; border-bottom: 1px solid var(--tn-color-warning); color: var(--tn-color-warning); background: var(--tn-color-warning-soft); font-size: 11px; }
.tn-document-conflict { padding: 12px 16px; border-bottom: 1px solid var(--tn-color-warning); color: var(--tn-color-text-secondary); background: var(--tn-color-warning-soft); font-size: 12px; }
.tn-document-conflict strong { color: var(--tn-color-warning); }
.tn-document-conflict p { margin: 5px 0 10px; }
.tn-document-conflict > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-focus-document-links { padding: 10px 16px; border-top: 1px solid var(--tn-color-border); color: var(--tn-color-text-secondary); font-size: 11px; }
.tn-focus-document-links summary { cursor: pointer; font-weight: 650; }
.tn-focus-document-links p { margin: 7px 0 0; }
.tn-focus-document-links ul { display: grid; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.tn-focus-document-links li { display: grid; min-width: 0; gap: 1px; }
.tn-focus-document-links li strong, .tn-focus-document-links li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-focus-document-links li span { color: var(--tn-color-text-faint); }

.tn-connection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid var(--tn-color-danger);
  color: var(--tn-color-danger);
  background: var(--tn-color-danger-soft);
  font-size: 12px;
}

.tn-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 9px;
  border-top: 1px solid var(--tn-color-border);
  color: var(--tn-color-text-faint);
  background: var(--tn-color-chrome-bg);
  font-size: 10px;
}
.tn-status-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tn-status-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tn-status-item[data-state="online"], .tn-status-item[data-state="fresh"] { color: var(--tn-color-success); }
.tn-status-item[data-state="offline"], .tn-status-item[data-state="error"] { color: var(--tn-color-danger); }
.tn-status-item[data-state="reconnecting"], .tn-status-item[data-state="stale"] { color: var(--tn-color-warning); }
.tn-status-separator { width: 1px; height: 10px; background: var(--tn-color-border); }
.tn-status-spacer { flex: 1; }

.tn-sr-only, .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;
}
