@font-face {
  font-family: Jakarta;
  src: url("/jakarta-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url("/jakarta-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url("/jakarta-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url("/jakarta-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: Jakarta, ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
  color: #36404e;
  background: #f4f6fb;
  font-synthesis: none;
  --pink: #d81a6b;
  --brand: #f72d81;
  --soft: #fff0f5;
  --ink: #141b25;
  --muted: #6c788a;
  --line: #dfe5ec;
  --page: #f4f6fb;
  --card: #fff;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}
body {
  font-size: 13px;
  line-height: 1.55;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--pink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
h1,
h2,
h3,
strong {
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
button,
a {
  touch-action: manipulation;
}
.quiet,
.icon-button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.quiet:hover,
.icon-button:hover {
  background: #eef1f6;
}
.icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 21px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
a.button:hover {
  text-decoration: none;
}
.primary {
  background: var(--pink);
  color: white;
}
.primary:hover:not(:disabled) {
  background: #ae1257;
}
.secondary {
  background: white;
  border-color: var(--line);
}
.success {
  background: #08744a;
  color: white;
  border-color: #08744a;
}
.success:hover:not(:disabled) {
  background: #075d3c;
}
.danger {
  background: #fdeded;
  color: #a11f23;
  border-color: #fbd9da;
}
.small {
  min-height: 33px;
  padding: 6px 13px;
  font-size: 12px;
}
.section-label,
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.workspace {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  min-height: 65px;
  display: flex;
  align-items: center;
  padding: 0 27px;
  background: white;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  width: 126px;
  height: auto;
  display: block;
}
.product-name {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.product-name span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-size: 12px;
}
.account-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #f0ecfe;
  color: #6240e0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-left: 12px;
}
.connection {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.connection::before,
.live-dot,
.chat-indicator {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0c9a63;
  flex-shrink: 0;
}
.connection.stale::before {
  background: #dc8a0c;
}
.board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
  padding: 23px 13px 0;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 20px;
}
.sidebar-heading h1 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 16px;
}
.sidebar-heading img {
  width: 25px;
  height: 25px;
}
#count {
  font-size: 10px;
  color: var(--muted);
  background: #eef1f6;
  padding: 2px 7px;
  border-radius: 5px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin: 0 7px;
}
.search span {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.search input {
  border: none;
  background: transparent;
  padding: 9px 0;
  min-width: 0;
  width: 100%;
  font-size: 11px;
  color: var(--ink);
  outline-offset: 0;
}
.filters {
  display: flex;
  gap: 2px;
  margin: 14px 7px 23px;
  padding: 3px;
  background: #eef1f6;
  border-radius: 7px;
}
.filters button {
  flex: 1;
  padding: 5px 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.filters button.active {
  background: white;
  color: var(--pink);
  box-shadow: 0 1px 3px #141b2512;
  font-weight: 700;
}
.list-heading {
  padding: 0 12px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.thread-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.thread-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  gap: 8px;
  padding: 13px 12px;
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
}
.thread-item:hover {
  background: #eef1f6;
}
.thread-item.selected {
  background: var(--soft);
  border-color: #f7b9d2;
}
.thread-item strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}
.thread-item.selected strong {
  color: #ae1257;
}
.thread-item-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  background: #eef1f6;
  color: #4c5868;
  font-size: 10px;
  line-height: 1.5;
  padding: 3px 7px;
  white-space: nowrap;
  font-weight: 500;
}
.badge::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.working {
  color: #1259ab;
  background: #e9f3fe;
}
.badge.attention {
  color: #a9690a;
  background: #fef6e6;
}
.badge.ready {
  color: #08744a;
  background: #e6fbf1;
}
.badge.queued {
  color: #6240e0;
  background: #f0ecfe;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 17px 10px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
}
.sidebar-footer .live-dot {
  margin-right: 3px;
}
.conversation {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 27px 24px;
}
.conversation-header {
  flex-shrink: 0;
  margin-bottom: 22px;
}
.task-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.task-kicker button {
  font-size: 10px;
  padding: 0;
  color: var(--muted);
}
.breadcrumb-divider {
  color: #cbd3de;
}
.heading-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.heading-row h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.4;
  margin: 0 0 11px;
}
#copy-link {
  margin-left: auto;
  font-size: 10px;
  border: 1px solid var(--line);
  background: white;
  padding: 6px 9px;
}
.task-metadata {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  color: var(--muted);
}
.task-metadata > span:last-child::before {
  content: "·";
  margin-right: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 22px;
  min-height: 0;
  flex: 1;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.chat-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 21px;
  border-bottom: 1px solid #eef1f6;
}
.chat-heading img {
  width: 35px;
  height: 35px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}
.chat-heading h3 {
  font-size: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.owner-label {
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  padding: 2px 5px;
  font-weight: 400;
}
.chat-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.chat-indicator {
  margin-left: auto;
}
.messages {
  flex: 1;
  min-height: 0;
  padding: 24px 24px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.message {
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}
.avatar {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0ecfe;
  color: #6240e0;
  border-radius: 50%;
  font-size: 9px;
}
.avatar img {
  width: 22px;
  height: 22px;
}
.assistant .avatar {
  background: #f6f8fb;
}
.message > div:not(.message-meta),
.message > p {
  margin-left: 32px;
}
.message.user > p {
  background: #eef1f6;
  border-radius: 0 12px 12px 12px;
  padding: 11px 14px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin-bottom: 0;
}
.message p {
  margin: 0 0 12px;
  white-space: pre-wrap;
}
.message h2,
.message h3,
.message h4 {
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.message ul,
.message ol {
  padding-left: 19px;
  margin: 8px 0 16px;
}
.message li {
  margin: 5px 0;
}
.message a {
  color: #1872d6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.message pre,
.message code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
}
.message code {
  background: #eef1f6;
  padding: 2px 4px;
  border-radius: 4px;
}
.message pre {
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #f6f8fb;
}
.message blockquote {
  border-left: 2px solid #f7b9d2;
  padding-left: 12px;
  margin-left: 0;
}
.message summary {
  cursor: pointer;
  color: var(--muted);
}
.message-state {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.composer {
  margin: 0 20px;
  padding: 13px 0 12px;
  border-top: 1px solid var(--line);
}
.composer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  margin-bottom: 7px;
}
.composer-top label {
  color: var(--ink);
  font-weight: 600;
}
.cost {
  font-size: 9px;
  color: var(--muted);
}
textarea {
  display: block;
  width: 100%;
  min-height: 74px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
}
textarea::placeholder {
  color: #78879a;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}
#send-hint {
  font-size: 9px;
  color: var(--muted);
}
.handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #f6f8fb;
}
.handoff strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}
.handoff > div > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.controls {
  display: flex;
  gap: 7px;
  align-items: center;
}
.context-panel {
  overflow-y: auto;
  min-height: 0;
}
.task-context {
  padding: 6px 3px 24px;
}
.task-context h3 {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
}
dl {
  margin: 17px 0;
  font-size: 10px;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.text-link {
  font-size: 11px;
}
.context-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  background: white;
  margin-bottom: 16px;
}
.context-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}
#pr-count {
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
}
#pr-links a {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 11px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
#pr-links p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.pr-icon {
  font-size: 16px;
}
.metrics {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.metrics > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px;
}
.metrics span {
  font-size: 10px;
  color: var(--muted);
}
.metrics strong {
  font-size: 10px;
  font-weight: 500;
}
.metrics progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 4px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  margin-top: 5px;
  overflow: hidden;
  background: #eef1f6;
}
progress::-webkit-progress-bar {
  background: #eef1f6;
}
progress::-webkit-progress-value {
  background: var(--brand);
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: var(--brand);
}
.context-footnote {
  color: var(--muted);
  font-size: 9px;
  border-top: 1px solid #eef1f6;
  padding-top: 12px;
  margin: 16px 0 0;
}
.notice {
  font-size: 11px;
  background: #fef6e6;
  color: #80520b;
  padding: 11px 18px;
  border-bottom: 1px solid #fceac2;
}
.error,
.global-error {
  color: #a11f23;
  font-size: 12px;
}
.global-error {
  padding: 9px 25px;
  background: #fdeded;
}
.error {
  margin: 10px 0 0;
}
.no-results,
.history-note {
  padding: 15px;
  font-size: 12px;
  color: var(--muted);
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 25px;
}
.empty img {
  width: 65px;
  margin-bottom: 20px;
}
.empty h2 {
  margin-bottom: 8px;
  font-size: 22px;
}
.empty p {
  color: var(--muted);
}
.login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 22% 18%, #ffe4ee80, transparent 45%),
    radial-gradient(ellipse at 80% 90%, #e0d8fd60, transparent 50%), var(--page);
  padding: 45px 20px;
}
.login-brand {
  margin-bottom: 44px;
}
.login-brand img {
  width: 155px;
  display: block;
}
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 48px 30px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px #1f264c08;
}
.login-pilot {
  width: 55px;
  margin-bottom: 20px;
}
.login-card .eyebrow {
  color: var(--pink);
  font-size: 9px;
  margin-bottom: 12px;
}
.login-card h1 {
  font-size: 23px;
  letter-spacing: -0.04em;
  line-height: 1.4;
  margin-bottom: 14px;
}
.login-card > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 25px;
}
.login-card .button {
  width: 100%;
}
.login-card .login-note {
  font-size: 10px;
  margin: 20px 0 0;
}
.login-footer {
  margin-top: 35px;
  color: var(--muted);
  font-size: 10px;
}
dialog {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(460px, calc(100% - 32px));
  box-shadow: 0 24px 56px #141b2529;
  color: #36404e;
}
dialog::backdrop {
  background: #141b2552;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 12px 0;
}
dialog p {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.8;
}
.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
@media (min-width: 1600px) {
  .conversation {
    padding: 28px 36px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
  }
  .messages {
    padding: 25px 36px;
  }
  .message {
    font-size: 13px;
  }
}
@media (max-width: 1200px) {
  .board {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .conversation {
    padding: 20px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 15px;
  }
  .heading-row h2 {
    font-size: 19px;
  }
  .handoff > div > span {
    max-width: 160px;
  }
  .product-name span {
    display: none;
  }
}
@media (max-width: 700px) {
  .context-panel {
    display: none;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar {
    padding: 0 20px;
  }
}
@media (max-width: 700px) {
  .topbar {
    min-height: 56px;
    padding: 0 16px;
    gap: 14px;
  }
  .brand img {
    width: 105px;
  }
  .product-name {
    padding-left: 14px;
    font-size: 12px;
  }
  .account-avatar,
  #user-name {
    display: none;
  }
  .topbar-right {
    gap: 4px;
  }
  .connection {
    font-size: 9px;
  }
  #logout {
    font-size: 10px;
    padding: 7px;
  }
  .board {
    display: block;
  }
  .sidebar {
    height: 100%;
    border: 0;
    padding-top: 20px;
  }
  .sidebar-heading {
    padding-bottom: 18px;
  }
  .thread-item {
    padding: 16px 14px;
  }
  .thread-item strong {
    font-size: 13px;
  }
  .thread-item-top {
    font-size: 10px;
  }
  .board.has-selection .sidebar {
    display: none;
  }
  .empty {
    display: none;
  }
  .conversation {
    height: 100%;
    padding: 16px 12px 12px;
  }
  .conversation-header {
    margin-bottom: 14px;
  }
  .heading-row h2 {
    font-size: 18px;
  }
  .task-metadata {
    gap: 10px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .task-metadata > span:last-child {
    display: none;
  }
  .detail-grid {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .chat-panel {
    flex: 1;
    min-height: 360px;
  }
  .chat-heading {
    padding: 12px 14px;
  }
  .messages {
    padding: 18px 14px 8px;
  }
  .message {
    font-size: 12px;
  }
  .composer {
    margin: 0 14px;
  }
  textarea {
    font-size: 16px;
    min-height: 70px;
  }
  .cost {
    font-size: 8px;
  }
  .handoff {
    padding: 12px 14px;
  }
  .handoff > div > span {
    max-width: 150px;
    font-size: 8px;
  }
  .controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .login-card {
    padding: 30px 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.heading-actions {
  display: flex;
  flex-shrink: 0;
  gap: 7px;
  margin-left: auto;
}
#toggle-details {
  display: none;
}
@media (max-width: 700px) {
  #toggle-details {
    display: inline-flex;
    font-size: 10px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    background: white;
  }
  .show-details .chat-panel {
    display: none;
  }
  .show-details .context-panel {
    display: block;
  }
}
@media (max-width: 700px) {
  .heading-row {
    flex-wrap: wrap;
    gap: 0;
  }
  .heading-row h2 {
    width: 100%;
  }
  .heading-actions {
    margin: 0 0 10px;
  }
  .show-details .context-panel {
    overflow: visible;
  }
}

/* Keep host monitors visible while browsing any task, as in Rodman. */
.topbar {
  gap: 20px;
}
.system-monitors {
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}
.system-monitors > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  min-width: 100px;
  position: relative;
}
.system-monitors span {
  font-size: 9px;
}
.system-monitors strong {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.system-monitors progress,
.system-monitors .meter-unavailable {
  position: absolute;
  left: 20px;
  bottom: -6px;
  width: calc(100% - 40px);
  height: 3px;
  margin: 0;
}
.topbar-right {
  margin-left: 0;
  flex-shrink: 0;
}
@media (max-width: 1200px) {
  .topbar {
    gap: 12px;
  }
  .system-monitors > div {
    min-width: 80px;
    padding: 0 12px;
  }
  .system-monitors progress,
  .system-monitors .meter-unavailable {
    left: 12px;
    width: calc(100% - 24px);
  }
  .topbar .account-avatar,
  .topbar #user-name {
    display: none;
  }
}
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    padding-top: 12px;
    gap: 12px;
  }
  .topbar-right {
    margin-left: auto;
  }
  .system-monitors {
    order: 4;
    flex: 0 0 calc(100% + 40px);
    margin: 0 -20px;
    padding: 12px 8px 17px;
    border-top: 1px solid var(--line);
    justify-content: space-around;
    overflow-x: auto;
  }
  .system-monitors > div {
    flex: 1;
    min-width: 100px;
  }
  .system-monitors > div:last-child {
    border-right: 0;
  }
}
@media (max-width: 700px) {
  .system-monitors {
    flex-basis: calc(100% + 32px);
    margin: 0 -16px;
    justify-content: flex-start;
    padding-left: 4px;
    padding-right: 4px;
  }
  .system-monitors > div {
    min-width: 98px;
    padding: 0 12px;
  }
}

.meter-unavailable {
  display: block;
  background: #eef1f6;
  border-radius: 4px;
}

.card-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.file-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.file-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--pink);
  font-size: 11px;
  line-height: 1.65;
}
.file-link > span:nth-child(2) {
  flex: 1;
  overflow-wrap: anywhere;
}
.file-icon {
  font-size: 17px;
  line-height: 1.2;
}
.card-empty,
.card-caption {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.card-caption {
  margin-bottom: 12px;
}
.summary-body {
  font-size: 11px;
  line-height: 1.85;
  max-height: 145px;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.summary-body p {
  white-space: pre-wrap;
  margin: 0 0 10px;
}
.summary-body h3,
.summary-body h4 {
  font-size: 11px;
  margin: 14px 0 6px;
}
.summary-body ul {
  padding-left: 16px;
}
.description-card.expanded .summary-body {
  max-height: none;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--pink);
  font-size: 11px;
  margin-top: 10px;
}
.text-button:hover {
  text-decoration: underline;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .board.has-selection {
    grid-template-columns: minmax(0, 1fr);
  }
  .board.has-selection > .sidebar {
    display: none;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 18px;
  }
  .conversation {
    padding: 18px 20px;
  }
  .context-panel {
    display: block;
  }
}

.scope-strip {
  flex-shrink: 0;
  min-width: 0;
  margin: -5px 0 18px;
}
.scope-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 9px;
  font-size: 10px;
  color: var(--muted);
}
.scope-summary strong {
  color: var(--text);
  font-weight: 600;
}
.scope-track {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 7px;
}
.scope-item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 215px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--text);
  text-align: left;
}
.scope-item:first-child {
  flex-basis: 155px;
}
.scope-item:hover {
  border-color: var(--pink);
}
.scope-item.selected {
  border-color: var(--pink);
  background: #fff4f8;
  box-shadow: 0 0 0 1px var(--pink);
}
.scope-number {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f2f7;
  font-size: 11px;
  font-weight: 700;
}
.scope-item.selected .scope-number {
  background: var(--pink);
  color: white;
}
.scope-item.complete .scope-number {
  background: #e1f5e9;
  color: #08744a;
}
.scope-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.scope-label small {
  font-size: 9px;
  color: var(--muted);
}
.scope-label strong {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scope-item {
  cursor: pointer;
}
.scope-item:disabled {
  cursor: default;
}
@media (max-width: 700px) {
  .scope-strip {
    margin-bottom: 10px;
  }
  .scope-summary span {
    display: none;
  }
  .scope-item {
    flex-basis: 195px;
  }
}
