:root {
  color-scheme: dark;
  --bg: #181c21;
  --side: #13171c;
  --soft: #20262d;
  --line: #2c333c;
  --text: #e8edf3;
  --muted: #9aa5b4;
  --faint: #788596;
  --accent: #b8d9c8;
  --accent-bg: #253d33;
  --accent-ink: #19352a;
  --gold: #d9bb82;
  --gold-bg: #342e23;
  --error: #efb0a8;
  --error-bg: #382926;
  --blue: #b5ccea;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  background: #0e1216;
  color: var(--text)
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

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

button,a,input,textarea,select {
  -webkit-tap-highlight-color: transparent
}

button {
  cursor: pointer;
  border: 0;
  background: none
}

button:disabled {
  cursor: default;
  opacity: .45
}

a {
  color: inherit;
  text-decoration: none
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px
}

button {
  transition: background .15s,color .15s
}

button:hover:not(:disabled) {
  color: var(--text)
}

[hidden] {
  display: none!important
}

h1,h2,h3,p {
  margin: 0
}

h1,h2,h3,strong {
  font-weight: 550
}

button svg {
  width: 16px;
  height: 16px
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 10;
  padding: 12px;
  border-radius: 6px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible
}

.app-shell {
  max-width: 1800px;
  min-height: 100dvh;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg)
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 77px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--line);
  background: #171b20
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 9px;
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 23px;
  letter-spacing: -4px;
  padding-right: 4px
}

.brand-mark span {
  color: #628a73;
  display: inline
}

.brand strong {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 16px;
  letter-spacing: .02em
}

.brand strong>span {
  font-weight: 450;
  color: #cbd4df;
  letter-spacing: 0;
  border-left: 1px solid #4c545e;
  padding-left: 12px
}

.topbar-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 11px;
  color: var(--muted)
}

.private-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px
}

.tiny-lock {
  display: block;
  width: 9px;
  height: 8px;
  position: relative;
  border: 1px solid var(--muted);
  border-radius: 1px;
  margin-top: 3px
}

.tiny-lock:before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid var(--muted);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  position: absolute;
  left: 1px;
  top: -5px
}

.connection-status {
  display: flex;
  gap: 7px;
  align-items: center
}

.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #727d8a;
  flex-shrink: 0
}

.status-dot.online {
  background: #9cc6ae
}

.status-dot.pending {
  background: var(--gold)
}

.status-dot.error {
  background: #e6a29b
}

.workspace-layout {
  display: grid;
  grid-template-columns: 226px minmax(350px,1fr) 277px;
  flex: 1;
  min-height: 0
}

.sidebar {
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 27px 15px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.workspace-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 7px 31px
}

.workspace-icon {
  width: 34px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-content: center;
  font-size: 10px;
  letter-spacing: -.3px;
  font-weight: 650;
  color: #c4cfdb;
  background: #1b2027
}

.workspace-heading strong {
  display: block;
  font-size: 13px
}

.workspace-heading div>span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px
}

.section-heading,.eyebrow {
  font-size: 10px;
  letter-spacing: .09em;
  color: var(--muted)
}

.section-heading {
  padding: 0 9px;
  margin-bottom: 12px
}

.room-button {
  width: 100%;
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 10px 11px;
  border-radius: 6px;
  font-size: 12px;
  color: #b8c2cf;
  overflow-wrap: anywhere
}

.room-button .hash {
  color: var(--faint);
  font-size: 15px
}

.room-button:hover:not(:disabled) {
  background: #1d252b
}

.room-button.active {
  background: var(--accent-bg);
  color: var(--accent)
}

.room-button.active .hash {
  color: var(--accent)
}

.room-name {
  min-width: 0;
  overflow-wrap: anywhere
}

.room-active-indicator {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 100%;
  margin-left: auto;
  flex-shrink: 0
}

.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10px 11px;
  font-size: 12px;
  color: #c7d0db
}

.project-heading>span:first-child {
  display: flex;
  align-items: center;
  gap: 8px
}

.hash {
  color: var(--muted);
  font-size: 16px
}

.count {
  font-size: 10px;
  color: var(--faint)
}

.project-rooms {
  border-left: 1px solid var(--line);
  margin-left: 17px;
  padding-left: 9px;
  display: grid;
  gap: 4px
}

.project-rooms .room-button {
  font-size: 11px;
  padding: 9px 8px
}

.add-room {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0 21px;
  padding: 6px 1px;
  text-align: left
}

.add-room>span {
  font-size: 17px
}

.runtime-section {
  margin-top: 40px
}

.runtime-agents {
  display: grid;
  gap: 17px;
  padding: 6px 8px
}

.runtime-agent {
  display: flex;
  align-items: center;
  gap: 9px
}

.avatar {
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.1;
  background: #2d323c;
  color: #bbc6d3
}

.avatar.codex {
  background: #294437;
  color: #bfdeca
}

.avatar.claude {
  background: #47352d;
  color: #dfbba5
}

.avatar.grok {
  background: #353048;
  color: #c8c0e0
}

.avatar.openclaw {
  background: #2f3b44;
  color: #b4cfde
}

.avatar.hermes {
  background: #393a2d;
  color: #d2cfad
}

.avatar.boris {
  background: #2c405b;
  color: #bcd2ef
}

.avatar.system {
  background: var(--soft);
  color: var(--muted)
}

.runtime-agent .agent-copy {
  min-width: 0;
  flex: 1
}

.agent-copy strong {
  font-size: 12px;
  display: block
}

.agent-copy span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
  overflow-wrap: anywhere
}

.sidebar-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--faint);
  padding: 17px 9px 0
}

.user-profile {
  margin-top: auto;
  padding: 45px 8px 0;
  display: flex;
  gap: 10px;
  align-items: center
}

.user-profile strong {
  display: block;
  font-size: 12px
}

.user-profile div>span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px
}

.user-profile>.status-dot {
  margin-left: auto
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  outline: none
}

.room-header {
  padding: 28px 28px 23px
}

.room-breadcrumb {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 11px;
  letter-spacing: .01em
}

.room-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px
}

h1 {
  font-size: 25px;
  letter-spacing: -.035em;
  line-height: 1.25;
  overflow-wrap: anywhere
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 11px;
  white-space: nowrap
}

.button-outline {
  border: 1px solid #3a424d;
  color: #d3dbe5;
  background: transparent
}

.button-outline:hover:not(:disabled) {
  background: var(--soft)
}

.button-outline>span {
  font-size: 15px
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent)
}

.button-primary:hover:not(:disabled) {
  background: #c9e5d6;
  color: var(--accent-ink)
}

.members-line {
  margin-top: 17px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap
}

.member-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap
}

.member-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: var(--soft);
  border: 1px solid #2d363f;
  border-radius: 4px;
  padding: 3px 6px;
  color: #c8d3de
}

.member-chip .status-dot {
  width: 4px;
  height: 4px
}

.tabs {
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line)
}

.tab {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px 0 13px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 11px
}

.tab>span {
  font-size: 15px;
  color: var(--faint)
}

.tab.active {
  border-color: var(--accent);
  color: var(--text)
}

.tab.active>span {
  color: var(--accent)
}

.chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 480px
}

.chat-scroll {
  flex: 1;
  overflow: auto;
  max-height: calc(100dvh - 449px);
  min-height: 310px;
  scrollbar-width: thin;
  scrollbar-color: #414b55 transparent;
  outline: none
}

.room-notice {
  margin: 24px 28px 0;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #1e252a;
  border: 1px solid #303b41;
  border-radius: 7px
}

.notice-symbol {
  display: grid;
  place-content: center;
  background: #2b3933;
  color: var(--accent);
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 6px;
  font-size: 20px
}

.room-notice strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #d1dfd7
}

.room-notice div>span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px
}

.messages {
  padding: 26px 28px 30px;
  display: grid;
  gap: 25px
}

.loading-state {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 35px 15px
}

.empty-state {
  padding: 32px 4px 25px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center
}

.empty-symbol {
  display: grid;
  place-content: center;
  width: 47px;
  height: 47px;
  border: 1px solid #3b4c44;
  border-radius: 13px;
  background: #23342d;
  color: var(--accent);
  font-size: 26px;
  margin: 0 auto 16px
}

.empty-state h2 {
  font-size: 20px;
  letter-spacing: -.025em;
  margin-bottom: 9px
}

.empty-state>p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 350px;
  margin: auto
}

.empty-state .button {
  margin-top: 19px
}

.setup-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin: 30px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  color: var(--muted);
  font-size: 10px
}

.setup-steps>span {
  display: grid;
  gap: 7px;
  justify-items: center
}

.setup-steps b {
  display: grid;
  place-content: center;
  background: var(--soft);
  border: 1px solid #344037;
  border-radius: 50%;
  color: var(--accent);
  width: 21px;
  height: 21px;
  font-size: 10px;
  font-weight: 500
}

.message {
  display: flex;
  gap: 11px;
  min-width: 0
}

.message>.avatar {
  width: 30px;
  height: 30px;
  margin-top: 1px
}

.message-content {
  flex: 1;
  min-width: 0
}

.message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 5px
}

.message-head time {
  margin-left: auto;
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap
}

.message-role {
  font-size: 9px;
  background: var(--soft);
  color: var(--muted);
  padding: 1px 5px;
  border-radius: 3px
}

.message-text {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.system-message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 10px;
  margin-left: 41px
}

.system-message time {
  color: var(--faint);
  margin-left: auto;
  white-space: nowrap
}

.system-text {
  min-width: 0;
  overflow-wrap: anywhere
}

.system-mark {
  color: #849a8d;
  flex-shrink: 0
}

.job-card {
  border: 1px solid #3a4540;
  border-radius: 8px;
  background: #1b2420;
  margin: 13px 0 0 41px;
  min-width: 0;
  overflow: hidden
}

.job-card.failed,.job-card.interrupted {
  border-color: #5b413b;
  background: #28211f
}

.job-card.cancelled {
  border-color: #4a4540;
  background: #24221f
}

.job-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  font-size: 11px;
  flex-wrap: wrap
}

.job-header strong {
  font-size: 11px
}

.job-status {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  color: var(--accent);
  font-size: 10px
}

.job-status.failed,.job-status.interrupted {
  color: var(--error)
}

.job-status.cancelled {
  color: var(--gold)
}

.job-status .status-dot {
  width: 5px;
  height: 5px;
  background: currentColor
}

.job-status.running .status-dot {
  animation: breathe 1.5s ease-in-out infinite
}

.job-cancel {
  padding: 4px 7px;
  font-size: 10px;
  border: 1px solid #596156;
  border-radius: 4px;
  color: #d5dfd5
}

.job-meta {
  font-size: 9px;
  color: var(--muted);
  padding: 0 13px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  overflow-wrap: anywhere
}

.job-output {
  margin: 0;
  padding: 12px 13px;
  border-top: 1px solid #344039;
  color: #d2ded6;
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto
}

.job-output.empty-output {
  font-family: inherit;
  color: var(--muted);
  font-style: italic
}

.job-error {
  padding: 11px 13px;
  border-top: 1px solid #56403a;
  color: var(--error);
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.job-events {
  padding: 0 13px 10px;
  color: var(--muted);
  font-size: 10px
}

.job-events summary {
  cursor: pointer
}

.job-events-list {
  display: grid;
  gap: 5px;
  padding-top: 8px
}

.job-event {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: 10px
}

.composer-area {
  padding: 15px 28px 21px;
  margin-top: auto
}

.routing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
  min-height: 22px;
  flex-wrap: wrap
}

.routing-row select {
  background: transparent;
  border: 0;
  color: #c5d2c9;
  font-size: 10px;
  padding: 3px 18px 3px 2px;
  max-width: 260px
}

.routing-row option {
  background: var(--side);
  color: var(--text)
}

.draft-state {
  margin-left: auto;
  color: var(--faint);
  font-size: 9px
}

.draft-state.unsaved {
  color: var(--gold)
}

.composer {
  border: 1px solid #46534c;
  border-radius: 9px;
  background: #1c2225;
  padding: 13px;
  box-shadow: 0 2px 9px #00000012
}

.composer:focus-within {
  border-color: #799a87
}

.composer textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 63px;
  max-height: 230px;
  outline: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  line-height: 1.7
}

.composer textarea:focus-visible {
  outline: none
}

.composer textarea::placeholder {
  color: #7e8b98
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px
}

.mention-button {
  border-radius: 4px;
  background: #2a3630;
  padding: 4px 7px;
  color: var(--accent);
  font-size: 10px
}

.routing-hint {
  font-size: 10px;
  color: var(--faint)
}

.send-button {
  margin-left: auto;
  padding: 7px 10px;
  background: var(--accent);
  color: var(--accent-ink)
}

.send-button>span:last-child {
  font-size: 17px;
  line-height: 1
}

.send-button:hover:not(:disabled) {
  background: #c7e5d5;
  color: var(--accent-ink)
}

.composer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 9px;
  margin-top: 9px;
  flex-wrap: wrap
}

.composer-note kbd {
  font: inherit
}

.context-sidebar {
  padding: 29px 23px 23px;
  background: var(--side);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0
}

.context-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: 31px
}

.context-heading>span:last-child {
  font-size: 16px
}

.context-section {
  padding-bottom: 25px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line)
}

.context-section h2 {
  font-size: 15px;
  letter-spacing: -.025em;
  margin: 7px 0 17px
}

.context-members {
  display: grid;
  gap: 15px
}

.context-member {
  display: flex;
  gap: 9px;
  align-items: center
}

.context-member .agent-copy strong {
  font-size: 11px
}

.context-member .agent-copy span {
  font-size: 10px
}

.text-button {
  padding: 0;
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  line-height: 1.6
}

.text-button:hover:not(:disabled) {
  color: var(--accent)
}

#manage-team {
  margin-top: 19px
}

.context-section p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8
}

.run-overview h2 {
  margin-bottom: 8px
}

.run-summary-stats {
  display: flex;
  gap: 15px;
  margin-top: 15px
}

.run-summary-stats>div {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.run-summary-stats strong {
  font-size: 19px;
  font-weight: 500;
  color: #d5dfd8
}

.run-summary-stats span {
  font-size: 9px;
  color: var(--muted)
}

.linked-card h3 {
  font-size: 12px;
  margin-bottom: 7px
}

.unlinked-icon {
  font-size: 25px;
  color: #718179;
  margin: 13px 0 9px
}

.linked-card .text-button {
  margin-top: 12px
}

.context-bottom {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-top: 15px;
  font-size: 10px
}

.context-bottom .status-dot {
  margin-top: 5px;
  width: 5px;
  height: 5px
}

.context-bottom strong {
  display: block;
  font-weight: 450;
  color: #b8c4bc
}

.context-bottom div>span {
  font-size: 9px;
  color: var(--faint);
  display: block;
  margin-top: 4px
}

.usage-footer {
  display: flex;
  align-items: center;
  gap: 17px;
  border-top: 1px solid var(--line);
  min-height: 46px;
  padding: 10px 24px;
  background: #161a1f;
  font-size: 9px;
  color: var(--muted)
}

.footer-label {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap
}

.footer-label>span {
  font-size: 13px;
  color: #c3d7ca
}

.usage-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  text-align: left;
  color: var(--muted);
  padding: 0;
  font-size: 9px;
  flex-wrap: wrap
}

.usage-summary>span:not(:last-child) {
  display: flex;
  gap: 5px
}

.usage-summary strong {
  font-weight: 400;
  color: #7f8b98
}

.usage-info {
  display: grid;
  place-content: center;
  border: 1px solid #4d5961;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  font-size: 8px;
  font-family: serif;
  color: #bac6d0
}

.footer-environment {
  margin-left: auto;
  font-size: 9px;
  color: var(--faint);
  white-space: nowrap
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--error-bg);
  color: var(--error);
  border-bottom: 1px solid #62443e;
  padding: 12px 28px;
  font-size: 12px
}

.error-banner>span {
  overflow-wrap: anywhere;
  flex: 1
}

.error-banner button {
  font-size: 20px;
  padding: 0 3px;
  color: var(--error)
}

.integration-panel {
  padding: 47px 35px;
  flex: 1;
  min-height: 460px
}

.panel-icon {
  display: grid;
  place-content: center;
  border: 1px solid #38453e;
  border-radius: 12px;
  background: #22312a;
  color: var(--accent);
  width: 48px;
  height: 48px;
  font-size: 28px;
  margin-bottom: 24px
}

.integration-panel>.eyebrow {
  display: block;
  margin-bottom: 9px
}

.integration-panel h2 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -.03em;
  margin-bottom: 13px
}

.integration-panel>p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 470px
}

.pending-card {
  margin-top: 27px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  background: #1c2228
}

.pending-label {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  margin-bottom: 12px
}

.pending-card h3 {
  font-size: 14px;
  margin-bottom: 8px
}

.pending-card p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted)
}

.integration-panel>p.integration-footnote {
  font-size: 10px;
  margin-top: 22px;
  color: var(--faint)
}

.repository-integrations {
  display: grid;
  gap: 12px;
  margin-top: 25px
}

.repository-integrations .pending-card {
  margin: 0
}

.repository-integrations .pending-label {
  margin: 0
}

.repository-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px
}

.repository-card-heading h3 {
  margin: 0
}

.workflow-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 10px
}

.workflow-legend>span:nth-child(odd) {
  padding: 5px 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px
}

dialog {
  color: var(--text);
  background: #1b2127;
  border: 1px solid #414d46;
  border-radius: 13px;
  box-shadow: 0 20px 90px #0008;
  width: 520px;
  max-width: calc(100% - 32px);
  padding: 26px;
  max-height: calc(100dvh - 48px);
  overflow: auto
}

dialog::backdrop {
  background: #080d11a8;
  backdrop-filter: blur(4px)
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px
}

.dialog-heading h2 {
  font-size: 21px;
  letter-spacing: -.03em;
  margin-top: 6px
}

.dialog-close {
  font-size: 24px;
  color: var(--muted);
  padding: 0 2px;
  line-height: 1
}

.dialog-heading+p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 23px
}

.field-label {
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
  color: #cbd6df
}

input {
  width: 100%;
  background: #141a1f;
  border: 1px solid #49574e;
  border-radius: 7px;
  padding: 11px;
  font-size: 13px
}

input::placeholder {
  color: var(--faint)
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 26px
}

.dialog-actions .button {
  padding: 9px 13px
}

.form-error {
  font-size: 11px;
  color: var(--error);
  margin-top: 12px;
  overflow-wrap: anywhere
}

.invite-list {
  display: grid;
  gap: 0
}

.invite-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line)
}

.invite-row .agent-copy {
  flex: 1;
  min-width: 0
}

.invite-row .agent-copy strong {
  font-size: 12px
}

.invite-row .agent-copy span {
  font-size: 10px;
  line-height: 1.6
}

.invite-row .button {
  font-size: 10px;
  padding: 6px 9px
}

.dialog-note {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted)
}

.usage-detail h3 {
  font-size: 13px;
  margin: 23px 0 8px
}

.usage-detail p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted)
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap
}

@keyframes breathe {
  50% {
    opacity: .35
  }
}

@media(min-width:1500px) {
  .room-header {
    padding-top: 33px
  }
  .chat-scroll {
    max-height: calc(100dvh - 456px)
  }
  .messages {
    padding-top: 32px
  }
  .workspace-layout {
    grid-template-columns: 246px minmax(400px,1fr) 300px
  }
  .context-sidebar {
    padding-left: 27px;
    padding-right: 27px
  }
}

@media(max-width:1150px) {
  .workspace-layout {
    grid-template-columns: 203px minmax(330px,1fr) 235px
  }
  .context-sidebar {
    padding: 28px 17px
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px
  }
  .topbar {
    padding-left: 23px;
    padding-right: 23px
  }
  .room-header {
    padding-left: 23px;
    padding-right: 23px
  }
  .tabs {
    padding-left: 23px;
    padding-right: 23px;
    gap: 20px
  }
  .messages {
    padding-left: 23px;
    padding-right: 23px
  }
  .composer-area {
    padding-left: 23px;
    padding-right: 23px
  }
  .room-notice {
    margin-left: 23px;
    margin-right: 23px
  }
  .usage-summary {
    gap: 14px
  }
  .footer-environment {
    display: none
  }
}

@media(max-width:960px) {
  .workspace-layout {
    grid-template-columns: 205px minmax(0,1fr)
  }
  .context-sidebar {
    display: none
  }
  .topbar-meta {
    gap: 15px
  }
  .private-badge {
    display: none
  }
  .chat-scroll {
    max-height: calc(100dvh - 450px)
  }
  .runtime-section {
    margin-top: 32px
  }
  .brand strong {
    font-size: 15px
  }
  .usage-footer {
    gap: 15px
  }
  .usage-summary {
    gap: 15px
  }
  .integration-panel {
    min-height: 520px
  }
}

@media(max-width:640px) {
  .topbar {
    min-height: 64px;
    padding: 14px 17px;
    gap: 10px
  }
  .brand {
    gap: 9px
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 20px
  }
  .brand strong {
    font-size: 12px;
    gap: 7px
  }
  .brand strong>span {
    padding-left: 8px
  }
  .topbar-meta {
    font-size: 0;
    gap: 0
  }
  .connection-status {
    font-size: 0
  }
  .connection-status .status-dot {
    width: 7px;
    height: 7px
  }
  .workspace-layout {
    display: flex;
    flex-direction: column
  }
  .sidebar {
    padding: 12px 15px 11px;
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }
  .workspace-heading,.sidebar>.section-heading,.runtime-section,.user-profile,.project-heading {
    display: none
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow: auto;
    scrollbar-width: thin;
    align-items: center;
    padding: 1px 0 4px
  }
  .sidebar nav>div:first-child {
    display: flex;
    flex-shrink: 0
  }
  .project-rooms {
    display: flex;
    gap: 5px;
    border: 0;
    padding: 0;
    margin: 0;
    flex-shrink: 0
  }
  .room-button,.project-rooms .room-button {
    width: auto;
    max-width: 200px;
    padding: 7px 9px;
    font-size: 11px;
    gap: 6px;
    white-space: nowrap
  }
  .room-name {
    overflow: hidden;
    text-overflow: ellipsis
  }
  .room-active-indicator {
    display: none
  }
  .add-room {
    margin: 6px 0 0;
    padding: 0;
    font-size: 10px;
    line-height: 1.2
  }
  .add-room>span {
    font-size: 16px
  }
  .room-header {
    padding: 21px 18px 17px
  }
  .room-breadcrumb {
    font-size: 9px;
    margin-bottom: 9px
  }
  h1 {
    font-size: 23px
  }
  .room-title-row {
    gap: 10px
  }
  .room-title-row .button {
    font-size: 10px;
    padding: 6px 8px
  }
  .room-title-row .button>span {
    font-size: 14px
  }
  .members-line {
    margin-top: 14px;
    font-size: 9px
  }
  .member-chip {
    font-size: 9px
  }
  .tabs {
    padding: 0 18px;
    gap: 19px
  }
  .tab {
    font-size: 10px;
    padding: 11px 0
  }
  .tab>span {
    font-size: 14px
  }
  .chat-panel {
    min-height: 400px
  }
  .chat-scroll {
    max-height: none;
    min-height: 280px;
    flex: 1
  }
  .room-notice {
    margin: 18px 18px 0;
    padding: 10px;
    gap: 9px
  }
  .room-notice strong {
    font-size: 10px
  }
  .room-notice div>span {
    font-size: 9px
  }
  .notice-symbol {
    width: 26px;
    height: 26px;
    font-size: 18px
  }
  .messages {
    padding: 23px 18px 26px;
    gap: 23px
  }
  .empty-state {
    padding: 24px 0 12px
  }
  .empty-state h2 {
    font-size: 19px
  }
  .empty-state>p {
    font-size: 11px;
    max-width: 290px
  }
  .setup-steps {
    gap: 18px;
    font-size: 9px;
    margin-top: 25px
  }
  .message {
    gap: 9px
  }
  .message-head {
    font-size: 11px;
    gap: 6px
  }
  .message-head time {
    font-size: 9px
  }
  .message-text {
    font-size: 12px;
    line-height: 1.85
  }
  .message-role {
    font-size: 8px
  }
  .message>.avatar {
    width: 27px;
    height: 27px;
    font-size: 10px
  }
  .system-message {
    margin-left: 36px;
    font-size: 9px
  }
  .job-card {
    margin-left: 0
  }
  .job-output {
    font-size: 10px
  }
  .composer-area {
    padding: 14px 18px 17px
  }
  .composer {
    padding: 11px
  }
  .composer textarea {
    font-size: 13px
  }
  .routing-row {
    font-size: 9px;
    gap: 6px
  }
  .routing-row select {
    font-size: 9px;
    max-width: 225px
  }
  .draft-state {
    font-size: 8px
  }
  .composer-note {
    font-size: 8px;
    gap: 4px;
    line-height: 1.6
  }
  .routing-hint {
    font-size: 9px
  }
  .composer-actions {
    gap: 6px
  }
  .send-button {
    font-size: 10px;
    padding: 6px 9px
  }
  .usage-footer {
    padding: 12px 18px;
    align-items: flex-start;
    gap: 9px;
    flex-wrap: wrap
  }
  .usage-summary {
    font-size: 8px;
    gap: 7px 12px;
    flex: 1;
    min-width: 220px
  }
  .usage-summary>span:not(:last-child) {
    gap: 4px
  }
  .footer-label {
    font-size: 8px;
    line-height: 1.8
  }
  .usage-info {
    width: 11px;
    height: 11px
  }
  .integration-panel {
    padding: 30px 20px;
    min-height: 450px
  }
  .integration-panel h2 {
    font-size: 21px
  }
  .integration-panel>p {
    font-size: 11px
  }
  .pending-card {
    padding: 17px
  }
  .workflow-legend {
    gap: 8px;
    font-size: 9px;
    flex-wrap: wrap
  }
  .error-banner {
    padding: 10px 18px;
    font-size: 11px
  }
  dialog {
    padding: 22px 20px
  }
  .invite-row .agent-copy span {
    font-size: 9px
  }
  .invite-row .button {
    font-size: 9px;
    padding: 6px 7px
  }
  .dialog-heading h2 {
    font-size: 20px
  }
  .dialog-heading+p {
    font-size: 11px
  }
  .invite-row {
    gap: 8px
  }
  .invite-row .avatar {
    width: 27px;
    height: 27px;
    font-size: 10px
  }
}

@media(pointer:coarse) {
  button {
    min-height: 40px
  }
  .room-button,.project-rooms .room-button {
    min-height: 40px
  }
  .tab {
    min-height: 44px
  }
  .composer textarea,input {
    font-size: 16px
  }
  .dialog-close {
    min-width: 35px;
    min-height: 35px
  }
  .send-button {
    min-height: 38px;
    min-width: 70px
  }
  .usage-summary {
    min-height: 30px
  }
  .add-room {
    min-height: 32px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    animation: none!important
  }
}

.room-header-actions,
.mention-buttons,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.room-header-actions {
  flex-wrap: nowrap;
}

.icon-button {
  color: var(--muted);
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
}

.register-agent-open {
  margin: 19px 9px 0;
}

.round-open {
  color: var(--accent);
  border: 1px solid #3b4e43;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
  margin-left: 3px;
}

.mention-buttons {
  gap: 5px;
  min-width: 0;
}

.composer-actions {
  flex-wrap: wrap;
}

.mode-label {
  display: flex;
  align-items: center;
}

.mode-label select {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  padding: 4px;
  max-width: 175px;
}

.composer-actions .routing-hint {
  width: 100%;
  order: 3;
}

.selected-card-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 28px 0;
  padding: 12px;
  border: 1px solid #3a4b41;
  background: #202d26;
  border-radius: 7px;
}

.selected-card-banner > div {
  min-width: 0;
  flex: 1;
}

.selected-card-banner strong {
  font-size: 11px;
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.selected-card-banner .eyebrow {
  font-size: 8px;
}

.selected-card-banner .text-button {
  white-space: nowrap;
}

.rounds:not(:empty) {
  display: grid;
  gap: 10px;
  margin: 14px 28px 0;
}

.round-card {
  padding: 13px;
  border: 1px solid #4c4938;
  border-radius: 8px;
  background: #27271f;
}

.round-card strong {
  font-size: 12px;
}

.round-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.round-card .button {
  margin-top: 10px;
  font-size: 10px;
  padding: 5px 8px;
}

.panel-heading,
.panel-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.panel-heading {
  align-items: flex-start;
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin-top: 8px;
}

.panel-heading p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.panel-heading .button {
  margin-top: 4px;
  font-size: 10px;
  padding: 7px 9px;
}

.panel-subheading h3 {
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
}

.panel-subheading .pending-label {
  margin: 0;
  flex-shrink: 0;
}

.integration-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.integration-toolbar .source-note {
  margin-left: auto;
}

.integration-panel select,
dialog select {
  background: #171d22;
  color: var(--text);
  border: 1px solid #414d45;
  border-radius: 6px;
  padding: 9px;
  font-size: 12px;
  max-width: 100%;
}

.integration-panel textarea,
dialog textarea {
  width: 100%;
  resize: vertical;
  background: #141a1f;
  color: var(--text);
  border: 1px solid #414d45;
  border-radius: 6px;
  padding: 10px;
  min-height: 90px;
  font-size: 12px;
  line-height: 1.8;
}

.integration-panel textarea::placeholder,
dialog textarea::placeholder {
  color: var(--faint);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 17px;
}

.form-grid > div {
  min-width: 0;
}

.form-grid select {
  width: 100%;
}

.cards-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.dashboard-card {
  padding: 16px;
  background: #1c2329;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-card.selected {
  background: #22362c;
  border-color: #4b6556;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}

.card-meta .pending-label {
  margin: 0;
}

.dashboard-card h3 {
  font-size: 14px;
  margin: 11px 0 7px;
  overflow-wrap: anywhere;
}

.dashboard-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  max-height: 6.9em;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dashboard-card .inline-actions {
  margin-top: 13px;
  justify-content: space-between;
}

.selected-card-editor {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.selected-card-editor > p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 14px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.selected-card-editor form {
  margin-top: 23px;
}

.check-label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 15px 0 18px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.receipt {
  color: var(--accent);
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.source-note {
  color: var(--faint);
  font-size: 9px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.repository-form {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1c2329;
}

.repository-form .form-grid {
  grid-template-columns: 110px 1fr;
}

.repository-form .receipt {
  margin-left: 9px;
}

.repository-integrations {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.repository-integrations .pending-card {
  padding: 14px;
}

.repository-card-heading {
  align-items: flex-start;
  flex-wrap: wrap;
}

.repository-integrations .pending-label {
  font-size: 8px;
}

.repository-summary {
  padding: 18px;
  border: 1px solid #435a4b;
  border-radius: 8px;
  background: #203028;
  margin-top: 18px;
}

.repository-title,
.pull-title {
  font-size: 13px;
  color: #d6e5db;
  overflow-wrap: anywhere;
}

a.repository-title:hover,
a.pull-title:hover {
  text-decoration: underline;
}

.repository-summary p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

.repository-summary p.source-note {
  font-size: 9px;
}

.connected-label {
  color: var(--accent);
  font-size: 9px;
  white-space: nowrap;
}

.repository-actions {
  margin-top: 22px;
}

.repository-actions details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.repository-actions summary {
  cursor: pointer;
  font-size: 12px;
  color: #cedbd2;
}

.repository-actions form {
  margin-top: 18px;
}

.repository-actions .button {
  margin-top: 14px;
}

.repository-actions .receipt {
  margin-left: 8px;
}

.repository-actions .form-grid {
  margin-top: 17px;
}

.pull-section {
  margin-top: 20px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.pulls-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.pull-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1b2228;
}

.pull-card .source-note {
  margin: 8px 0 12px;
}

.pull-checks {
  padding: 18px;
  border: 1px solid #3c4a42;
  border-radius: 8px;
  background: #1b2420;
  margin-top: 22px;
}

.pull-checks > h3 {
  font-size: 13px;
  margin-bottom: 17px;
}

.checks-grid {
  display: grid;
  gap: 19px;
}

.check-stage h4 {
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 9px;
  color: #d7e0da;
}

.check-stage p,
.check-stage strong {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 400;
}

.check-stage strong {
  display: block;
  color: #cbdad0;
  margin-top: 6px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  margin: 6px 0;
}

.check-item > span {
  color: var(--muted);
  white-space: nowrap;
}

.round-participant-fieldset {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0 0 22px;
}

.round-participant-fieldset legend {
  color: var(--muted);
  font-size: 10px;
  padding: 0 6px;
}

.round-participant {
  align-items: center;
  margin: 7px 0 13px;
}

.round-participant:last-child {
  margin-bottom: 5px;
}

.round-participant .agent-copy {
  flex: 1;
}

#invite-register-open,
#usage-refresh,
#workspace-prepare-pr {
  margin-top: 18px;
}

.provider-usage {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.provider-usage:first-child {
  border-top: 0;
  padding-top: 8px;
}

.usage-detail .provider-usage h3 {
  margin: 0;
}

.provider-usage h4 {
  font-size: 11px;
  font-weight: 500;
  margin: 18px 0 6px;
}

.provider-usage .source-note {
  font-size: 9px;
  margin-top: 5px;
}

.quota-windows {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.quota-window {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 15px;
  font-size: 11px;
}

.quota-window strong {
  color: var(--accent);
}

.quota-window .source-note {
  grid-column: 1 / -1;
}

.quota-meter {
  grid-column: 1 / -1;
  width: 100%;
  height: 5px;
  margin-top: 4px;
  background: var(--soft);
  border: 0;
  border-radius: 3px;
}

.quota-meter::-webkit-meter-bar {
  background: var(--soft);
  border: 0;
  border-radius: 3px;
}

.quota-meter::-webkit-meter-optimum-value {
  background: var(--accent);
}

.quota-meter::-moz-meter-bar {
  background: var(--accent);
}

.provider-usage.stale .quota-window strong {
  color: var(--gold);
}

.job-review-actions {
  padding: 0 13px 11px;
}

.job-workflow {
  border-top: 1px solid var(--line);
  padding: 13px;
  overflow-wrap: anywhere;
}

.job-workflow h3 {
  margin: 0 0 8px;
  color: #d7e0da;
  font-size: 11px;
  font-weight: 500;
}

.workflow-repository,
.workflow-commit,
.workflow-pull,
.pull-job-binding {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.workflow-commit,
.workflow-pull {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 12px;
}

.workflow-commit strong,
.pull-job-binding strong {
  color: var(--accent);
  font-weight: 500;
}

.workflow-commit code {
  color: #cbdad0;
  font-size: 10px;
}

.job-workflow .source-note {
  margin: 3px 0;
}

.job-workflow .workflow-pending {
  margin-top: 9px;
}

.workflow-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 17px 0 12px;
}

.workflow-stages .check-stage {
  min-width: 0;
}

.workflow-stages .check-item {
  flex-wrap: wrap;
  gap: 3px 12px;
}

.workflow-stages .workflow-caution {
  color: var(--gold);
}

.job-workflow > .text-button {
  margin-top: 9px;
  text-align: left;
}

.pull-job-binding {
  padding: 12px;
  border: 1px solid #3c4a42;
  border-radius: 6px;
  background: #1b2420;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.pull-job-binding p {
  margin: 5px 0;
}

@media(max-width: 420px) {
  .workflow-stages {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.card-report-receipt {
  color: var(--accent);
  border-top: 1px solid #344039;
  padding: 9px 13px;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.card-report-receipt.failed {
  color: var(--error);
}

.card-report-receipt .text-button {
  display: block;
  color: inherit;
  margin-top: 6px;
}

.settings-field {
  margin-top: 20px;
}

.workspace-dialog {
  width: 850px;
}

.workspace-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 19px 0 15px;
  font-size: 12px;
}

.workspace-file {
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.workspace-diff {
  background: #11171b;
  border: 1px solid #36453a;
  border-radius: 7px;
  color: #cdded2;
  font-size: 11px;
  line-height: 1.75;
  max-height: 45dvh;
  overflow: auto;
  padding: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#workspace-publish-form {
  margin-top: 20px;
}

@media(max-width: 1150px) {
  .selected-card-banner,
  .rounds:not(:empty) {
    margin-left: 23px;
    margin-right: 23px;
  }

  .integration-panel {
    padding-left: 25px;
    padding-right: 25px;
  }

  .panel-heading {
    flex-wrap: wrap;
  }

  .repository-integrations {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 640px) {
  .room-header-actions {
    gap: 5px;
  }

  .icon-button {
    width: 29px;
    height: 29px;
    font-size: 14px;
  }

  .selected-card-banner,
  .rounds:not(:empty) {
    margin-left: 18px;
    margin-right: 18px;
  }

  .round-open {
    font-size: 9px;
    padding: 3px 6px;
  }

  .routing-row select {
    max-width: 175px;
  }

  .integration-panel {
    padding: 28px 18px;
  }

  .panel-heading h2 {
    font-size: 20px;
  }

  .panel-heading {
    gap: 7px;
  }

  .form-grid {
    gap: 10px;
  }

  .form-grid .field-label {
    font-size: 10px;
  }

  .integration-panel input,
  .integration-panel select,
  dialog input,
  dialog select {
    padding: 9px 7px;
    font-size: 12px;
  }

  .repository-form .form-grid {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .repository-integrations {
    grid-template-columns: 1fr 1fr;
  }

  .repository-card-heading h3 {
    font-size: 12px;
  }

  .repository-integrations .pending-card p {
    font-size: 10px;
  }

  .repository-summary .panel-subheading,
  .pull-card .panel-subheading {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pull-card {
    padding: 13px;
  }

  .card-meta {
    font-size: 9px;
  }

  .dashboard-card {
    padding: 14px;
  }

  .mode-label select {
    max-width: 160px;
  }

  .workspace-diff {
    font-size: 10px;
    padding: 11px;
  }

  .usage-summary {
    min-width: 180px;
  }
}

@media(pointer: coarse) {
  .integration-panel input,
  .integration-panel textarea,
  dialog input,
  dialog textarea {
    font-size: 16px;
  }

  .icon-button {
    min-width: 38px;
    min-height: 38px;
  }

  .round-open {
    min-height: 32px;
  }
}

@media(min-width: 641px) {
  .app-shell {
    height: 100dvh;
    min-height: 0;
  }

  .topbar,
  .usage-footer,
  .room-header,
  .tabs,
  .error-banner,
  .composer-area {
    flex-shrink: 0;
  }

  .sidebar {
    min-height: 0;
    overflow: auto;
  }

  .workspace-heading {
    flex-shrink: 0;
    padding-bottom: 20px;
  }

  .sidebar nav {
    flex: 1;
    min-height: 90px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #414b55 transparent;
  }

  .sidebar > .section-heading,
  .add-room,
  .runtime-section,
  .user-profile {
    flex-shrink: 0;
  }

  .runtime-section {
    margin-top: 24px;
  }

  .user-profile {
    margin-top: 22px;
    padding-top: 0;
  }

  .main {
    min-height: 0;
    overflow: hidden;
  }

  .chat-panel {
    min-height: 0;
  }

  .chat-scroll {
    min-height: 0;
    max-height: none;
  }

  .integration-panel {
    min-height: 0;
    overflow: auto;
  }

  .context-sidebar {
    min-height: 0;
    overflow: auto;
  }
}

@media(min-width: 641px) and (max-height: 850px) {
  .runtime-section {
    margin-top: 18px;
  }

  .runtime-agents {
    gap: 9px;
  }

  .sidebar-note {
    display: none;
  }

  .user-profile {
    margin-top: 18px;
  }
}
