:root {
  font-family:
    ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #d4d4d4;
  background: #1e1e1e;
  font-synthesis: none;
  color-scheme: dark;
  --muted: #9da5af;
  --border: #36383c;
  --panel: #252526;
  --blue: #3794ff;
  --sidebar: #181818;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--border);
  background: #2b2d30;
  border-radius: 3px;
  padding: 8px 12px;
  transition: background 0.1s;
}
button:hover {
  background: #35383d;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
h2 {
  font-size: 13px;
  font-weight: 500;
}
h3 {
  font-size: 13px;
  font-weight: 500;
}
p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
small,
.muted {
  color: var(--muted);
  font-size: 11px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.1px;
  margin-bottom: 8px;
  color: #8c939e;
}
.primary {
  background: #0e639c;
  border-color: #0e639c;
  color: #fff;
  font-size: 12px;
  padding: 9px 13px;
  white-space: nowrap;
}
.primary:hover {
  background: #1177bb;
}
.mark {
  font-size: 27px;
  letter-spacing: -2px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mark span {
  color: var(--blue);
  font-size: 25px;
  letter-spacing: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 205px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
}
.sidebar .mark {
  margin-left: 12px;
}
.workspace {
  font-size: 10px;
  letter-spacing: 1px;
  margin: 24px 12px 16px;
  color: #b8bdc5;
}
.workspace span {
  display: none;
}
nav {
  display: grid;
  gap: 2px;
}
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  padding: 10px 12px;
}
.nav.active {
  background: #242b36;
  color: #fff;
  box-shadow: inset 2px 0 var(--blue);
}
.nav:hover:not(.active) {
  background: #232426;
}
.nav b {
  margin-left: auto;
  font-size: 11px;
  background: #3c3c3c;
  border-radius: 8px;
  min-width: 19px;
  text-align: center;
}
.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  color: #9da5af;
  margin: 24px 12px 8px;
}
.side-heading button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 20px;
}
.side-agent {
  border: 0;
  border-radius: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  width: 100%;
  text-align: left;
  overflow: hidden;
  padding: 8px 12px;
}
.side-agent span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#agent-nav {
  overflow: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  display: grid;
  gap: 12px;
  font-size: 10px;
  color: #8fba83;
}
.sidebar-bottom button {
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  color: #9da5af;
}
main {
  margin-left: 205px;
  min-width: 0;
}
.topbar {
  height: 43px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 11px;
  color: #a3aab4;
  background: #181818;
}
.topbar b {
  font-weight: 400;
  color: #d4d4d4;
}
.topbar .muted {
  margin: 0 10px;
}
.top-note {
  color: #7f8da0;
  font-size: 10px;
}
.page {
  margin: auto;
  padding: 24px;
  max-width: 1900px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.page-heading .eyebrow {
  display: none;
}
.page-heading p:empty {
  display: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 22px;
}
.stats button {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  text-align: left;
  padding: 13px 17px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stats button:last-child {
  border: 0;
}
.stats button:hover {
  background: #2b2e33;
}
.stats span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #aeb6c0;
}
.stats strong {
  font-size: 24px;
  font-weight: 400;
  color: #e0e4e9;
}
.stats small {
  display: none;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #747e89;
  flex-shrink: 0;
}
.dot.working {
  background: #89d185;
  box-shadow: 0 0 0 3px #89d18513;
}
.dot.needs-attention,
.dot.waiting {
  background: #cca700;
}
.dot.idle {
  background: #75beff;
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}
.fleet-panel {
  min-width: 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-header h2 {
  white-space: nowrap;
}
.section-header h2 span {
  font-size: 11px;
  color: #9da5af;
  margin-left: 5px;
}
.list-controls {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.list-controls input {
  width: 160px;
  font-size: 11px;
}
.list-controls select {
  width: 138px;
  font-size: 11px;
  padding: 7px;
}
.list-controls button {
  padding: 5px 8px;
}
.filters {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.filters button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #9da5af;
  font-size: 11px;
  padding: 10px 11px;
}
.filters button.selected {
  border-bottom-color: var(--blue);
  color: #fff;
}
.agent-grid {
  display: flex;
  flex-direction: column;
}
.agent-columns,
.agent-card {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 135px 112px 70px;
  gap: 14px;
  align-items: center;
}
.agent-columns {
  padding: 13px 12px 10px;
  font-size: 9px;
  letter-spacing: 0.6px;
  color: #8d97a5;
}
.agent-columns span:last-child {
  text-align: right;
}
.agent-card {
  text-align: left;
  padding: 15px 12px;
  background: transparent;
  border: 0;
  border-top: 1px solid #2c2f33;
  border-radius: 0;
  width: 100%;
  min-width: 0;
}
.agent-card:hover {
  background: #292d33;
}
.agent-identity {
  min-width: 0;
}
.agent-card h3 {
  font-size: 12px;
  color: #d8e0ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}
.agent-card p {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.agent-repo {
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a5c8ed;
}
.agent-repo small {
  display: block;
  font-size: 9px;
  color: #8f99a7;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #b5bdc7;
}
.agent-runtime {
  font-size: 11px;
  text-align: right;
  color: #a5b3c5;
  font-variant-numeric: tabular-nums;
}
.empty {
  padding: 40px 18px;
  color: #9da5af;
  text-align: center;
  font-size: 12px;
}
.concierge-dock {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #202124;
  position: sticky;
  top: 20px;
  overflow: hidden;
}
.dock-heading {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: #252526;
  border-bottom: 1px solid var(--border);
}
.dock-heading h2 {
  font-size: 12px;
}
.dock-heading > span {
  font-size: 9px;
  color: #9da5af;
  margin-left: auto;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dock-heading button {
  border: 0;
  background: none;
  padding: 3px;
  font-size: 17px;
  color: #9da5af;
}
#dock-transcript {
  height: calc(100vh - 365px);
  min-height: 200px;
  max-height: 660px;
  overflow: auto;
  padding: 16px;
}
#dock-transcript .turn-text {
  font-size: 11px;
  line-height: 1.7;
}
#dock-transcript .turn.user {
  margin-left: 10px;
  padding: 10px;
  background: #292f39;
}
#dock-transcript .turn-label {
  font-size: 9px;
}
#dock-form {
  border-top: 1px solid var(--border);
  padding: 12px;
}
#dock-message {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  resize: vertical;
  min-height: 62px;
}
.dock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.dock-footer span {
  font-size: 10px;
  color: #8f99a7;
}
.dock-footer button {
  padding: 6px 12px;
  font-size: 11px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.detail-heading p {
  font-size: 12px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.actions button {
  font-size: 11px;
  padding: 7px 10px;
}
.danger {
  color: #f48771;
}
.conversation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 22px;
}
.conversation {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #202124;
  overflow: hidden;
}
.conversation > .section-header {
  padding: 13px 17px;
  border-bottom: 1px solid var(--border);
  margin: 0;
  background: #252526;
}
.conversation .section-header span {
  font-size: 11px;
  color: #9da5af;
}
#transcript {
  height: 52vh;
  min-height: 260px;
  overflow: auto;
  padding: 22px;
}
.turn {
  margin-bottom: 23px;
}
.turn-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #75beff;
  margin-bottom: 8px;
}
.turn-text {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.turn.user {
  padding: 13px 16px;
  background: #292f39;
  border: 1px solid #343d4b;
  border-radius: 3px;
  margin-left: 30px;
}
.turn.user .turn-label {
  color: #9da5af;
}
.tool {
  font-size: 11px;
  color: #9da5af;
  margin: 10px 0;
}
.tool pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow: auto;
  font-size: 11px;
  color: #b5cea8;
}
#message-form {
  margin: 0 14px 14px;
  border: 1px solid #404957;
  border-radius: 3px;
  padding: 12px;
  background: #25272c;
}
#message {
  border: 0;
  background: none;
  width: 100%;
  resize: vertical;
  padding: 0;
  outline-offset: 5px;
  font-size: 12px;
  min-height: 62px;
}
.composer-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.composer-footer small {
  margin-left: auto;
  font-size: 10px;
}
.composer-footer select {
  font-size: 11px;
  border: 0;
  background: none;
  padding: 0;
  width: auto;
}
.composer-footer button {
  padding: 7px 13px;
}
.activity {
  padding: 13px 0;
}
.activity h3 {
  margin-bottom: 16px;
  color: #c5cedb;
}
.activity dl {
  margin: 0 0 25px;
}
.activity dt {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #8f99a7;
  margin: 15px 0 7px;
}
.activity dd {
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: #b6c4d7;
}
.activity details {
  margin-top: 25px;
  font-size: 12px;
}
.activity pre {
  font-size: 10px;
  overflow: auto;
  max-height: 350px;
  background: #181818;
  padding: 10px;
  color: #b5cea8;
}
.queue-item {
  font-size: 11px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.queue-item button {
  font-size: 10px;
  padding: 3px 7px;
}
.permission {
  padding: 16px;
  border: 1px solid #665923;
  background: #302d23;
  border-radius: 3px;
  margin-bottom: 18px;
}
.permission p {
  white-space: pre-wrap;
  margin: 10px 0;
  color: #dbc999;
}
.permission button {
  margin-right: 8px;
}
#notice {
  padding: 11px 14px;
  background: #332e22;
  border: 1px solid #6c5828;
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 18px;
  white-space: pre-wrap;
  color: #e5cf92;
}
input,
textarea,
select {
  background: #25272b;
  border: 1px solid #41454d;
  border-radius: 3px;
  padding: 9px 10px;
  width: 100%;
  color: inherit;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin: 18px 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  margin: 0;
}
dialog {
  background: #202124;
  color: inherit;
  border: 1px solid #484c53;
  border-radius: 5px;
  width: 520px;
  max-width: calc(100vw - 24px);
  max-height: 90vh;
  padding: 24px;
  box-shadow: 0 15px 80px #0009;
}
dialog::backdrop {
  background: #0008;
}
dialog .primary {
  width: 100%;
}
dialog p.muted {
  margin-top: 14px;
  text-align: center;
  font-size: 10px;
}
#create-error,
#login-error {
  color: #f48771;
  font-size: 12px;
  margin-bottom: 12px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #181818;
}
.login-card {
  max-width: 380px;
  width: calc(100% - 40px);
}
.login-card .mark {
  margin-bottom: 35px;
}
.login-card h1 {
  font-size: 28px;
  margin-bottom: 14px;
}
.login-card .primary {
  width: 100%;
}
.login-card small {
  display: block;
  text-align: center;
  font-size: 10px;
  margin-top: 20px;
}
@media (min-width: 1600px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
  .agent-columns,
  .agent-card {
    grid-template-columns: minmax(200px, 1fr) 180px 130px 90px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 175px;
  }
  main {
    margin-left: 175px;
  }
  .page {
    padding: 20px;
  }
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 14px;
  }
  .agent-columns,
  .agent-card {
    grid-template-columns: minmax(110px, 1fr) 95px 95px 50px;
    gap: 9px;
  }
  .section-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .list-controls {
    width: 100%;
  }
  .list-controls input {
    flex: 1;
    min-width: 80px;
  }
  .badge {
    font-size: 9px;
    gap: 5px;
  }
  .agent-repo {
    font-size: 10px;
  }
  .top-note {
    display: none;
  }
}
@media (max-width: 1000px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .concierge-dock {
    position: static;
  }
  .concierge-dock #dock-transcript {
    height: 180px;
    min-height: 100px;
  }
  .conversation-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .agent-columns,
  .agent-card {
    grid-template-columns: minmax(150px, 1fr) 130px 112px 70px;
  }
  .section-header {
    flex-wrap: nowrap;
  }
  .list-controls {
    width: auto;
  }
  .badge {
    font-size: 10px;
  }
  .agent-repo {
    font-size: 11px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: auto;
    padding: 10px 14px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .sidebar .mark {
    font-size: 24px;
    margin: 0;
  }
  .sidebar .mark span {
    font-size: 21px;
  }
  .workspace,
  .side-heading,
  #agent-nav,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
  }
  .nav {
    padding: 8px;
    font-size: 11px;
    gap: 5px;
  }
  .nav span {
    display: none;
  }
  .nav#overview-nav span {
    display: block;
  }
  main {
    margin: 0;
  }
  .topbar {
    height: 35px;
    padding: 0 16px;
  }
  .page {
    padding: 18px 14px;
  }
  .page-heading {
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .page-heading > button {
    font-size: 11px;
    padding: 8px;
  }
  .stats {
    margin-bottom: 20px;
  }
  .stats button {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }
  .stats span {
    font-size: 9px;
    gap: 4px;
  }
  .stats strong {
    font-size: 22px;
  }
  .stats .dot {
    display: none;
  }
  .section-header {
    flex-wrap: wrap;
  }
  .list-controls {
    width: 100%;
  }
  .list-controls input {
    flex: 1;
    width: 80px;
  }
  .list-controls select {
    width: 132px;
  }
  .filters button {
    font-size: 10px;
    padding: 9px 8px;
  }
  .agent-columns {
    display: none;
  }
  .agent-card {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 9px;
    padding: 14px 5px;
  }
  .agent-identity {
    grid-column: 1;
    grid-row: 1;
  }
  .agent-card > .badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .agent-repo {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .agent-repo small {
    font-size: 9px;
    margin: 0;
  }
  .agent-runtime {
    grid-column: 2;
    grid-row: 2;
    font-size: 10px;
  }
  .detail-heading {
    display: block;
  }
  .actions {
    margin-top: 15px;
  }
  #transcript {
    padding: 15px;
  }
  .composer-footer {
    gap: 6px;
  }
  .composer-footer small {
    display: none;
  }
  .composer-footer button {
    margin-left: auto;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .login-card .mark {
    margin-bottom: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.parent-label,
.child-count {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  color: #8eafcf;
}
.subagent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 28px;
  border: 0;
  border-left: 1px solid #3c4655;
  border-radius: 0;
  background: #21242a;
  margin-left: 12px;
  font-size: 11px;
  text-align: left;
}
.subagent-row > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subagent-row small {
  font-size: 9px;
}
.related-link {
  display: block;
  width: 100%;
  font-size: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
#related-agents {
  margin-bottom: 25px;
}
#subagent-dialog {
  width: 760px;
}
#subagent-output {
  max-height: 60vh;
  overflow: auto;
  margin: 20px 0;
}
#subagent-output small {
  overflow-wrap: anywhere;
}
#dock-transcript {
  scrollbar-width: thin;
  scrollbar-color: #697486 #202124;
  scroll-padding-bottom: 14px;
}
@media (max-width: 1000px) {
  .concierge-dock #dock-transcript {
    height: auto;
    max-height: 280px;
    min-height: 100px;
    overflow-y: scroll;
    border-bottom: 1px solid #454d5a;
  }
}
.mobile-only {
  display: none;
}
#dock-transcript::-webkit-scrollbar {
  width: 8px;
}
#dock-transcript::-webkit-scrollbar-thumb {
  background: #697486;
  border-radius: 4px;
}
#dock-transcript::-webkit-scrollbar-track {
  background: #202124;
}
@media (max-width: 700px) {
  .mobile-only {
    display: block;
    font-size: 10px;
    padding: 5px 8px;
  }
  .topbar {
    height: 42px;
  }
  .nav {
    min-height: 40px;
  }
  #close-subagent,
  #close-create {
    min-width: 40px;
    min-height: 40px;
  }
  .filters button {
    min-height: 40px;
  }
}
