:root {
  --bg:#fff;
  --ink:#24252c;
  --muted:#747682;
  --line:#e9e9ef;
  --purple:#6451d8;
  --soft:#f1efff;
  --green:#278267;
  --side:#f8f8fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b6a9ff;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c9c0f3;
}
svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
button {
  min-height: 40px;
}
button:disabled {
  cursor: default;
  opacity: .5;
}
a {
  color: var(--purple);
}
.concept {
  height: 30px;
  background: #f0eef9;
  color: #756c99;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .5px;
}
.shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: calc(100dvh - 30px);
}
.sidebar {
  position: sticky;
  top: 0;
  height: calc(100dvh - 30px);
  background: var(--side);
  padding: 29px 18px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 650;
  margin: 0 10px 32px;
}
.mark {
  color: var(--purple);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #ebe7ff;
  border-radius: 10px;
}
.mark svg {
  width: 22px;
  height: 22px;
}
.new-task {
  background: white;
  border: 1px solid #dcdce5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 550;
  box-shadow: 0 2px 3px #20203003;
}
.nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #858591;
  font-size: 12px;
  margin: 24px 10px 7px;
}
.icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.icon:hover,
.quiet:hover {
  background: #efedf7;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  color: #636572;
  margin-bottom: 5px;
}
.navitem.active {
  color: #5342bc;
  background: #ebe7fb;
  font-weight: 550;
}
.navitem:hover {
  background: #efedf6;
}
.navbottom {
  margin-top: auto;
  padding-top: 36px;
}
.profile {
  border-top: 1px solid var(--line);
  margin: 17px 8px 0;
  padding-top: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8e5f2;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #736594;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 84px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1f1f4;
}
.topname {
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 9px;
}
.top-actions {
  display: flex;
  gap: 13px;
}
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #737382;
  font-size: 13px;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 894px;
  margin: auto;
  padding: 70px 48px 48px;
}
.home-title {
  font-size: 30px;
  letter-spacing: -.5px;
  font-weight: 600;
  margin: 0 0 11px;
}
.subtitle {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 31px;
}
.composer {
  border: 1px solid #dcd8ec;
  border-radius: 16px;
  background: white;
  box-shadow: 0 5px 20px #352a6a06;
  overflow: hidden;
}
.composer textarea {
  display: block;
  resize: vertical;
  border: 0;
  width: 100%;
  min-height: 131px;
  max-height: 250px;
  padding: 23px 24px;
  font-size: 15px;
  line-height: 1.8;
  background: transparent;
  color: #343341;
  outline: none;
}
.composer textarea::placeholder {
  color: #9897a5;
}
.compose-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 13px;
  flex-wrap: wrap;
}
.picker {
  font-size: 12px;
  background: #f7f6fa;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #666173;
}
.picker svg {
  width: 15px;
  height: 15px;
}
.spacer {
  flex: 1;
}
.primary {
  background: var(--purple);
  border: 1px solid var(--purple);
  color: white;
  border-radius: 9px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 19px;
  font-weight: 500;
}
.primary:hover {
  background: #5442c3;
}
.secondary {
  border: 1px solid #dedde7;
  background: white;
  border-radius: 9px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.section-head {
  margin: 49px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-head h2 {
  font-size: 14px;
  font-weight: 550;
  margin: 0;
}
.count {
  color: #9b9aa5;
  font-size: 12px;
}
.taskrow {
  display: flex;
  text-align: left;
  width: 100%;
  align-items: center;
  padding: 19px 0;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.taskrow:hover {
  background: #faf9fd;
}
.task-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #f5f3fa;
  border-radius: 10px;
  color: #82789a;
}
.tasktitle {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 7px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.status {
  font-size: 12px;
  white-space: nowrap;
  border-radius: 5px;
  padding: 5px 8px;
  color: #765fba;
  background: #f3effd;
}
.status.done {
  color: #5d7b71;
  background: #eff5f2;
}
.crumb {
  font-size: 13px;
  color: #8d889b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 25px;
}
.crumb button {
  color: #8d889b;
  padding: 0;
  min-height: 24px;
}
.detail {
  padding-top: 34px;
  max-width: 894px;
}
.detail h1 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 16px;
}
.meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  color: #89848f;
  font-size: 12px;
}
.document {
  padding: 30px 33px;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.9;
  color: #484650;
  background: #fff;
}
.document .filetype {
  font-size: 11px;
  letter-spacing: 1px;
  color: #a49daf;
  margin-bottom: 20px;
}
.document h2 {
  font-size: 22px;
  font-weight: 600;
  color: #302d39;
  margin: 0 0 20px;
}
.document h3 {
  font-size: 15px;
  margin: 24px 0 7px;
  color: #3c3746;
}
.document p {
  margin: 0 0 12px;
}
.document ul {
  padding-left: 21px;
  margin: 8px 0;
}
.doc-note {
  border-left: 3px solid #cec5f2;
  padding: 9px 15px;
  background: #faf8ff;
  font-size: 13px;
}
.source-link {
  font-size: 12px;
  color: #8a829a;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
}
.reviewbar {
  position: sticky;
  bottom: 0;
  background: #ffffffed;
  backdrop-filter: blur(14px);
  padding: 18px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.reviewbar .small {
  flex: 1;
}
.process {
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: #85808e;
  font-size: 12px;
}
.process summary {
  cursor: pointer;
  min-height: 32px;
}
.process p {
  padding-left: 20px;
  line-height: 1.8;
}
.working {
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 12px;
}
.runline {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  align-items: center;
}
.runline .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0ecfb;
  color: #7961c3;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.runline p {
  margin: 0 0 5px;
}
.request {
  padding: 17px 21px;
  background: #f7f6fa;
  line-height: 1.8;
  border-radius: 11px;
  margin-bottom: 25px;
}
.request .small {
  display: block;
  margin-bottom: 6px;
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}
.titlebar h1 {
  font-size: 27px;
  margin: 0;
  font-weight: 600;
}
.listcontent {
  padding-top: 43px;
}
.agentrow {
  display: flex;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.agent-avatar {
  width: 43px;
  height: 43px;
  background: #efecfb;
  color: #7761b1;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.agentrow strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 7px;
}
.agentrow .desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.pill {
  font-size: 11px;
  border-radius: 5px;
  background: #f5f4f8;
  color: #88808d;
  padding: 4px 7px;
  display: inline-block;
}
.form {
  max-width: 580px;
  margin-top: 32px;
}
.field {
  margin-bottom: 24px;
}
.field label,
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  border: 1px solid #dedce6;
  border-radius: 9px;
  padding: 12px 13px;
  background: white;
  color: #433e4b;
  font-size: 14px;
  line-height: 1.6;
}
.field textarea {
  min-height: 102px;
  resize: vertical;
}
.hint {
  font-size: 12px;
  color: #928999;
  line-height: 1.7;
  margin: 9px 0 0;
}
.provider-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.provider {
  border: 1px solid #dedce6;
  border-radius: 9px;
  padding: 13px 17px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  text-align: left;
}
.provider.selected {
  border-color: #b2a2e4;
  background: #f6f2ff;
  color: #6951af;
}
.provider .radio {
  width: 15px;
  height: 15px;
  border: 1px solid #ccc3d8;
  border-radius: 50%;
}
.provider.selected .radio {
  border: 4px solid #8d74cc;
}
.permissions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e4e0eb;
  padding: 13px;
  border-radius: 9px;
  background: #fbfafc;
  font-size: 13px;
}
.switch {
  background: #8b75c2;
  width: 29px;
  height: 17px;
  border-radius: 9px;
  position: relative;
}
.switch:after {
  content: "";
  position: absolute;
  background: white;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  top: 2px;
  right: 2px;
}
.advanced {
  font-size: 12px;
  color: #8a8193;
  margin: 22px 0;
}
.advanced summary {
  cursor: pointer;
  min-height: 36px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.file-row {
  display: flex;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  gap: 13px;
}
.file-row strong {
  font-size: 14px;
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
}
.file-row > svg {
  color: #a499b6;
}
.storage-note {
  background: #f8f7fb;
  border-radius: 9px;
  padding: 16px 18px;
  font-size: 12px;
  color: #91869f;
  line-height: 1.8;
  margin: 23px 0;
}
.member {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #24202d30;
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}
.overlay.open {
  display: flex;
}
.modal {
  width: 440px;
  max-width: 100%;
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 16px 80px #29202d21;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.modal h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.modal p {
  line-height: 1.8;
  color: #81788c;
  font-size: 13px;
}
.modal-option {
  width: 100%;
  text-align: left;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 9px;
  margin-bottom: 8px;
  border: 1px solid #ece7f3;
}
.modal-option:hover {
  background: #f8f4ff;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #3b3448;
  color: white;
  font-size: 13px;
  padding: 13px 21px;
  border-radius: 10px;
  max-width: 88%;
  z-index: 30;
  box-shadow: 0 10px 40px #2222;
  display: none;
  line-height: 1.6;
}
.toast.show {
  display: block;
}
.empty {
  padding: 50px 0;
  text-align: center;
  color: #999;
}
.mobile-backdrop {
  display: none;
}
@media (min-width: 1450px) {
  .content {
    padding-top: 90px;
  }
  .detail,
  .listcontent {
    padding-top: 42px;
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    padding: 25px 13px;
  }
  .topbar {
    padding: 0 27px;
  }
  .content {
    padding: 48px 30px;
  }
  .detail,
  .listcontent {
    padding-top: 30px;
  }
  .home-title {
    font-size: 27px;
  }
  .document {
    padding: 25px;
  }
}
@media (max-width: 640px) {
  .concept {
    height: 26px;
    font-size: 10px;
  }
  .shell {
    display: block;
    min-height: calc(100dvh - 26px);
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 26px;
    left: 0;
    width: 240px;
    height: calc(100dvh - 26px);
    z-index: 9;
    padding: 26px 18px;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-backdrop.open {
    display: block;
    position: fixed;
    inset: 26px 0 0;
    background: #1e173833;
    z-index: 8;
  }
  .mobile-menu {
    display: inline-flex;
    margin-left: -8px;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
    gap: 7px;
  }
  .topname {
    gap: 4px;
    min-width: 0;
    font-size: 14px;
    flex: 1;
  }
  .topname > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-actions {
    gap: 0;
  }
  .top-actions .quiet {
    font-size: 12px;
    padding: 8px;
  }
  .top-actions svg {
    display: none;
  }
  .content {
    padding: 48px 22px 24px;
  }
  .home-title {
    font-size: 25px;
    margin-bottom: 11px;
  }
  .subtitle {
    font-size: 13px;
    max-width: 285px;
    margin-bottom: 25px;
    line-height: 1.85;
  }
  .composer {
    border-radius: 13px;
  }
  .composer textarea {
    padding: 17px;
    min-height: 155px;
    font-size: 14px;
  }
  .compose-bottom {
    gap: 6px;
    padding: 9px 10px 10px;
  }
  .picker {
    font-size: 11px;
    padding: 7px;
    gap: 4px;
  }
  .compose-bottom .primary {
    padding: 9px 12px;
    min-height: 38px;
    font-size: 12px;
  }
  .compose-bottom .primary svg {
    display: none;
  }
  .compose-bottom .spacer {
    min-width: 0;
  }
  .section-head {
    margin-top: 35px;
  }
  .taskrow {
    gap: 10px;
    padding: 20px 0;
  }
  .task-symbol {
    width: 29px;
    height: 32px;
    background: transparent;
  }
  .tasktitle {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 5px;
  }
  .taskrow .status {
    font-size: 10px;
    padding: 5px;
  }
  .small {
    font-size: 11px;
  }
  .detail,
  .listcontent {
    padding-top: 24px;
  }
  .detail h1 {
    font-size: 23px;
  }
  .crumb {
    margin-bottom: 16px;
  }
  .meta {
    gap: 9px;
    margin-bottom: 23px;
    line-height: 1.6;
  }
  .document {
    padding: 21px 18px;
    font-size: 13px;
    line-height: 1.95;
  }
  .document h2 {
    font-size: 20px;
  }
  .document h3 {
    font-size: 14px;
  }
  .document .filetype {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .reviewbar {
    padding: 15px 0 10px;
    flex-wrap: wrap;
    bottom: 0;
    gap: 8px;
  }
  .reviewbar .small {
    flex-basis: 100%;
    margin-bottom: 5px;
  }
  .reviewbar .primary,
  .reviewbar .secondary {
    flex: 1;
    font-size: 13px;
    padding: 10px 12px;
  }
  .titlebar h1 {
    font-size: 24px;
  }
  .titlebar .primary {
    font-size: 12px;
    padding: 9px 12px;
  }
  .agentrow {
    gap: 12px;
  }
  .agentrow .desc {
    line-height: 1.7;
    font-size: 12px;
  }
  .agentrow .secondary {
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .agent-avatar {
    width: 36px;
    height: 36px;
  }
  .form {
    margin-top: 26px;
  }
  .form-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 0 6px;
  }
  .form-actions > button {
    flex: 1;
  }
  .field {
    margin-bottom: 22px;
  }
  .field input,
  .field textarea {
    font-size: 14px;
  }
  .provider {
    padding: 11px;
    font-size: 13px;
    gap: 9px;
  }
  .working {
    padding: 19px;
  }
  .runline .small {
    line-height: 1.8;
  }
  .file-row {
    gap: 10px;
  }
  .file-row .quiet {
    padding: 7px;
    font-size: 12px;
  }
  .file-row strong {
    font-size: 13px;
  }
  .modal {
    padding: 21px;
  }
  .modal p {
    font-size: 12px;
  }
  .storage-note {
    padding: 14px;
    font-size: 11px;
  }
}
@media (max-width: 350px) {
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    padding: 0 13px;
  }
  .top-actions .quiet {
    padding: 7px;
  }
  .compose-bottom {
    gap: 4px;
  }
  .picker {
    font-size: 10px;
  }
  .picker svg {
    width: 12px;
  }
  .home-title {
    font-size: 23px;
  }
  .task-symbol {
    display: none;
  }
  .brand {
    margin-bottom: 25px;
  }
}
.shell {
  min-height: 100dvh;
}
.sidebar {
  height: 100dvh;
}
.task-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.task-label small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.projects {
  overflow-y: auto;
  min-height: 50px;
}
.navitem span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navbottom {
  padding-top: 24px;
}
.picker select {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  max-width: 155px;
  outline: none;
}
.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 15px;
}
.source-chips:empty {
  display: none;
}
.source-chips span {
  font-size: 11px;
  color: #81758e;
  background: #f5f2fa;
  border-radius: 5px;
  padding: 5px 8px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.textlink {
  color: var(--purple);
  padding: 0 5px;
}
.collaboration-option {
  font-size: 11px;
  padding: 8px 6px;
}
.warning {
  background: #fff3e6;
  color: #9d672c;
}
.version-notice,
.pending-message {
  padding: 14px 18px;
  border: 1px solid #e6e0f1;
  border-radius: 9px;
  background: #faf8fd;
  margin: 15px 0;
  font-size: 12px;
  line-height: 1.8;
}
.version-notice button {
  min-height: 25px;
}
.pending-message p {
  margin: 6px 0;
  white-space: pre-wrap;
}
.working {
  margin-top: 18px;
}
.request {
  white-space: pre-wrap;
}
.meta select {
  font-size: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.process-content {
  font-size: 13px;
  line-height: 1.9;
  padding-bottom: 10px;
  overflow-wrap: anywhere;
}
.process-content p {
  white-space: pre-wrap;
  padding: 8px 0;
  margin: 0;
}
.markdown {
  overflow-wrap: anywhere;
}
.markdown > *:first-child {
  margin-top: 0;
}
.markdown h1 {
  font-size: 25px;
}
.markdown h2 {
  font-size: 21px;
  margin-top: 26px;
}
.markdown h3 {
  font-size: 17px;
}
.markdown pre {
  white-space: pre-wrap;
  overflow: auto;
  background: #f8f7fa;
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
}
.markdown table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.markdown th,
.markdown td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.markdown blockquote {
  border-left: 3px solid #d8cfec;
  padding-left: 15px;
  color: #71687f;
}
.markdown ul,
.markdown ol {
  padding-left: 22px;
}
.search-input,
.search-label input {
  border: 1px solid #e2ddea;
  border-radius: 8px;
  padding: 11px 13px;
  width: 100%;
  background: #fff;
}
.check {
  display: flex;
  gap: 11px;
  padding: 15px 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
}
.check input {
  accent-color: var(--purple);
  width: 17px;
  height: 17px;
}
.check small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.form-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
}
.form-actions .small {
  margin-right: auto;
  align-self: center;
}
.skip-link {
  position: fixed;
  top: -50px;
  left: 15px;
  z-index: 99;
}
.skip-link:focus {
  top: 8px;
  background: white;
  padding: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: 85dvh;
  color: var(--ink);
  box-shadow: 0 16px 80px #29202d21;
}
dialog::backdrop {
  background: #24202d33;
  backdrop-filter: blur(2px);
}
dialog h2 {
  font-size: 21px;
}
dialog .markdown {
  line-height: 1.9;
  font-size: 14px;
}
dialog .field {
  margin-top: 20px;
}
#notice {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  background: #3b3448;
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  z-index: 100;
  font-size: 13px;
  max-width: 90%;
  display: none;
  line-height: 1.7;
}
#notice.show {
  display: block;
}
.mobile-backdrop {
  border: 0;
  padding: 0;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .sidebar {
    top: 0;
    height: 100dvh;
  }
  .mobile-backdrop.open {
    inset: 0;
  }
  .content {
    padding-top: 43px;
  }
  .detail,
  .listcontent {
    padding-top: 24px;
  }
  .compose-bottom {
    gap: 4px;
  }
  .collaboration-option {
    font-size: 10px;
    padding: 5px 3px;
  }
  .picker select {
    max-width: 105px;
    font-size: 11px;
  }
  .agentrow {
    flex-wrap: wrap;
  }
  .agentrow > .task-label {
    flex-basis: calc(100% - 60px);
  }
  .agentrow > .quiet {
    margin-left: 48px;
  }
  .agentrow > .secondary {
    margin-left: auto;
  }
  .reviewbar {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .markdown h1 {
    font-size: 22px;
  }
  .markdown h2 {
    font-size: 19px;
  }
  .markdown h3 {
    font-size: 15px;
  }
  dialog {
    padding: 20px;
    max-height: 90dvh;
  }
  .projects {
    flex: 1;
    overflow-y: auto;
  }
  .navbottom {
    flex: none;
  }
  .form-actions {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .topname > span {
    max-width: 180px;
  }
}
@media (max-width: 350px) {
  .collaboration-option {
    flex-basis: 100%;
    order: 2;
    justify-content: flex-start;
    min-height: 30px;
  }
  .topname > span {
    max-width: 140px;
  }
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.task-model-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin:0 0 22px;border:1px solid #e5def4;border-radius:10px;background:#faf8ff}
.task-model-entry>div{min-width:0;font-size:13px;line-height:1.6}
.task-model-entry strong,.task-model-entry span,.task-model-entry small{display:block}
.task-model-entry span,.task-model-entry small{overflow-wrap:anywhere;color:#766b89}
.task-model-entry button{flex-shrink:0}
@media(max-width:600px){.task-model-entry{align-items:flex-start;flex-direction:column;gap:10px}.task-model-entry button{width:100%}}

/* Coze-inspired composer: current values in the footer, choices in an anchored menu. */
.compose-bottom{flex-wrap:nowrap;gap:8px;padding:8px 12px 12px}
.composer-options{display:flex;align-items:center;gap:3px;min-width:0;flex:1}
.composer-choice{min-width:0}
.composer-choice:nth-child(2){flex:0 1 auto}
.composer-pick{height:34px;max-width:100%;display:flex;align-items:center;gap:3px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:#55535f;font-size:12px;white-space:nowrap}
.composer-pick>span{overflow:hidden;text-overflow:ellipsis;max-width:165px}
.composer-pick .picker-short{display:none}
.composer-pick>svg{width:14px;height:14px;flex-shrink:0}
.composer-pick:hover,.composer-pick[aria-expanded=true]{background:#f3f2f5;color:#242329}
.composer-pick:focus-visible,.composer-more:focus-visible{outline:2px solid #7464ce;outline-offset:2px}
.composer-pick:disabled{opacity:.45;cursor:not-allowed}
.composer-pick.is-fast{color:#6750c9;background:#f5f1ff}
.composer-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;margin-left:auto}
.composer-more{position:relative;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:transparent;color:#696673}
.composer-more:hover{background:#f3f2f5}
.composer-more svg{width:19px;height:19px}
.composer-more i{position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:var(--purple)}
.compose-bottom .primary{height:36px;min-height:36px;padding:0 13px;font-size:12px;border-radius:9px}
.composer-menu{position:fixed;inset:auto;margin:0;padding:6px;background:#fff;border:1px solid #e8e7ec;border-radius:12px;box-shadow:0 6px 28px #2821361a;color:#393640;overflow:auto;overscroll-behavior:contain;max-width:calc(100vw - 24px)}
.composer-menu::backdrop{background:transparent}
.composer-menu-title{padding:7px 9px;color:#99949f;font-size:11px}
.composer-menu button{display:flex;width:100%;align-items:center;gap:8px;justify-content:space-between;text-align:left;padding:10px;border-radius:7px;background:transparent;font-size:13px;color:inherit}
.composer-menu button:hover,.composer-menu button:focus-visible{background:#f6f5f8;outline:none}
.composer-menu button[aria-selected=true]{color:#6650bb}
.composer-menu button strong{font-weight:500}
.composer-menu button small{display:block;margin-top:4px;font-size:11px;line-height:1.6;color:#8b8593}
.composer-menu button svg{width:16px;height:16px;flex-shrink:0}
#composer-extras button{justify-content:flex-start}
@media(max-width:640px){
 .compose-bottom{display:grid;grid-template-columns:1fr auto;gap:6px;padding:6px 8px 8px}
 .composer-options{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.6fr) minmax(0,.8fr) minmax(0,.9fr);gap:1px}
 .composer-actions{display:contents}
 .composer-more{grid-column:1;grid-row:1}
 .compose-bottom .primary{grid-column:2;grid-row:1;height:34px;min-height:34px}
 .composer-pick{width:100%;height:40px;padding:0 1px;font-size:12px;gap:0;justify-content:center}
 .composer-pick>svg{width:12px;height:12px}
 .composer-pick[data-picker=owner]>svg:first-child{display:none}
 .composer-pick[data-picker=task-effort] .picker-value{display:none}
 .composer-pick .picker-short{display:inline}
 .composer textarea{min-height:125px}
 .composer-menu button{min-height:44px}
}

@media(max-width:350px){.composer-pick{font-size:11px}}

.chat-nav { margin-left: 17px; width: calc(100% - 17px); padding-block: 6px; font-size: 12px; }
.chat-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-page { display:flex; flex-direction:column; max-width:868px; margin:auto; padding:0 32px 18px; height:calc(100dvh - 66px); min-height:320px; }
.chat-heading { display:flex; align-items:center; gap:12px; padding:16px 0 12px; }
.chat-heading h1 { margin:0; font-size:16px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-model { flex-shrink:0; margin-left:auto; }
.chat-feed { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:18px 3px 24px; scrollbar-gutter:stable; }
.chat-user { display:flex; flex-direction:column; align-items:flex-end; margin:0 0 28px; }
.chat-user > div { max-width:84%; padding:12px 16px; background:#f2f0f8; border-radius:16px 16px 4px 16px; white-space:pre-wrap; overflow-wrap:anywhere; }
.chat-user small { margin-top:6px; color:#6d6878; }
.chat-assistant { margin-bottom:30px; overflow-wrap:anywhere; }
.chat-speaker { display:flex; align-items:center; gap:8px; color:#666172; font-size:12px; margin-bottom:10px; }
.chat-speaker svg { width:16px; height:16px; color:var(--purple); }
.chat-file-changes { display:grid; gap:4px; margin:10px 0 0; padding:0; list-style:none; }
.chat-file-changes li { display:flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--muted); font-size:12px; }
.chat-file-changes svg { width:14px; height:14px; flex:none; color:var(--purple); }
.chat-file-changes code { min-width:0; overflow-wrap:anywhere; }
.chat-progress { color:#6d6878; font-size:13px; padding:8px 0; }
.chat-progress button { margin-left:8px; }
.chat-compose { flex-shrink:0; }
.chat-compose textarea { min-height:72px; max-height:180px; padding:14px 16px 6px; }
.chat-compose-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:4px 10px 10px; }
.chat-compose-actions .primary { padding:7px 12px; }
.chat-review-choice { display:grid; gap:4px; min-width:0; color:var(--muted); }
.chat-review-choice select { max-width:100%; padding:5px; }
.chat-review-choice small { font-size:11px; }
.detail .chat-compose { margin-top:16px; }
@media(max-width:640px) {
  .chat-page { padding:0 14px max(10px,env(safe-area-inset-bottom)); height:calc(100dvh - 61px); }
  .chat-heading { padding:11px 0 6px; }
  .chat-feed { padding-top:12px; }
  .chat-user > div { max-width:90%; }
  .chat-compose textarea { font-size:16px; }
}

/* Conversation-first shell, informed by the installed Grok Bot client's interaction layout.
   All visuals below are Qingzhou's own; execution and data protocols are unchanged. */
:root{--ink:#252b2c;--muted:#7d8585;--line:#e8ecea;--purple:#287c71;--soft:#e9f3ef;--side:#f4f6f4}
body{background:#fafbf9}
button:focus-visible,a:focus-visible{outline-color:#72b6a7}
input:focus,textarea:focus,select:focus{outline-color:#8dbeb2}
.conversation-shell{display:grid;grid-template-columns:272px minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}
.conversation-shell.has-inspector{grid-template-columns:272px minmax(0,1fr) 310px}
.conversation-shell .sidebar{position:relative;inset:auto;width:auto;height:100%;padding:20px 14px 12px;background:var(--side);border-right:1px solid #e3e8e3;display:flex;min-height:0}
.sidebar-top{display:flex;align-items:center;gap:4px;margin-bottom:22px}
.conversation-shell .brand{padding:0 8px;margin:0 auto 0 0;gap:8px;font-size:20px;letter-spacing:1px;font-weight:650}
.conversation-shell .mark{background:#27796e;color:#fff;width:29px;height:29px;border-radius:10px}
.conversation-shell .sidebar-top .icon{width:34px;height:34px;min-height:34px;border-radius:50%;flex:none;background:transparent;color:#65706b}
.conversation-shell .sidebar-top .icon:hover{background:#e7ece7}
.conversation-shell .new-task{padding:0;margin:0;box-shadow:none;border:0;display:grid;place-items:center}
.project-switch{display:flex;align-items:center;gap:8px;border:1px solid #e0e6e0;background:#fff;border-radius:10px;padding:10px 12px;min-width:0;width:100%;text-align:left}
.project-switch span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:550}
.project-switch svg{width:16px;height:16px;color:#858e87}
.sidebar-scroll{flex:1;min-height:0;overflow:auto;margin:10px -3px 0;padding:0 3px;scrollbar-width:thin}
.conversation-shell .nav-label{padding:14px 8px 7px;margin:0;font-size:11px;color:#889188;font-weight:500;letter-spacing:.5px;display:flex;align-items:center;justify-content:space-between}
.nav-label .icon{min-height:24px;width:24px;height:24px}
.nav-label .icon svg{width:14px;height:14px}
.bot-row{width:100%;display:flex;align-items:center;gap:10px;padding:9px;border-radius:11px;text-align:left;min-width:0}
.bot-row:hover,.bot-row.selected{background:#e7ede7}
.bot-row>span:last-child{display:grid;gap:4px;min-width:0}
.bot-row strong{font-size:13px;font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bot-row small{font-size:11px;color:#849087}
.bot-face{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;border-radius:12px 14px 11px 14px;background:#dfece6;color:#3c6e5f;font-size:14px;font-weight:600;line-height:1}
.bot-face.tone-1{background:#eee5db;color:#957146}.bot-face.tone-2{background:#e1e9f0;color:#55778e}.bot-face.tone-3{background:#ebe5ef;color:#866798}.bot-face.tone-4{background:#e9ecd7;color:#7d864a}
.bot-face.large{width:68px;height:68px;font-size:28px;border-radius:26px 24px 28px 20px;margin-bottom:21px}
.conversation-row{display:flex;flex-direction:column;gap:6px;padding:11px 12px;width:100%;margin:1px 0;border-radius:10px;text-align:left;min-height:62px;color:#626b65}
.conversation-row:hover{background:#e9eee9}.conversation-row.active{background:#e1e9e1;color:#293e32}
.conversation-row-top{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.conversation-row-top strong{font-size:13px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}
.conversation-preview{display:block;width:100%;font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#899087}
.live-dot,.review-dot{display:block;flex:none;width:6px;height:6px;border-radius:50%;background:#2a9d88}.review-dot{background:#b58a44}
.sidebar-empty{font-size:12px;padding:4px 10px;color:#9aa198}.empty-assistant{padding:8px;font-size:12px;color:#648172}
.conversation-shell .navbottom{padding-top:12px;margin-top:12px;border-top:1px solid #e1e7df}
.conversation-shell .navitem{padding:8px 10px;gap:10px;font-size:13px;min-height:36px}
.conversation-shell .navitem svg{width:17px;height:17px;color:#78857a}
.local-label{display:flex;align-items:center;gap:7px;color:#a0a89f;font-size:10px;padding:14px 11px 2px}
.local-label i{width:5px;height:5px;border-radius:50%;background:#8fa791}
.conversation-shell .workspace{margin:0;min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden;background:#fdfefb}
.conversation-shell .topbar{height:68px;min-height:68px;padding:0 30px;background:#fdfefbe8;border-bottom:1px solid #edf0e9;position:relative;inset:auto}
.topname{min-width:0;gap:10px}.topname>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:550}
.topbar .bot-face{width:29px;height:29px;border-radius:10px;font-size:12px}
.top-actions .quiet{min-height:34px;padding:5px 10px;gap:6px;font-size:12px;border:1px solid #e3e8df;border-radius:18px;background:#fff;color:#808979}
.top-actions .quiet[aria-expanded=true]{background:#ebf2e8;color:#416648}
.top-actions svg{width:15px;height:15px}
.conversation-shell #content{flex:1;min-height:0;overflow:auto;position:relative;outline:none}
.conversation-shell .content{padding:32px;max-width:980px}
.conversation-shell .content h1{font-size:25px;line-height:1.4}
.new-conversation{height:100%;min-height:380px;max-width:840px;margin:auto;display:flex;flex-direction:column;padding:0 32px 22px}
.conversation-welcome{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 0 60px;text-align:center}
.conversation-welcome h1{font-size:25px;font-weight:550;letter-spacing:.2px;margin:0 0 12px;color:#38463b}
.conversation-welcome p{font-size:13px;color:#949e90;margin:0;line-height:1.8}
.new-compose-wrap{flex:none}
.conversation-shell .composer{border:1px solid #dde4d8;border-radius:20px;background:white;box-shadow:0 4px 20px #263f2910;overflow:visible;margin:0}
.conversation-shell .composer:focus-within{border-color:#a9c3b0;box-shadow:0 4px 24px #203b2814}
.conversation-shell .composer textarea{min-height:70px;max-height:180px;padding:18px 18px 4px;font-size:14px;line-height:1.7;border-radius:20px;outline:none;background:transparent;resize:none}
.conversation-shell .composer textarea::placeholder{color:#a2aa9b}
.conversation-shell .compose-bottom{padding:8px 11px 10px;gap:4px;border:0;align-items:center}
.conversation-shell .composer-options{gap:1px}
.conversation-shell .composer-pick{color:#707c6c;font-size:11px;padding:0 6px;min-height:32px;border-radius:7px}
.conversation-shell .composer-pick>span{max-width:135px}
.conversation-shell .composer-pick>svg{width:12px;height:12px}
.conversation-shell .composer-pick.is-fast{color:#2a7765;background:#e9f3eb}
.conversation-shell .composer-actions{gap:3px}
.conversation-shell .primary{background:#2c786b;color:white;border:0;box-shadow:none}
.conversation-shell .compose-bottom .primary,.conversation-shell .chat-compose-actions .primary{border-radius:16px;padding:6px 12px;min-height:34px;height:34px;font-size:12px;white-space:nowrap}
.conversation-shell .primary:hover{background:#23685d}
.conversation-shell .composer-more{color:#87917f;border-radius:50%;min-height:32px;height:32px;width:32px}
.conversation-shell .hint{font-size:11px;color:#96a08f;line-height:1.8;margin:10px 0 0}
.new-compose-wrap>.hint{text-align:center}
.conversation-shell .source-chips{padding:0 18px}.source-chips:empty{display:none}
.conversation-shell .chat-page{height:100%;min-height:0;max-width:880px;padding:0 32px 22px;position:relative}
.conversation-shell .chat-heading{flex:none;padding:14px 0 2px;color:#a2aa9c;font-size:11px;justify-content:center}
.chat-heading>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:90%}
.conversation-shell .chat-feed{padding:24px 3px 28px;scrollbar-width:thin;scrollbar-color:#d8e0d5 transparent}
.conversation-shell .chat-user{margin-bottom:24px}
.conversation-shell .chat-user>div{background:#e3eee5;color:#314a38;padding:12px 17px;max-width:85%;font-size:14px;line-height:1.8;border:1px solid #dbe7dc;border-radius:17px 17px 4px 17px}
.conversation-shell .chat-user small{font-size:10px;color:#99a38f}
.conversation-shell .chat-assistant{margin-bottom:26px;max-width:94%;min-width:0}
.conversation-shell .chat-speaker{font-size:11px;color:#8b9683;margin-bottom:8px;gap:7px}
.chat-speaker .bot-face{width:23px;height:23px;font-size:10px;border-radius:8px}
.chat-bubble{background:#f0f3ed;border:1px solid #e9ede5;border-radius:4px 17px 17px 17px;padding:14px 19px;color:#344032;line-height:1.9;font-size:14px;overflow-wrap:anywhere;width:fit-content;max-width:100%;min-width:100px}
.chat-bubble>:first-child{margin-top:0}.chat-bubble>:last-child{margin-bottom:0}
.chat-bubble h1,.chat-bubble h2,.chat-bubble h3{font-size:17px!important;line-height:1.5}
.chat-bubble pre{max-width:100%;overflow:auto;background:#e6ece3}
.chat-bubble table{display:block;overflow:auto;max-width:100%;font-size:12px}
.conversation-shell .chat-file-changes{margin:8px 0 0 3px;gap:6px}
.chat-file-changes li{background:#f5f8f1;border:1px solid #e4eade;padding:8px 10px;border-radius:9px;font-size:11px;width:fit-content;max-width:100%}
.conversation-shell .chat-progress{padding:5px 8px 16px;font-size:12px;color:#8a9881}
.conversation-shell .chat-compose-actions{padding:6px 12px 10px;gap:8px;min-height:44px}
.conversation-shell .chat-compose-actions>.small{font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-review-choice select{border:0;background:#f1f5ed;color:#587253;border-radius:8px;font-size:11px;max-width:100%;min-height:30px}
.conversation-inspector{height:100%;min-height:0;min-width:0;background:#fafcf7;border-left:1px solid #e5eade;display:flex;flex-direction:column}
.inspector-heading{height:68px;min-height:68px;padding:0 20px;display:flex;align-items:center;justify-content:space-between}
.inspector-heading h2{font-size:14px;font-weight:550;margin:0}
.inspector-heading .icon{width:30px;height:30px;min-height:30px}
.inspector-tabs{display:flex;gap:4px;background:#edf2e9;border-radius:10px;padding:4px;margin:0 20px 18px}
.inspector-tabs button{flex:1;font-size:12px;min-height:32px;border-radius:7px;color:#929e88}
.inspector-tabs button[aria-selected=true]{background:#fff;color:#496741;box-shadow:0 1px 3px #3547220a}
.inspector-body{flex:1;overflow:auto;padding:0 22px 24px;scrollbar-width:thin}
.inspector-section{padding:10px 0 20px;border-bottom:1px solid #e8edde;margin-bottom:12px}
.inspector-section h3{font-size:11px;color:#8b9980;font-weight:500;margin:5px 0 12px}
.inspector-section p{font-size:12px;line-height:1.8;overflow-wrap:anywhere;margin:6px 0}
.inspector-section .small,.inspector-empty{color:#8c9a80;font-size:11px;line-height:1.9}
.inspector-file{display:flex;gap:7px;margin:8px 0;padding:10px;background:#f0f4ea;border-radius:8px;font-size:11px;min-width:0}
.inspector-file code{overflow-wrap:anywhere;min-width:0}.inspector-file svg{width:14px;height:14px;color:#7f9271}
.inspector-action{display:flex;align-items:center;gap:7px;width:100%;text-align:left;padding:9px 0;font-size:11px;color:#537249}
.inspector-action svg{width:14px;height:14px}.inspector-action svg:last-child{margin-left:auto;width:12px}
.inspector-note{display:flex;gap:9px;align-items:center;width:100%;text-align:left;font-size:12px;border-bottom:1px solid #edf0e7;padding:12px 0}
.inspector-note span{overflow-wrap:anywhere;min-width:0}.inspector-note svg{width:16px;height:16px;color:#92a185}
.search-input{width:100%;border:1px solid #dae3d4;border-radius:10px;padding:12px;margin-bottom:12px}
#chat-search-results{max-height:60dvh;overflow:auto}
#dialog .projects{max-height:60dvh;overflow:auto}
#dialog .modal-option{gap:10px}#dialog .modal-option svg:last-child{margin-left:auto}
.mobile-menu{display:none}
@media(max-width:1100px){
 .conversation-shell.has-inspector{grid-template-columns:246px minmax(0,1fr)}
 .conversation-shell{grid-template-columns:246px minmax(0,1fr)}
 .conversation-inspector{position:absolute;right:0;top:0;bottom:0;width:310px;z-index:35;box-shadow:-12px 0 40px #17291714}
}
@media(max-width:700px){
 .conversation-shell,.conversation-shell.has-inspector{grid-template-columns:minmax(0,1fr)}
 .conversation-shell .sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;z-index:60;transform:translateX(-100%);visibility:hidden}
 .conversation-shell .sidebar.open{transform:translateX(0);visibility:visible}
 .conversation-shell .mobile-backdrop.open{display:block;position:fixed;inset:0;background:#243a283a;z-index:55}
 .conversation-shell .topbar{padding:0 15px;height:57px;min-height:57px}
 .mobile-menu{display:grid;place-items:center;flex:none}
 .conversation-shell .topname{gap:8px}.topname>span:last-child{font-size:13px}
 .top-actions .quiet{padding:5px 8px;width:38px;justify-content:center}.top-actions .quiet>span{display:none}.conversation-shell .top-actions .quiet svg{display:block}
 .conversation-shell .content{padding:22px 17px}
 .conversation-shell .new-conversation{padding:0 13px max(14px,env(safe-area-inset-bottom));min-height:330px}
 .conversation-welcome{padding:28px 0 44px}
 .conversation-welcome h1{font-size:22px}
 .conversation-shell .composer textarea{font-size:16px;min-height:70px;padding:14px 14px 4px}
 .conversation-shell .compose-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:5px 8px 8px}
 .conversation-shell .composer-options{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.35fr) minmax(0,.85fr) minmax(0,.85fr);gap:0}
 .conversation-shell .composer-actions{display:contents}
 .conversation-shell .composer-more{grid-row:1;grid-column:1}
 .conversation-shell .compose-bottom .primary{grid-row:1;grid-column:2}
 .conversation-shell .composer-pick{min-height:38px;padding:0 2px;font-size:11px;justify-content:center;width:100%}
 .conversation-shell .composer-pick>span{max-width:100%}
 .conversation-shell .chat-page{padding:0 13px max(14px,env(safe-area-inset-bottom))}
 .conversation-shell .chat-heading{padding:10px 0 0;font-size:10px}
 .conversation-shell .chat-feed{padding:18px 0 20px;scrollbar-gutter:auto}
 .conversation-shell .chat-assistant{max-width:96%}.conversation-shell .chat-user>div{max-width:90%;font-size:14px}
 .chat-bubble{padding:13px 15px;font-size:14px;line-height:1.9}
 .conversation-inspector{width:100%;z-index:45;box-shadow:none}
 .inspector-heading{height:57px;min-height:57px}
 .chat-review-choice{max-width:calc(100% - 65px)}
 .chat-review-choice small{font-size:10px;line-height:1.5}
 .inspector-section h3{font-size:12px;color:#748269}
 .inspector-section p,.inspector-section .small,.inspector-empty{font-size:13px;color:#68765f}
 .inspector-action,.inspector-note{font-size:13px}
 .inspector-tabs button{font-size:13px;min-height:36px}
}
@media(prefers-reduced-motion:reduce){.conversation-shell .sidebar{transition:none}}
/* Assistant identity first; account information stays secondary and inline. */
.bot-list{display:grid;gap:3px}
.bot-row{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:10px;min-height:62px;padding:10px;border-radius:10px}
.bot-row>.bot-face{width:32px;height:32px;font-size:13px;border-radius:11px}
.bot-row>.bot-copy{display:grid;gap:5px;min-width:0;padding:0}
.bot-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.bot-heading strong{min-width:0;line-height:1.3}
.bot-row .bot-heading small{flex:none;max-width:80px;margin:0;font-size:10px;color:#8b958e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-quota]{display:block;min-width:0}
.agent-quota{display:flex;align-items:center;flex-wrap:wrap;gap:3px 5px;min-width:0;max-width:100%;color:#859087;line-height:1.4}
.bot-row .agent-quota{flex-wrap:nowrap}
.quota-metric{display:inline-flex;align-items:baseline;gap:3px;min-width:0;font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap}
.quota-metric+.quota-metric{border-left:1px solid #cfd8cf;padding-left:5px}
.quota-metric>span{flex:none}
.quota-metric b{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:inherit;font-weight:500;color:#66766b;white-space:nowrap}
.quota-low b{color:#a57329}.quota-stale{opacity:.65}
.quota-note,.bot-status{display:block;color:#929b94;font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0}
.task-label>[data-quota]{margin-top:7px}.task-label .quota-metric,.task-label .quota-note{font-size:11px}
.chat-compose .compose-bottom{gap:8px}.chat-compose .composer-options{min-width:0}.chat-review-choice{font-size:11px;color:var(--muted);padding:4px 10px}.chat-review-choice[hidden]{display:none}.reply-settings{margin:8px 0 0 42px;color:#92988f;font-size:10px;line-height:1.6}
.chat-delivery-state{margin:0;padding:0 16px 12px;color:#8a937e;font-size:11px;line-height:1.6}
@media(max-width:700px){.conversation-shell .sidebar.open{width:100%;max-width:none}.chat-compose .compose-bottom{align-items:flex-end;gap:4px}.chat-compose .composer-options{flex-wrap:wrap;gap:2px}.chat-compose .composer-actions{flex-shrink:0}.chat-compose .primary{padding:10px 12px}.conversation-shell .sidebar.open .bot-list{grid-template-columns:minmax(0,1fr)}.bot-row{min-height:64px}.bot-row .quota-metric,.bot-row .quota-note,.bot-status{font-size:11px}}

.upgrade-note{font-size:12px;padding:8px 20px;background:#faf2df;color:#876f3e;line-height:1.6}

.conversation-shell .sidebar-top .close-navigation{display:none}@media(max-width:700px){.conversation-shell .sidebar-top .close-navigation{display:grid}}
@media(max-width:700px){#dialog:has(#grok-status) .form-actions{flex-wrap:wrap;gap:10px}#grok-status{flex:1 0 100%}#grok-verify,#grok-refresh,#grok-cancel{white-space:nowrap;flex-shrink:0}}

/* Distinct private chats and project rooms. */
.spaces-shell{grid-template-columns:248px minmax(0,1fr)}
.spaces-shell .sidebar{padding:18px 12px 10px}.spaces-shell .sidebar-top{margin-bottom:8px}
.spaces-shell .nav-label{font-size:13px;font-weight:650;color:#54645d;padding-top:18px}
.spaces-shell .space-project{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:9px;text-align:left;font-size:14px;min-width:0}
.space-project svg{width:19px;height:19px;flex:none}.space-project span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.space-project:hover,.space-project.selected{background:#e0ece5;color:#235f4d}
.space-agent-wrap{position:relative;padding-right:35px}.space-agent-wrap .bot-row{min-height:58px}.spaces-shell .bot-face{border-radius:50%}
.space-quota{position:absolute;right:2px;top:21px;font-size:10px;color:#78877d}
.space-quota summary{cursor:pointer;list-style:none}.space-quota>div{position:absolute;right:0;top:25px;background:white;z-index:5;width:225px;padding:12px;border:1px solid #dce6df;border-radius:10px;box-shadow:0 8px 25px #22352b18}
.spaces-shell .topbar{height:74px;min-height:74px;padding:0 24px}.spaces-shell .topname>svg{width:25px;height:25px;flex:none;color:#39765f}
.spaces-shell .topname>div{min-width:0}.spaces-shell .topname strong{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spaces-shell .topname small{display:block;font-size:11px;color:#859087;margin-top:3px}
.spaces-shell .top-actions{gap:7px}.spaces-shell .top-actions .quiet{border-radius:8px}
.space-chat{max-width:1100px;width:100%;margin:auto;padding:0 26px 22px}.space-chat .chat-feed{padding:25px 0}
.space-message{display:flex;align-items:flex-start;gap:12px;margin:0 0 28px;padding:0 10px}.space-message-content{min-width:0;flex:1}.space-speaker{display:flex;gap:8px;align-items:center;margin-bottom:6px;font-size:13px}.space-speaker time{font-size:11px;color:#9ba49e}.ai-tag{font-size:10px;color:#38765f;background:#e8f2ec;border-radius:4px;padding:0 4px}
.plain-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:14px}.space-message .markdown{font-size:14px;line-height:1.85;overflow-wrap:anywhere}.space-message .markdown>:first-child{margin-top:0}.space-message .markdown table{display:block;max-width:100%;overflow:auto}.space-message .markdown pre{max-width:100%;overflow:auto}
.space-mentions{display:flex;gap:5px;flex-wrap:wrap;margin:4px 0}.space-mentions span,.space-selected button{background:#e6f1ea;color:#29634f;border-radius:5px;padding:2px 7px;font-size:12px}
.space-selected{display:flex;flex-wrap:wrap;gap:6px;padding:12px 16px 0}.space-selected button{min-height:30px}.space-selected span{margin-left:6px}
.space-composer-quote,.space-quote{font-size:12px;color:#7a877e;border-left:2px solid #acc4b5;padding:6px 10px;background:#f3f6f3;margin-bottom:8px;overflow-wrap:anywhere}.space-composer-quote{margin:10px 14px 0;display:flex;justify-content:space-between;gap:10px}
.space-sources{font-size:11px;color:#829087;margin:6px 0}.space-sources summary{cursor:pointer}.space-reply{font-size:12px;margin-top:7px;color:#638373}
.space-empty{display:flex;height:100%;min-height:140px;align-items:center;justify-content:center;font-size:14px;color:#8a968d;text-align:center;padding:24px}
.space-caption{font-size:11px;color:#89938b;margin:0 14px 9px}.mention-trigger{font-weight:550}.space-human,.space-settings-heading{display:flex;align-items:center;gap:12px}.space-human small,.modal-option small{display:block;color:#89938b;font-size:12px}.space-settings-heading svg{width:25px}.settings-list .modal-option{padding:16px 10px;border-bottom:1px solid #eef1ee}.settings-list .modal-option span{min-width:0;overflow-wrap:anywhere}
.spaces-shell .chat-compose .compose-bottom{flex-wrap:nowrap}.spaces-shell .chat-compose .composer-options{flex:1;min-width:0;flex-wrap:wrap}.spaces-shell .chat-compose .primary{flex:none;min-height:36px;padding:7px 13px;border-radius:10px;font-size:13px}
@media(max-width:900px){.spaces-shell{grid-template-columns:minmax(0,1fr)}.spaces-shell .sidebar{position:fixed;width:272px}.spaces-shell .topbar{padding:0 12px;height:64px;min-height:64px}.spaces-shell .top-actions .quiet{padding:7px;min-width:32px}.spaces-shell .top-actions .quiet span{display:none}.spaces-shell .topname small{font-size:10px}.spaces-shell .topname strong{max-width:160px;font-size:14px}.space-chat{padding:0 10px 12px}.space-chat .chat-feed{padding:18px 0}.space-message{padding:0 3px;gap:9px}.space-message-avatar .bot-face{width:28px;height:28px;font-size:12px}.space-message .markdown,.plain-message{font-size:14px}.spaces-shell .composer-pick>span{max-width:90px}.spaces-shell .composer-options{gap:1px}.spaces-shell .chat-compose .compose-bottom{align-items:flex-end}.spaces-shell .chat-compose .composer-pick{min-height:36px}.space-caption{font-size:10px}}

.space-history{margin-top:16px}.space-history>summary{font-size:12px;color:#7a877e;padding:9px;cursor:pointer}.knowledge-topics{display:flex;flex-wrap:wrap;gap:8px}.knowledge-topics span{padding:5px 10px;border-radius:6px;background:#f1f5f1;font-size:13px}
.spaces-shell .chat-compose .compose-bottom{display:flex}.spaces-shell .chat-compose .composer-options{display:flex;grid-area:auto}
@media(max-width:900px){.spaces-shell .chat-compose .composer-pick{font-size:12px}.spaces-shell .chat-compose .compose-bottom{display:flex;align-items:flex-end;gap:4px}.spaces-shell .chat-compose .composer-options{display:flex;grid-area:auto;flex-wrap:wrap}.spaces-shell .chat-compose .primary{grid-area:auto}.spaces-shell .composer textarea{min-height:58px;font-size:16px}.spaces-shell .top-actions{gap:4px}.spaces-shell .topname{gap:7px}.spaces-shell .topname>svg{display:none}}

@media(max-width:900px){.spaces-shell .chat-compose .composer-pick{width:auto;padding:0 5px;gap:3px;height:36px;justify-content:flex-start}.spaces-shell .chat-compose .composer-choice{flex:0 1 auto;min-width:0}.spaces-shell .chat-compose .mention-trigger{width:auto;flex:none}}
/* Compact management surfaces keep the conversation primary. */
.library-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.library-tabs>button{min-height:36px}.library-row{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--border,#e7e8e6)}.library-row>span{flex:1;min-width:0}.library-row strong,.library-row small{display:block;overflow-wrap:anywhere}.library-row small{font-size:12px;color:#7a817d;margin-top:5px}.library-row .secondary{flex-shrink:0;padding:7px 12px}.attachment-chips{display:flex;flex-wrap:wrap;gap:6px}.attachment-chips:empty{display:none}.attachment-chips>span,.attachment-chips>a{display:inline-flex;gap:6px;align-items:center;background:#f0f3f0;border-radius:8px;padding:6px 10px;font-size:12px;max-width:100%;overflow-wrap:anywhere}.attachment-chips button{border:0;background:transparent;cursor:pointer}.space-message-content>.textlink{font-size:12px;margin-right:12px;color:#8a918e}.space-message-content>.textlink:hover{color:#3f6f5c}#project-filter{width:100%;padding:10px;border:1px solid #dfe4df;border-radius:9px}#memory-search-form{display:flex;gap:8px}#memory-search-form input{min-width:0;flex:1}#agent-skills{margin:18px 0}#chat-file-input[hidden]{display:none}@media(max-width:600px){.library-row{flex-wrap:wrap}.library-row>span{flex-basis:100%}.space-message-content>.textlink{padding:8px 0}.compose-bottom{gap:6px}.composer-options{flex-wrap:wrap}.library-tabs .secondary{font-size:13px}}
/* Verified in a real Chromium renderer: keep both navigation groups visible. */
.spaces-shell .space-navigation{display:flex;flex-direction:column;gap:12px;overflow:hidden;margin-top:0}
.space-navigation>section{display:flex;flex-direction:column;min-height:0}
.space-navigation .space-project-section{flex:0 1 43%;min-height:100px}
.space-navigation .space-agent-section{flex:1;min-height:120px}
.space-navigation .space-project-list,.space-navigation .space-agents{overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#d1dcd5 transparent;overscroll-behavior:contain}
.spaces-shell .space-navigation .nav-label{padding:2px 8px 6px;min-height:36px;flex:none}
.nav-label-actions{display:flex;gap:4px;align-items:center}.nav-label-actions .icon{min-height:30px;height:30px;width:30px}
.spaces-shell .space-project{padding:9px 12px;min-height:38px;font-size:13px}
.spaces-shell .space-history{flex:none;max-height:22%;overflow:auto;margin-top:0}
.spaces-shell .navbottom{flex:none;margin-top:8px;padding-top:8px}
.sidebar-footer{display:flex;align-items:center;gap:8px}.sidebar-footer .navitem{flex:1}.sidebar-footer>.icon{width:36px;min-height:36px;border-radius:8px;color:#65736a}
.spaces-shell .topname{flex:1;overflow:hidden}.spaces-shell .top-actions{flex:none}.spaces-shell .topname small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spaces-shell .space-chat{max-width:980px;padding-left:36px;padding-right:36px}.space-message .markdown,.space-message .plain-message{font-size:15px}
.space-message-content>.textlink{min-height:32px}.space-message{margin-bottom:24px}
#dialog .modal-option{border-color:#e3e8e3;border-radius:12px}#dialog .modal-option:hover{background:#f3f7f3;border-color:#bed2c5}
#dialog .secondary{border-color:#dce3dc}.summary-meta{font-size:12px;font-weight:400;color:#7a857e;margin-left:8px}
@media(max-width:900px){
 .spaces-shell .sidebar{z-index:60;position:fixed;left:0;top:0;bottom:0;width:min(310px,88vw);transform:translateX(-100%);visibility:hidden;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .spaces-shell .sidebar.open{width:min(310px,88vw);transform:translateX(0);visibility:visible}
 .spaces-shell .mobile-backdrop.open{display:block;position:fixed;inset:0;background:#243a283a;z-index:55}
 .spaces-shell .mobile-menu{display:grid;place-items:center;min-width:40px;min-height:44px}
 .spaces-shell .topbar{padding:0 8px;gap:6px;height:62px;min-height:62px}.spaces-shell .topname{gap:4px}.spaces-shell .topname strong{max-width:none}.spaces-shell .top-actions{gap:0}
 .spaces-shell .top-actions .quiet{border:0;background:transparent;width:40px;min-width:40px;min-height:44px;padding:10px;border-radius:9px}.spaces-shell .top-actions .quiet svg{width:18px;height:18px}.spaces-shell .top-actions .desktop-action{display:none}
 .spaces-shell .space-chat{padding:0 12px max(12px,env(safe-area-inset-bottom))}.space-message{gap:9px;padding:0 2px}.space-message .markdown,.space-message .plain-message{font-size:15px;line-height:1.8}
 .spaces-shell .chat-compose .composer-pick{min-height:44px;height:44px;font-size:12px;padding:0 7px}.spaces-shell .chat-compose .primary{height:44px;min-height:44px;padding:7px 15px}
 .spaces-shell .chat-compose .compose-bottom{gap:4px;padding:4px 8px 8px}.spaces-shell #chat-attach{min-width:36px}.spaces-shell .composer textarea{min-height:58px;padding:12px 14px 3px}
 .nav-label-actions .icon{width:36px;min-height:36px;height:36px}.spaces-shell .space-project{min-height:42px}.spaces-shell .navitem,.sidebar-footer>.icon{min-height:44px}
 #dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:20px;margin:auto;overflow:auto;overscroll-behavior:contain}#dialog .modal-head{position:sticky;top:-20px;background:#fff;z-index:2;padding-top:4px;padding-bottom:12px;margin-bottom:12px}#dialog .modal-head .icon{min-width:44px;min-height:44px}
 #dialog input:not([type=checkbox]),#dialog textarea,#dialog select{font-size:16px}#dialog .secondary,#dialog .primary{min-height:44px}.space-message-content>.textlink{min-height:40px}
}
@media(max-width:360px){.spaces-shell .top-actions .quiet{width:36px;min-width:36px}.spaces-shell .topname strong{font-size:13px}.space-message-avatar{display:none}.space-message{padding:0 2px}.spaces-shell .space-chat{padding-left:10px;padding-right:10px}}

/* Keep model controls on one compact toolbar; very narrow phones can swipe it. */
.spaces-shell .composer-menu button[aria-selected=true]{color:#2b7461;background:#f0f6f2}
.library-tabs button[aria-pressed=true]{background:#e5efe8;color:#285e49;border-color:#b9d0c1}
@media(max-width:900px){
 .spaces-shell .chat-compose .composer-options{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;align-items:center;gap:0}
 .spaces-shell .chat-compose .composer-options::-webkit-scrollbar{display:none}
 .spaces-shell .chat-compose .composer-choice{flex:none}
 .spaces-shell .chat-compose .composer-pick{padding:0 4px;gap:2px;font-size:11px}
 .spaces-shell .chat-compose .composer-pick svg{width:12px;height:12px}
 .spaces-shell .chat-compose .mention-trigger span{display:inline-block;max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .spaces-shell .chat-compose .mention-trigger{min-width:32px;font-size:16px}
 .spaces-shell #chat-attach{min-width:28px;width:28px;font-size:18px}
 .spaces-shell .chat-compose .primary{padding:7px 12px}
 .space-selected button{min-height:36px}
}

.message-status{font-size:12px;color:#7d8c80;margin-top:8px}
#dialog:has(#project-edit-form) .form-actions{position:static}
@media(max-width:900px){.spaces-shell .sidebar-top .close-navigation{display:grid}}

.progress-time{display:block;color:#839087;font-size:11px;margin:5px 0}.live-answer{color:#25372d;font-size:15px;line-height:1.8;margin:12px 0}.chat-progress>.secondary{margin-top:8px}
.chat-connection{padding:9px 16px;color:#746340;background:#fff8e8;font-size:13px;line-height:1.5;flex-shrink:0}
.chat-connection[hidden]{display:none}
/* Native approvals and durable run progress. */
.approval-card{margin:18px 8px;padding:18px;border:1px solid #d5c79d;background:#fffcf3;border-radius:12px;font-size:14px;overflow-wrap:anywhere}.approval-heading{display:flex;align-items:center;gap:10px}.approval-heading span,.approval-note,.approval-scope{font-size:12px;color:#756d58}.approval-card p{margin:10px 0}.approval-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font:12px/1.6 ui-monospace,monospace;background:#f4f1e8;padding:12px;border-radius:7px}.approval-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;flex-wrap:wrap}.approval-actions button{min-height:40px}.approval-card summary,.run-activity summary{cursor:pointer}.run-activity{font-size:12px;margin-top:10px;color:#607467}.run-activity ol{padding:0;margin:10px 0;list-style:none;max-height:260px;overflow:auto}.run-activity li{display:flex;gap:8px;padding:5px 0}.run-activity small{display:block;font-size:11px;color:#7a857f;overflow-wrap:anywhere}.activity-marker{width:18px;flex:none}.activity-marker.completed{color:#3d7f61}.activity-marker.failed{color:#a66c35}.run-failed p{margin:8px 0;overflow-wrap:anywhere}.progress-preserved{font-size:12px;color:#738078}.retained-files{margin:18px 8px;padding:14px;background:#f3f6f2;border-radius:10px}.retained-files strong{font-size:13px}.retained-files>span{display:block;font-size:12px;color:#778279;margin:4px 0 8px}@media(max-width:600px){.approval-card{margin:12px 0;padding:14px}.approval-actions button{min-height:44px}.retained-files{margin:12px 0}}

/* Agent appearance */
.bot-face.agent-face {
  color: var(--agent-ink);
  background: linear-gradient(145deg, var(--agent-hue), color-mix(in srgb, var(--agent-hue) 90%, #101722));
  border: 1px solid color-mix(in srgb, var(--agent-hue) 86%, white);
  border-radius: 10px;
  box-shadow: 0 2px 5px #18223514;
}
.bot-face.agent-face[data-finish="soft"],
.bot-face.agent-face[data-finish="outline"] {
  color: color-mix(in srgb, var(--agent-hue) var(--agent-tint), #141927);
  border-color: color-mix(in srgb, var(--agent-hue) 45%, #dfe4ea);
  box-shadow: none;
}
.bot-face.agent-face[data-finish="soft"] {
  background: color-mix(in srgb, var(--agent-hue) 12%, white);
  border-color: color-mix(in srgb, var(--agent-hue) 22%, white);
}
.bot-face.agent-face[data-finish="outline"] { background: white; }
.agent-face svg { width: 58%; height: 58%; }
.bot-face.agent-face.large { border-radius: 19px; }
.member-appearance, .agent-appearance-entry { display: flex; align-items: center; gap: 10px; }
#dialog:has(.appearance-editor) {
  box-sizing: border-box;
  width: min(820px, calc(100% - 28px));
  padding: 22px 24px 0;
  max-height: calc(100dvh - 28px);
  border-radius: 18px;
  overflow: auto;
}
#dialog:has(.appearance-editor) .modal-head { position: static; }
.appearance-editor { color: #29354a; }
.appearance-agent { margin: 0 0 17px; color: #687892; font-size: 13px; }
.appearance-columns { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; }
.appearance-controls { display: grid; gap: 16px; min-width: 0; }
.appearance-editor h3 { margin: 0 0 8px; font-size: 13px; }
.appearance-editor h3 small { color: #697991; margin-left: 5px; font-weight: 400; }
.appearance-swatches, .appearance-styles, .appearance-icon-grid { display: grid; gap: 6px; }
.appearance-swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.appearance-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.appearance-editor button[data-avatar-color],
.appearance-editor button[data-avatar-style],
.appearance-editor button[data-avatar-icon],
.appearance-editor button[data-avatar-category] {
  color: #4f6079;
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  padding: 6px;
}
.appearance-editor button[aria-pressed="true"] {
  background: #eef1fd;
  border-color: #6577c5;
  box-shadow: inset 0 0 0 1px #6577c5;
  color: #354781;
}
.appearance-swatches button { min-height: 38px; display: grid; place-items: center; }
.appearance-swatches i { width: 19px; height: 19px; border-radius: 100%; }
.appearance-custom { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
#dialog .appearance-custom input { width: 33px; height: 29px; padding: 2px; }
.appearance-custom output { margin-left: auto; color: #65748b; font-size: 11px; }
#avatar-search {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  color: inherit;
  background: #fff;
}
.appearance-categories { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.appearance-editor .appearance-categories button { padding: 4px 8px; font-size: 12px; }
.appearance-icon-grid {
  grid-template-columns: repeat(auto-fit, minmax(61px, 1fr));
  grid-auto-rows: 51px;
  max-height: 166px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 2px;
}
.appearance-icon-grid:has(>p) { display: block; }
.appearance-icon-grid button, .appearance-styles button { display: grid; justify-items: center; align-content: center; gap: 4px; font-size: 11px; }
.appearance-icon-grid svg { width: 18px; height: 18px; }
.appearance-preview {
  align-self: start;
  min-width: 0;
  background: #f4f6fb;
  border: 1px solid #e1e7f0;
  border-radius: 13px;
  padding: 13px;
}
.appearance-hero { display: grid; place-items: center; padding: 13px 0; }
.appearance-hero .bot-face { margin: 0; }
.appearance-example { margin: 9px 0 0; }
.appearance-example small { display: block; margin-bottom: 4px; color: #667891; }
.appearance-example>div { display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid #e1e7f0; background: #fff; border-radius: 8px; min-width: 0; }
.appearance-example span:not(.bot-face) { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appearance-example i { display: flex; }
[data-avatar-preview="chat"] .bot-face { width: 24px; height: 24px; border-radius: 7px; }
.appearance-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 1;
  gap: 8px;
  padding: 12px 0;
  margin-top: 16px;
  border-top: 1px solid #e4e9f1;
  background: #fff;
}
#avatar-reset { justify-self: start; }
#avatar-save { background: #5062bb; color: #fff; }
#avatar-error { grid-column: 1/-1; margin: 0; color: #9a3842; font-size: 12px; }
@media (max-width: 700px) {
  #dialog:has(.appearance-editor) { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; padding: 14px 15px 0; border: 0; border-radius: 0; }
  #dialog:has(.appearance-editor) .modal-head { padding-top: 0; }
  .appearance-columns { display: flex; flex-direction: column-reverse; gap: 12px; }
  .appearance-preview { align-self: stretch; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 8px; padding: 9px; }
  .appearance-preview h3 { grid-column: 1/-1; margin: 0; }
  .appearance-example { margin: 0; }
  .appearance-hero { display: none; }
  .appearance-swatches button { min-height: 44px; }
  .appearance-editor .appearance-categories button { min-height: 40px; }
  .appearance-actions { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .appearance-actions button { min-height: 44px; white-space: nowrap; }
}

:root {
  color-scheme: light;
  --bg: #fff;
  --side: #f4f5f8;
  --ink: #242b39;
  --muted: #627086;
  --line: #e2e6ee;
  --panel: #f7f8fb;
  --hover: #edf0f5;
  --accent: #4d60c9;
  --accent-fg: var(--accent);
  --on-accent: #fff;
  --purple: var(--accent-fg);
  --soft: color-mix(in srgb, var(--accent) 10%, var(--bg));
  --shadow: 0 3px 15px #25354e0b;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c2029;
  --side: #171a22;
  --ink: #edf0f6;
  --muted: #a8b3c6;
  --line: #333d4d;
  --panel: #232a36;
  --hover: #2a3342;
  --soft: color-mix(in srgb, var(--accent-fg) 17%, var(--bg));
  --shadow: 0 3px 15px #0003;
}

body { background: var(--bg); }
button:focus-visible, a:focus-visible, input:focus, textarea:focus, select:focus {
  outline-color: var(--accent-fg);
}
.primary, .conversation-shell .primary, #avatar-save {
  background: var(--accent);
  color: var(--on-accent);
}
.primary:hover, .conversation-shell .primary:hover, #avatar-save:hover {
  background: color-mix(in srgb, var(--accent) 85%, #141b30);
}
.quiet:hover, .secondary:hover { background: var(--hover); color: var(--ink); }
.conversation-shell .workspace, .conversation-shell .topbar, .conversation-shell .composer,
dialog, .composer-menu {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.secondary, .project-switch, .top-actions .quiet, #dialog .secondary,
#dialog .modal-option, input:not([type="checkbox"]):not([type="color"]), textarea, select {
  background-color: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}
.conversation-shell .composer textarea, .conversation-shell .composer textarea:focus { background: transparent; color: var(--ink); }
.conversation-shell .composer { border-radius: 16px; box-shadow: var(--shadow); }
.conversation-shell .composer:focus-within {
  border-color: color-mix(in srgb, var(--accent-fg) 45%, var(--line));
  box-shadow: var(--shadow);
}
.conversation-shell .composer textarea::placeholder { color: var(--muted); }
.conversation-shell .composer-pick, .conversation-shell .composer-more,
.conversation-shell .hint, .conversation-shell .navitem svg, .space-caption,
.composer-menu-title, .composer-menu button small, .space-empty,
.space-speaker time, .space-sources, .space-reply, .space-human small, .modal-option small,
.attachment-chips, .quota-note, .agent-quota, .quota-metric b,
.spaces-shell .topname small, .conversation-shell .chat-heading {
  color: var(--muted);
}
.conversation-shell .composer-pick:hover, .conversation-shell .composer-pick[aria-expanded="true"],
.conversation-shell .composer-more:hover, .composer-menu button:hover,
.composer-menu button:focus-visible, #dialog .modal-option:hover {
  background: var(--hover);
  color: var(--ink);
  border-color: var(--line);
}
.conversation-shell .composer-pick.is-fast, .spaces-shell .composer-menu button[aria-selected="true"],
.ai-tag, .space-mentions span, .space-selected button {
  background: var(--soft);
  color: var(--accent-fg);
}

.workspace-logo {
  display: inline-block;
  width: 35px;
  height: 35px;
  flex: none;
  background: var(--ink);
  mask: var(--logo-image) center / contain no-repeat;
}
:root[data-logo-tone="accent"] .brand .workspace-logo,
.theme-logos [data-value="accent"] .workspace-logo { background: var(--accent-fg); }

.spaces-shell { grid-template-columns: 256px minmax(0, 1fr); }
.conversation-shell .sidebar {
  height: 100%;
  background: var(--side);
  border-color: var(--line);
}
.spaces-shell .sidebar { padding: 18px 13px 12px; }
.spaces-shell .sidebar-top { margin-bottom: 10px; }
.spaces-shell .brand { padding: 0 5px; gap: 3px; font-size: 19px; }
.conversation-shell .sidebar-top .icon { color: var(--muted); }
.conversation-shell .sidebar-top .icon:hover { background: var(--hover); }
.workspace-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  min-height: 36px;
  margin-bottom: 12px;
  text-align: left;
  flex: none;
}
.workspace-search span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.workspace-search svg { width: 15px; height: 15px; }
.workspace-search kbd { margin-left: auto; white-space: nowrap; font: inherit; font-size: 10px; }
.workspace-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--hover);
  border-radius: 9px;
  margin-bottom: 10px;
  flex: none;
}
.workspace-switcher button { min-height: 32px; font-size: 13px; border-radius: 6px; color: var(--muted); border: 1px solid transparent; }
.workspace-switcher button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line);
  box-shadow: var(--shadow);
  font-weight: 600;
}
.workspace-switcher small { font-size: 10px; margin-left: 3px; color: var(--muted); }
.spaces-shell .space-navigation { flex: 1; gap: 0; }
.spaces-shell .space-navigation > section { flex: 1; min-height: 0; }
.spaces-shell .space-navigation > section[hidden] { display: none; }
.spaces-shell .space-navigation .nav-label { font-size: 12px; letter-spacing: 0; color: var(--muted); }
.spaces-shell .space-project-list, .spaces-shell .space-agents {
  flex: 1;
  scrollbar-color: var(--line) transparent;
}
.spaces-shell .space-project { border: 1px solid transparent; min-height: 39px; gap: 9px; padding: 7px 10px; }
.spaces-shell .space-project svg { width: 16px; height: 16px; color: var(--muted); }
.spaces-shell .space-project small { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: 10px; }
.spaces-shell .space-project:hover, .spaces-shell .bot-row:hover, .conversation-row:hover { background: var(--hover); color: var(--ink); }
.spaces-shell .space-project.selected, .spaces-shell .bot-row.selected, .conversation-row.active {
  background: var(--soft);
  color: var(--accent-fg);
}
.spaces-shell .space-project.selected svg { color: var(--accent-fg); }
.spaces-shell .space-agent-wrap { display: flex; align-items: center; gap: 4px; padding: 0; }
.spaces-shell .space-agent-wrap .bot-row { flex: 1; min-height: 53px; padding: 7px 8px; border-radius: 8px; }
.spaces-shell .bot-row small, .conversation-preview { color: var(--muted); }
.spaces-shell .space-quota {
  position: static;
  min-width: 29px;
  max-width: 74px;
  min-height: 30px;
  padding: 4px 5px;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--muted);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.spaces-shell .space-quota:hover { background: var(--hover); color: var(--ink); }
.workspace-quota .agent-quota { row-gap: 10px; column-gap: 12px; }
.workspace-quota .quota-metric { font-size: 13px; padding-left: 8px; }
.conversation-shell .navbottom { border-color: var(--line); }
.conversation-shell .navitem, .nav-label-actions .icon, #theme-reset,
.space-message-content > .textlink { color: var(--muted); }
.conversation-shell .navitem:hover, .conversation-shell .navitem.active { background: var(--hover); color: var(--ink); }
.spaces-shell .topbar { height: 66px; min-height: 66px; }
.spaces-shell .topname > svg { width: 20px; height: 20px; color: var(--accent-fg); }
.top-actions .quiet { color: var(--muted); }
.spaces-shell .space-chat { max-width: 890px; }
.spaces-shell .space-chat .chat-feed { padding-top: 26px; }
.space-message .markdown, .plain-message { color: var(--ink); }
.space-message.is-human .plain-message, .chat-user > div {
  background: var(--soft);
  border-radius: 12px;
  padding: 9px 13px;
  width: fit-content;
  max-width: 100%;
}
.space-composer-quote, .space-quote {
  background: var(--panel);
  color: var(--muted);
  border-color: var(--accent-fg);
}
.attachment-chips > :is(a,span), .chat-file-changes li {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
.search-group h3 { margin: 15px 0 7px; font-size: 12px; color: var(--muted); }
.search-group .conversation-row, .workspace-history .conversation-row { color: var(--ink); min-height: 48px; }
.workspace-setting {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 60px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
}
.workspace-setting:hover { background: var(--hover); }
.workspace-setting > span { flex: 1; }
.workspace-setting small { display: block; margin-top: 3px; color: var(--muted); }
.settings-section-title { font-size: 16px; margin-top: 24px; }

.workspace-theme section + section { margin-top: 17px; }
.workspace-theme h3 { margin: 0 0 8px; font-size: 13px; }
.theme-modes, .theme-accents, .theme-logos { display: grid; gap: 7px; }
.theme-modes, .theme-accents { grid-template-columns: repeat(3,minmax(0,1fr)); }
.theme-logos { grid-template-columns: repeat(2,minmax(0,1fr)); }
.workspace-theme [data-theme-setting] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 6px;
  min-height: 44px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}
.workspace-theme [data-theme-setting="mode"] { flex-direction: column; min-height: 80px; }
.workspace-theme [aria-pressed="true"] {
  color: var(--accent-fg);
  background: var(--soft);
  border-color: var(--accent-fg);
  box-shadow: inset 0 0 0 1px var(--accent-fg);
}
.theme-sample {
  display: grid;
  grid-template-columns: 10px 1fr;
  width: 50px;
  height: 28px;
  border: 1px solid #8c99b0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.theme-sample i { background: #e8edf6; }
.theme-sample b { margin: 6px; border: 1px solid #c5cee1; border-radius: 2px; }
.theme-sample.dark { background: #242c3b; }
.theme-sample.dark i { background: #151923; }
.theme-sample.dark b { border-color: #53647b; }
.theme-sample.system { background: linear-gradient(90deg,#fefefe 50%,#242c3b 50%); }
.theme-accents i { width: 15px; height: 15px; border-radius: 50%; background: var(--swatch); flex: none; box-shadow: 0 0 0 1px var(--line); }
.theme-logos .workspace-logo { width: 24px; height: 24px; }
.theme-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 19px; padding-top: 12px; border-top: 1px solid var(--line); }
.theme-footer button { min-height: 42px; }

.appearance-editor, .appearance-example > div, .appearance-editor button[data-avatar-color],
.appearance-editor button[data-avatar-style], .appearance-editor button[data-avatar-icon],
.appearance-editor button[data-avatar-category] {
  color: var(--ink);
}
.appearance-agent, .appearance-editor h3 small, .appearance-custom output, .appearance-example small { color: var(--muted); }
.appearance-preview, .appearance-example > div, .appearance-actions,
.appearance-editor button[data-avatar-color], .appearance-editor button[data-avatar-style],
.appearance-editor button[data-avatar-icon], .appearance-editor button[data-avatar-category] { border-color: var(--line); }
.appearance-preview { background: var(--panel); }
.appearance-example > div, .appearance-actions, #dialog .appearance-custom input,
.appearance-editor button[data-avatar-color], .appearance-editor button[data-avatar-style],
.appearance-editor button[data-avatar-icon], .appearance-editor button[data-avatar-category] {
  background: var(--bg);
}
.appearance-editor button[aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--accent-fg);
  color: var(--accent-fg);
  box-shadow: inset 0 0 0 1px var(--accent-fg);
}
:root[data-theme="dark"] .bot-face.agent-face[data-finish="soft"],
:root[data-theme="dark"] .bot-face.agent-face[data-finish="outline"] {
  color: color-mix(in srgb, var(--agent-hue) 45%, #fff);
  border-color: color-mix(in srgb, var(--agent-hue) 55%, #8a96a9);
  background: var(--panel);
}
:root[data-theme="dark"] .bot-face.agent-face[data-finish="soft"] {
  background: color-mix(in srgb, var(--agent-hue) 24%, var(--panel));
}
:root[data-theme="dark"] :is(.agentrow,.file-row,.member,.library-row,.settings-list .modal-option,.storage-note,.taskrow,
  .composer-footer,.reviewbar,.form-actions,.advanced,.chat-progress,.status,.task-model-entry,.attachment-chips a,
  .attachment-chips > span,.source-chips > span,.retained-files,.knowledge-topics span,.quota-metric,.markdown td,.markdown th) {
  border-color: var(--line);
}
:root[data-theme="dark"] :is(.storage-note,.empty,.status,.pill,.agent-avatar,.attachment-chips a,
  .attachment-chips > span,.source-chips > span,.chat-progress,.retained-files,.knowledge-topics span,.run-activity,
  .markdown pre,.markdown th,.task-model-entry,.upgrade-note,.working,.chat-connection,.chat-delivery-state) {
  background: var(--panel);
  color: var(--ink);
}
:root[data-theme="dark"] :is(.subtitle,.desc,.small,.meta,.crumb,.reply-settings,.space-speaker,.run-activity small,
  .progress-time,.progress-preserved,.conversation-welcome h1,.conversation-welcome p,.space-caption,.space-empty,
  .task-model-entry small,.task-model-entry span,.markdown blockquote,.chat-heading,.hint,.library-row small) {
  color: var(--muted);
}
:root[data-theme="dark"] .approval-card { background: #322a1e; border-color: #655638; color: #f4e6c6; }
:root[data-theme="dark"] :is(.approval-heading span,.approval-note,.approval-scope) { color: #e0cba2; }
:root[data-theme="dark"] .approval-command { background: #221f1a; color: #f4e6c6; }
:root[data-theme="dark"] :is(.form-actions,.chat-bubble,.process-content,.document,.modal,.listitem) {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] :is(.message-status,.run-failed,.chat-connection:not([hidden]),#avatar-error) { color: #f0abb2; }
:root[data-theme="dark"] #dialog:has(.appearance-editor) .modal-head { background: var(--bg); }

@media(max-width:900px) {
  .spaces-shell { grid-template-columns: minmax(0,1fr); }
  .spaces-shell .topbar { height: 62px; min-height: 62px; }
  .spaces-shell .space-quota { min-height: 40px; padding-inline: 7px; }
  .workspace-search, .workspace-switcher button { min-height: 44px; }
  .workspace-search kbd { display: none; }
  #dialog .modal-head { background: var(--bg); }
}
@media(max-width:600px) {
  .spaces-shell .sidebar.open { width: 100%; max-width: none; }
  .spaces-shell .sidebar { padding-inline: 16px; }
  .spaces-shell .top-actions .quiet { width: 36px; min-width: 36px; padding: 8px; }
}

#dialog #avatar-search {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}
#dialog #avatar-search::placeholder { color: var(--muted); }
#avatar-reset { color: var(--muted); }
.space-message .chat-file-cards {
  display: grid;
  gap: 7px;
  width: min(100%, 350px);
  padding: 0;
  margin: 11px 0 8px;
}
.chat-file-cards .chat-file-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 59px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.chat-file-cards .chat-file-card:hover { background: var(--panel); }
.chat-file-card .chat-file-type {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 38px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent-fg);
  font-size: 9px;
  font-weight: 650;
}
.chat-file-card .chat-file-label { display: block; flex: 1; min-width: 0; padding: 0; background: transparent; border: 0; }
.chat-file-label strong { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.chat-file-label small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.chat-file-card > svg { width: 16px; height: 16px; color: var(--muted); }

/* Functional icons share one outline style. Text remains visible where it helps identify an action. */
.ui-glyph { display: block; flex: none; vertical-align: middle; }
.spaces-shell .navitem > .ui-glyph { width: 18px; height: 18px; }
.spaces-shell .navitem.active { background: var(--soft); color: var(--accent-fg); }
.spaces-shell .navitem.active > .ui-glyph { color: inherit; }
.spaces-shell .space-project .workspace-pin > .ui-glyph { width: 13px; height: 13px; color: var(--muted); }
.nav-label-actions .icon > .ui-glyph, .top-actions .quiet > .ui-glyph { width: 16px; height: 16px; }
.workspace-setting > .ui-glyph { width: 20px; height: 20px; color: var(--muted); }
.workspace-setting > .ui-glyph:last-child { width: 15px; height: 15px; }
:is(.workspace-theme h3,.space-message-content > .textlink,.library-tabs button):has(> .ui-glyph) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
:is(.workspace-theme h3,.space-message-content > .textlink,.library-tabs button,.secondary,.approval-heading) > .ui-glyph {
  width: 16px;
  height: 16px;
}
.space-message-content > .textlink { margin-right: 7px; }
.space-message-content > .textlink > .ui-glyph { width: 14px; height: 14px; }
#space-compose .composer-pick > .ui-glyph[data-icon="chevron"] { width: 12px; height: 12px; }
#space-compose :is(#chat-attach,#space-mention) > .ui-glyph { width: 17px; height: 17px; }
#space-compose #chat-send { padding: 0; width: 36px; min-height: 36px; }
#space-compose #chat-send > .ui-glyph { display: block; width: 19px; height: 19px; }
#space-compose :is([data-remove-attachment],#space-clear-quote),
#space-compose [data-unmention] { display: inline-flex; align-items: center; justify-content: center; }
#space-compose :is([data-remove-attachment],[data-unmention],#space-clear-quote) > .ui-glyph { width: 13px; height: 13px; }
@media (max-width: 900px) {
  .spaces-shell .sidebar-top .close-navigation,
  .spaces-shell .top-actions .quiet { width: 44px; min-width: 44px; height: 44px; }
  .spaces-shell .top-actions .quiet > .ui-glyph { width: 18px; height: 18px; }
  .spaces-shell .nav-label-actions .icon { width: 44px; height: 44px; }
  #space-compose :is(#chat-attach,#space-mention) { min-width: 44px; justify-content: center; }
  #space-compose #chat-send { width: 44px; min-height: 44px; }
  #space-compose .composer-pick > .ui-glyph[data-icon="model"] { display: none; }
  .spaces-shell .chat-compose .composer-options { padding-bottom: 2px; }
}

/* One scroll surface for projects and direct chats. */
.has-subchats .sidebar-new-chat {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 37px;
  margin: 0 0 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--accent-fg);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.has-subchats .sidebar-new-chat:hover { background: var(--soft); }
.sidebar-new-chat .ui-glyph { width: 16px; height: 16px; }
.has-subchats .space-navigation { overflow-y: auto; gap: 10px; }
.has-subchats .space-navigation > section { flex: none; min-height: auto; }
.has-subchats .space-project-list, .has-subchats .space-conversations { overflow: visible; }
.has-subchats .space-conversations-section { border-radius: 8px; }
.has-subchats .sidebar-footer { gap: 4px; }
.has-subchats .sidebar-footer > .navitem { flex: 1; min-width: 0; }
.has-subchats .movable-chat-row { display: flex; align-items: center; gap: 2px; }
.has-subchats .movable-chat-row > [data-task] { flex: 1; min-width: 0; }
.has-subchats .chat-row-more { flex: none; width: 28px; min-height: 33px; color: var(--muted); }
.has-subchats .chat-row-more .ui-glyph { width: 15px; height: 15px; }
.has-subchats .chat-drop-ready { outline: 1px dashed var(--accent-fg); outline-offset: -1px; }
.has-subchats .chat-drop-over { background: var(--soft); outline-style: solid; }
.project-tree { margin-bottom: 2px; }
.project-tree-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 9px;
}
.project-tree-heading.current { background: var(--hover); }
.has-subchats .project-tree-heading .space-project {
  flex: 1;
  gap: 6px;
  min-height: 38px;
  padding: 6px 7px;
}
.has-subchats .project-tree-heading > .icon { flex: none; width: 33px; min-height: 36px; }
.project-tree-heading [data-icon="chevron"] { transform: rotate(-90deg); }
.project-tree-heading [aria-expanded="true"] [data-icon="chevron"] { transform: none; }
.has-subchats .project-tree-heading [data-icon="chevron"] { width: 12px; height: 12px; }
.has-subchats .project-tree-heading.current [data-icon="folder"] { color: var(--accent-fg); }
.project-subchats {
  margin: 3px 0 7px 20px;
  border-left: 1px solid var(--line);
  padding-left: 7px;
}
.project-subchat {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
  font-size: 12px;
}
.project-subchat:hover { background: var(--hover); }
.project-subchat.selected { background: var(--soft); color: var(--accent-fg); }
.project-subchat > .ui-glyph { width: 16px; height: 16px; color: var(--muted); }
.project-subchat.selected > .ui-glyph { color: var(--accent-fg); }
.project-subchat > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-subchat small, .independent-chat time { font-size: 10px; color: var(--muted); white-space: nowrap; }
.space-conversations { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.has-subchats .independent-chat { display: flex; flex-wrap: nowrap; min-height: 36px; padding: 6px 10px; gap: 8px; }
.independent-chat > .ui-glyph { flex: none; width: 16px; height: 16px; color: var(--muted); }
.independent-chat.selected > .ui-glyph { color: var(--accent-fg); }
.independent-chat .independent-name { flex: 1; display: grid; min-width: 0; }
.independent-chat time { flex: none; }
#new-conversation-error, #move-chat-error { color: #af3b55; }
:root[data-theme="dark"] #new-conversation-error, :root[data-theme="dark"] #move-chat-error { color: #ffacc0; }
@media (max-width: 900px) {
  .has-subchats .project-tree-heading .space-project, .has-subchats .project-tree-heading > .icon,
  .project-subchat, .has-subchats .sidebar-new-chat, .has-subchats .independent-chat,
  .has-subchats .chat-row-more { min-height: 44px; }
  .has-subchats .project-tree-heading > .icon, .has-subchats .chat-row-more { width: 44px; }
}
@media (max-width: 520px) {
  .has-subchats #space-history, .has-subchats #space-new-dm { display: none; }
}

/* Accounts use the same compact visual language; guests get only their chats. */
.person-avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border-radius:10px;background:var(--soft,#eef0fa);font-size:21px;overflow:hidden}
.person-avatar img{width:100%;height:100%;object-fit:cover}
.person-account{display:flex;align-items:center;gap:9px;min-height:44px;width:100%;padding:6px 8px;text-align:left;border-radius:8px;font-size:13px}
.person-account>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spaces-shell .navbottom{display:flex;flex-direction:column;gap:8px}
.sidebar-tools{display:flex;flex-direction:column;gap:2px}
.sidebar-account-row{display:flex;align-items:center;gap:4px;padding-top:8px;border-top:1px solid var(--line)}
.sidebar-account-row .person-account{flex:1;min-width:0;width:auto;min-height:44px;padding:6px 8px;gap:10px}
.sidebar-account-row .person-avatar{width:28px;height:28px;font-size:19px;border-radius:9px}
.sidebar-account-row>.icon{flex:none;width:36px;min-height:36px;border-radius:8px;color:var(--muted)}
.sidebar-account-row>.navitem{flex:1}
.sidebar-account-row .person-account:hover,.sidebar-account-row>.icon:hover{background:var(--hover)}
@media(max-width:900px){.sidebar-account-row>.icon{width:44px;min-height:44px}}
.person-picker{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.person-picker button{width:40px;height:40px;border:1px solid transparent}
.person-picker [aria-pressed=true]{border-color:var(--accent-fg,#5261cb)}
.person-upload{display:block;font-size:13px;margin:12px 0}.person-upload input{display:block;max-width:100%;margin-top:8px}
.person-password{margin:20px 0;padding-top:15px;border-top:1px solid var(--line,#e2e6ef)}.person-password summary{cursor:pointer;margin-bottom:12px}
.people-error{color:#ad354b;font-size:13px;white-space:pre-wrap}.people-member{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.people-member>span{flex:1;min-width:0;overflow-wrap:anywhere}.people-member small{display:block;color:var(--muted);font-size:12px}
#invite-result{margin:16px 0}#invite-result textarea{width:100%;font-size:12px;overflow-wrap:anywhere}
.account-page{min-height:100dvh;display:grid;place-items:center;background:var(--sidebar,#f5f6fa);padding:24px}
.account-card{width:min(100%,420px);padding:30px;background:var(--bg,#fff);border:1px solid var(--line,#e2e6ef);border-radius:16px;box-shadow:0 8px 40px #18263d08}
.account-card h1{font-size:24px;margin:24px 0 16px}.account-card form>.primary{width:100%;justify-content:center}.account-card .field{margin-bottom:16px}
.participant-shell{display:grid;grid-template-columns:248px minmax(0,1fr);height:100dvh;overflow:hidden;background:var(--bg,#fff)}
.participant-sidebar{background:var(--sidebar,#f5f6fa);padding:20px 12px;display:flex;flex-direction:column;gap:14px;border-right:1px solid var(--line,#e2e6ef);min-height:0}
.participant-sidebar .brand{padding:0 10px}.participant-sidebar nav{flex:1;overflow:auto;min-height:0}
.participant-chat{display:flex;gap:8px;padding:10px;width:100%;text-align:left;align-items:center;min-height:44px;border-radius:8px;font-size:13px}
.participant-chat.selected{background:var(--soft,#eef0fa);color:var(--accent-fg,#5261cb)}.participant-chat>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.participant-chat small{display:block;color:var(--muted);font-size:11px}
.participant-main{display:flex;flex-direction:column;min-width:0;min-height:0}.participant-main>header{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px 24px;border-bottom:1px solid var(--line,#e2e6ef)}.participant-main>header strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.participant-feed{flex:1;overflow:auto;padding:24px max(20px,calc((100% - 800px)/2));min-height:0}.participant-feed .space-message{max-width:800px}.participant-feed .space-message-content{min-width:0;overflow-wrap:anywhere}
.participant-compose{margin:12px auto 20px;width:calc(100% - 40px);max-width:800px;padding:12px;border:1px solid var(--line,#e2e6ef);border-radius:12px}
.participant-compose textarea{width:100%;resize:vertical;min-height:70px;max-height:180px;border:0;background:transparent;outline:none;font:inherit}
.participant-compose>div{display:flex;gap:12px;align-items:center;justify-content:space-between}.participant-compose .hint{margin:0;font-size:12px}.participant-main>.people-error{margin:0 20px 8px}
#guest-menu,#guest-close,.participant-shade{display:none}
@media(max-width:900px){.participant-shell{grid-template-columns:minmax(0,1fr)}.participant-sidebar{position:fixed;inset:0 auto 0 0;width:min(320px,88vw);z-index:32;transform:translateX(-100%)}.drawer-open .participant-sidebar{transform:none}.drawer-open .participant-shade{display:block;position:fixed;inset:0;background:#16223855;z-index:31}.participant-main>header{padding:8px 12px;min-height:56px}#guest-menu,#guest-close{display:inline-flex;min-width:44px;min-height:44px}#guest-close{margin-left:auto}.participant-compose{width:calc(100% - 24px);margin:8px 12px 12px}.participant-feed{padding:16px 12px}.participant-compose .primary{min-height:44px}.account-page{padding:16px}.account-card{padding:24px}.participant-compose .hint{max-width:70%}}

@media(max-width:520px){
 .has-subchats .top-actions #conversation-files,.has-subchats .top-actions [data-go="files"]{display:none}
 .space-message-avatar{display:block}.space-message-avatar .person-avatar{width:28px;height:28px;font-size:18px}
}

/* Home and page-wide Agent status live outside the conversation composer. */
.brand-home{padding:0;border:0;background:none;cursor:pointer;color:var(--ink)}
.spaces-shell .sidebar-home{margin:0 0 5px;padding:8px 10px;min-height:36px}
.workspace-body{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}
.workspace-body>#content{min-width:0;width:0}
.page-agent-panel{display:flex;flex-direction:column;flex:0 0 232px;min-width:0;border-left:1px solid var(--line);background:var(--bg);padding:24px 16px 16px}
.agent-panel-heading{display:flex;gap:8px;align-items:center;margin-bottom:18px}
.agent-panel-heading h2{font-size:12px;font-weight:650;margin:0;color:var(--muted)}
.agent-panel-heading>span{font-size:11px;color:var(--muted);background:var(--panel);padding:2px 6px;border-radius:5px}
.agent-panel-cards{flex:1;min-height:0;overflow:auto}
.agent-status-card{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid var(--line)}
.agent-status-heading{display:flex;gap:9px;align-items:center;min-width:0}
.agent-status-heading>.bot-face{flex:none;width:30px;height:30px}
.agent-status-heading>div{min-width:0;flex:1}
.agent-status-heading strong{display:block;overflow-wrap:anywhere;font-size:12px;font-weight:600;line-height:1.5;color:var(--ink)}
.agent-status-heading small{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.agent-status-quota{padding:10px 0 0 39px}
.agent-status-quota .agent-quota{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%}
.agent-status-quota .quota-metric{display:flex;justify-content:space-between;gap:8px;border:0;padding:0;font-size:11px}
.agent-status-quota .quota-metric b{font-weight:600;color:var(--ink)}
.agent-status-quota .quota-note{font-size:11px;line-height:1.6;color:var(--muted);white-space:normal}
.agent-status-quota .quota-low b{color:#c55239}
.agent-panel-note,.agent-panel-empty{font-size:10px;color:var(--muted);line-height:1.7;margin:0}
.agent-mobile-strip{display:none}
.agent-sheet{padding:6px 0}.agent-sheet .agent-status-card{padding:10px 0 16px;margin-bottom:10px}.agent-sheet .agent-status-heading strong{font-size:14px}.agent-sheet .quota-metric{font-size:13px}
.workspace-home{max-width:850px;margin:0 auto;padding:46px 38px 40px;color:var(--ink)}
.home-welcome{padding:14px 0 30px}
.home-eyebrow{font-size:11px;letter-spacing:.06em;color:var(--muted)}
.home-welcome h1{font-size:30px;font-weight:650;line-height:1.4;letter-spacing:-.7px;margin:10px 0}
.home-welcome>p{font-size:13px;color:var(--muted);margin:0 0 24px}
.home-actions{display:flex;gap:10px}.home-actions button{min-height:42px;padding:9px 18px;font-size:13px;border-radius:10px;gap:7px}
.home-actions svg{width:17px;height:17px}
.home-quick-agents{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:20px}
.home-quick-agents>span{font-size:11px;color:var(--muted);margin-right:2px}
.home-quick-agents button{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:8px;font-size:11px;max-width:180px;color:var(--ink);background:var(--panel)}
.home-quick-agents button>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-quick-agents .bot-face{width:22px;height:22px;border-radius:6px;flex:none}.home-quick-agents .bot-face svg{width:14px;height:14px}
.home-section{margin:10px 0 30px}.home-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px}
.home-section-heading h2{font-size:14px;font-weight:600;margin:0}.home-section-heading button{display:flex;gap:4px;align-items:center;font-size:11px;color:var(--muted);white-space:nowrap}.home-section-heading svg{width:13px;height:13px}
.home-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-project{display:grid;grid-template-columns:22px minmax(0,1fr) 14px;align-items:center;gap:5px 9px;padding:16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);min-width:0}
.home-project:hover{border-color:var(--accent);background:var(--soft)}.home-project>svg:first-child{grid-row:span 2;width:21px;height:21px;color:var(--accent-fg)}
.home-project strong{font-size:13px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-project>span{grid-column:2;font-size:11px;color:var(--muted)}.home-project>svg:last-child{grid-column:3;grid-row:1 / 3;width:14px;height:14px;color:var(--muted)}
.home-recents{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.home-recent{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:13px 15px;text-align:left;background:var(--bg);color:var(--ink)}
.home-recent+.home-recent{border-top:1px solid var(--line)}.home-recent:hover{background:var(--panel)}
.home-recent>svg{flex:none;width:17px;height:17px;color:var(--muted)}.home-recent>svg:last-child{width:13px;height:13px}
.home-recent>span{flex:1;min-width:0}.home-recent strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.home-recent small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.home-recent time{font-size:10px;color:var(--muted);white-space:nowrap}.home-task-state{color:var(--accent-fg)!important;white-space:nowrap}
.home-empty{font-size:12px;line-height:1.7;color:var(--muted);padding:16px;margin:0}
@media(max-width:1180px){
 .page-agent-panel{display:none}
 .agent-mobile-strip{display:flex;flex:none;align-items:center;gap:10px;padding:7px 20px;border-bottom:1px solid var(--line);background:var(--bg);min-width:0}
 .agent-mobile-strip>#page-agents{display:flex;align-items:center;gap:5px;font-size:11px;flex:none;min-height:36px;color:var(--muted);white-space:nowrap}
 #page-agents svg{width:15px;height:15px}#page-agents b{font-weight:500;color:var(--ink)}#page-agents svg:last-child{width:11px}
 .agent-strip-list{display:flex;gap:7px;overflow-x:auto;min-width:0;scrollbar-width:thin}
 .agent-strip-list button{display:flex;align-items:center;flex:none;gap:7px;padding:7px 10px;background:var(--panel);border:1px solid var(--line);border-radius:8px;min-height:36px;font-size:11px;max-width:240px}
 .agent-strip-list button>span{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}.agent-strip-list small{font-size:10px;color:var(--muted);white-space:nowrap}
}
@media(max-width:600px){
 .workspace-home{padding:24px 18px 30px}.home-welcome{padding:8px 0 22px}.home-welcome h1{font-size:25px}.home-welcome>p{font-size:12px}
 .home-quick-agents{gap:7px}.home-quick-agents button{max-width:160px;min-height:40px}
 .home-projects{grid-template-columns:minmax(0,1fr)}.home-project{padding:13px 14px}.home-section{margin-bottom:25px}
 .home-recent{gap:8px;padding:12px}.home-recent>svg:last-child{display:none}.home-recent strong{font-size:12px}
 .agent-mobile-strip{padding:3px 12px;gap:8px}.agent-mobile-strip>#page-agents{min-height:44px}.agent-strip-list button{min-height:40px;padding:6px 8px;max-width:220px}
 .spaces-shell .sidebar-home{min-height:44px}
}
/* Quiet homepage and on-demand account drawer. */
.workspace-home.home-simple { width: 100%; max-width: 800px; margin: 0 auto; padding: clamp(40px,10vh,110px) 32px 40px; }
.home-simple .home-welcome { margin: 0; }
.home-simple .home-welcome h1 { text-align: center; font-size: 30px; font-weight: 600; letter-spacing: -.8px; margin: 0 0 30px; }
.home-simple #home-compose { margin: 0; border-radius: 20px; box-shadow: 0 4px 24px #26334b08; }
.home-simple #home-input { min-height: 128px; padding: 22px 24px; font-size: 15px; resize: vertical; }
#home-compose .compose-bottom { display: flex; padding: 8px 14px 14px; gap: 8px; align-items: center; }
#home-compose .composer-options { flex-wrap: wrap; gap: 2px; }
#home-compose .composer-pick { font-size: 12px; padding: 7px 6px; max-width: 180px; }
#home-compose .picker-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#home-compose .home-send-actions { display: flex; align-items: center; gap: 6px; }
#home-compose #home-send { width: 38px; height: 38px; min-width: 38px; padding: 0; border-radius: 12px; display: grid; place-items: center; }
.home-simple .home-context { text-align: center; font-size: 12px; margin: 12px 0 0; color: var(--muted); }
.home-simple .home-section { margin-top: 44px; }
.home-simple .home-section-heading { padding: 0 8px; margin-bottom: 12px; }
.home-simple .home-section-heading h2 { font-size: 12px; font-weight: 500; color: var(--muted); }
.home-simple .home-section-heading .textlink { font-size: 12px; }
.home-simple .home-recents { border: 0; background: transparent; border-radius: 0; }
.home-simple .home-recent { border: 0; padding: 12px 10px; border-radius: 10px; gap: 12px; }
.home-simple .home-recent strong { font-size: 14px; font-weight: 500; }
.home-simple .home-recent small { font-size: 11px; margin-top: 4px; }
.home-simple .home-recent > .ui-glyph:last-child { opacity: 0; }
.home-simple .home-recent:hover > .ui-glyph:last-child { opacity: 1; }
.home-connect { text-align: center; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.agent-trigger-mobile { display: none; }
.agent-panel-trigger { white-space: nowrap; flex-shrink: 0; }
#dialog.agent-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: 360px; max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; overflow: hidden; background: var(--bg); }
#dialog.agent-drawer[open] { display: flex; flex-direction: column; }
#dialog.agent-drawer::backdrop { background: #151c2920; backdrop-filter: none; }
#dialog.agent-drawer .modal-head { display: flex; align-items: center; gap: 8px; padding: 22px 20px; margin: 0; border-bottom: 1px solid var(--line); flex-shrink: 0; background: transparent; }
#dialog.agent-drawer .modal-head h2 { font-size: 16px; flex: 1; margin: 0; }
#dialog.agent-drawer .agent-sheet { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; padding: 6px 20px; display: block; }
#dialog.agent-drawer .agent-status-card { padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
#dialog.agent-drawer .agent-status-card:last-child { border-bottom: 0; }
#dialog.agent-drawer .agent-status-heading { gap: 12px; margin-bottom: 16px; }
#dialog.agent-drawer .agent-status-heading .agent-avatar { width: 36px; height: 36px; flex-basis: 36px; }
#dialog.agent-drawer .agent-status-heading strong { font-size: 14px; font-weight: 600; }
#dialog.agent-drawer .agent-status-heading small { font-size: 11px; }
#dialog.agent-drawer .agent-status-quota { margin: 0; }
.quota-details { display: grid; gap: 14px; }
.quota-details-codex { grid-template-columns: 1fr 1fr; }
.quota-detail-weekly { grid-column: 1 / -1; }
.quota-detail-metric > div:first-child { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 12px; color: var(--muted); }
.quota-detail-metric b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quota-details-codex .quota-detail-metric:not(.quota-detail-weekly) > div { display: grid; gap: 6px; }
.quota-details-codex .quota-detail-metric:nth-child(3) { border-left: 1px solid var(--line); padding-left: 16px; }
.quota-bar { background: var(--line); border-radius: 4px; height: 4px; margin-top: 10px; overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.quota-low .quota-bar i { background: #c67b32; }
.quota-detail-note { margin: 12px 0 0; font-size: 10px; color: var(--muted); line-height: 1.5; }
.agent-drawer-footer { border-top: 1px solid var(--line); padding: 16px 20px max(20px,env(safe-area-inset-bottom)); flex-shrink: 0; }
.agent-drawer-footer p { font-size: 11px; color: var(--muted); margin: 0 0 12px; }
.agent-drawer-footer button { width: 100%; justify-content: center; font-size: 13px; }
@media (max-width: 700px) {
  .workspace-home.home-simple { padding: 44px 18px 28px; }
  .home-simple .home-welcome h1 { font-size: 24px; margin-bottom: 24px; }
  .home-simple #home-input { min-height: 130px; padding: 18px 16px; font-size: 14px; }
  #home-compose .compose-bottom { flex-wrap: wrap; padding: 4px 10px 12px; gap: 8px; }
  #home-compose .composer-options { flex: 1 0 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2px; }
  #home-compose .composer-choice { min-width: 0; }
  #home-compose .composer-pick { width: 100%; max-width: none; justify-content: flex-start; font-size: 12px; }
  #home-compose .home-send-actions { width: 100%; justify-content: space-between; }
  .home-simple .home-section { margin-top: 30px; }
  .agent-trigger-desktop { display: none; }
  .agent-trigger-mobile { display: inline !important; }
  #dialog.agent-drawer { inset: auto 0 0; width: 100%; height: 84dvh; max-height: 90dvh; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding-top: 14px; }
  #dialog.agent-drawer::before { content: ''; position: absolute; top: 7px; left: calc(50% - 16px); width: 32px; height: 4px; border-radius: 4px; background: var(--line); }
  #dialog.agent-drawer .modal-head { padding: 12px 20px 16px; }
  #dialog.agent-drawer .agent-status-card { padding: 18px 0; }
}
.home-simple .home-welcome { padding: 0; }
#home-compose #home-send > .ui-glyph { display: block; width: 19px; height: 19px; }
@media (max-width: 700px) {
  #home-compose #home-send, #home-compose #home-attach { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  #home-compose .composer-pick { min-height: 40px; }
}
#dialog.agent-drawer .modal-head .icon { color: var(--ink); background: transparent; }
#dialog.agent-drawer .modal-head .icon:hover,
#dialog.agent-drawer .modal-head .icon:focus-visible { background: var(--soft); }
.invite-access { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; margin: 16px 0; }
#remote-panel .remote-state { font-weight: 600; margin: 6px 0 20px; }
#remote-panel input { width: 100%; margin: 8px 0 12px; font-size: 12px; }
#remote-panel .hint { line-height: 1.7; }
.guest-files { margin: 24px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.guest-files h3 { font-size: 13px; color: var(--muted); }
.guest-files a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 8px 0; color: var(--ink); text-decoration: none; }
.guest-files a span { flex: 1; overflow-wrap: anywhere; min-width: 0; }

/* Participant uploads remain outside the knowledge vault until explicitly archived. */
.participant-compose .guest-attachments{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px}
.guest-attachments>span{display:flex;align-items:center;gap:6px;max-width:100%;overflow-wrap:anywhere;padding:5px 8px;background:var(--soft,#f5f6fa);border-radius:8px;font-size:12px}
.guest-attachments svg,.guest-upload-tools svg{width:16px;height:16px;flex:none}
.guest-attachments button{border:0;background:none;cursor:pointer;min-width:28px;min-height:28px}
.participant-compose .guest-upload-tools{justify-content:flex-start;flex-wrap:wrap;margin:8px 0}
.guest-upload-label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13px}
.guest-upload-label input{width:1px;height:1px;position:absolute;opacity:0}
.guest-upload-tools small{font-size:11px;color:var(--muted)}
