body {
  color-scheme: light;
  --ink: #182033;
  --muted: #596578;
  --quiet: #6c7687;
  --paper: #f8f8f6;
  --white: #fff;
  --line: #e1e6ed;
  --line-strong: #cbd3df;
  --blue: #224fd1;
  --blue-hover: #1c42b5;
  --blue-soft: #eef3ff;
  --nav: #111c32;
  --nav-raised: #1d2b45;
  --nav-muted: #a0afc8;
  --green: #146549;
  --green-soft: #e7f6ed;
  --amber: #8a4d00;
  --amber-soft: #fff2dc;
  --red: #a62b3a;
  --red-soft: #fcecf0;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(24 32 51 / 4%);
  --font: Inter, Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  margin: 0;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
:where(.shell, .login, .modal-overlay, .toast),
:where(.shell, .login, .modal-overlay, .toast) * { box-sizing: border-box; }
:where(.shell, .login, .modal-overlay) :where(button, input, select, textarea) { color: inherit; font: inherit; }
:where(.shell, .login, .modal-overlay) button { cursor: pointer; }
:where(.shell, .login, .modal-overlay) button:disabled { cursor: default; opacity: .52; }
:where(.shell, .login, .modal-overlay) :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  vertical-align: middle;
}

.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 360px;
  padding: 20px 13px 14px;
  overflow: auto;
  background: var(--nav);
  color: #f8faff;
  scrollbar-color: #42536d transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding-inline: 8px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #305deb;
  color: white;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%);
  font-weight: 800;
}

.brand-mark .icon { width: 20px; height: 20px; }
.brand-text { font-size: 19px; font-weight: 750; letter-spacing: -.045em; line-height: 1.12; }
.brand-text small { display: block; margin-top: 3px; color: var(--nav-muted); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.sidebar nav { display: grid; gap: 3px; margin-top: 20px; }
.nav-label {
  margin: 19px 10px 5px;
  color: var(--nav-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c9d4e6;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item:hover { background: var(--nav-raised); color: white; }
.nav-item.is-active, .nav-item[aria-current='page'] {
  border-color: #3c5584;
  background: #23365c;
  color: #fff;
}
.nav-item:focus-visible, .sidebar a:focus-visible { outline-color: #94adff; }
.nav-icon { width: 17px; height: 17px; flex: 0 0 17px; color: #a5b8db; }
.nav-item.is-active .nav-icon { color: #bed0ff; }
.sidebar-foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 16px 9px 2px;
  color: var(--nav-muted);
  font-size: 11px;
}
.sidebar-foot .btn, .sidebar-foot .nav-item { color: #d8e3f7; }
.sidebar-foot .btn { border-color: #41516e; background: var(--nav-raised); }

.workspace { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 11px clamp(18px, 3.25vw, 47px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.crumbs, .top-actions, .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crumbs { min-width: 0; color: var(--muted); font-size: 13px; }
.crumbs strong, .crumbs [aria-current] { color: var(--ink); font-weight: 650; }
.crumbs .icon { width: 14px; height: 14px; flex-basis: 14px; }
.top-actions { justify-content: flex-end; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #dce5fc;
  border-radius: 50%;
  background: var(--blue-soft);
  color: #2846a0;
  font-size: 11px;
  font-weight: 750;
}

.pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef1f5;
  color: #47566c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.pill .icon, .badge .icon { width: 12px; height: 12px; flex-basis: 12px; }
:is(.pill, .badge):is(.green, .success, .ok, .prod, .positive, .done, .published, .accepted) { background: var(--green-soft); color: var(--green); }
:is(.pill, .badge):is(.amber, .warning, .warn, .pending, .stage, .medium) { background: var(--amber-soft); color: var(--amber); }
:is(.pill, .badge):is(.red, .error, .failed, .critical, .danger, .high) { background: var(--red-soft); color: var(--red); }
:is(.pill, .badge):is(.blue, .info, .dev, .progress, .in-progress, .new, .sent) { background: var(--blue-soft); color: #294aa8; }

.main {
  width: min(100%, 1510px);
  margin-inline: auto;
  padding: 28px clamp(18px, 3.25vw, 47px) 46px;
}

.main :where(h1, h2, h3), .login :where(h1, h2, h3), .modal :where(h2, h3) { margin: 0; line-height: 1.2; }
.main :where(p), .login :where(p), .modal :where(p) { margin-block: 0; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 23px;
}

.page-head h1 {
  margin: 3px 0 6px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 760;
  letter-spacing: -.042em;
}

.page-head p { color: var(--muted); }
.eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 17px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-bottom: 13px;
}

.section-head :where(h2, h3) { font-size: 16px; font-weight: 730; letter-spacing: -.015em; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.metric {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 103px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric :where(h2, h3, p) { margin: 0; }
.metric :where(h2, h3) { font-size: 13px; font-weight: 650; }
.metric :where(strong, b, .metric-value) { font-size: 26px; font-weight: 760; letter-spacing: -.055em; line-height: 1.08; }
.metric small { color: var(--muted); font-size: 11px; }
.metric .icon { color: #3153b1; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.split + .split, .split + .card, .card + .split { margin-top: 15px; }

.release-list, .list, .news-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.release-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 53px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.release-item:last-child { border-bottom: 0; }
.release-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: #2c50b4;
}
.release-main { flex: 1 1 auto; min-width: 0; }
.release-main :where(h3, strong) { font-size: 13px; font-weight: 690; }
.release-main :where(small, p) { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }

.btn, .icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.btn:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: #f0f3f8; border-color: #b8c6d9; }
.btn.primary { border-color: var(--blue); background: var(--blue); color: var(--white); }
.btn.primary:hover:not(:disabled) { border-color: var(--blue-hover); background: var(--blue-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { border-color: #f0c3cb; background: var(--red-soft); color: var(--red); }
.btn.danger:hover:not(:disabled) { border-color: #df9aaa; background: #f8dce4; }
.icon-button { width: 35px; flex: 0 0 35px; padding: 0; }
.btn .icon { width: 16px; height: 16px; flex: 0 0 16px; }

.board {
  display: grid;
  grid-auto-columns: minmax(220px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 7px;
}

.column {
  min-width: 0;
  min-height: 235px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eff2f7;
}

.column > :where(h2, h3) { margin: 2px 0 10px; font-size: 13px; font-weight: 730; }
.column.drop-active, .drop-active { border-color: #83a0f2; background: var(--blue-soft); }
.task-card {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
  padding: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.task-card:hover { border-color: #b9c8e2; }
.task-card[draggable='true'] { cursor: grab; }
.task-card[draggable='true']:active { cursor: grabbing; }
.task-card :where(h2, h3, h4) { margin: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.task-card :where(p, small) { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
:is(.field, .filters, .login-card, .chat-layout) :where(input:not([type='checkbox'], [type='radio']), select, textarea) {
  width: 100%;
  min-height: 36px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
}

.filters :where(input, select) { width: auto !important; max-width: 100%; }
:is(.field, .filters, .login-card, .chat-layout) :where(input, textarea)::placeholder { color: #647085; }
:is(.field, .filters, .login-card, .chat-layout) :where(input, select, textarea):focus { border-color: var(--blue); }
.field textarea { min-height: 94px; resize: vertical; }
.table-wrap, .table-scroll { min-width: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.table :where(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.table th { background: #f1f4f8; color: #4c5b70; font-size: 11px; font-weight: 730; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f9fbfe; }
.table :where(th, td):first-child { padding-left: 11px; }
.list > :where(div, li, article), .news-list > :where(div, li, article) { padding: 11px 0; border-bottom: 1px solid var(--line); }
.list > :last-child, .news-list > :last-child { border-bottom: 0; }
.news-list :where(h2, h3) { margin-bottom: 4px; font-size: 15px; }
.news-list :where(p, small) { color: var(--muted); }

.log-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 11px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: #344158;
  font: 11px/1.55 var(--mono);
  overflow-wrap: anywhere;
}

.log-line:last-child { border-bottom: 0; }
.log-line :where(time, small) { color: var(--quiet); }
.api-block {
  display: block;
  max-width: 100%;
  margin-block: 10px 14px;
  overflow: auto;
  padding: 13px;
  border: 1px solid #243d60;
  border-radius: 9px;
  background: #142137;
  color: #e0e9fa;
  font: 12px/1.6 var(--mono);
  tab-size: 2;
}

.tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab {
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}

.tab:hover, .tab.is-active, .tab[aria-selected='true'] { color: var(--blue); }
.tab.is-active, .tab[aria-selected='true'] { border-bottom-color: var(--blue); }
.tab:focus-visible { outline-offset: -3px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; color: #334259; font-size: 13px; font-weight: 650; }
.field :where(input, select, textarea) { font-weight: 450; }
.field :where(small, .muted) { color: var(--muted); font-size: 11px; font-weight: 450; }
.field.full, .field.wide, .form-grid > .notice { grid-column: 1 / -1; }

.modal-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(12 23 44 / 58%);
}

.modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 560px);
  max-height: min(740px, calc(100dvh - 36px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 70px rgb(12 23 44 / 24%);
}

.modal-head, .modal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; padding: 14px 18px; }
.modal-head { justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 19px; letter-spacing: -.022em; }
.modal-body { min-height: 0; overflow-y: auto; padding: 17px 18px; }
.modal-foot { justify-content: flex-end; border-top: 1px solid var(--line); background: #f9fafc; }
.toast {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(390px, calc(100vw - 40px));
  padding: 11px 15px;
  border: 1px solid #2c4266;
  border-radius: 9px;
  background: var(--nav);
  color: #fff;
  box-shadow: 0 8px 24px rgb(12 23 44 / 19%);
  overflow-wrap: anywhere;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 32px 12px;
  color: var(--muted);
  text-align: center;
}

.empty :where(h2, h3, strong) { color: var(--ink); font-size: 15px; }
.empty .icon { color: #5271be; }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-block: 9px;
  padding: 10px 12px;
  border: 1px solid #dce6ff;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #28488a;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice:is(.warning, .warn) { border-color: #f1dcb2; background: var(--amber-soft); color: var(--amber); }
.notice.error { border-color: #efc4cf; background: var(--red-soft); color: var(--red); }
.notice.success { border-color: #cbe6d6; background: var(--green-soft); color: var(--green); }

.login { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 100vh; }
.login-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(30px, 8vw, 106px);
  background:
    radial-gradient(ellipse at 15% 92%, #244db9 0%, transparent 48%),
    radial-gradient(ellipse at 94% 8%, #2a417f 0%, transparent 55%),
    #101d36;
  color: #fff;
}

.login-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(174 197 255 / 15%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(174 197 255 / 15%) 1px, transparent 1px);
  background-size: 36px 36px;
  content: '';
  mask-image: linear-gradient(146deg, transparent 8%, #000 43%, rgb(0 0 0 / 26%) 100%);
  pointer-events: none;
}

.login-hero .brand { padding: 0; }
.login-hero h1 { max-width: 540px; font-size: clamp(31px, 5.5vw, 64px); font-weight: 760; letter-spacing: -.065em; line-height: 1.06; }
.login-hero :where(p, .muted) { max-width: 425px; color: #c1d1ee; font-size: clamp(13px, 1.4vw, 16px); }
.login-hero .eyebrow { color: #a9c1ff; }
.login-panel { display: grid; place-items: center; min-width: 0; padding: 28px; background: #f7f8fb; }
.login-card {
  display: grid;
  gap: 13px;
  width: min(100%, 400px);
  padding: clamp(21px, 3vw, 31px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 10px 36px rgb(26 41 72 / 6%);
}

.login-card h2 { font-size: 25px; font-weight: 760; letter-spacing: -.04em; }
.login-card form { display: grid; gap: 12px; }
.login-card .btn.primary { min-height: 40px; }
.stepper, .steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.steps > *, .stepper > * { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 620; }
.steps .is-active, .stepper .is-active, .steps [aria-current='step'], .stepper [aria-current='step'] { border-color: #ccd9fc; background: var(--blue-soft); color: #264ab1; }

.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.doc-grid :where(h2, h3) { margin-bottom: 5px; font-size: 15px; }
.doc-grid :where(p, small) { color: var(--muted); font-size: 13px; }

.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.chat-feed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-height: 235px;
  max-height: min(480px, 62dvh);
  overflow: auto;
  padding: 11px 3px;
}

.bubble {
  max-width: min(580px, 86%);
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px 11px 11px 3px;
  background: #f1f4f9;
  color: #35445b;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.bubble:is(.mine, .user, .is-user) {
  align-self: flex-end;
  border-color: #d9e4ff;
  border-radius: 11px 11px 3px 11px;
  background: var(--blue-soft);
  color: #243f97;
}

@media (max-width: 1150px) {
  .split { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .shell { grid-template-columns: 174px minmax(0, 1fr); }
  .main { padding-top: 23px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-hero { padding: 32px; }
  .login-panel { padding: 18px; }
}

@media (max-width: 620px) {
  .shell { display: block; }
  .sidebar {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 8px 9px;
    overflow: visible;
  }
  .sidebar .brand { min-height: 38px; }
  .sidebar nav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .sidebar nav > :not(.nav-label, .nav-item) { display: flex; align-items: center; gap: 3px; }
  .sidebar :is(.nav-label, .sidebar-foot) { display: none; }
  .nav-item { min-height: 36px; width: max-content; }
  .topbar { padding: 8px 13px; min-height: 52px; }
  .top-actions { gap: 5px; }
  .main { padding: 17px 12px 32px; }
  .page-head { margin-bottom: 15px; }
  .card { padding: 13px; }
  .metrics { gap: 7px; margin-bottom: 12px; }
  .metric { padding: 10px; min-height: 88px; }
  .metric :where(strong, b, .metric-value) { font-size: 23px; }
  .form-grid, .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .table { min-width: min(520px, 115vw); }
  .card:has(> .table) { overflow-x: auto; }
  .login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-hero { min-height: 0; padding: 23px 22px 25px; gap: 9px; }
  .login-hero h1 { max-width: 420px; font-size: clamp(29px, 7.4vw, 41px); }
  .login-panel { align-items: start; padding: 15px 12px 25px; }
  .login-card { padding: 18px; }
  .modal-overlay { padding: 9px; }
  .modal { max-height: calc(100dvh - 18px); }
}

@media (prefers-reduced-motion: no-preference) {
  :where(.btn, .icon-button, .nav-item, .task-card, .tab) { transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
}

.brand-mark { display: inline-flex; align-items: center; justify-content: center; gap: 1px; }
.brand-mark > span { color: #c4d3ff; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; }
.demo-dot, .prod-pill > span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #3ca67b; }
.prod-pill { background: var(--green-soft); color: var(--green); }
.login-hero { justify-content: space-between; }
.login-intro { display: grid; gap: 18px; }
.login-domain { display: flex; align-items: center; gap: 9px; color: #c1d1ee; font-size: 13px; }
.login-domain > span { width: 8px; height: 8px; border: 2px solid #9cbaff; border-radius: 50%; }
.preview-links, .stack { display: grid; gap: 12px; }
.preview-link { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.preview-link small { display: block; color: var(--muted); }
.preview-link:hover { background: var(--blue-soft); border-color: #ccd9fc; }
.profile { position: relative; }
.profile summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.profile summary::-webkit-details-marker { display: none; }
.profile summary::after { content: "⌄"; color: var(--muted); }
.profile-menu { position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); display: grid; min-width: 120px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 20px #18203314; }
.profile-menu :where(a,strong) { padding: 4px 8px; }
.profile-menu a { color: var(--ink); }
.nav-count { margin-left: auto; padding: 0 6px; border-radius: 4px; background: #304263; color: #e9efff; }
.metric-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.release-meta { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
.release-item h3 { margin-block: 2px 3px; }
.release-item .btn { flex-shrink: 0; }
.overview-task { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.overview-task:last-child { border: 0; }
.text-button { padding: 0; background: none; border: 0; text-align: left; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.text-button:hover { color: var(--blue); text-decoration: underline; }
.task-title { font-size: 14px; }
.task-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; }
.task-meta { justify-content: space-between; }
.move-control { min-width: 0; max-width: 100%; padding: 3px; border-radius: 6px; border: 1px solid var(--line); background: white; color: var(--muted); font-size: 11px !important; }
.column-dot { display: inline-block; margin-right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #95a3bb; }
.column-dot.doing { background: #4972db; }
.column-dot.done { background: #32a27d; }
.doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 15px; }
.doc-tile { display: grid; align-content: start; gap: 7px; }
.doc-tile .section-head { margin-bottom: 0; }
.doc-tile > .mono { padding: 7px 9px; background: #f2f5fa; border-radius: 6px; overflow-wrap: anywhere; }
.doc-tile > .row { margin-top: 3px; }
.chat-compose { display: flex; gap: 8px; }
.chat-compose input { min-width: 0; flex: 1; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; }
.bubble form { display: grid; justify-items: start; gap: 8px; margin-block: 7px 3px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check-line input { inline-size: 16px; block-size: 16px; accent-color: var(--blue); }
.modal-open { overflow: hidden; }
.modal .stack > div > h3 { margin-bottom: 4px; font-size: 14px; }
.details-box { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfe; }
.details-box summary { cursor: pointer; font-weight: 690; }
.details-box[open] summary { margin-bottom: 9px; }
.details-box > p + p, .details-box > .api-block { margin-top: 8px; }
.endpoint { display: flex; gap: 9px; align-items: baseline; padding: 9px 10px; background: #eef3ff; border-radius: 6px; color: #224794; }
.endpoint code, .flow code { overflow-wrap: anywhere; }
.api-details { margin: 0; display: grid; gap: 8px; }
.api-details dt { color: var(--ink); font-weight: 690; }
.api-details dd { margin: 1px 0 0; }
.flow { display: grid; gap: 12px; padding: 0; list-style: none; margin: 8px 0; }
.flow > li { position: relative; display: grid; gap: 2px; padding: 9px 11px; border: 1px solid #d8e2f5; border-radius: 8px; background: #f5f8ff; }
.flow > li + li::before { content: "↓"; position: absolute; top: -15px; left: 12px; color: var(--blue); font-size: 11px; }
.flow > li > span { font-size: 12px; color: var(--muted); }
.long-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-box { white-space: pre-wrap; overflow-wrap: anywhere; color: #33476b; padding: 10px; background: #edf2fb; border-radius: 6px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 620px) {
  .profile-name { display: none; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .release-item { flex-wrap: wrap; }
  .release-item .btn { margin-left: auto; }
  .login-intro { gap: 8px; }
}

body {
  --ink: #211f1c;
  --muted: #6a665f;
  --quiet: #716d67;
  --paper: #fff;
  --white: #fff;
  --line: #eae7e2;
  --line-strong: #dedbd5;
  --blue: #27241f;
  --blue-hover: #3c3831;
  --blue-soft: #f4f3f0;
  --nav: #faf9f7;
  --nav-raised: #eeece8;
  --nav-muted: #6b675f;
  --green: #246247;
  --green-soft: #edf6ef;
  --amber: #784e19;
  --amber-soft: #faf3e7;
  --red: #9c3939;
  --red-soft: #faeeee;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(33 31 28 / 3%);
  --font: Geist, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.shell { grid-template-columns: 196px minmax(0, 1fr); }
.sidebar {
  padding: 15px 10px 14px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  scrollbar-color: var(--line-strong) transparent;
}
.brand { min-height: 42px; gap: 9px; }
.brand-mark {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 8px;
  background: #211f1c;
  box-shadow: none;
}
.brand-mark > span { color: #d4cfc7; }
.brand-text { font-size: 18px; font-weight: 700; letter-spacing: -.035em; }
.brand-text small { margin-top: 2px; font-size: 9px; letter-spacing: .045em; }
.sidebar nav { margin-top: 18px; gap: 2px; }
.nav-label { margin: 14px 9px 5px; letter-spacing: .07em; font-weight: 650; }
.nav-item {
  min-height: 35px;
  padding: 7px 8px;
  border-radius: 6px;
  color: #514c45;
  font-weight: 500;
}
.nav-item:hover { color: var(--ink); }
.nav-item.is-active, .nav-item[aria-current='page'] {
  border-color: transparent;
  background: #eae7e2;
  color: var(--ink);
  font-weight: 650;
}
.nav-item:focus-visible, .sidebar a:focus-visible { outline-color: var(--blue); }
.nav-icon, .nav-item.is-active .nav-icon { color: currentColor; }
.nav-count { background: #e6e3de; color: #4f4a42; }
.sidebar-foot { padding-top: 12px; }
.sidebar-foot .btn, .sidebar-foot .nav-item { color: var(--ink); }
.sidebar-foot .btn { border-color: var(--line); }
.topbar { min-height: 56px; padding-block: 8px; }
.crumbs { font-size: 12px; }
.crumbs strong { font-weight: 600; }
.avatar { width: 30px; height: 30px; flex-basis: 30px; border-color: var(--line); color: var(--ink); }
.profile-name { font-size: 12px; }
.profile-menu { box-shadow: 0 10px 30px rgb(33 31 28 / 9%); }
.profile-menu a { border-radius: 5px; text-decoration: none; }
.profile-menu a:hover { background: var(--nav-raised); }

.main { max-width: 1390px; padding-top: 30px; }
.page-head { gap: 14px 20px; margin-bottom: 24px; }
.page-head h1 { margin-block: 0 5px; font-size: clamp(26px, 2.7vw, 33px); font-weight: 680; letter-spacing: -.043em; }
.page-head p { font-size: 13px; }
.page-head .eyebrow, .eyebrow { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .065em; }
.page-head .eyebrow { margin-bottom: 6px; }
.card { padding: 18px; }
.section-head :where(h2, h3) { font-size: 15px; font-weight: 670; }
.metric { min-height: 96px; background: var(--nav); }
.metric :where(h2, h3) { font-weight: 580; }
.metric :where(strong, b, .metric-value) { font-weight: 680; }
.metric .icon, .empty .icon { color: var(--quiet); }
.release-icon { border: 1px solid var(--line); border-radius: 7px; color: var(--muted); }
.release-main :where(h3, strong), .release-meta, .task-card :where(h2, h3, h4) { font-weight: 630; }
.release-meta { font-weight: 520; }
.btn, .icon-button {
  min-height: 34px;
  border-radius: 7px;
  font-weight: 570;
}
.btn:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--line-strong); }
.btn.ghost:hover:not(:disabled) { border-color: transparent; }
.btn.primary { border-color: #211f1c; background: #211f1c; }
.btn.primary:hover:not(:disabled) { border-color: #37332c; background: #37332c; }
.icon-button { width: 34px; flex-basis: 34px; }
.pill, .badge { background: var(--blue-soft); color: #555149; font-size: 10.5px; font-weight: 640; }
:is(.pill, .badge):is(.blue, .info, .dev, .progress, .in-progress, .new, .sent) { color: #504b42; }
.prod-pill { background: var(--green-soft); color: var(--green); }
.demo-dot, .prod-pill > span { background: #418262; }

.column { border-radius: 9px; background: var(--nav); }
.column.drop-active, .drop-active, .task-card:hover { border-color: #aaa397; }
.column-dot { background: #a19a90; }
.column-dot.doing { background: #86714f; }
.column-dot.done { background: #4a8264; }
.table th { background: var(--nav); color: #5f5a52; font-weight: 620; }
.table tbody tr:hover { background: #faf9f7; }
.field { color: var(--ink); font-weight: 570; }
.field :where(input, select, textarea) { font-weight: 400; }
:is(.field, .filters, .login-card, .chat-layout) :where(input, textarea)::placeholder { color: var(--quiet); }
.log-line, .prompt-box { color: #423e38; }
.api-block {
  background: #f7f6f4;
  border-color: var(--line);
  color: var(--ink);
}
.details-box, .flow > li { background: var(--nav); border-color: var(--line); }
.release-technical { display: grid; gap: 12px; }
.release-technical h3 { margin-bottom: 4px; font-size: 13px; }
.release-technical p { overflow-wrap: anywhere; white-space: pre-line; }
.release-technical-calls, .release-technical-files {
  margin: 0;
  padding: 0;
  list-style: none;
}
.release-technical-calls { display: grid; gap: 6px; }
.release-technical-calls li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.release-technical-calls code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.release-technical-files li { overflow-wrap: anywhere; }
.release-technical-files a { color: var(--ink); text-underline-offset: 2px; }
.release-commit-link .btn { min-height: 28px; padding-inline: 8px; font-size: 12px; }
.endpoint, .doc-tile > .mono, .prompt-box { background: var(--blue-soft); color: var(--ink); }
.endpoint { margin-block: 9px; }
.doc-tile h2 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.preview-link:hover { border-color: var(--line-strong); }
.notice { border-color: var(--line); color: #514d45; }
.bubble { background: var(--nav); color: var(--ink); }
.bubble:is(.mine, .user, .is-user) { border-color: var(--line-strong); color: var(--ink); }
.steps .is-active, .stepper .is-active, .steps [aria-current='step'], .stepper [aria-current='step'] {
  border-color: var(--line-strong);
  color: var(--ink);
}

.modal-overlay { background: rgb(26 23 19 / 38%); }
.modal { border-radius: 12px; box-shadow: 0 18px 60px rgb(33 31 28 / 17%); }
.modal-head, .modal-foot { padding: 15px 18px; }
.modal-head h2 { font-weight: 680; }
.modal-head .icon-button { background: transparent; border-color: transparent; font-size: 19px; }
.modal-head .icon-button:hover:not(:disabled) { background: var(--blue-soft); border-color: transparent; }
.modal-foot { background: var(--white); }
.toast { border-color: #292722; background: #292722; box-shadow: 0 8px 24px rgb(33 31 28 / 16%); }

.login { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-hero {
  border-right: 1px solid var(--line);
  background: #f5f3ef;
  color: var(--ink);
}
.login-hero::before { display: none; }
.login-hero h1 { max-width: 550px; font-size: clamp(34px, 4.5vw, 62px); font-weight: 680; letter-spacing: -.055em; }
.login-hero .eyebrow, .login-hero :where(p, .muted), .login-domain { color: var(--muted); }
.login-domain > span { border-color: #8e8270; }
.login-panel { background: var(--white); }
.login-card { border: 0; box-shadow: none; }
.login-card h2 { font-weight: 680; }

.composer {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.composer:focus-within { border-color: #9a9288; }
.composer textarea {
  display: block;
  width: 100%;
  min-height: 144px;
  min-width: 0;
  padding: 13px 14px 9px;
  border: 0;
  border-radius: 10px 10px 0 0;
  outline: none;
  resize: vertical;
  background: transparent;
  font-weight: 400;
}
.composer textarea:focus-visible { outline: none; }
.composer textarea::placeholder { color: var(--quiet); }
.composer-tools, .attachment-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 9px;
  list-style: none;
}
.composer-tools { border-top: 1px solid var(--line); }
.composer-tools .btn, .composer-tools .icon-button { min-height: 30px; }
.composer-tools .icon-button { width: 30px; flex-basis: 30px; }
.attachment-list:empty { display: none; }
.attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 4px 3px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--nav);
  font-size: 12px;
}
.attachment-icon { display: inline-flex; color: var(--quiet); }
.attachment-icon :is(svg, .icon) { width: 14px; height: 14px; }
.attachment-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}
.attachment-remove:hover { background: var(--nav-raised); color: var(--ink); }
.record-indicator { display: inline-flex; align-items: center; gap: 6px; padding-inline: 3px; color: var(--red); font-size: 11px; }
.record-indicator::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.compose-hint, .release-history-note { color: var(--muted); font-size: 12px; }
.intake-details { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--nav); }
.intake-details summary { cursor: pointer; color: var(--ink); font-weight: 590; }
.intake-details[open] summary { margin-bottom: 9px; }
.generated-title { font-weight: 620; letter-spacing: -.013em; }

.release-toolbar, .release-pagination, .release-page-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.release-toolbar { color: var(--muted); font-size: 12px; }
.release-toolbar select {
  max-width: 100%;
  min-height: 33px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}
.release-origin { color: var(--muted); font-weight: 500; }
.release-refresh { display: grid; gap: 4px; justify-items: start; }
.page-head .release-refresh p { color: var(--muted); font-size: 12px; }
.release-refresh p:empty { display: none; }
.product-doc-card { margin-top: 16px; }
.product-doc-card .stack > p { margin: 0; }
.product-doc-page { min-height: 100vh; }
.product-doc-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px max(16px, calc((100vw - 1240px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--panel-line);
}
.product-doc-header a, .product-doc-content a { color: var(--primary-active); }
.product-doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 18px 48px;
  align-items: start;
}
.product-doc-nav, .product-doc-content {
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--panel-line);
}
.product-doc-nav { display: grid; padding: 8px; }
.product-doc-nav a { padding: 7px 8px; border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
.product-doc-nav a:hover, .product-doc-nav a[aria-current="page"] { background: var(--primary-surface); color: var(--primary-active); }
.product-doc-nav a.product-doc-child { padding-inline-start: 18px; font-size: 12px; }
.product-doc-content { padding: clamp(14px, 4vw, 36px); min-width: 0; overflow-wrap: anywhere; }
.product-doc-content h1 { margin: 0 0 18px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.product-doc-content h2 { margin: 24px 0 10px; }
.product-doc-content h3 { margin: 18px 0 8px; }
.product-doc-content p, .product-doc-content ul, .product-doc-content ol { margin: 8px 0 12px; }
.product-doc-content :is(ul, ol) { padding-inline-start: 24px; }
.product-doc-content pre { overflow: auto; padding: 12px; background: var(--panel-surface); border-radius: 6px; }
.product-doc-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 12px 18px; }
.product-doc-content :is(td, th) { padding: 6px 9px; border: 1px solid var(--panel-line); text-align: start; vertical-align: top; }
.product-doc-content th { min-width: 68px; background: var(--panel-surface); }
@media (max-width: 760px) {
  .product-doc-layout { grid-template-columns: minmax(0, 1fr); }
  .product-doc-nav { max-height: 184px; overflow: auto; }
}
@media (max-width: 767px) {
  .shell .main:has(.release-pagination) { padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
}
.release-pagination {
  justify-content: space-between;
  gap: 9px 14px;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.release-page-numbers .btn { min-width: 32px; padding-inline: 8px; }
.release-page-numbers [aria-current='page'] { border-color: var(--line-strong); background: var(--nav-raised); color: var(--ink); }
.release-history-note { margin-top: 10px; }

.qa-layout, .qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .37fr);
  align-items: start;
  gap: 14px;
}
.qa-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 14px; }
.qa-header { margin-bottom: 19px; }
.qa-rail, .qa-commits, .qa-reports, .qa-fixtures { display: grid; min-width: 0; gap: 10px; }
.qa-project, .qa-evidence { min-width: 0; }
.qa-toolbar, .qa-actions, .qa-status, .qa-evidence-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  min-width: 0;
}
.qa-toolbar { margin-bottom: 12px; }
.qa-status { font-size: 12px; color: var(--muted); }
.qa-frame {
  display: block;
  width: 100%;
  height: 450px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--nav);
}
.qa-commit, .qa-report, .qa-fixture {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--nav);
  overflow-wrap: anywhere;
}
.qa-commit :where(h3, strong), .qa-report :where(h3, strong), .qa-fixture :where(h3, strong) {
  font-size: 13px;
  font-weight: 620;
}
.qa-evidence-shot { min-width: 0; margin: 0; }
.qa-evidence-meta { margin-top: 7px; color: var(--muted); font-size: 11px; }
.qa-image {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

@media (max-width: 1000px) {
  .qa-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .shell { grid-template-columns: 173px minmax(0, 1fr); }
  .main { padding-top: 22px; }
}
@media (max-width: 620px) {
  .sidebar { padding: 8px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { margin-top: 6px; }
  .topbar { min-height: 50px; }
  .main { padding-top: 18px; }
  .page-head { margin-bottom: 16px; }
  .card { padding: 13px; }
  .metric { min-height: 84px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-hero { border-right: 0; border-bottom: 1px solid var(--line); }
  .login-hero h1 { font-size: clamp(29px, 7.5vw, 40px); }
  .modal-head, .modal-foot { padding-inline: 13px; }
  .modal-body { padding-inline: 13px; }
  .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .qa-frame { height: 385px; }
}

.attachment-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 1px 3px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
}
.attachment-open:hover { background: var(--nav-raised); }
.attachment-open .attachment-icon { flex: none; font-size: 10px; }
.attachment.has-preview {
  align-items: flex-start;
  min-width: 0;
  padding: 3px;
}
.attachment-preview {
  display: block;
  min-width: 0;
  border-radius: 4px;
  cursor: zoom-in;
}
.attachment-preview img {
  display: block;
  max-width: 100%;
  max-height: min(360px, 48vh);
  border-radius: inherit;
  object-fit: contain;
}
.generated-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.generated-title strong { width: 100%; font-size: 19px; font-weight: 660; letter-spacing: -.025em; overflow-wrap: anywhere; }
.compose-hint .btn { min-height: 26px; padding-inline: 6px; font-size: inherit; }
.composer-tools .record-indicator:empty { display: none; }
.composer.is-recording .record-indicator::before { content: "●"; padding-right: 5px; color: var(--red); }

.qa-layout { margin-bottom: 14px; }
.qa-toolbar { justify-content: space-between; margin: 10px 0 0; }
.qa-summary { gap: 10px; }
.qa-summary-head { margin-bottom: 0; }
.qa-summary p { font-size: 13px; color: var(--muted); }
.qa-summary-controls .btn { min-height: 29px; padding-inline: 9px; }
.qa-summary-links { gap: 5px; }
.qa-evidence { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.qa-evidence-meta.stack { display: grid; gap: 7px; margin-top: 0; font-size: 13px; }
.qa-evidence-meta :is(.api-block, .notice) { margin: 0; }
.qa-evidence-meta .api-block { white-space: pre-wrap; overflow-wrap: anywhere; }
.qa-evidence-shot { text-align: left; }
.qa-report .btn { justify-self: start; }
@media (max-width: 850px) { .qa-evidence { grid-template-columns: minmax(0, 1fr); } }

.composer-tools .record-indicator::before { content: none; }
.composer.is-recording .record-indicator::before { content: ""; padding: 0; }

.product-doc-content img { display: block; max-width: 100%; height: auto; margin-block: 14px 20px; }
.product-doc-revisions { border: 1px solid var(--panel-line); border-radius: 8px; padding: 10px 12px; }
.product-doc-revisions summary { cursor: pointer; font-weight: 600; }
.product-doc-revisions ul { margin-bottom: 0; }

.qa-project .qa-toolbar { margin: 0 0 10px; }
.qa-capture-status, .qa-incident-meta { margin: 0 0 8px; }
body.qa-fullscreen { overflow: hidden; }
body:is(.qa-fullscreen, .qa-capturing) #assistant-root { visibility: hidden; }
body.qa-fullscreen :is(.sidebar, .topbar, .page-head, .qa-layout > :not(.qa-project)) { visibility: hidden; }
.qa-project.qa-expanded {
  position: fixed;
  inset: 0;
  z-index: 16;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  border: 0;
  border-radius: 0;
}
.qa-project.qa-expanded .section-head, .qa-project.qa-expanded .qa-toolbar { margin: 0; }
.qa-project.qa-expanded .qa-frame { grid-row: 4; height: 100%; min-height: 0; }
.qa-network-table { overflow: auto; }
.qa-network-table table { border-collapse: collapse; width: 100%; }
.qa-network-table caption, .qa-network-table th { text-align: start; }
.qa-network-table caption { font-weight: 600; margin-bottom: 6px; }
.qa-network-table :is(th, td) { padding: 5px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qa-network-table td code { overflow-wrap: anywhere; }
.qa-network-table td:last-child { white-space: nowrap; }

body {
  --page-background: #f0f5fa;
  --paper: #fff;
  --white: var(--paper);
  --ink: #262626;
  --muted: rgb(0 0 0 / 65%);
  --quiet: #595959;
  --line: #f0f0f0;
  --divider: rgb(0 0 0 / 6%);
  --field-border: #d9d9d9;
  --line-strong: var(--field-border);
  --primary: #1668dc;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --primary-surface: #e6f4ff;
  --primary-border: #91caff;
  --blue: var(--primary);
  --blue-hover: var(--primary-active);
  --blue-soft: var(--primary-surface);
  --nav: var(--page-background);
  --nav-raised: #e6edf5;
  --nav-muted: var(--muted);
  --green: #237804;
  --green-soft: #f6ffed;
  --green-line: #b7eb8f;
  --amber: #874d00;
  --amber-soft: #fffbe6;
  --amber-line: #ffe58f;
  --red: #a8071a;
  --red-soft: #fff2f0;
  --red-line: #ffccc7;
  --panel-line: #dfe7ef;
  --panel-surface: #f7faff;
  --radius: 16px;
  --control-radius: 8px;
  --shadow: none;
  --overlay-shadow: 0 8px 28px #202b431f;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background: var(--page-background);
  font: 14px/1.5715 var(--font);
}

.shell { grid-template-columns: 200px minmax(0, 1fr); }
.sidebar { padding: 12px 10px 14px; border-color: var(--divider); background: var(--page-background); }
.brand { gap: 10px; }
.brand-mark { border-radius: 9px; background: #1677ff; }
.brand-mark > span { color: var(--white); }
.brand-text { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.brand-text small { color: var(--muted); }
.sidebar nav { margin-top: 16px; gap: 4px; }
.nav-label {
  margin: 12px 12px 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.nav-item {
  min-height: 32px;
  gap: 10px;
  padding: 5px 11px;
  border-radius: var(--control-radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.nav-item .icon { width: 16px; height: 16px; flex-basis: 16px; }
.nav-item.is-active, .nav-item[aria-current='page'] { background: var(--primary); color: var(--white); font-weight: 600; }
.nav-count { background: var(--primary-surface); color: var(--primary-active); }
.nav-item.is-active .nav-count { background: rgb(255 255 255 / 20%); color: var(--white); }
.topbar { min-height: 52px; padding: 7px 20px; border-color: var(--divider); }
.crumbs, .profile-name { font-size: 13px; }
.avatar { width: 32px; height: 32px; flex-basis: 32px; border-color: #d6ebff; color: var(--primary-active); }
.profile-menu { border-color: var(--panel-line); border-radius: 8px; box-shadow: var(--overlay-shadow); }
.profile-menu a:hover { background: var(--primary-surface); color: var(--primary-active); }

.main { padding: 20px 20px 48px; }
.page-head { margin-bottom: 16px; gap: 10px 16px; }
.page-head h1 { margin: 0 0 4px; font-size: 30px; font-weight: 600; line-height: 1.2667; letter-spacing: normal; }
.page-head p { font-size: 14px; }
.eyebrow, .page-head .eyebrow { color: var(--muted); }
.split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.split + .split, .split + .card, .card + .split { margin-top: 16px; }
.card { padding: 16px; border-color: transparent; background: var(--paper); }
.section-head { gap: 8px 12px; margin-bottom: 12px; }
.section-head :where(h2, h3) { font-size: 18px; font-weight: 600; letter-spacing: normal; }
.stack, .doc-grid { gap: 16px; }
.doc-tile h2 { font-size: 16px; font-weight: 600; letter-spacing: normal; }
.metric { min-height: 100px; gap: 7px; background: var(--paper); padding: 14px 16px; border-color: transparent; }
.metrics { gap: 16px; margin-bottom: 16px; }
.metric :where(h2, h3) { font-size: 14px; font-weight: 500; }
.metric :where(strong, b, .metric-value) { font-size: 32px; font-weight: 600; letter-spacing: normal; line-height: 1; }
.metric :where(small, .icon) { color: var(--muted); }
.metric .icon { color: var(--primary-active); }

.btn, .icon-button {
  min-height: 32px;
  gap: 8px;
  padding: 4px 15px;
  border-radius: 6px;
  border-color: var(--field-border);
  color: rgb(0 0 0 / 88%);
  font: 500 14px/22px var(--font);
}
.icon-button { width: 32px; flex-basis: 32px; padding: 0; }
.btn:hover:not(:disabled), .icon-button:hover:not(:disabled) {
  border-color: var(--primary-hover);
  background: var(--paper);
  color: var(--primary-active);
}
.btn.primary { border-color: var(--primary); background: var(--primary); color: var(--white); }
.btn.primary:is(:active, :hover):not(:disabled) { border-color: var(--primary-active); background: var(--primary-active); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { background: rgb(0 0 0 / 4%); color: var(--ink); }
.btn.danger { border-color: var(--red-line); background: var(--red-soft); color: var(--red); }
.btn.danger:hover:not(:disabled) { border-color: #ff7875; background: var(--red-soft); color: var(--red); }
.btn:disabled, .icon-button:disabled {
  border-color: var(--field-border);
  background: rgb(0 0 0 / 4%);
  color: rgb(0 0 0 / 25%);
  opacity: 1;
}
.text-button:hover { color: var(--primary-active); }
.main a:not([class]), .modal a:not([class]) { color: var(--primary-active); }
:where(.shell, .login, .modal-overlay) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.sidebar a:focus-visible { outline: 2px solid var(--primary-active); outline-offset: 2px; }
:where(.shell, .login, .modal-overlay) :where(input, select, textarea):not([type='checkbox'], [type='radio'], [type='file']) { accent-color: var(--primary); }
:is(.field, .filters, .chat-layout) :where(input:not([type='checkbox'], [type='radio'], [type='file']), select, textarea),
.release-toolbar select, .move-control {
  min-height: 32px;
  padding: 4px 11px;
  border-color: var(--field-border);
  border-radius: 6px;
}
.move-control { padding-inline: 5px; }
:is(.field, .filters, .login-card, .chat-layout, .release-toolbar) :where(input, select, textarea):not(:disabled):hover,
.move-control:not(:disabled):hover { border-color: var(--primary-hover); }
.field { gap: 6px; font-size: 14px; font-weight: 500; }
.field textarea { min-height: 92px; padding-block: 7px; }
.check-line input { accent-color: var(--primary); }

.pill, .badge {
  padding: 0 7px;
  border-color: var(--field-border);
  border-radius: 4px;
  background: #fafafa;
  color: var(--ink);
  font: 400 12px/20px var(--font);
}
:is(.pill, .badge):is(.blue, .info, .dev, .progress, .in-progress, .new, .sent) {
  border-color: var(--primary-border); background: var(--primary-surface); color: var(--primary-active);
}
:is(.pill, .badge):is(.green, .success, .ok, .prod, .positive, .done, .published, .accepted), .prod-pill {
  border-color: var(--green-line); background: var(--green-soft); color: var(--green);
}
:is(.pill, .badge):is(.amber, .warning, .warn, .pending, .stage, .medium) { border-color: var(--amber-line); }
:is(.pill, .badge):is(.red, .error, .failed, .critical, .danger, .high) { border-color: var(--red-line); }
.demo-dot, .prod-pill > span { background: #389e0d; }

.release-item { min-height: 54px; gap: 12px; }
.release-icon { width: 32px; height: 32px; flex-basis: 32px; border: 0; border-radius: 8px; color: var(--primary-active); }
.release-main :where(h3, strong), .task-card .task-title, .overview-task .text-button { font-size: 14px; font-weight: 500; line-height: 1.4; }
.release-main :where(p, small), .release-meta, .release-origin { font-size: 12px; }
.release-meta, .release-pagination, .log-line time { font-variant-numeric: tabular-nums; }
.release-page-numbers [aria-current='page'] { border-color: var(--primary-border); background: var(--primary-surface); color: var(--primary-active); }
.table { font-size: 14px; }
.table :where(th, td) { padding: 12px; }
.table th { background: #f6fbff; color: var(--ink); font: 500 14px/20px var(--font); }
.table tbody tr:hover { background: #f8f8f8; }

.board { gap: 12px; }
.column { border-color: var(--panel-line); border-radius: 12px; background: var(--panel-surface); }
.column .section-head h2 { font-size: 14px; }
.column.drop-active, .drop-active, .task-card:hover { border-color: var(--primary-border); }
.task-card { border-color: var(--panel-line); border-radius: 12px; }
.column-dot { background: #8c8c8c; }
.column-dot.doing { background: var(--primary); }
.column-dot.done { background: #389e0d; }
.tabs {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: var(--paper);
}
.tab { min-height: 38px; border: 0; border-radius: var(--control-radius); font-size: 14px; font-weight: 500; }
.tab:hover { color: var(--primary-active); }
.tabs .tab:is(.is-active, [aria-selected='true'], [aria-pressed='true']) {
  background: var(--primary-surface);
  color: var(--primary-active);
  font-weight: 600;
}
.notice { border-color: var(--primary-border); border-radius: 12px; background: var(--primary-surface); color: var(--primary-active); }
.notice:is(.warning, .warn) { border-color: var(--amber-line); }
.notice.error { border-color: var(--red-line); }
.notice.success { border-color: var(--green-line); }
.empty { padding: 16px; border: 1px dashed var(--field-border); border-radius: 8px; background: #fafafa; }
.empty .icon { color: var(--primary-active); }
.details-box, .flow > li, .intake-details { border-color: var(--panel-line); background: var(--panel-surface); }
.endpoint, .doc-tile > .mono, .prompt-box { background: var(--primary-surface); color: var(--primary-active); }
.api-block { border-color: var(--panel-line); background: var(--panel-surface); color: var(--ink); }
.api-block .section-head :where(h2, h3) { font-size: 16px; }
.log-line { color: var(--ink); }
.chat-feed { background: var(--panel-surface); padding: 11px; border-radius: 12px; }
.bubble { max-width: min(83%, 620px); padding: 7px 11px 5px; border-radius: 13px 13px 13px 4px; background: var(--paper); font-size: 14px; }
.bubble:is(.mine, .user, .is-user) { border-color: #d6ebff; border-radius: 13px 13px 4px 13px; background: var(--primary-surface); }

.modal-overlay { background: rgb(14 24 38 / 42%); }
.modal { border-radius: 16px; box-shadow: var(--overlay-shadow); }
.modal-head, .modal-body, .modal-foot { padding: 16px; }
.modal-head h2 { font-size: 20px; font-weight: 600; letter-spacing: normal; }
.modal-head .icon-button:hover:not(:disabled) { background: var(--primary-surface); color: var(--primary-active); }
.composer { border-color: var(--field-border); border-radius: 12px; }
.composer:focus-within { border-color: var(--primary-border); box-shadow: 0 0 0 2px var(--primary-surface); }
.composer textarea:focus-visible { outline: 0; }
.attachment { border-color: var(--panel-line); background: var(--panel-surface); }
.attachment-remove:hover { background: var(--primary-surface); color: var(--primary-active); }
.toast {
  padding: 11px 16px;
  border-color: var(--panel-line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 16px rgb(0 0 0 / 8%), 0 3px 6px -4px rgb(0 0 0 / 12%);
}
.toast .icon { color: var(--green); }
.qa-frame, .qa-commit, .qa-report, .qa-fixture, .qa-image { border-color: var(--panel-line); background: var(--panel-surface); }

.login {
  --ink: #1c1e1e;
  --muted: #505c69;
  --line: #dbe3eb;
  --primary: #125fc4;
  background: #f0f5fa;
}
.login-hero { background: #edf5fd; border-color: var(--line); }
.login-hero h1 {
  max-width: 560px;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.login-hero .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
.login-hero :where(p, .muted) { max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; }
.login-hero .eyebrow { font-size: 11px; }
.login-domain > span { border-color: var(--primary); }
.login-panel { background: #f0f5fa; }
.login-card { width: min(100%, 482px); padding: clamp(20px, 5vw, 30px); border: 1px solid var(--line); border-radius: 16px; }
.login-card h2 { font-size: 25px; font-weight: 600; line-height: 1.25; }
.login-card .btn.primary { min-height: 44px; padding: 8px 18px; border-radius: 8px; font-size: 15px; }
.login-card input { min-height: 42px; }
.preview-link:hover { border-color: var(--primary-border); }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .page-head h1 { font-size: 24px; line-height: 1.3; }
  .metric :where(strong, b, .metric-value) { font-size: 24px; }
}
@media (max-width: 767px) {
  .main { padding-inline: clamp(12px, 3vw, 24px); }
  .tab { min-height: 40px; }
}
@media (max-width: 680px) {
  .doc-grid, .qa-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .sidebar { border-right: 0; }
  .topbar { padding-inline: 12px; }
  .main { padding-top: 14px; }
  .card, .modal-head, .modal-body, .modal-foot { padding: 14px; }
  .login-hero h1 { font-size: clamp(28px, 7vw, 38px); }
  .login-card input { min-height: 44px; }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .metric { min-height: 84px; padding: 10px; }
  .metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  :is(.field, .filters, .chat-layout) :where(input:not([type='checkbox'], [type='radio'], [type='file']), select),
  .composer textarea, .release-toolbar select { font-size: 16px; }
  :is(.field, .filters, .chat-layout) :where(input:not([type='checkbox'], [type='radio'], [type='file']), select),
  .release-toolbar select { min-height: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  :where(.btn, .icon-button, .nav-item, .task-card, .tab) {
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(.shell, .login, .modal-overlay, .toast), :where(.shell, .login, .modal-overlay, .toast) * {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
  }
}

.mobile-brand, .mobile-nav { display: none; }

.skip-navigation {
  position: fixed;
  z-index: 9;
  top: 8px;
  left: 8px;
  padding: 5px 12px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--paper);
  color: var(--primary-active);
  transform: translateY(-150%);
}
.skip-navigation:focus-visible { transform: none; }

.nav-icon { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.main:focus { outline: none; }

.mobile-menu.modal { width: min(440px, calc(100vw - 24px)); }
.mobile-menu .modal-head .icon-button { width: 42px; height: 42px; flex-basis: 42px; }
.mobile-menu .modal-body { padding: 8px 12px 12px; }
.mobile-menu nav { display: grid; gap: 3px; }
.mobile-menu nav .nav-item { min-height: 44px; }
.mobile-menu nav p { margin: 8px 12px 2px; }

@media (max-width: 767px) {
  .shell { display: block; }
  .shell .sidebar, .topbar .crumbs, .topbar .profile-name { display: none; }
  .shell .workspace { min-width: 0; }
  .topbar { padding-inline: clamp(12px, 3vw, 24px); }
  .mobile-brand { display: block; }
  .mobile-brand .brand { min-height: 0; padding: 0; }
  .mobile-brand .brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .mobile-brand .brand-text { font-size: 16px; }
  .mobile-brand small { display: none; }
  .shell .main { padding-inline: clamp(12px, 3vw, 24px); padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav {
    position: fixed;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--divider);
    background: var(--paper);
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 56px;
    padding: 4px 1px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }
  .mobile-nav-item .nav-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .mobile-nav-item.is-active { color: var(--primary-active); font-weight: 600; }
  .mobile-nav-item:hover { background: var(--primary-surface); }
  .mobile-nav-item:focus-visible { outline-offset: -4px; }
  .toast {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 620px) {
  .release-list > .release-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 5px 10px;
  }
  .release-list > .release-item > :is(.release-main, .badge, .btn) { grid-column: 2; }
  .release-list > .release-item > .btn { justify-self: start; margin: 0; }
  .section-head > .btn.ghost { padding-inline: 0; }
  .modal-foot > .btn.primary { min-height: 44px; }
}

.demo-nav-arrow {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 13px;
}

#assistant-root {
  --assistant-inset: 18px;
  --assistant-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  position: fixed;
  z-index: 12;
  right: max(var(--assistant-inset), env(safe-area-inset-right, 0px));
  bottom: var(--assistant-bottom);
  display: grid;
  justify-items: end;
  width: min(392px, calc(100% - 2 * var(--assistant-inset)));
  pointer-events: none;
}

#assistant-root, #assistant-root * { box-sizing: border-box; }
:where(#assistant-root) :where(button, textarea) { font: inherit; }
#assistant-root button { cursor: pointer; }
#assistant-root button:disabled { opacity: .52; cursor: default; }
:where(#assistant-root) :where(a, button, textarea):focus-visible {
  outline: 2px solid var(--primary-active);
  outline-offset: 2px;
}

.assistant-launcher, .assistant-panel { pointer-events: auto; }
.assistant-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 15px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: var(--paper);
  box-shadow: var(--overlay-shadow);
  font-weight: 500;
}
.assistant-launcher:hover {
  border-color: var(--primary-active);
  background: var(--primary-active);
}
#assistant-root:has(.assistant-panel:not([hidden])) .assistant-launcher { display: none; }

.assistant-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: min(518px, calc(100dvh - var(--assistant-bottom) - max(12px, env(safe-area-inset-top, 0px))));
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--overlay-shadow);
}
.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
}
.assistant-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.assistant-title > :is(svg, .icon) { flex: 0 0 18px; color: var(--primary-active); }
.assistant-heading {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assistant-subtitle {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.assistant-close, .assistant-mic, .assistant-send {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.assistant-close { border-color: transparent; font-size: 19px; }
.assistant-close:hover:not(:disabled), .assistant-mic:hover:not(:disabled) {
  border-color: var(--primary-border);
  background: var(--primary-surface);
  color: var(--primary-active);
}
#assistant-root :where(button svg, button .icon) {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.assistant-send {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.assistant-send:hover:not(:disabled) {
  border-color: var(--primary-active);
  background: var(--primary-active);
}
.assistant-mic:is([aria-pressed='true'], .is-recording) { border-color: var(--red-line); background: var(--red-soft); color: var(--red); }

.assistant-feed {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  background: var(--panel-surface);
}
.assistant-bubble {
  width: fit-content;
  max-width: 88%;
  padding: 7px 11px 6px;
  border: 1px solid var(--panel-line);
  border-radius: 13px 13px 13px 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.assistant-bubble p { margin: 0; }
.assistant-bubble.user {
  align-self: flex-end;
  border-color: #d6ebff;
  border-radius: 13px 13px 4px 13px;
  background: var(--primary-surface);
  white-space: pre-wrap;
}
.assistant-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 9px;
  margin-top: 5px;
}
.assistant-links a {
  padding-block: 2px;
  color: var(--primary-active);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.assistant-suggestions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 8px 12px 6px;
  border-top: 1px solid var(--divider);
  scrollbar-width: thin;
}
.assistant-suggestions:empty { display: none; }
.assistant-chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 3px 8px;
  border: 1px solid var(--primary-border);
  border-radius: 6px;
  background: var(--paper);
  color: var(--primary-active);
  font-size: 12px;
  white-space: nowrap;
}
.assistant-chip:hover:not(:disabled) { background: var(--primary-surface); }
.assistant-chip:focus-visible { outline-offset: -2px; }
.assistant-earlier { align-self: center; }

.assistant-compose {
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
  margin: 6px 12px 12px;
  padding: 7px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--paper);
}
.assistant-compose:focus-within {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 2px var(--primary-surface);
}
.assistant-compose textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 41px;
  max-height: 96px;
  padding: 3px 4px;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  resize: none;
}
.assistant-compose textarea:focus-visible { outline: 0; }
.assistant-compose textarea::placeholder { color: var(--quiet); }
.assistant-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.assistant-status, .assistant-voice-state, .assistant-voice-note {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.assistant-voice-state { margin-right: auto; }
.assistant-voice-state:empty, .assistant-voice-note:empty { display: none; }
.assistant-voice-state[role='alert'] { color: var(--red); }

@media (min-width: 768px) {
  body:has(#assistant-root .assistant-panel:not([hidden])) .toast { right: min(426px, 50vw); }
  body:has(#assistant-root .assistant-launcher:not([hidden])):not(:has(#assistant-root .assistant-panel:not([hidden]))) .toast { bottom: 72px; }
}
@media (max-width: 767px) {
  #assistant-root {
    --assistant-inset: 12px;
    --assistant-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  .assistant-close, .assistant-mic, .assistant-send {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .assistant-launcher { min-height: 44px; }
  .assistant-chip { min-height: 36px; }
  .assistant-compose textarea { font-size: 16px; }
  body:has(#assistant-root .assistant-launcher:not([hidden])):not(:has(#assistant-root .assistant-panel:not([hidden]))) .toast {
    bottom: calc(122px + env(safe-area-inset-bottom, 0px));
  }
  body:has(#assistant-root .assistant-panel:not([hidden])) .toast { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; }
}
@media (max-height: 435px) {
  .assistant-header { padding-block: 4px; }
  .assistant-subtitle { display: none; }
  .assistant-suggestions { padding-block: 5px; }
  .assistant-compose { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  #assistant-root button { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
}

.assistant-brand {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-surface);
  color: var(--primary-active);
}
.assistant-brand svg { width: 18px; height: 18px; }
.assistant-bubble.reply p { white-space: pre-line; }
.assistant-links button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--primary-active);
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.assistant-links a:hover, .assistant-links button:hover { color: var(--primary); }
.assistant-suggestions { flex-wrap: wrap; }
.assistant-compose textarea { field-sizing: content; }
.assistant-voice-note .assistant-chip { margin: 4px 6px 0 0; white-space: normal; }
.assistant-voice-note p { margin: 0; }

.chat-status { margin: 0; }
.chat-reply > p { margin: 0; white-space: pre-line; }
