/* src/styles/workspaces.css */
.workspace-switcher {
  position: relative;
  margin-bottom: 8px;
  padding: 0 8px;
}

.ws-active {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border, #1a2a42);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 6px;
  align-items:  center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  transition: border-color .2s;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
}

.ws-active:hover {
  border-color: var(--accent, #0a75ff);
}

.ws-dot {
  border-radius: 2px;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.ws-name {
  text-align: left;
  letter-spacing: .5px;
  flex: 1;
  font-weight: 600;
}

.ws-chevron {
  opacity: .5;
  font-size: 10px;
}

.ws-dropdown {
  position: absolute;
  background: var(--bg-primary);
  border: 1px solid var(--border, #1a2a42);
  z-index: 100;
  border-radius: 6px;
  margin-top: 4px;
  padding: 4px;
  top: 100%;
  left: 8px;
  right: 8px;
  box-shadow: 0 8px 32px #00000080;
}

.ws-item {
  display: flex;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  align-items:  center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  transition: background .15s;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.ws-item:hover, .ws-item-active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.ws-info {
  display: flex;
  flex-direction: column;
  align-items:  flex-start;
  gap: 2px;
}

.ws-item-name {
  font-size: 11px;
  font-weight: 600;
}

.ws-item-path {
  opacity: .5;
  font-size: 9px;
}

.ws-divider {
  background: var(--border, #1a2a42);
  height: 1px;
  margin: 4px 0;
}

.ws-add {
  color: var(--accent, #0a75ff);
  font-size: 11px;
}

/* src/styles/code.css */
.code-view {
  display: flex;
  overflow: hidden;
  gap: 0;
  height: 100%;
}

.file-tree {
  border-right: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  width: 25%;
  min-width: 200px;
  max-width: 320px;
}

.file-tree-header {
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items:  center;
  padding: 12px 16px;
}

.file-tree-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.file-tree-path {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--mono);
}

.file-tree-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.file-entry {
  display: flex;
  cursor: pointer;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items:  center;
  gap: 6px;
  padding: 4px 12px;
  transition: background .1s;
  font-size: 13px;
}

.file-entry:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.file-entry-active {
  background: var(--accent-glow);
  color: var(--accent);
}

.file-entry-dir {
  color: var(--text-primary);
  font-weight: 600;
}

.file-icon {
  font-family: var(--mono);
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 12px;
  font-size: 11px;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--mono);
  flex-shrink: 0;
  margin-left: auto;
}

.code-panel {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
}

.code-panel-header {
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items:  center;
  padding: 8px 16px;
}

.code-panel-path {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-panel-info {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
  font-size: 11px;
}

.code-content {
  overflow: auto;
  flex: 1;
  padding: 8px 0;
}

.code-lines {
  font-family: var(--mono);
  tab-size: 2;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.code-line {
  display: flex;
  min-height: 19px;
}

.code-line:hover {
  background: #ffffff08;
}

.line-number {
  display: inline-block;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  flex-shrink: 0;
  width: 48px;
  padding-right: 12px;
}

.line-content {
  white-space: pre;
  flex: 1;
  padding-left: 8px;
}

.tok-keyword {
  color: #569cd6;
}

.tok-string {
  color: #ce9178;
}

.tok-comment {
  color: #6a9955;
}

.tok-number {
  color: #b5cea8;
}

/* src/styles/terminal.css */
.terminal-view {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
}

.terminal-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items:  center;
  padding: 8px 16px;
}

.terminal-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.terminal-output {
  overflow-y: auto;
  font-family: var(--mono);
  background: var(--bg-primary);
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-secondary);
  padding: 1px 0;
}

.terminal-line-input {
  color: var(--text-primary);
  font-weight: 500;
}

.terminal-line-error {
  color: var(--status-error);
}

.terminal-line-running {
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}

.terminal-input {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  align-items:  center;
  gap: 8px;
  padding: 8px 16px;
}

.terminal-prompt {
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
}

.terminal-input input {
  font-family: var(--mono);
  color: var(--text-primary);
  outline: none;
  background: none;
  border: none;
  flex: 1;
  padding: 4px 0;
  font-size: 13px;
}

.terminal-input input::placeholder {
  color: var(--text-muted);
}

.desktop-required {
  display: flex;
  color: var(--text-muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  height: 100%;
  padding: 48px 24px;
}

/* node_modules/@xterm/xterm/css/xterm.css */
.xterm {
  cursor: text;
  position: relative;
  user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
}

.xterm.focus, .xterm:focus {
  outline: none;
}

.xterm .xterm-helpers {
  position: absolute;
  z-index: 5;
  top: 0;
}

.xterm .xterm-helper-textarea {
  position: absolute;
  opacity: 0;
  z-index: -5;
  white-space: nowrap;
  overflow: hidden;
  resize: none;
  border: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  top: 0;
  left: -9999em;
}

.xterm .composition-view {
  color: #fff;
  display: none;
  position: absolute;
  white-space: nowrap;
  z-index: 1;
  background: #000;
}

.xterm .composition-view.active {
  display: block;
}

.xterm .xterm-viewport {
  overflow-y: scroll;
  cursor: default;
  position: absolute;
  background-color: #000;
  inset: 0;
}

.xterm .xterm-screen {
  position: relative;
}

.xterm .xterm-screen canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.xterm-char-measure-element {
  display: inline-block;
  visibility: hidden;
  position: absolute;
  line-height: normal;
  top: 0;
  left: -9999em;
}

.xterm.enable-mouse-events {
  cursor: default;
}

.xterm.xterm-cursor-pointer, .xterm .xterm-cursor-pointer {
  cursor: pointer;
}

.xterm.column-select.focus {
  cursor: crosshair;
}

.xterm .xterm-accessibility:not(.debug), .xterm .xterm-message {
  position: absolute;
  z-index: 10;
  color: #0000;
  pointer-events: none;
  inset: 0;
}

.xterm .xterm-accessibility-tree:not(.debug) *::selection {
  color: #0000;
}

.xterm .xterm-accessibility-tree {
  user-select: text;
  white-space: pre;
  font-family: monospace;
}

.xterm .xterm-accessibility-tree > div {
  transform-origin: left;
  width: -moz-fit-content;
  width: fit-content;
}

.xterm .live-region {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  left: -9999px;
}

.xterm-dim {
  opacity: 1 !important;
}

.xterm-underline-1 {
  text-decoration: underline;
}

.xterm-underline-2 {
  text-decoration: double underline;
}

.xterm-underline-3 {
  text-decoration: wavy underline;
}

.xterm-underline-4 {
  text-decoration: dotted underline;
}

.xterm-underline-5 {
  text-decoration: dashed underline;
}

.xterm-overline {
  text-decoration: overline;
}

.xterm-overline.xterm-underline-1 {
  text-decoration: overline underline;
}

.xterm-overline.xterm-underline-2 {
  text-decoration: overline double underline;
}

.xterm-overline.xterm-underline-3 {
  text-decoration: overline wavy underline;
}

.xterm-overline.xterm-underline-4 {
  text-decoration: overline dotted underline;
}

.xterm-overline.xterm-underline-5 {
  text-decoration: overline dashed underline;
}

.xterm-strikethrough {
  text-decoration: line-through;
}

.xterm-screen .xterm-decoration-container .xterm-decoration {
  z-index: 6;
  position: absolute;
}

.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
  z-index: 7;
}

.xterm-decoration-overview-ruler {
  z-index: 8;
  position: absolute;
  pointer-events: none;
  top: 0;
  right: 0;
}

.xterm-decoration-top {
  z-index: 2;
  position: relative;
}

.xterm .xterm-scrollable-element > .scrollbar {
  cursor: default;
}

.xterm .xterm-scrollable-element > .scrollbar > .scra {
  cursor: pointer;
  font-size: 11px !important;
}

.xterm .xterm-scrollable-element > .visible {
  opacity: 1;
  z-index: 11;
  background: none;
  transition: opacity .1s linear;
}

.xterm .xterm-scrollable-element > .invisible {
  opacity: 0;
  pointer-events: none;
}

.xterm .xterm-scrollable-element > .invisible.fade {
  transition: opacity .8s linear;
}

.xterm .xterm-scrollable-element > .shadow {
  position: absolute;
  display: none;
}

.xterm .xterm-scrollable-element > .shadow.top {
  display: block;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset;
  width: 100%;
  height: 3px;
  top: 0;
  left: 3px;
}

.xterm .xterm-scrollable-element > .shadow.left {
  display: block;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
  width: 3px;
  height: 100%;
  top: 3px;
  left: 0;
}

.xterm .xterm-scrollable-element > .shadow.top-left-corner {
  display: block;
  width: 3px;
  height: 3px;
  top: 0;
  left: 0;
}

.xterm .xterm-scrollable-element > .shadow.top.left {
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}

/* src/styles/git.css */
.git-view {
  height: 100%;
}

.branch-item {
  display: flex;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--mono);
  align-items:  center;
  gap: 8px;
  padding: 6px 8px;
  transition: background .1s;
}

.branch-item:hover {
  background: var(--bg-tertiary);
}

.branch-current {
  color: var(--accent);
  font-weight: 600;
}

.branch-indicator {
  background: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.branch-current .branch-indicator {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.branch-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branch-remote {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
  font-size: 11px;
}

.commit-entry {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}

.commit-entry:last-child {
  border-bottom: none;
}

.commit-hash {
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
  min-width: 60px;
  font-size: 12px;
}

.commit-message {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.commit-meta {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  margin-left: auto;
}

.commit-author {
  color: var(--text-secondary);
  font-size: 12px;
}

.commit-time {
  color: var(--text-muted);
  text-align: right;
  min-width: 50px;
  font-size: 12px;
}

.pr-entry {
  border-radius: var(--radius);
  padding: 8px;
  transition: background .1s;
}

.pr-entry:hover {
  background: var(--bg-tertiary);
}

.pr-number {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.pr-state {
  display: inline-block;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .3px;
  border-radius: 9px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
}

.pr-title {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 13px;
}

.pr-meta {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 12px;
}

/* src/styles/specs.css */
.specs-view {
  padding: 1.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.specs-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.spec-card {
  cursor: pointer;
  transition: border-color .15s;
}

.spec-card:hover {
  border-color: var(--accent);
}

.spec-card-header {
  display: flex;
  align-items:  center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.spec-card-name {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.spec-card-owner {
  color: var(--text-muted);
  font-size: .75rem;
}

.spec-card-meta {
  color: var(--text-muted);
  margin-top: .5rem;
  font-size: .75rem;
}

.spec-progress {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.spec-progress-bar {
  background: var(--bg-primary);
  overflow: hidden;
  border-radius: 3px;
  flex: 1;
  height: 6px;
}

.spec-progress-fill {
  background: var(--accent);
  border-radius: 3px;
  height: 100%;
  transition: width .3s;
}

.spec-progress-text {
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: .75rem;
}

.spec-detail-header {
  display: flex;
  align-items:  center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.spec-detail-header h2 {
  flex: 1;
  margin: 0;
}

.spec-detail-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.spec-detail-meta {
  display: flex;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  font-size: .8rem;
}

.spec-sections h3 {
  margin-bottom: .75rem;
}

.spec-section {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: .5rem;
  padding: .75rem;
}

.spec-section-header {
  display: flex;
  align-items:  center;
  gap: .5rem;
}

.spec-section-title {
  flex: 1;
  font-weight: 600;
}

.spec-assignee {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: .15rem .5rem;
  font-size: .75rem;
}

.spec-section-desc {
  color: var(--text-secondary);
  margin: .5rem 0 0;
  font-size: .85rem;
}

.spec-criteria {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}

.spec-criteria li {
  display: flex;
  align-items:  center;
  gap: .5rem;
  padding: .2rem 0;
  font-size: .8rem;
}

.criterion-met {
  color: var(--status-ok);
}

.criterion-unmet {
  color: var(--text-muted);
}

.criterion-check {
  font-family: var(--mono, "JetBrains Mono", monospace);
  width: 1.5rem;
}

.criterion-type {
  color: var(--text-muted);
  margin-left: auto;
  font-size: .7rem;
}

.spec-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .5rem;
}

.artifact-path {
  font-size: .7rem;
  font-family: var(--mono, "JetBrains Mono", monospace);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 3px;
  padding: .1rem .4rem;
}

.view-header-actions {
  display: flex;
  gap: .5rem;
}

/* src/styles/browser.css */
.browser-view {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
}

.browser-toolbar {
  display: flex;
  background: var(--bg-secondary, #0f1d32);
  border-bottom: 1px solid var(--border, #1e3050);
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 8px 12px;
}

.browser-nav-buttons {
  display: flex;
  gap: 2px;
}

.browser-nav-btn {
  display: flex;
  border: 1px solid var(--border, #1e3050);
  color: var(--text-secondary, #8899b0);
  cursor: pointer;
  background: none;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  transition: background .15s, color .15s;
  font-size: 14px;
}

.browser-nav-btn:hover:not(:disabled) {
  background: var(--bg-tertiary, #162844);
  color: var(--text-primary, #e2e8f0);
}

.browser-nav-btn:disabled {
  opacity: .3;
  cursor: default;
}

.browser-url-bar {
  flex: 1;
  min-width: 0;
}

.browser-url-bar input {
  background: var(--bg-input, #0d1a2e);
  border: 1px solid var(--border, #1e3050);
  color: var(--text-primary, #e2e8f0);
  font-family: var(--mono);
  outline: none;
  border-radius: 4px;
  width: 100%;
  padding: 6px 12px;
  transition: border-color .2s;
  font-size: 12px;
}

.browser-url-bar input:focus {
  border-color: var(--accent, #0a75ff);
}

.browser-quick-links {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.browser-quick-btn {
  border: 1px solid var(--border, #1e3050);
  color: var(--text-secondary, #8899b0);
  font-family: var(--mono);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-radius: 4px;
  padding: 4px 10px;
  transition: background .15s, color .15s, border-color .15s;
  font-size: 10px;
}

.browser-quick-btn:hover {
  background: var(--bg-tertiary, #162844);
  color: var(--text-primary, #e2e8f0);
}

.browser-quick-active {
  border-color: var(--accent, #0a75ff);
  color: var(--accent, #0a75ff);
  background: var(--accent-glow, #0a75ff26);
}

.browser-content {
  position: relative;
  flex: 1;
  min-height: 0;
}

.browser-iframe {
  background: #fff;
  border: none;
  width: 100%;
  height: 100%;
}

/* src/styles/agent-chat.css */
.agent-chat-view {
  display: flex;
  overflow: hidden;
  height: 100%;
}

.agent-chat-sidebar {
  border-right: 1px solid var(--border, #1e3050);
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  flex-shrink: 0;
  width: 200px;
}

.agent-chat-sidebar-header {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted, #4a5e78);
  border-bottom: 1px solid var(--border, #1e3050);
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
}

.agent-tab {
  display: flex;
  color: var(--text-secondary, #8899b0);
  font-family: var(--mono);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid #0000;
  align-items:  center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  transition: background .15s, color .15s;
  font-size: 11px;
}

.agent-tab:hover {
  background: var(--bg-secondary, #0f1d32);
  color: var(--text-primary, #e2e8f0);
}

.agent-tab-active {
  background: var(--bg-secondary, #0f1d32);
  color: var(--text-primary, #e2e8f0);
  border-left-color: var(--accent, #0a75ff);
}

.agent-tab-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.agent-tab-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.agent-tab-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 600;
}

.agent-tab-model {
  opacity: .5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
}

.agent-chat-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.agent-chat-pane {
  flex-direction: column;
  height: 100%;
}

.agent-chat-messages {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 16px;
}

.agent-chat-empty {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 32px;
}

.agent-chat-empty-dot {
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin-bottom: 4px;
}

.agent-chat-empty-title {
  color: var(--text-primary, #e2e8f0);
  font-size: 16px;
  font-weight: 600;
}

.agent-chat-empty-model {
  font-family: var(--mono);
  color: var(--text-muted, #4a5e78);
  font-size: 11px;
}

.agent-chat-empty-hint {
  color: var(--text-secondary, #8899b0);
  margin-top: 8px;
  font-size: 13px;
}

.agent-msg {
  border-radius: var(--radius, 8px);
  word-break: break-word;
  max-width: 85%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
}

.agent-msg-user {
  background: var(--user-bubble, #0d2847);
  border: 1px solid var(--border, #1e3050);
  align-self:  flex-end;
}

.agent-msg-assistant {
  background: var(--assistant-bubble, #0f1d32);
  border: 1px solid var(--border, #1e3050);
  border-left: 3px solid var(--accent, #0a75ff);
  align-self:  flex-start;
}

.agent-msg-system {
  color: var(--text-secondary, #8899b0);
  background: #ef444414;
  border: 1px solid #ef444433;
  align-self:  center;
  max-width: 90%;
  font-size: 12px;
}

.agent-chat-typing {
  opacity: .6;
  font-size: 12px;
  font-style: italic;
}

.agent-chat-input-bar {
  display: flex;
  border-top: 1px solid var(--border, #1e3050);
  align-items:  flex-end;
  gap: 8px;
  padding: 12px 16px;
}

.agent-chat-input-bar textarea {
  background: var(--bg-input, #0d1a2e);
  border: 1px solid var(--border, #1e3050);
  color: var(--text-primary, #e2e8f0);
  font-family: var(--mono);
  resize: none;
  outline: none;
  border-radius: 6px;
  flex: 1;
  min-height: 36px;
  max-height: 100px;
  padding: 8px 12px;
  transition: border-color .2s;
  font-size: 13px;
}

.agent-chat-input-bar textarea:focus {
  border-color: var(--accent, #0a75ff);
}

.agent-chat-actions {
  display: flex;
  gap: 4px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
}

/* src/styles/canvas.css */
.canvas-view {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
}

.canvas-header {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  flex-start;
  padding: 0 0 16px;
}

.canvas-header h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.canvas-header p {
  color: var(--text-secondary, #8899b0);
  margin: 0;
  font-size: 13px;
}

.canvas-zoom-controls {
  display: flex;
  align-items:  center;
  gap: 6px;
}

.canvas-zoom-label {
  font-family: var(--mono);
  color: var(--text-secondary, #8899b0);
  text-align: center;
  min-width: 40px;
  font-size: 11px;
}

.canvas-grid {
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  flex: 1;
  align-content:  start;
  gap: 16px;
  padding: 4px;
  transition: transform .2s;
}

.canvas-card {
  position: relative;
  background: var(--bg-card, #0f1d32cc);
  border: 1px solid var(--border, #1e3050);
  border-radius: var(--radius-lg, 12px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  padding: 16px;
  transition: border-color .2s, background .2s, transform .15s;
}

.canvas-card:hover {
  background: var(--bg-card-hover, #162844e6);
  transform: translateY(-2px);
}

.canvas-card-active {
  border-width: 2px;
  box-shadow: 0 0 20px #0a75ff26;
}

.canvas-card-header {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 12px;
}

.canvas-card-dot {
  border-radius: 3px;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

.canvas-card-name {
  color: var(--text-primary, #e2e8f0);
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.canvas-card-health {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.canvas-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.canvas-card-path {
  font-family: var(--mono);
  color: var(--text-muted, #4a5e78);
  word-break: break-all;
  font-size: 10px;
}

.canvas-card-branch {
  font-family: var(--mono);
  color: var(--status-ok, #22c55e);
  display: flex;
  align-items:  center;
  gap: 4px;
  font-size: 11px;
}

.canvas-card-branch-icon {
  font-size: 14px;
  line-height: 1;
}

.canvas-card-url {
  font-family: var(--mono);
  color: var(--accent, #0a75ff);
  opacity: .7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
}

.canvas-card-model {
  font-family: var(--mono);
  color: var(--text-muted, #4a5e78);
  background: var(--bg-tertiary, #162844);
  border-radius: 3px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px 6px;
  font-size: 10px;
}

.canvas-card-actions {
  display: flex;
  border-top: 1px solid var(--border, #1e3050);
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
}

.canvas-action-btn {
  background: var(--bg-tertiary, #162844);
  border: 1px solid var(--border, #1e3050);
  color: var(--text-secondary, #8899b0);
  font-family: var(--mono);
  cursor: pointer;
  border-radius: 4px;
  flex: 1;
  padding: 5px 0;
  transition: background .15s, color .15s;
  font-size: 10px;
}

.canvas-action-btn:hover {
  background: var(--accent, #0a75ff);
  color: #fff;
  border-color: var(--accent, #0a75ff);
}

.canvas-card-active-label {
  position: absolute;
  background: var(--accent, #0a75ff);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 600;
  top: 8px;
  right: 8px;
}

.canvas-card-add {
  border-style: dashed;
  border-color: var(--border, #1e3050);
  display: flex;
  opacity: .5;
  justify-content: center;
  align-items:  center;
  min-height: 140px;
  transition: opacity .2s;
}

.canvas-card-add:hover {
  opacity: .8;
  border-color: var(--accent, #0a75ff);
}

.canvas-card-add-content {
  display: flex;
  color: var(--text-muted, #4a5e78);
  flex-direction: column;
  align-items:  center;
  gap: 8px;
  font-size: 13px;
}

.canvas-card-add-icon {
  font-size: 24px;
  line-height: 1;
}

/* src/styles/lattice.css */
.lattice-container {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  overflow: hidden;
  gap: 12px;
  height: 100%;
  padding: 12px;
}

.lattice-panel {
  overflow-y: auto;
  background: #0d1b2a;
  border: 1px solid #1a2d42;
  border-radius: 6px;
  padding: 12px;
}

.lattice-panel h2 {
  color: #89a;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.lattice-company-node {
  cursor: pointer;
  background: #111f33;
  border: 1px solid #1a2d42;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 8px 10px;
  transition: border-color .15s;
}

.lattice-company-node:hover, .lattice-company-node.selected {
  border-color: #0a75ff;
}

.company-header {
  display: flex;
  align-items:  center;
  gap: 6px;
}

.company-name {
  color: #e0e6ed;
  font-size: 13px;
  font-weight: 600;
}

.company-stats {
  display: flex;
  color: #6b7f92;
  gap: 12px;
  margin-top: 4px;
  font-size: 11px;
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lattice-dept-node {
  cursor: pointer;
  background: #0f1923;
  border: 1px solid #162232;
  border-radius: 4px;
  padding: 6px 10px;
  transition: border-color .15s;
}

.lattice-dept-node:hover, .lattice-dept-node.selected {
  background: #111f33;
  border-color: #0a75ff;
}

.dept-header {
  display: flex;
  align-items:  center;
  gap: 6px;
}

.dept-health-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.dept-name {
  color: #c8d3de;
  flex: 1;
  font-size: 12px;
}

.dept-badge {
  color: #6b7f92;
  background: #162232;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
}

.dept-stats {
  display: flex;
  color: #4d6275;
  gap: 10px;
  margin-top: 3px;
  font-size: 10px;
}

.lattice-graph {
  display: flex;
  flex-direction: column;
}

.workflow-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.wf-tab {
  color: #89a;
  cursor: pointer;
  background: #111f33;
  border: 1px solid #1a2d42;
  border-radius: 3px;
  padding: 3px 8px;
  transition: all .15s;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.wf-tab:hover {
  color: #c8d3de;
  border-color: #0a75ff;
}

.wf-tab.active {
  color: #fff;
  background: #0a75ff;
  border-color: #0a75ff;
}

.workflow-svg {
  flex: 1;
  min-height: 200px;
}

.graph-col-header {
  fill: #6b7f92;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.graph-edge {
  stroke: #1a2d42;
  stroke-opacity: .6;
}

.graph-node-label {
  fill: #89a;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.graph-node:hover circle {
  opacity: 1;
  stroke-width: 3;
}

.graph-node:hover .graph-node-label {
  fill: #e0e6ed;
}

.graph-empty {
  color: #4d6275;
  text-align: center;
  padding: 40px;
  font-size: 12px;
}

.lattice-detail-panel {
  font-size: 12px;
}

.lattice-detail h3 {
  color: #e0e6ed;
  border-bottom: 1px solid #1a2d42;
  margin: 0 0 10px;
  padding-bottom: 6px;
  font-size: 13px;
}

.detail-section {
  margin-bottom: 12px;
}

.detail-section h4 {
  color: #6b7f92;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 4px;
  font-size: 11px;
}

.detail-metric {
  display: flex;
  color: #89a;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 11px;
}

.detail-metric span:last-child {
  color: #c8d3de;
  font-family: JetBrains Mono, monospace;
}

.detail-hint {
  color: #4d6275;
  text-align: center;
  padding: 20px 0;
  font-size: 11px;
}

.lattice-goal-row {
  display: flex;
  align-items:  center;
  gap: 6px;
  padding: 2px 0;
  font-size: 11px;
}

.goal-status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.goal-title {
  color: #89a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.goal-owner {
  color: #4d6275;
  font-size: 10px;
}

.wi-status {
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 10px;
}

.wi-queued {
  color: #6b7f92;
}

.wi-active {
  color: #0a75ff;
}

.wi-blocked {
  color: #ef4444;
}

.wi-done {
  color: #22c55e;
}

.signal-health-card {
  text-align: center;
  background: #111f33;
  border: 1px solid #1a2d42;
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.signal-score {
  font-family: JetBrains Mono, monospace;
  font-size: 22px;
  font-weight: 700;
}

.signal-meta {
  display: flex;
  color: #6b7f92;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 10px;
}

.signal-trend {
  font-weight: 600;
}

.trend-improving {
  color: #22c55e;
}

.trend-stable {
  color: #6b7f92;
}

.trend-declining {
  color: #ef4444;
}

.ops-summary {
  background: #0f1923;
  border: 1px solid #1a2d42;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 6px 10px;
}

.ops-item {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 10px;
}

.ops-label {
  color: #6b7f92;
}

.ops-value {
  color: #c8d3de;
  font-family: JetBrains Mono, monospace;
}

.tier-label {
  color: #4d6275;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 8px 0 4px;
  padding-left: 2px;
  font-size: 9px;
  font-weight: 600;
}

.exec-tier {
  margin-bottom: 4px;
}

.lattice-error {
  color: #ef4444;
  font-size: 12px;
}

/* src/styles/worldstate.css */
.ws-container {
  display: flex;
  gap: var(--gap-md);
  padding: var(--gap-md);
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
}

.ws-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--gap-md);
}

.ws-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap-md);
}

.ws-section-title {
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--gap-sm);
  font-size: 11px;
}

.ws-health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}

.ws-health-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  padding: 10px 12px;
}

.ws-health-cell-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-size: 10px;
}

.ws-health-cell-value {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.ws-health-cell-value.ok {
  color: var(--status-ok);
}

.ws-health-cell-value.warn {
  color: var(--status-warn);
}

.ws-health-cell-value.err {
  color: var(--status-error);
}

.ws-world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}

.ws-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

.ws-projects-grid-wide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-sm);
}

.ws-conditions {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
}

.ws-condition-row {
  display: flex;
  font-family: var(--mono);
  border-radius: 4px;
  align-items:  flex-start;
  gap: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.ws-condition-row:hover {
  background: var(--bg-card);
}

.ws-severity-badge {
  text-transform: uppercase;
  border-radius: 3px;
  flex-shrink: 0;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
}

.ws-severity-badge.critical {
  background: var(--status-error);
  color: #000;
}

.ws-severity-badge.warning {
  background: var(--status-warn);
  color: #000;
}

.ws-severity-badge.info, .ws-severity-badge.notice {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.ws-condition-name {
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 160px;
}

.ws-condition-msg {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-loading {
  display: flex;
  font-family: var(--mono);
  color: var(--text-muted);
  justify-content: center;
  align-items:  center;
  height: 200px;
}

.ws-convergence-panel {
  margin-bottom: var(--gap-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 12px 14px;
}

.ws-convergence-header {
  display: flex;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 6px;
  font-size: 11px;
}

.ws-convergence-state {
  border-radius: 3px;
  padding: 2px 6px;
  font-weight: 700;
}

.ws-convergence-state.canonical {
  background: var(--status-ok);
  color: #000;
}

.ws-convergence-state.partial {
  background: var(--status-warn);
  color: #000;
}

.ws-convergence-detail {
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.ws-convergence-meta, .ws-convergence-next {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 11px;
}

.ws-convergence-next {
  margin-top: 4px;
}

.ws-sweep-time {
  font-family: var(--mono);
  color: var(--text-muted);
  text-align: right;
  padding-top: 4px;
  font-size: 10px;
}

@media (max-width: 900px) {
  .ws-grid {
    grid-template-columns: 1fr;
  }

  .ws-projects-grid, .ws-projects-grid-wide {
    grid-template-columns: 1fr 1fr;
  }

  .ws-world-grid {
    grid-template-columns: 1fr;
  }
}

/* src/styles/nav.css */
.nav-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  user-select: none;
  z-index: 100;
  flex-direction: column;
  width: 200px;
  min-width: 200px;
  height: 100%;
  transition: width .2s, min-width .2s;
}

.nav-brand {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 10px;
  padding: 16px;
}

.nav-logo {
  display: flex;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  font-size: 15px;
  font-weight: 700;
}

.nav-title {
  color: var(--text-primary);
  letter-spacing: .5px;
  font-size: 14px;
  font-weight: 600;
}

.nav-items {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 8px;
}

.nav-item {
  display: flex;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-align: left;
  position: relative;
  align-items:  center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  transition: background .12s, color .12s;
  font-size: 13px;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item-active, .nav-item-active:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.nav-item .badge {
  margin-left: auto;
}

.nav-shortcut {
  opacity: 0;
  margin-left: auto;
  transition: opacity .15s;
}

.nav-item:hover .nav-shortcut {
  opacity: 1;
}

.nav-item:has(.badge) .nav-shortcut {
  display: none;
}

.nav-footer {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}

.nav-status {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.nav-status-dot {
  background: var(--status-ok);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  transition: background .3s;
}

.nav-status-text {
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .nav-sidebar {
    width: 56px;
    min-width: 56px;
  }

  .nav-brand {
    justify-content: center;
    padding: 16px 8px;
  }

  .nav-title {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 10px;
  }

  .nav-label, .nav-shortcut {
    display: none;
  }

  .nav-item .badge {
    position: absolute;
    min-width: 16px;
    height: 16px;
    margin-left: 0;
    padding: 0 4px;
    font-size: 10px;
    top: 2px;
    right: 2px;
  }

  .nav-footer {
    display: flex;
    justify-content: center;
    padding: 12px 8px;
  }

  .nav-status-text {
    display: none;
  }
}

@media (max-width: 600px) {
  .app-shell {
    flex-direction: column-reverse;
  }

  .nav-sidebar {
    border-right: none;
    border-top: 1px solid var(--border);
    flex-direction: column;
    width: 100%;
    min-width: 100%;
    height: auto;
  }

  .nav-brand {
    display: none;
  }

  .nav-items {
    overflow-x: auto;
    overflow-y: hidden;
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    padding: 4px 8px;
  }

  .nav-item {
    flex-direction: column;
    flex-shrink: 0;
    gap: 2px;
    min-width: 0;
    padding: 6px 8px;
    font-size: 10px;
  }

  .nav-label {
    display: block;
    white-space: nowrap;
    font-size: 10px;
  }

  .nav-shortcut {
    display: none;
  }

  .nav-item .badge {
    position: absolute;
    min-width: 14px;
    height: 14px;
    margin-left: 0;
    padding: 0 3px;
    font-size: 9px;
    top: 0;
    right: 0;
  }

  .nav-footer {
    display: none;
  }

  .app-main {
    padding: var(--gap-md);
  }
}

/* src/styles/quick-chat.css */
.quick-chat {
  margin-bottom: 16px;
}

.quick-chat-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 8px;
}

.quick-chat-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.quick-chat-target {
  color: var(--text-secondary);
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
}

.quick-chat-dept-selector select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--mono);
  padding: 4px 8px;
}

.quick-chat-body {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.quick-chat-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 16px;
  font-size: 13px;
}

.quick-chat-history {
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  padding: 12px;
}

.chat-bubble {
  border-radius: var(--radius);
  max-width: 80%;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble-user {
  background: var(--user-bubble);
  color: var(--text-primary);
  align-self:  flex-end;
}

.chat-bubble-assistant {
  background: var(--assistant-bubble);
  color: var(--text-primary);
  align-self:  flex-start;
}

.chat-bubble-error {
  color: var(--status-error);
  background: #ef44441a;
  align-self:  flex-start;
}

.chat-bubble-meta {
  display: flex;
  align-items:  center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
}

.chat-dept {
  color: var(--accent);
  font-weight: 600;
}

.chat-latency {
  color: var(--text-muted);
}

.chat-model {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10px;
}

.copy-btn {
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  padding: 0;
  transition: opacity .15s;
  font-size: 10px;
}

.chat-bubble:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  color: var(--text-primary);
}

.chat-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-thinking {
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.quick-chat-input {
  display: flex;
  align-items:  center;
  gap: 8px;
  padding: 10px 12px;
}

.quick-chat-input input {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  flex: 1;
  height: 34px;
  padding: 0 12px;
}

.quick-chat-input input::placeholder {
  color: var(--text-muted);
}

.quick-chat-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.board-meeting-overlay {
  position: fixed;
  z-index: 100;
  display: flex;
  backdrop-filter: blur(4px);
  background: #0009;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.board-meeting-panel {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-direction: column;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  box-shadow: 0 25px 50px #0006;
}

.board-meeting-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items:  center;
  padding: 16px 20px;
}

.board-meeting-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.board-meeting-header p {
  color: var(--text-muted);
  margin: 2px 0 0;
  font-size: 12px;
}

.board-meeting-close {
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  background: none;
  border: none;
  padding: 6px;
  transition: background .15s, color .15s;
}

.board-meeting-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.board-meeting-body {
  overflow-y: auto;
  flex: 1;
  padding: 20px;
}

.board-meeting-input-phase label {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

.board-meeting-input-phase textarea {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  resize: vertical;
  width: 100%;
  padding: 10px 12px;
}

.board-meeting-input-phase textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.board-meeting-input-footer {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-top: 12px;
}

.board-meeting-input-footer span {
  color: var(--text-muted);
  max-width: 60%;
  font-size: 12px;
}

.board-meeting-progress {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 12px;
  padding: 48px 0;
}

.spinner {
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.progress-detail {
  color: var(--text-muted);
  font-size: 13px;
}

.board-meeting-error .error-box {
  border-radius: var(--radius);
  background: #ef44441a;
  border: 1px solid #ef44444d;
  padding: 16px;
}

.error-title {
  color: var(--status-error);
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.error-detail {
  color: var(--text-muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.btn-link {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  margin-top: 12px;
  padding: 0;
  font-size: 13px;
}

.btn-link:hover {
  text-decoration: underline;
}

.board-meeting-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.round-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
}

.round-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.round-entry {
  border: 1px solid var(--border);
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 12px;
}

.entry-dept {
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}

.entry-response {
  color: var(--text-primary);
  white-space: pre-wrap;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.synthesis-box {
  border: 1px solid var(--border-accent);
  background: var(--accent-glow);
  border-radius: var(--radius);
  padding: 12px;
}

.synthesis-box p {
  color: var(--text-primary);
  white-space: pre-wrap;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.board-meeting-footer {
  display: flex;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  align-items:  center;
  gap: 8px;
  padding: 12px 20px;
}

.system-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111d33;
  margin-bottom: 16px;
}

.system-info-stat {
  border-right: 1px solid var(--border);
  padding: 10px 14px;
}

.system-info-stat:last-child {
  border-right: none;
}

.system-info-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

.system-info-value {
  display: block;
  color: var(--text-primary);
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.quick-action-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  padding: 14px;
  transition: border-color .15s, background .15s;
}

.quick-action-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.quick-action-icon {
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.quick-action-card h4 {
  color: var(--text-primary);
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.quick-action-card p {
  color: var(--text-muted);
  margin: 2px 0 0;
  font-size: 11px;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
}

.section-count {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 400;
}

.dept-roster {
  margin-bottom: 16px;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.dept-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  align-items:  center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  transition: border-color .15s, background .15s;
}

.dept-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.dept-info {
  flex: 1;
  min-width: 0;
}

.dept-name-row {
  display: flex;
  align-items:  center;
  gap: 6px;
}

.dept-name {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.dept-role {
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
}

.dept-model {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--mono);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* src/styles/dept-catalog.css */
.dept-empty {
  color: var(--text-muted);
  padding: 8px 0;
  font-size: 13px;
}

.dept-metrics-card {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 12px;
}

.dept-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  background: var(--border);
  gap: 1px;
}

.dept-metric {
  display: flex;
  background: var(--bg-secondary);
  flex-direction: column;
  padding: 8px 10px;
}

.dept-metric-value {
  font-family: var(--mono);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.dept-metric-label {
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
}

.dept-goals-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dept-goal-row {
  display: flex;
  align-items:  center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}

.dept-goal-row.compact {
  padding: 3px 0;
  font-size: 12px;
}

.dept-goal-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.dept-goal-title {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.dept-goal-owner {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 11px;
}

.dept-conditions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dept-condition-row {
  border-left: 3px solid var(--border);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px 12px;
}

.dept-condition-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.dept-condition-name {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.dept-condition-severity {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

.dept-condition-message {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.dept-condition-age {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 10px;
}

.dept-work-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dept-work-row {
  display: flex;
  align-items:  center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}

.dept-work-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.dept-work-title {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.dept-work-priority {
  color: var(--status-warn);
  border: 1px solid var(--status-warn);
  border-radius: 3px;
  flex-shrink: 0;
  padding: 1px 4px;
  font-size: 9px;
  font-weight: 700;
}

.dept-work-assignee {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 11px;
}

.dept-work-status {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--mono);
  flex-shrink: 0;
}

.dept-work-status.wi-done {
  color: var(--status-ok);
}

.dept-work-status.wi-active {
  color: var(--accent);
}

.dept-work-status.wi-blocked {
  color: var(--status-error);
}

.dept-work-status.wi-queued {
  color: var(--text-muted);
}

.dept-work-more {
  color: var(--text-muted);
  padding: 4px 0;
  font-size: 11px;
}

.board-meeting-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bm-recommendation {
  border: 1px solid var(--border-accent);
  background: var(--accent-glow);
  border-radius: var(--radius);
  padding: 12px;
}

.bm-recommendation p {
  color: var(--text-primary);
  white-space: pre-wrap;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.bm-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}

.bm-vote-bar {
  display: flex;
  gap: 8px;
}

.bm-vote-chip {
  border-radius: var(--radius);
  opacity: .9;
  border: 1px solid;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.bm-stances {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-stance {
  border: 1px solid var(--border);
  background: var(--bg-primary);
  border-radius: var(--radius);
  border-left: 3px solid;
  padding: 12px;
}

.bm-stance-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.bm-stance-dept {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.bm-stance-position {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

.bm-stance-reasoning {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.bm-tensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bm-tension {
  color: var(--text-secondary);
  margin: 0 0 4px;
  padding-left: 8px;
  font-size: 12px;
}

.bm-tension-resolved {
  border-left: 2px solid var(--status-ok);
}

.bm-tension-unresolved {
  border-left: 2px solid var(--status-warn);
}

.bm-action {
  color: var(--text-primary);
  margin: 0 0 4px;
  font-size: 12px;
}

.bm-stats {
  display: flex;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--mono);
  gap: 16px;
}

.consultation-output {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 3px solid;
  padding: 12px;
}

.consultation-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 8px;
}

.consultation-dept {
  font-size: 12px;
  font-weight: 600;
}

.consultation-meta {
  display: flex;
  color: var(--text-muted);
  font-size: 10px;
  font-family: var(--mono);
  gap: 8px;
}

.consultation-body {
  color: var(--text-primary);
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}

/* src/styles/tokens.css */
:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0f1d32;
  --bg-tertiary: #162844;
  --bg-input: #0d1a2e;
  --bg-card: #0f1d32cc;
  --bg-card-hover: #162844e6;
  --text-primary: #e2e8f0;
  --text-secondary: #8899b0;
  --text-muted: #4a5e78;
  --accent: #0a75ff;
  --accent-hover: #0862d6;
  --accent-glow: #0a75ff26;
  --status-ok: #22c55e;
  --status-warn: #f59e0b;
  --status-error: #ef4444;
  --status-unknown: #6b7280;
  --border: #1e3050;
  --border-accent: #0a75ff4d;
  --user-bubble: #0d2847;
  --assistant-bubble: #0f1d32;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
}

/* src/styles/global.css */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #root {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
}

code, pre, .mono {
  font-family: var(--mono);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--font);
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  background: none;
  border: none;
}

input, textarea, select {
  font-family: var(--font);
  font-size: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  padding: 8px 12px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.app-shell {
  display: flex;
  width: 100%;
  height: 100%;
}

.app-main {
  overflow-y: auto;
  padding: var(--gap-lg);
  flex: 1;
}

.status-ok {
  color: var(--status-ok);
}

.status-warn {
  color: var(--status-warn);
}

.status-error {
  color: var(--status-error);
}

.status-unknown {
  color: var(--status-unknown);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
}

.card:hover {
  background: var(--bg-card-hover);
}

.badge {
  display: inline-flex;
  background: var(--status-unknown);
  color: #fff;
  border-radius: 9px;
  justify-content: center;
  align-items:  center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
}

.badge.status-ok {
  background: var(--status-ok);
}

.badge.status-warn {
  background: var(--status-warn);
}

.badge.status-error {
  background: var(--status-error);
}

.badge.status-unknown {
  background: var(--status-unknown);
}

.view-header {
  margin-bottom: var(--gap-lg);
}

.view-header h1 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.view-header p {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap-md);
}

@media (max-width: 600px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .view-header h1 {
    font-size: 18px;
  }

  .view-header p {
    font-size: 12px;
  }
}

.toast-container {
  position: fixed;
  z-index: 1000;
  display: flex;
  pointer-events: none;
  flex-direction: column;
  gap: 8px;
  bottom: 24px;
  right: 24px;
}

@media (max-width: 600px) {
  .toast-container {
    bottom: 72px;
    left: 12px;
    right: 12px;
  }
}

.toast {
  border-radius: var(--radius);
  pointer-events: auto;
  animation: toast-enter .25s ease-out;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px 16px;
  font-size: 13px;
}

.toast-success {
  background: #22c55e1a;
  border-color: #22c55e66;
}

.toast-error {
  background: #ef44441a;
  border-color: #ef444466;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.refresh-indicator {
  display: inline-flex;
  color: var(--text-muted);
  align-items:  center;
  gap: 6px;
  font-size: 12px;
}

.refresh-dot {
  background: var(--status-ok);
  animation: pulse 2s ease-in-out infinite;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.btn {
  display: inline-flex;
  border-radius: var(--radius);
  align-items:  center;
  gap: 6px;
  padding: 8px 16px;
  transition: background .15s, opacity .15s;
  font-size: 13px;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px;
  font-size: 14px;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: .4;
  }

  50% {
    opacity: .7;
  }
}

.skeleton {
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
  border-radius: 4px;
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-card {
  padding: var(--gap-md);
  display: flex;
  pointer-events: none;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.error-banner {
  display: flex;
  border-radius: var(--radius-lg);
  background: #ef44441a;
  border: 1px solid #ef44444d;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
}

.error-banner-message {
  color: var(--status-error);
  font-size: 13px;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:not(.skeleton-card) {
  animation: card-enter .2s ease-out;
}

.nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.kbd {
  display: inline-block;
  font-family: var(--mono);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-primary);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  line-height: 1.4;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-transition {
  animation: view-enter .15s ease-out;
  height: 100%;
}

.drag-region {
  -webkit-app-region: drag;
}

.no-drag {
  -webkit-app-region: no-drag;
}

.chat-empty-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.chat-prompt-btn {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 12px 16px;
  transition: background .12s, border-color .12s;
  font-size: 13px;
}

.chat-prompt-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text-primary);
}

.msg-content code {
  font-family: var(--mono);
  background: var(--bg-tertiary);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
}

.msg-content pre {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 8px 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.msg-content pre code {
  background: none;
  padding: 0;
}

.msg-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.msg-content a {
  color: var(--accent);
  text-decoration: underline;
}

.msg-content h1, .msg-content h2, .msg-content h3 {
  margin: 8px 0 4px;
  font-weight: 600;
}

.msg-content h1 {
  font-size: 16px;
}

.msg-content h2 {
  font-size: 15px;
}

.msg-content h3 {
  font-size: 14px;
}

.msg-content ul, .msg-content ol {
  margin: 4px 0;
  padding-left: 20px;
}

.msg-content li {
  margin: 2px 0;
}

@media (max-width: 600px) {
  .chat-input-bar {
    padding-bottom: env(safe-area-inset-bottom, 8px);
  }
}
