@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #183f3b;
  --text: #263e3b;
  --muted: #74817c;
  --paper: #fbfaf6;
  --surface: #fff;
  --sidebar: #f0f2ea;
  --border: #e0e6de;
  --teal: #24665c;
  --soft: #e9f2ec;
  --gold: #b89c66;
  --red: #a3433f;
  --amber: #92651c;
  --radius: 16px;
  font-family: "Noto Sans Arabic","Geeza Pro",Tahoma,Arial,sans-serif;
  font-synthesis: none;
  line-height: 1.7;
  font-size: 14px
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper)
}

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

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

button {
  cursor: pointer
}

button: disabled {
  cursor: wait;
  opacity: .55
}

button,a {
  touch-action: manipulation
}

button: focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline: 3px solid #7bafa1;
  outline-offset: 3px
}

button {
  color: inherit
}

a {
  color: var(--teal)
}

[hidden] {
  display: none!important
}

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

.skip-link {
  position: fixed;
  top: -80px;
  right: 20px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 20px
}

.skip-link:focus {
  top: 10px
}

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

h1,h2,h3 {
  color: var(--ink);
  line-height: 1.5
}

h1 {
  font-size: 19px;
  font-weight: 600
}

h2 {
  font-size: 19px;
  font-weight: 600
}

h3 {
  font-size: 16px
}

p {
  margin-bottom: 12px
}

small,.muted {
  color: var(--muted)
}

.app-shell {
  display: flex;
  min-height: 100dvh
}

.sidebar {
  width: 245px;
  flex: 0 0 245px;
  height: 100dvh;
  position: sticky;
  top: 0;
  background: var(--sidebar);
  border-left: 1px solid var(--border);
  padding: 31px 21px 18px;
  display: flex;
  flex-direction: column
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 31px
}

.brand strong {
  font-size: 29px;
  display: block;
  line-height: 1.2;
  font-weight: 700
}

.brand small {
  font-size: 11px;
  display: block;
  margin-top: 5px;
  letter-spacing: .1px
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  border-radius: 14px 14px 4px 14px;
  background: var(--ink);
  color: #f8f5e9;
  font-size: 33px;
  font-family: "Noto Naskh Arabic","Geeza Pro",serif;
  padding-bottom: 6px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px
}

.button:hover {
  background: #f5f8f3
}

.new-project-button {
  background: transparent;
  border-color: #cbd6c9;
  width: 100%;
  margin-bottom: 22px
}

.new-project-button span {
  font-size: 20px;
  font-weight: 400
}

.primary-button {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff
}

.primary-button:hover {
  background: var(--ink)
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.nav-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #5d7169
}

.nav-button:hover {
  background: #e6ece1
}

.nav-button.active {
  background: #dde9df;
  color: var(--ink);
  font-weight: 700
}

.nav-icon {
  font-size: 20px;
  width: 20px;
  display: inline-flex;
  justify-content: center;
  line-height: 1
}

.sidebar-projects {
  margin-top: 31px;
  overflow: auto;
  min-height: 70px;
  flex: 1
}

.section-label {
  font-size: 11px;
  color: #839087;
  font-weight: 600;
  margin-bottom: 12px;
  padding-right: 12px
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.project-links>.muted {
  padding: 0 12px;
  font-size: 12px
}

.project-link {
  border: 0;
  background: transparent;
  text-align: right;
  color: #5c7067;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 12px;
  min-height: 38px
}

.project-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.project-link::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: #a9b9ab;
  border-radius: 50%
}

.project-link.active {
  color: var(--ink);
  background: #e0e9dc
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dbe2d6;
  padding-top: 18px;
  margin-top: 15px
}

.sidebar-footer strong {
  font-size: 12px;
  display: block
}

.sidebar-footer small {
  font-size: 10px;
  display: block
}

.sidebar-footer .icon-button {
  margin-right: auto
}

.workspace-symbol {
  height: 31px;
  width: 31px;
  border: 1px solid #d2ddcd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #6a806e
}

.workspace {
  flex: 1;
  min-width: 0
}

.topbar {
  height: 79px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  background: rgba(251,250,246,.95);
  gap: 15px
}

.topbar h1 {
  margin: 0
}

.topbar-title,.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px
}

.icon-button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  min-width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: #76867d
}

.icon-button:hover {
  background: #e9eee6;
  color: var(--ink)
}

.connection-status {
  font-size: 11px;
  color: #74857b;
  display: flex;
  align-items: center;
  gap: 7px
}

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

.connection-status.connected .status-dot {
  background: #5c9274
}

.connection-status.error .status-dot {
  background: #b87658
}

.global-alert {
  background: #fff4df;
  border-bottom: 1px solid #edddbc;
  color: #775f37;
  font-size: 12px;
  padding: 10px 37px
}

.mobile-only {
  display: none
}

main: focus {
  outline: none
}

.chat-layout {
  height: calc(100dvh - 79px);
  display: flex;
  min-height: 530px
}

.conversation {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 36px 24px
}

.conversation-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0;
  font-size: 11px;
  color: var(--muted)
}

.conversation-toolbar select {
  max-width: 280px;
  border: 0;
  background: transparent;
  color: #49675d;
  font-size: 12px;
  padding: 5px 3px;
  cursor: pointer
}

.conversation-toolbar .muted {
  margin-right: auto;
  font-size: 10px
}

.chat-messages {
  flex: 1;
  overflow: auto;
  scroll-behavior: smooth;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 23px
}

.chat-welcome {
  margin: auto;
  width: 100%;
  max-width: 590px;
  padding: 28px 12px 55px
}

.welcome-mark {
  font-family: "Noto Naskh Arabic","Geeza Pro",serif;
  font-size: 50px;
  color: var(--teal);
  line-height: 1.1;
  width: 55px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 26px;
  padding-bottom: 10px
}

.chat-welcome h2 {
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: -.5px;
  margin-bottom: 9px;
  font-weight: 500
}

.chat-welcome>p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 29px
}

.starter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px
}

.starter-card {
  background: #ffffff75;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 18px;
  text-align: right;
  transition: border-color .2s,background .2s;
  min-height: 90px
}

.starter-card:hover {
  border-color: #91b4a5;
  background: #fff
}

.starter-card strong {
  font-size: 13px;
  display: block;
  font-weight: 600;
  margin-bottom: 6px
}

.starter-card span {
  font-size: 11px;
  color: var(--muted)
}

.composer {
  background: #fff;
  border: 1px solid #d5dfd5;
  box-shadow: 0 3px 14px #2f4a3505;
  border-radius: 17px;
  padding: 17px 17px 12px
}

.conversation-project-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  background: #f2eedf;
  border: 1px solid #e8dfc5;
  border-radius: 11px;
  color: #7c714f;
  font-size: 11px;
  line-height: 1.9;
  padding: 11px 15px;
  margin-bottom: 12px;
}

.conversation-project-notice .text-button {
  font-size: 11px;
}

.composer textarea:disabled {
  opacity: .6;
  cursor: default;
}

.composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  max-height: 200px;
  min-height: 48px;
  font-size: 14px;
  line-height: 1.8
}

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

.composer:focus-within {
  border-color: #8aaa98;
  box-shadow: 0 0 0 2px #dbe9dd
}

.composer textarea::placeholder {
  color: #9ba69d
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px
}

.composer-footer .muted {
  font-size: 10px
}

.send-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: var(--teal);
  color: #fff;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12px;
  min-height: 38px
}

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

.send-button:hover {
  background: var(--ink)
}

.message {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  animation: message-in .2s ease-out
}

.message-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 11px;
  color: var(--muted)
}

.message-avatar {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #e8eee6;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 13px
}

.message.user .message-avatar {
  background: #eee8db;
  color: #927a4e
}

.message-author {
  color: #4b675a;
  font-weight: 600
}

.message-header time {
  font-size: 10px;
  margin-right: auto
}

.message-content {
  font-size: 14px;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  padding: 0 34px 0 0
}

.message.user .message-content {
  background: #eef2e9;
  border-radius: 12px 3px 12px 12px;
  padding: 13px 17px;
  margin-right: 34px
}

.message.error .message-content {
  color: var(--red)
}

.message-meta {
  font-size: 10px;
  color: var(--muted);
  padding-right: 34px;
  margin-top: 9px
}

.message-pending {
  color: var(--muted)
}

.message-pending::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6a9a84;
  margin-right: 9px;
  animation: pulse 1.5s infinite
}

.work-panel {
  flex: 0 0 276px;
  width: 276px;
  padding: 26px 21px;
  border-right: 1px solid var(--border);
  background: #f7f8f2;
  overflow: auto
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px
}

.panel-heading h2 {
  font-size: 13px;
  margin: 0
}

.count-badge {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #e4ebe0;
  color: #6f8270;
  min-width: 23px;
  text-align: center
}

.project-summary {
  padding-bottom: 18px
}

.project-summary:empty {
  display: none
}

.project-summary h3 {
  font-size: 14px;
  margin-bottom: 8px
}

.project-summary p {
  font-size: 11px;
  color: var(--muted)
}

.project-summary .button {
  width: 100%;
  margin-top: 9px;
  min-height: 38px;
  font-size: 11px;
  padding: 8px
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.job-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 15px
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px
}

.job-card h3 {
  font-size: 12px;
  margin-bottom: 9px;
  overflow-wrap: anywhere
}

.job-card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
  overflow-wrap: anywhere
}

.job-card .status-badge {
  font-size: 9px
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  border-radius: 6px;
  padding: 3px 7px;
  background: #edf0e9;
  color: #6c7d6d;
  white-space: nowrap;
  line-height: 1.5
}

.status-badge.success {
  background: #e3f0e7;
  color: #397450
}

.status-badge.warning {
  background: #f7ecd4;
  color: #92703d
}

.status-badge.error {
  background: #f8e7e1;
  color: #a35e4a
}

.status-badge.running {
  background: #e2efee;
  color: #407f78
}

.job-progress {
  height: 3px;
  background: #eaf0e7;
  border-radius: 4px;
  margin: 12px 0;
  overflow: hidden
}

.job-progress>span {
  height: 100%;
  display: block;
  background: #6d9e83;
  border-radius: 4px
}

.job-progress.indeterminate>span {
  width: 33%;
  animation: progress 1.8s ease-in-out infinite
}

.job-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--teal);
  padding: 3px 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px
}

.text-button.danger {
  color: var(--red)
}

.empty-copy {
  color: #8b978c;
  font-size: 12px;
  line-height: 1.9;
  margin: 20px 0
}

.content-page {
  padding: 34px 38px;
  max-width: 1400px;
  margin: auto
}

.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px
}

.page-intro h2 {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 4px
}

.page-intro p {
  color: var(--muted);
  font-size: 12px;
  margin: 0
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 29px
}

.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 21px
}

.metric-card .metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px
}

.metric-card .metric-value {
  font-size: 31px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4
}

.metric-card .metric-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 28px 0 14px
}

.section-header h2 {
  font-size: 15px;
  margin: 0
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 17px
}

.project-card,.resource-card,.comparison-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px
}

.project-card .card-top,.resource-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px
}

.project-card h3 {
  margin-bottom: 10px
}

.project-card p {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px
}

.card-actions .button {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 38px
}

.project-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #eef0e9;
  padding-top: 14px;
  margin-top: 17px;
  font-size: 11px;
  color: var(--muted)
}

.project-metrics strong {
  color: var(--text);
  font-weight: 600
}

.resource-card h3 {
  font-size: 15px;
  margin-bottom: 5px
}

.resource-card p {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere
}

.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 18px;
  font-size: 12px;
  margin: 18px 0 0
}

.detail-list dt {
  color: var(--muted)
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere
}

.notice {
  background: #eff3e9;
  border: 1px solid #dfe8d7;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 12px;
  color: #66775f;
  line-height: 1.9;
  margin-bottom: 24px
}

.notice.warning {
  background: #fbf2e2;
  border-color: #efe2c6;
  color: #8b744e
}

.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: right;
  white-space: nowrap
}

.data-table th {
  font-weight: 500;
  color: var(--muted);
  background: #f7f8f3;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border)
}

.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf0e8
}

.data-table tbody tr:last-child td {
  border-bottom: 0
}

.data-table td:first-child {
  white-space: normal;
  min-width: 160px
}

.artifact-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.artifact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px
}

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

.artifact-row strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere
}

.artifact-row small {
  display: block;
  font-size: 10px;
  margin-top: 3px
}

.artifact-row a {
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap
}

.empty-state {
  background: #fff;
  border: 1px dashed #d1ddcd;
  border-radius: 16px;
  padding: 37px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px
}

.empty-state h3 {
  margin-bottom: 7px;
  font-weight: 500
}

.empty-state p {
  margin-bottom: 0;
  font-size: 12px
}

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

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px
}

.comparison-card h3 {
  font-size: 15px
}

.comparison-card .scope-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8
}

.benchmark-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px
}

.benchmark-controls .muted {
  font-size: 11px
}

.project-dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  width: min(520px,calc(100vw - 36px));
  padding: 27px;
  color: var(--text);
  box-shadow: 0 25px 100px #193d3b2b
}

.project-dialog::backdrop {
  background: #1b383751;
  backdrop-filter: blur(3px)
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px
}

.dialog-heading h2 {
  font-size: 20px;
  margin: 0
}

.project-dialog label,.login-card label {
  display: block;
  font-size: 12px;
  color: #5b7468;
  margin: 16px 0 7px
}

.project-dialog input,.project-dialog textarea,.login-card input {
  display: block;
  width: 100%;
  border: 1px solid #d3ded0;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  outline: 0;
  color: var(--text);
  resize: vertical
}

.project-dialog .primary-button {
  width: 100%;
  margin-top: 24px
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin: 13px 0 0
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #edf1e8;
  display: grid;
  place-items: center;
  padding: 24px
}

.login-card {
  width: min(430px,100%);
  background: var(--paper);
  border: 1px solid #dce5d7;
  border-radius: 20px;
  padding: 39px;
  box-shadow: 0 15px 70px #304f3b0a
}

.login-brand {
  margin-bottom: 36px
}

.login-card h1 {
  font-size: 23px;
  margin-bottom: 9px
}

.login-card>p {
  font-size: 12px;
  color: var(--muted)
}

.login-card .primary-button {
  width: 100%;
  margin-top: 24px
}

.toast {
  position: fixed;
  left: 32px;
  bottom: 25px;
  z-index: 110;
  background: var(--ink);
  color: #fff;
  border-radius: 11px;
  padding: 13px 20px;
  font-size: 12px;
  box-shadow: 0 6px 25px #173f3b26;
  max-width: calc(100vw - 40px)
}

.sidebar-scrim {
  display: none
}

.loading-line {
  height: 8px;
  background: #e4ebe0;
  border-radius: 4px;
  width: 65%;
  margin: 12px 0;
  animation: pulse 1.5s infinite
}

.loading-line:last-child {
  width: 40%
}

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

@keyframes progress {
  50% {
    transform: translateX(-180%)
  }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(4px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.project-dialog select {
  display: block;
  width: 100%;
  border: 1px solid #d3ded0;
  border-radius: 10px;
  padding: 11px;
  background: #fff;
  color: var(--text)
}

.dialog-note {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0
}

.artifact-dialog {
  width: min(850px,calc(100vw - 36px));
  max-height: 90dvh
}

.artifact-content {
  font: inherit;
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  max-height: 45dvh;
  overflow: auto;
  margin: 18px 0 25px
}

.artifact-dialog .muted {
  font-size: 11px
}

.artifact-dialog h3 {
  font-size: 15px
}

.project-dialog label.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--teal)
}

.detail-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px
}

.detail-heading h2 {
  margin: 0
}

.detail-heading .text-button {
  margin-right: auto
}

.project-detail {
  margin-bottom: 32px
}

.live-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px
}

.task-error {
  color: var(--red);
  font-size: 10px;
  max-width: 230px;
  white-space: normal;
  margin-top: 4px
}

.benchmark-result {
  margin-top: 20px
}

.benchmark-result h3 {
  font-size: 14px
}

.benchmark-result .detail-list {
  margin-top: 10px
}

.synthetic-tag {
  display: block;
  font-size: 10px;
  color: var(--amber);
  margin-top: 5px
}

.section-header .muted {
  font-size: 11px
}

.message-meta .text-button {
  margin-right: 10px;
  font-size: 10px
}

@media(min-width:1600px) {
  .conversation {
    padding-right: 60px;
    padding-left: 60px
  }
  .chat-welcome {
    max-width: 650px
  }
  .work-panel {
    flex-basis: 310px;
    width: 310px
  }
}

@media(max-width:1200px) {
  .sidebar {
    width: 215px;
    flex-basis: 215px;
    padding: 27px 16px 18px
  }
  .work-panel {
    width: 240px;
    flex-basis: 240px;
    padding: 24px 17px
  }
  .conversation {
    padding: 0 24px 20px
  }
  .topbar {
    padding: 0 24px
  }
  .metrics-grid {
    gap: 12px
  }
  .metric-card {
    padding: 17px
  }
  .content-page {
    padding: 28px 25px
  }
}

@media(max-width:1000px) {
  .work-panel {
    display: none
  }
  .conversation {
    max-width: 900px;
    margin: auto;
    width: 100%;
    height: 100%
  }
  .metrics-grid {
    grid-template-columns: repeat(2,1fr)
  }
  .cards-grid {
    grid-template-columns: 1fr
  }
  .content-page {
    padding: 27px 24px
  }
  .comparison-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:700px) {
  .sidebar {
    position: fixed;
    right: 0;
    z-index: 50;
    width: 260px;
    transform: translateX(100%);
    transition: transform .2s
  }
  .sidebar.open {
    transform: translateX(0)
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #163c3a45;
    border: 0;
    z-index: 40
  }
  .mobile-only {
    display: grid
  }
  .topbar {
    height: 66px;
    padding: 0 16px
  }
  .topbar h1 {
    font-size: 16px
  }
  .topbar-title {
    gap: 5px
  }
  .topbar-actions {
    gap: 6px
  }
  .connection-status {
    font-size: 10px
  }
  .chat-layout {
    height: calc(100dvh - 66px);
    min-height: 440px
  }
  .conversation {
    padding: 0 17px 16px
  }
  .conversation-toolbar {
    padding: 12px 0
  }
  .conversation-toolbar select {
    max-width: 190px
  }
  .conversation-toolbar .muted {
    max-width: 100px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden
  }
  .chat-welcome {
    padding: 35px 5px
  }
  .chat-welcome h2 {
    font-size: 29px
  }
  .chat-welcome>p {
    font-size: 12px
  }
  .welcome-mark {
    font-size: 44px;
    margin-bottom: 22px
  }
  .starter-grid {
    gap: 10px
  }
  .starter-card {
    padding: 14px;
    min-height: 95px
  }
  .starter-card strong {
    font-size: 12px
  }
  .starter-card span {
    font-size: 10px
  }
  .composer {
    padding: 13px 13px 10px
  }
  .composer textarea {
    font-size: 16px
  }
  .composer-footer .muted {
    font-size: 9px
  }
  .message-content {
    font-size: 14px;
    padding-right: 0
  }
  .message.user .message-content {
    margin-right: 18px
  }
  .message-meta {
    padding-right: 0
  }
  .content-page {
    padding: 24px 17px
  }
  .page-intro {
    align-items: flex-start;
    margin-bottom: 21px
  }
  .page-intro h2 {
    font-size: 23px
  }
  .page-intro .button {
    font-size: 10px;
    padding: 8px 10px;
    white-space: nowrap
  }
  .metric-card {
    padding: 16px
  }
  .metric-card .metric-value {
    font-size: 28px
  }
  .metric-card .metric-label {
    font-size: 11px
  }
  .metrics-grid {
    gap: 10px
  }
  .project-card,.resource-card,.comparison-card {
    padding: 19px
  }
  .global-alert {
    padding: 9px 17px
  }
  .login-card {
    padding: 30px 25px
  }
  .toast {
    left: 20px;
    bottom: 20px
  }
  .project-dialog {
    padding: 22px
  }
  .artifact-row {
    padding: 12px
  }
  .artifact-row .status-badge {
    display: none
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    scroll-behavior: auto!important;
    transition: none!important
  }
}
