/* System fonts keep the installed application fully self-contained. */
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #292d32;
  background: #fbfaf8;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  font-weight: 400;
  font-feature-settings: "cv11", "ss01";
  --line: #e8e7e3;
  --muted: #92938f;
  --blue: #376b91;
}
@supports (color: light-dark(#000, #fff)) {
:root {
  color: light-dark(#292d32, #dadfe6);
  background: light-dark(#fbfaf8, #1a1918);
  --line: light-dark(#e8e7e3, #2a2926);
  --muted: light-dark(#92938f, #82837f);
  --blue: light-dark(#376b91, #7fb4de);
}
}
/*
 * Light and dark: every color is light-dark(light, dark), and the color scheme picks the side.
 * theme.ts sets data-theme for a chosen theme; without it the system's setting decides.
 * A browser without light-dark() gets the light colors (the build writes them first: electron.vite.config.ts).
 */
@supports (color: light-dark(#000, #fff)) {
  :root {
    color-scheme: light dark;
  }
  :root[data-theme="light"] {
    color-scheme: light;
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
}
button {
  background: none;
  border: 0;
}
button,
textarea,
input,
select {
  -webkit-app-region: no-drag;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #5d8eae;
  outline-offset: 4px;
}
@supports (color: light-dark(#000, #fff)) {
button:focus-visible,
a:focus-visible {
  outline: 2px solid light-dark(#5d8eae, #6697b8);
}
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
}
input:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 3px #89aabc25;
  border-color: #8ea6b5;
}
@supports (color: light-dark(#000, #fff)) {
input:focus-visible,
select:focus-visible {
  border-color: light-dark(#8ea6b5, #5c7381);
}
}
svg {
  flex-shrink: 0;
  stroke-width: 1.65;
}
button {
  transition:
    background 0.14s,
    color 0.14s,
    box-shadow 0.14s;
}
button:hover {
  color: #161c22;
}
@supports (color: light-dark(#000, #fff)) {
button:hover {
  color: light-dark(#161c22, #e3ecf4);
}
}
kbd {
  font-family: inherit;
}
.app {
  --titlebar-height: 52px;
  --sidebar-toggle-left: 12px;
  --sidebar-open-width: 258px;
  --sidebar-width: var(--sidebar-open-width);
  --sidebar-motion: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  padding-top: var(--titlebar-height);
  overflow: hidden;
  transition: grid-template-columns var(--sidebar-motion);
}
.app[data-platform="darwin"] {
  --sidebar-toggle-left: 96px;
}
.window-chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--titlebar-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 20px 0 calc(var(--sidebar-toggle-left) + 46px);
  background: #fbfaf8;
  -webkit-app-region: drag;
}
@supports (color: light-dark(#000, #fff)) {
.window-chrome {
  background: light-dark(#fbfaf8, #1a1918);
}
}
.window-chrome::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--sidebar-width);
  background: #f1f0ec;
  pointer-events: none;
  transition: width var(--sidebar-motion);
}
@supports (color: light-dark(#000, #fff)) {
.window-chrome::before {
  background: light-dark(#f1f0ec, #23221f);
}
}
.app:not([data-platform="darwin"]) .window-chrome {
  padding-right: 156px;
}
.icon-button.sidebar-toggle {
  position: absolute;
  left: var(--sidebar-toggle-left);
  top: 10px;
  width: 32px;
  height: 32px;
  -webkit-app-region: no-drag;
}
.window-chrome .topbar-right {
  flex-shrink: 0;
}
.sidebar {
  width: var(--sidebar-open-width);
  background: #f1f0ec;
  border-right: 1px solid #e5e4df;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 14px 0;
  overflow: hidden;
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform var(--sidebar-motion),
    opacity var(--sidebar-motion),
    visibility 0s;
}
@supports (color: light-dark(#000, #fff)) {
.sidebar {
  background: light-dark(#f1f0ec, #23221f);
  border-right: 1px solid light-dark(#e5e4df, #2d2c28);
}
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #777b7c;
}
@supports (color: light-dark(#000, #fff)) {
.icon-button {
  color: light-dark(#777b7c, #999d9e);
}
}
.icon-button:hover {
  background: #e4e4df;
  color: #20282d;
}
@supports (color: light-dark(#000, #fff)) {
.icon-button:hover {
  background: light-dark(#e4e4df, #2c2c28);
  color: light-dark(#20282d, #dae5eb);
}
}
.nav-item {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 39px;
  padding: 9px 12px;
  text-align: left;
  border-radius: 8px;
  font-size: 13px;
  color: #656861;
}
@supports (color: light-dark(#000, #fff)) {
.nav-item {
  color: light-dark(#656861, #abaea6);
}
}
.nav-item:hover,
.task-link:hover {
  background: #e8e8e2;
}
@supports (color: light-dark(#000, #fff)) {
.nav-item:hover,
.task-link:hover {
  background: light-dark(#e8e8e2, #292925);
}
}
.nav-item span:first-of-type {
  flex: 1;
}
.nav-item kbd {
  font-size: 10px;
  color: #999b95;
  opacity: 0;
}
@supports (color: light-dark(#000, #fff)) {
.nav-item kbd {
  color: light-dark(#999b95, #787a75);
}
}
.nav-item:hover kbd {
  opacity: 1;
}
.nav-item.active {
  background: #e3e4dd;
  color: #30372f;
}
@supports (color: light-dark(#000, #fff)) {
.nav-item.active {
  background: light-dark(#e3e4dd, #2c2d28);
  color: light-dark(#30372f, #d2dbd1);
}
}
.new-task {
  margin-bottom: 6px;
  font-weight: 530;
}
.new-task kbd {
  opacity: 1;
}
.primary-nav {
  display: grid;
  gap: 3px;
}
.count {
  font-size: 11px;
  color: #979a92;
}
@supports (color: light-dark(#000, #fff)) {
.count {
  color: light-dark(#979a92, #7a7d75);
}
}
.workspace-section {
  margin-top: 33px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 9px;
  color: #97988f;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1px;
  height: 29px;
}
@supports (color: light-dark(#000, #fff)) {
.section-label {
  color: light-dark(#97988f, #7d7e75);
}
}
.section-label .icon-button {
  width: 22px;
  height: 22px;
}
.tool-dot {
  height: 5px;
  width: 5px;
  background: #83a59b;
  border-radius: 100%;
  margin-right: 3px;
}
@supports (color: light-dark(#000, #fff)) {
.tool-dot {
  background: light-dark(#83a59b, #5e7f75);
}
}
.task-section {
  margin-top: 31px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.task-list {
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
}
.task-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  font-size: 12px;
  text-align: left;
  border-radius: 7px;
  color: #767a73;
}
@supports (color: light-dark(#000, #fff)) {
.task-link {
  color: light-dark(#767a73, #9b9f98);
}
}
.task-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #62675f;
}
@supports (color: light-dark(#000, #fff)) {
.task-link span {
  color: light-dark(#62675f, #abb0a7);
}
}
.task-link.selected {
  background: #e0e4dd;
}
@supports (color: light-dark(#000, #fff)) {
.task-link.selected {
  background: light-dark(#e0e4dd, #2b2e29);
}
}
.task-link.selected span {
  color: #242d25;
}
@supports (color: light-dark(#000, #fff)) {
.task-link.selected span {
  color: light-dark(#242d25, #d8e4d9);
}
}
.task-link svg {
  color: #9b9e94;
}
@supports (color: light-dark(#000, #fff)) {
.task-link svg {
  color: light-dark(#9b9e94, #75786f);
}
}
.sidebar-bottom {
  padding-bottom: 19px;
  padding-top: 15px;
}
.main {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #fbfaf8;
}
@supports (color: light-dark(#000, #fff)) {
.main {
  background: light-dark(#fbfaf8, #1a1918);
}
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.model-button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #787c7e;
  border: 1px solid #e5e5e0;
  padding: 8px 10px;
  border-radius: 7px;
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
}
@supports (color: light-dark(#000, #fff)) {
.model-button {
  color: light-dark(#787c7e, #989c9e);
  border: 1px solid light-dark(#e5e5e0, #2b2b28);
}
}
.model-button:hover {
  background: #f0f1ed;
}
@supports (color: light-dark(#000, #fff)) {
.model-button:hover {
  background: light-dark(#f0f1ed, #21221f);
}
}
.tiny-dot {
  width: 5px;
  height: 5px;
  background: #85a18a;
  border-radius: 100%;
  display: inline-block;
  flex-shrink: 0;
}
@supports (color: light-dark(#000, #fff)) {
.tiny-dot {
  background: light-dark(#85a18a, #68836d);
}
}
.preview-badge {
  font-size: 10px;
  color: #96968e;
}
@supports (color: light-dark(#000, #fff)) {
.preview-badge {
  color: light-dark(#96968e, #808078);
}
}
.home {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  padding: 36px 46px;
}
.home-content {
  width: 100%;
  max-width: 725px;
  margin-top: -24px;
}
.home h1 {
  margin-bottom: 36px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -1.55px;
  font-size: 42px;
  line-height: 1.19;
  margin: 0;
  text-align: center;
  color: #30342e;
}
@supports (color: light-dark(#000, #fff)) {
h1 {
  color: light-dark(#30342e, #d6dcd4);
}
}
.narrow-break {
  display: none;
}
.composer {
  width: 100%;
  border: 1px solid #e4e5df;
  border-radius: 17px;
  background: #fff;
  box-shadow:
    0 3px 5px #37403203,
    0 12px 26px #3c453208;
  overflow: hidden;
  padding: 17px 16px 13px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
@supports (color: light-dark(#000, #fff)) {
.composer {
  border: 1px solid light-dark(#e4e5df, #2b2c27);
  background: light-dark(#fff, #131313);
  box-shadow:
    0 3px 5px light-dark(#37403203, #0000000c),
    0 12px 26px light-dark(#3c453208, #00000020);
}
}
.composer:focus-within {
  border-color: #b7c1b2;
  box-shadow:
    0 3px 5px #37403203,
    0 12px 26px #3c45320a;
}
@supports (color: light-dark(#000, #fff)) {
.composer:focus-within {
  border-color: light-dark(#b7c1b2, #454e41);
  box-shadow:
    0 3px 5px light-dark(#37403203, #0000000c),
    0 12px 26px light-dark(#3c45320a, #00000028);
}
}
.composer textarea {
  resize: none;
  border: 0;
  width: 100%;
  display: block;
  background: none;
  color: #3f4541;
  line-height: 1.75;
  font-size: 13px;
  min-height: 60px;
  max-height: 230px;
  padding: 0 4px;
}
@supports (color: light-dark(#000, #fff)) {
.composer textarea {
  color: light-dark(#3f4541, #c7cec9);
}
}
.composer textarea::placeholder {
  color: #b3b5ae;
}
@supports (color: light-dark(#000, #fff)) {
.composer textarea::placeholder {
  color: light-dark(#b3b5ae, #54554f);
}
}
.home-composer textarea {
  min-height: 86px;
}
.composer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  gap: 8px;
}
.composer-tools,
.send-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.composer-tools .icon-button {
  color: #91968e;
}
@supports (color: light-dark(#000, #fff)) {
.composer-tools .icon-button {
  color: light-dark(#91968e, #7e827b);
}
}
.composer-divider {
  width: 1px;
  height: 16px;
  background: #eceee7;
}
@supports (color: light-dark(#000, #fff)) {
.composer-divider {
  background: light-dark(#eceee7, #242520);
}
}
.folder-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8e9488;
  font-size: 10px;
  padding: 5px 6px;
  border-radius: 5px;
  max-width: 230px;
}
@supports (color: light-dark(#000, #fff)) {
.folder-chip {
  color: light-dark(#8e9488, #80867a);
}
}
.folder-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-chip:hover {
  background: #f1f4ed;
}
@supports (color: light-dark(#000, #fff)) {
.folder-chip:hover {
  background: light-dark(#f1f4ed, #1f211c);
}
}
.send-button {
  height: 31px;
  width: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #697d5b;
  color: white;
}
@supports (color: light-dark(#000, #fff)) {
.send-button {
  background: light-dark(#697d5b, #93a884);
}
}
.send-button:disabled {
  background: #e6e9e1;
  color: #b1b9a9;
}
@supports (color: light-dark(#000, #fff)) {
.send-button:disabled {
  background: light-dark(#e6e9e1, #282a24);
  color: light-dark(#b1b9a9, #4e5547);
}
}
.send-button:not(:disabled):hover {
  background: #526545;
  color: white;
}
@supports (color: light-dark(#000, #fff)) {
.send-button:not(:disabled):hover {
  background: light-dark(#526545, #a7bc99);
}
}
.send-button.stop {
  background: #515951;
}
@supports (color: light-dark(#000, #fff)) {
.send-button.stop {
  background: light-dark(#515951, #b5beb5);
}
}
.suggestions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.suggestions button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e7e7e0;
  border-radius: 22px;
  padding: 8px 11px;
  font-size: 10px;
  color: #92978c;
  white-space: nowrap;
  background: #fcfcf9;
}
@supports (color: light-dark(#000, #fff)) {
.suggestions button {
  border: 1px solid light-dark(#e7e7e0, #2a2a25);
  color: light-dark(#92978c, #7d8277);
  background: light-dark(#fcfcf9, #171715);
}
}
.suggestions button svg {
  color: #9eab90;
}
@supports (color: light-dark(#000, #fff)) {
.suggestions button svg {
  color: light-dark(#9eab90, #626e55);
}
}
.suggestions button:hover {
  background: #edf1e7;
  border-color: #ccd5c1;
  color: #506143;
  transform: translateY(-1px);
}
@supports (color: light-dark(#000, #fff)) {
.suggestions button:hover {
  background: light-dark(#edf1e7, #21241d);
  border-color: light-dark(#ccd5c1, #363d2d);
  color: light-dark(#506143, #abbf9d);
}
}
.app.sidebar-hidden {
  --sidebar-width: 0px;
}
.sidebar-hidden .sidebar {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform var(--sidebar-motion),
    opacity var(--sidebar-motion),
    visibility 0s 240ms;
}
.conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.messages-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}
.messages {
  width: min(740px, calc(100% - 84px));
  margin: auto;
  padding: 25px 0 35px;
}
.task-intro {
  text-align: center;
  margin-bottom: 32px;
}
.task-date {
  font-size: 10px;
  color: #abad9f;
}
@supports (color: light-dark(#000, #fff)) {
.task-date {
  color: light-dark(#abad9f, #616256);
}
}
.message {
  margin-bottom: 29px;
}
.message-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 11px;
  color: #555e4f;
}
@supports (color: light-dark(#000, #fff)) {
.message-label {
  color: light-dark(#555e4f, #b1bbaa);
}
}
.mini-avatar {
  display: flex;
  align-items: center;
  color: #9a9e91;
  font-size: 10px;
}
@supports (color: light-dark(#000, #fff)) {
.mini-avatar {
  color: light-dark(#9a9e91, #75796d);
}
}
.message.user {
  padding: 17px 22px;
  background: #f0f1eb;
  border-radius: 12px;
  margin-left: 70px;
}
@supports (color: light-dark(#000, #fff)) {
.message.user {
  background: light-dark(#f0f1eb, #22221e);
}
}
.message.user .message-label {
  margin-bottom: 5px;
}
.message-content {
  line-height: 1.85;
  font-size: 13px;
  color: #4c5147;
}
@supports (color: light-dark(#000, #fff)) {
.message-content {
  color: light-dark(#4c5147, #bfc5b9);
}
}
.message-content p {
  margin: 0 0 12px;
}
.message-content p:last-child {
  margin-bottom: 0;
}
.message-content strong {
  color: #343c2d;
  font-weight: 600;
}
@supports (color: light-dark(#000, #fff)) {
.message-content strong {
  color: light-dark(#343c2d, #ced8c6);
}
}
.message-content ul,
.message-content ol {
  padding-left: 23px;
}
.message-content pre {
  background: #f0f1eb;
  padding: 14px;
  border-radius: 8px;
  overflow: auto;
  font-size: 11px;
}
@supports (color: light-dark(#000, #fff)) {
.message-content pre {
  background: light-dark(#f0f1eb, #22221e);
}
}
.message-content code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.message-content a {
  color: #466d89;
}
@supports (color: light-dark(#000, #fff)) {
.message-content a {
  color: light-dark(#466d89, #88b1d0);
}
}
.tool-message {
  margin: 4px 0 14px;
  border: 1px solid #e5e7df;
  background: #f7f8f3;
  border-radius: 9px;
  color: #829075;
  font-size: 11px;
}
@supports (color: light-dark(#000, #fff)) {
.tool-message {
  border: 1px solid light-dark(#e5e7df, #2a2b25);
  background: light-dark(#f7f8f3, #1b1c19);
  color: light-dark(#829075, #849277);
}
}
.tool-message summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}
.tool-message summary span {
  flex: 1;
}
.tool-message pre {
  color: #888e7e;
  white-space: pre-wrap;
  word-break: break-word;
  font:
    10px/1.7 ui-monospace,
    monospace;
  max-height: 280px;
  overflow: auto;
  padding: 0 14px 12px;
  margin: 0;
}
.tool-message[open] summary > svg:last-child {
  transform: rotate(180deg);
}
.thinking-status {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #97a08e;
  padding: 8px 0;
}
@supports (color: light-dark(#000, #fff)) {
.thinking-status {
  color: light-dark(#97a08e, #727a69);
}
}
.conversation-composer {
  width: min(740px, calc(100% - 84px));
  margin: 0 auto;
  padding: 10px 0 16px;
}
.error-banner {
  margin: 5px 32px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #f9eee7;
  color: #a36844;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.error-banner {
  background: light-dark(#f9eee7, #28201b);
  color: light-dark(#a36844, #cb8d68);
}
}
.error-banner > span {
  flex: 1;
}
.task-error {
  display: flex;
  gap: 10px;
  background: #f8eee8;
  padding: 16px;
  border-radius: 10px;
  color: #9d7258;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.task-error {
  background: light-dark(#f8eee8, #27201c);
  color: light-dark(#9d7258, #bb8f74);
}
}
.task-error strong {
  font-weight: 600;
}
.task-error p {
  margin: 5px 0 0;
  line-height: 1.6;
}
.stopped-note {
  text-align: center;
  font-size: 11px;
  color: #a2a592;
  padding: 14px;
}
@supports (color: light-dark(#000, #fff)) {
.stopped-note {
  color: light-dark(#a2a592, #6d705e);
}
}
.menu-wrap {
  position: relative;
}
.popover {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 38px;
  width: 230px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px #33333312;
  border-radius: 10px;
  padding: 7px;
}
@supports (color: light-dark(#000, #fff)) {
.popover {
  box-shadow: 0 10px 30px light-dark(#33333312, #00000048);
}
}
.task-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 10px;
  border-radius: 6px;
  text-align: left;
}
.task-menu button:hover {
  background: #f0f2eb;
}
@supports (color: light-dark(#000, #fff)) {
.task-menu button:hover {
  background: light-dark(#f0f2eb, #21221d);
}
}
.usage-detail {
  border-top: 1px solid var(--line);
  margin: 6px 3px 0;
  padding: 11px 7px 4px;
  font-size: 10px;
  color: #a3a795;
}
@supports (color: light-dark(#000, #fff)) {
.usage-detail {
  color: light-dark(#a3a795, #6a6d5d);
}
}
.tasks-page {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 65px;
  overflow: auto;
}
.page-eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #95a189;
  margin-bottom: 15px;
}
@supports (color: light-dark(#000, #fff)) {
.page-eyebrow {
  color: light-dark(#95a189, #707c65);
}
}
.tasks-page h1 {
  text-align: left;
  font-size: 36px;
  letter-spacing: -1px;
}
.tasks-page > p {
  font-size: 12px;
  color: #969d8e;
  margin: 17px 0 32px;
}
@supports (color: light-dark(#000, #fff)) {
.tasks-page > p {
  color: light-dark(#969d8e, #767c6e);
}
}
.task-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  color: #9ca392;
}
@supports (color: light-dark(#000, #fff)) {
.task-search {
  color: light-dark(#9ca392, #6e7565);
}
}
.task-search input {
  border: 0;
  flex: 1;
  min-width: 0;
  background: transparent;
  font-size: 12px;
  color: #525b48;
}
@supports (color: light-dark(#000, #fff)) {
.task-search input {
  color: light-dark(#525b48, #b4bfa9);
}
}
.task-search button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: #e9ede2;
  padding: 9px 12px;
  border-radius: 7px;
  color: #697757;
}
@supports (color: light-dark(#000, #fff)) {
.task-search button {
  background: light-dark(#e9ede2, #25271f);
  color: light-dark(#697757, #9baa88);
}
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding-top: 25px;
}
.task-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}
@supports (color: light-dark(#000, #fff)) {
.task-card {
  background: light-dark(#fff, #131313);
}
}
.task-card:hover {
  border-color: #c9d2bd;
  box-shadow: 0 5px 16px #34472407;
}
@supports (color: light-dark(#000, #fff)) {
.task-card:hover {
  border-color: light-dark(#c9d2bd, #39402f);
}
}
.task-card > div,
.task-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #96a188;
}
@supports (color: light-dark(#000, #fff)) {
.task-card > div,
.task-card footer {
  color: light-dark(#96a188, #717b63);
}
}
.task-card h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  margin: 20px 0 6px;
  color: #47523b;
}
@supports (color: light-dark(#000, #fff)) {
.task-card h3 {
  color: light-dark(#47523b, #bcc9ae);
}
}
.task-card p {
  font-size: 11px;
  color: #a5aa9a;
}
@supports (color: light-dark(#000, #fff)) {
.task-card p {
  color: light-dark(#a5aa9a, #64695a);
}
}
.task-card footer {
  border-top: 1px solid #f0f1e9;
  padding-top: 14px;
  margin-top: 22px;
  font-size: 10px;
  color: #a1a991;
}
@supports (color: light-dark(#000, #fff)) {
.task-card footer {
  border-top: 1px solid light-dark(#f0f1e9, #22231d);
  color: light-dark(#a1a991, #676e57);
}
}
.status-label {
  font-size: 9px;
  border-radius: 20px;
  padding: 4px 7px;
  background: #f2f4ed;
  color: #95a285;
}
@supports (color: light-dark(#000, #fff)) {
.status-label {
  background: light-dark(#f2f4ed, #1f201b);
  color: light-dark(#95a285, #707c60);
}
}
.status-label.running {
  background: #eaf1f4;
  color: #6491a8;
}
@supports (color: light-dark(#000, #fff)) {
.status-label.running {
  background: light-dark(#eaf1f4, #1e2326);
  color: light-dark(#6491a8, #6794ac);
}
}
.status-label.error {
  background: #faefe7;
  color: #b28059;
}
@supports (color: light-dark(#000, #fff)) {
.status-label.error {
  background: light-dark(#faefe7, #271f1a);
  color: light-dark(#b28059, #b07e57);
}
}
.tasks-empty {
  text-align: center;
  padding: 90px 20px;
  color: #bdc3b2;
}
@supports (color: light-dark(#000, #fff)) {
.tasks-empty {
  color: light-dark(#bdc3b2, #464b3c);
}
}
.tasks-empty h3 {
  font:
    26px Georgia,
    serif;
  color: #879278;
  margin-bottom: 13px;
}
@supports (color: light-dark(#000, #fff)) {
.tasks-empty h3 {
  color: light-dark(#879278, #838e74);
}
}
.tasks-empty p {
  font-size: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #26322239;
  backdrop-filter: blur(4px);
  animation: fade 0.15s ease-out;
}
@supports (color: light-dark(#000, #fff)) {
.modal-backdrop {
  background: light-dark(#26322239, #00000086);
}
}
.settings-dialog {
  width: 540px;
  max-height: calc(100dvh - 60px);
  overflow: auto;
  background: #fbfcf8;
  border: 1px solid #e7e9de;
  border-radius: 19px;
  padding: 27px 30px;
  box-shadow: 0 30px 100px #1f2c1929;
}
@supports (color: light-dark(#000, #fff)) {
.settings-dialog {
  background: light-dark(#fbfcf8, #171815);
  border: 1px solid light-dark(#e7e9de, #292a22);
  box-shadow: 0 30px 100px light-dark(#1f2c1929, #00000080);
}
}
.settings-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-mark {
  width: 42px;
  height: 42px;
  background: #eef2e6;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #7c8e65;
}
@supports (color: light-dark(#000, #fff)) {
.settings-mark {
  background: light-dark(#eef2e6, #21231b);
  color: light-dark(#7c8e65, #879970);
}
}
.settings-dialog h2 {
  font:
    32px/1.2 Georgia,
    serif;
  letter-spacing: -0.7px;
  color: #3a4530;
  margin: 21px 0 10px;
}
@supports (color: light-dark(#000, #fff)) {
.settings-dialog h2 {
  color: light-dark(#3a4530, #c6d3ba);
}
}
.settings-description {
  font-size: 12px;
  color: #939c87;
  margin-bottom: 28px;
}
@supports (color: light-dark(#000, #fff)) {
.settings-description {
  color: light-dark(#939c87, #77806b);
}
}
.form-section-title {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #939e86;
  margin-bottom: 16px;
}
@supports (color: light-dark(#000, #fff)) {
.form-section-title {
  color: light-dark(#939e86, #747f68);
}
}
.settings-dialog label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #6a755d;
  margin-bottom: 16px;
}
@supports (color: light-dark(#000, #fff)) {
.settings-dialog label {
  color: light-dark(#6a755d, #9da990);
}
}
.settings-dialog input:not([type="checkbox"]),
.settings-dialog select,
.rename-dialog input {
  border: 1px solid #e0e5d7;
  border-radius: 7px;
  background: white;
  width: 100%;
  padding: 11px 12px;
  font-size: 12px;
  color: #45513a;
}
@supports (color: light-dark(#000, #fff)) {
.settings-dialog input:not([type="checkbox"]),
.settings-dialog select,
.rename-dialog input {
  border: 1px solid light-dark(#e0e5d7, #2b2e24);
  color: light-dark(#45513a, #bccab0);
}
}
.settings-dialog input::placeholder {
  color: #b6bdac;
}
@supports (color: light-dark(#000, #fff)) {
.settings-dialog input::placeholder {
  color: light-dark(#b6bdac, #4a5042);
}
}
.field-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}
.field-note {
  font-size: 10px;
  color: #a0a98e;
  line-height: 1.7;
  margin-top: -6px;
}
@supports (color: light-dark(#000, #fff)) {
.field-note {
  color: light-dark(#a0a98e, #676f56);
}
}
.tools-heading {
  margin-top: 27px;
  margin-bottom: 10px;
}
.settings-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #e9ecdf;
  color: #879674;
}
@supports (color: light-dark(#000, #fff)) {
.settings-tool {
  border-top: 1px solid light-dark(#e9ecdf, #26281e);
  color: light-dark(#879674, #7e8c6b);
}
}
.settings-tool > div {
  flex: 1;
}
.settings-tool strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #647254;
}
@supports (color: light-dark(#000, #fff)) {
.settings-tool strong {
  color: light-dark(#647254, #9fae8e);
}
}
.settings-tool span {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #a0a990;
  margin-top: 3px;
}
@supports (color: light-dark(#000, #fff)) {
.settings-tool span {
  color: light-dark(#a0a990, #666f57);
}
}
.settings-dialog label.toggle-row {
  flex-direction: row;
  align-items: center;
  margin-bottom: 0;
}
.toggle-row input {
  accent-color: #789164;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
@supports (color: light-dark(#000, #fff)) {
.toggle-row input {
  accent-color: light-dark(#789164, #809a6c);
}
}
.settings-dialog footer,
.rename-dialog form > div {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 23px;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 7px;
  font-size: 11px;
}
.primary-button {
  background: #627c4e;
  color: #fff;
}
@supports (color: light-dark(#000, #fff)) {
.primary-button {
  background: light-dark(#627c4e, #91ad7c);
  color: light-dark(#fff, #131313);
}
}
.primary-button:hover {
  background: #4e683c;
  color: white;
}
@supports (color: light-dark(#000, #fff)) {
.primary-button:hover {
  background: light-dark(#4e683c, #a1be8e);
}
}
.primary-button:disabled {
  opacity: 0.45;
}
.secondary-button {
  border: 1px solid #e1e6d7;
  color: #8c997b;
  background: #f7f9f1;
}
@supports (color: light-dark(#000, #fff)) {
.secondary-button {
  border: 1px solid light-dark(#e1e6d7, #2a2e22);
  color: light-dark(#8c997b, #7a876a);
  background: light-dark(#f7f9f1, #1b1c16);
}
}
.form-error {
  background: #f9eee5;
  padding: 12px;
  border-radius: 7px;
  color: #a26f4f;
  font-size: 11px;
  line-height: 1.6;
}
@supports (color: light-dark(#000, #fff)) {
.form-error {
  background: light-dark(#f9eee5, #28201a);
  color: light-dark(#a26f4f, #c28d6c);
}
}
.search-dialog {
  width: 590px;
  background: #fafbf7;
  border: 1px solid #e8ecdf;
  border-radius: 15px;
  box-shadow: 0 25px 70px #1d2c1929;
  overflow: hidden;
  align-self: flex-start;
  margin-top: 15vh;
}
@supports (color: light-dark(#000, #fff)) {
.search-dialog {
  background: light-dark(#fafbf7, #191916);
  border: 1px solid light-dark(#e8ecdf, #26291f);
  box-shadow: 0 25px 70px light-dark(#1d2c1929, #00000080);
}
}
.search-input {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e6e9dc;
  padding: 16px 20px;
  color: #9da78f;
}
@supports (color: light-dark(#000, #fff)) {
.search-input {
  border-bottom: 1px solid light-dark(#e6e9dc, #282b21);
  color: light-dark(#9da78f, #69725c);
}
}
.search-input input {
  border: 0;
  flex: 1;
  background: none;
  font-size: 14px;
  min-width: 0;
}
.search-results {
  padding: 9px;
  max-height: 400px;
  overflow: auto;
}
.search-results > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  padding: 13px;
  color: #6f7d5c;
  font-size: 12px;
  text-align: left;
}
@supports (color: light-dark(#000, #fff)) {
.search-results > button {
  color: light-dark(#6f7d5c, #96a583);
}
}
.search-results > button > span {
  flex: 1;
}
.search-results > button:hover {
  background: #edf2e5;
}
@supports (color: light-dark(#000, #fff)) {
.search-results > button:hover {
  background: light-dark(#edf2e5, #21241b);
}
}
.search-results > p {
  text-align: center;
  padding: 35px 20px;
  font-size: 12px;
  color: #a0ab91;
}
@supports (color: light-dark(#000, #fff)) {
.search-results > p {
  color: light-dark(#a0ab91, #636d55);
}
}
.rename-dialog {
  width: 400px;
  padding: 27px;
  background: #fcfdf9;
  border-radius: 13px;
}
@supports (color: light-dark(#000, #fff)) {
.rename-dialog {
  background: light-dark(#fcfdf9, #161714);
}
}
.rename-dialog h2 {
  font:
    25px Georgia,
    serif;
  margin: 0 0 22px;
}
.rename-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.spin {
  animation: spin 1s linear infinite;
}
.blue {
  color: #739dba !important;
}
@supports (color: light-dark(#000, #fff)) {
.blue {
  color: light-dark(#739dba, #5a839f) !important;
}
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-height: 1050px) {
  .home-content {
    margin-top: -90px;
  }
}
@media (max-width: 1120px) {
  .app {
    --sidebar-open-width: 235px;
  }
  .home {
    padding-left: 32px;
    padding-right: 32px;
  }
  h1 {
    font-size: 37px;
  }
  .suggestions {
    gap: 6px;
  }
  .suggestions button {
    font-size: 9px;
    padding: 8px 9px;
  }
}
@media (max-width: 900px) {
  .app {
    --sidebar-open-width: 210px;
  }
  .sidebar {
    padding: 14px 9px 0;
  }
  .home {
    padding-left: 27px;
    padding-right: 27px;
  }
  .narrow-break {
    display: block;
  }
  .home-content {
    margin-top: -10px;
  }
  .suggestions {
    max-width: 340px;
    margin: 20px auto 0;
  }
  .model-button {
    max-width: 150px;
    font-size: 10px;
  }
  .messages,
  .conversation-composer {
    width: calc(100% - 50px);
  }
  .tasks-page {
    padding: 45px 28px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .app {
    --sidebar-open-width: 238px;
    --sidebar-width: 0px;
  }
  .sidebar {
    position: fixed;
    top: var(--titlebar-height);
    bottom: 0;
    left: 0;
    width: 238px;
    z-index: 30;
    box-shadow: 12px 0 24px #28351c12;
  }
  @supports (color: light-dark(#000, #fff)) {
  .sidebar {
    box-shadow: 12px 0 24px light-dark(#28351c12, #00000048);
  }
  }
  .home {
    padding: 10px 22px 80px;
  }
  .home-content {
    margin-top: 0;
  }
  .home h1 {
    font-size: 34px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .settings-dialog {
    padding: 23px;
    max-height: calc(100dvh - 28px);
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .home .composer {
    padding: 15px 12px 11px;
  }
  .folder-chip {
    max-width: 180px;
  }
  .message.user {
    margin-left: 25px;
  }
  .preview-badge {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep secondary text legible on factory office displays. */
.suggestions button {
  font-size: 12px;
  color: #727d66;
  padding: 9px 13px;
}
@supports (color: light-dark(#000, #fff)) {
.suggestions button {
  color: light-dark(#727d66, #97a28a);
}
}
.suggestions button svg {
  color: #819272;
}
.folder-chip {
  font-size: 11px;
  color: #748267;
}
@supports (color: light-dark(#000, #fff)) {
.folder-chip {
  color: light-dark(#748267, #91a084);
}
}
.composer textarea {
  font-size: 14px;
}
.composer textarea::placeholder {
  color: #979e90;
}
@supports (color: light-dark(#000, #fff)) {
.composer textarea::placeholder {
  color: light-dark(#979e90, #747b6e);
}
}
.section-label {
  color: #7f8973;
}
@supports (color: light-dark(#000, #fff)) {
.section-label {
  color: light-dark(#7f8973, #8d9881);
}
}
.model-button {
  font-size: 12px;
  color: #6e7c62;
}
@supports (color: light-dark(#000, #fff)) {
.model-button {
  color: light-dark(#6e7c62, #96a58a);
}
}
.settings-description {
  color: #77866a;
}
@supports (color: light-dark(#000, #fff)) {
.settings-description {
  color: light-dark(#77866a, #8e9d80);
}
}
.field-note {
  color: #829172;
}
@supports (color: light-dark(#000, #fff)) {
.field-note {
  color: light-dark(#829172, #839273);
}
}
.settings-tool span {
  color: #81916e;
}
@supports (color: light-dark(#000, #fff)) {
.settings-tool span {
  color: light-dark(#81916e, #839370);
}
}
.settings-dialog label {
  font-size: 12px;
}
.settings-tool strong {
  font-size: 12px;
}
.form-section-title {
  color: #7c8c6a;
}
@supports (color: light-dark(#000, #fff)) {
.form-section-title {
  color: light-dark(#7c8c6a, #899977);
}
}
.home-content {
  max-width: 750px;
}
.agent-section {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-top: 12px;
}
.agent-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 9px;
  background: #e7e6df;
  color: #69765b;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.agent-avatar {
  background: light-dark(#e7e6df, #2b2b25);
  color: light-dark(#69765b, #9caa8d);
}
}
.task-link .agent-avatar {
  flex: 0 0 29px;
}
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.sidebar-scrim {
  display: none;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 8px;
  background: #46563d;
  color: #fff;
  font-size: 13px;
}
@supports (color: light-dark(#000, #fff)) {
.primary {
  background: light-dark(#46563d, #b5c8ab);
  color: light-dark(#fff, #131313);
}
}
.primary:hover {
  background: #34462d;
  color: #fff;
}
@supports (color: light-dark(#000, #fff)) {
.primary:hover {
  background: light-dark(#34462d, #c0d6b8);
  color: light-dark(#fff, #131313);
}
}
.primary:disabled {
  opacity: 0.45;
}
.loading-screen,
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.login-page form {
  width: min(340px, calc(100vw - 44px));
  display: grid;
  gap: 22px;
}
.login-page h1 {
  font-size: 32px;
  margin: 0 0 10px;
}
.login-page label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #727769;
}
@supports (color: light-dark(#000, #fff)) {
.login-page label {
  color: light-dark(#727769, #9ea394);
}
}
.login-page input,
.rename-dialog input,
.connection-dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  min-width: 0;
}
@supports (color: light-dark(#000, #fff)) {
.login-page input,
.rename-dialog input,
.connection-dialog input {
  background: light-dark(#fff, #131313);
}
}
.login-page [role="alert"],
.connection-dialog [role="alert"] {
  color: #a94f3f;
}
@supports (color: light-dark(#000, #fff)) {
.login-page [role="alert"],
.connection-dialog [role="alert"] {
  color: light-dark(#a94f3f, #e98876);
}
}
.empty-home {
  text-align: center;
}
.empty-home h1 {
  font-size: clamp(24px, 3vw, 35px);
  margin-bottom: 25px;
}
.chat-view .main {
  margin-top: calc(-1 * var(--titlebar-height));
}
.chat-view .window-chrome {
  height: 16px;
  background: transparent;
}
.chat-view .window-chrome::before {
  bottom: auto;
  height: var(--titlebar-height);
}
.chat-view.sidebar-hidden .sidebar-toggle {
  background: #fbfaf8;
}
@supports (color: light-dark(#000, #fff)) {
.chat-view.sidebar-hidden .sidebar-toggle {
  background: light-dark(#fbfaf8, #1a1918);
}
}
.conversation {
  min-height: 0;
  position: relative;
}
.conversation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, #fbfaf8, #fbfaf800);
}
@supports (color: light-dark(#000, #fff)) {
.conversation::before {
  background: linear-gradient(to bottom, light-dark(#fbfaf8, #1a1918), light-dark(#fbfaf800, #1a191800));
}
}
.agent-list-row {
  display: flex;
  align-items: center;
  min-width: 0;
}
.agent-list-row .task-link {
  flex: 1;
  min-width: 0;
}
.agent-rename {
  opacity: 0;
  flex-shrink: 0;
  width: 25px;
}
.agent-list-row:hover .agent-rename,
.agent-rename:focus-visible {
  opacity: 1;
}
.messages-scroll {
  overflow-anchor: none;
}
.messages {
  padding-top: 24px;
  padding-bottom: 26px;
}
.conversation-turn + .conversation-turn {
  margin-top: 12px;
}
.messages .message {
  width: fit-content;
  max-width: 84%;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.messages .message.user {
  margin-left: auto;
  --bubble-color: #e7ebe1;
}
@supports (color: light-dark(#000, #fff)) {
.messages .message.user {
  --bubble-color: light-dark(#e7ebe1, #262922);
}
}
.messages .message.assistant {
  margin-right: auto;
  --bubble-color: #efede7;
}
@supports (color: light-dark(#000, #fff)) {
.messages .message.assistant {
  --bubble-color: light-dark(#efede7, #262520);
}
}
.message-body {
  width: fit-content;
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 19px;
  background: var(--bubble-color);
  color: #343a31;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
@supports (color: light-dark(#000, #fff)) {
.message-body {
  color: light-dark(#343a31, #d0d8cd);
}
}
.message.user .message-body {
  margin-left: auto;
}
.message.user + .message.user {
  margin-top: -4px;
}
.message-body > :first-child {
  margin-top: 0;
}
.message-body > :last-child {
  margin-bottom: 0;
}
.message-body p,
.message-body ul,
.message-body ol,
.message-body blockquote,
.message-body pre {
  margin: 8px 0;
}
.message-body ul,
.message-body ol {
  padding-left: 22px;
}
.message-body pre {
  max-width: 100%;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 9px;
  background: #343a3109;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.message-body pre {
  background: light-dark(#343a3109, #d0d8cd10);
}
}
.message-body img {
  max-width: 100%;
  height: auto;
  border-radius: 9px;
}
.message-meta {
  display: block;
  font-size: 11px;
  color: #8c9382;
  margin: 4px 5px 0;
  text-align: right;
}
@supports (color: light-dark(#000, #fff)) {
.message-meta {
  color: light-dark(#8c9382, #828978);
}
}
.cloud-tool {
  margin: 10px 0 16px;
  font-size: 12px;
  color: #7c8572;
}
@supports (color: light-dark(#000, #fff)) {
.cloud-tool {
  color: light-dark(#7c8572, #919a87);
}
}
.cloud-tool summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 5px 0;
}
.cloud-tool pre {
  background: #f1f0eb;
  color: #575e52;
  padding: 15px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 8px;
}
@supports (color: light-dark(#000, #fff)) {
.cloud-tool pre {
  background: light-dark(#f1f0eb, #23221f);
  color: light-dark(#575e52, #b2baac);
}
}
.cloud-tool.error {
  color: #a94f3f;
}
@supports (color: light-dark(#000, #fff)) {
.cloud-tool.error {
  color: light-dark(#a94f3f, #e98876);
}
}
.trace-dot {
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: #89967d;
}
@supports (color: light-dark(#000, #fff)) {
.trace-dot {
  background: light-dark(#89967d, #7d8a71);
}
}
.composer-hint {
  color: #969a91;
  font-size: 11px;
}
@supports (color: light-dark(#000, #fff)) {
.composer-hint {
  color: light-dark(#969a91, #797d75);
}
}
.composer .send-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.composer {
  width: 100%;
}
.management-page {
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 48px 40px;
  overflow: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-heading h1 {
  margin: 0;
  font-size: 29px;
}
.page-heading h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}
.page-note,
.empty-note {
  color: #89917f;
  font-size: 13px;
  line-height: 1.7;
}
@supports (color: light-dark(#000, #fff)) {
.page-note,
.empty-note {
  color: light-dark(#89917f, #848c7a);
}
}
.page-note {
  margin: 15px 0 30px;
}
/* Settings: its sections as tabs under the heading; the theme as three choices (App.tsx). */
.settings-tabs {
  display: flex;
  gap: 24px;
  margin: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}
.settings-tabs button {
  margin-bottom: -1px;
  padding: 0 1px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: #89917f;
  font-size: 14px;
  cursor: pointer;
}
@supports (color: light-dark(#000, #fff)) {
.settings-tabs button {
  color: light-dark(#89917f, #848c7a);
}
}
.settings-tabs button:hover {
  color: #4a5245;
}
@supports (color: light-dark(#000, #fff)) {
.settings-tabs button:hover {
  color: light-dark(#4a5245, #bcc6b7);
}
}
.settings-tabs button.selected {
  border-bottom-color: #5d7150;
  color: #343a31;
}
@supports (color: light-dark(#000, #fff)) {
.settings-tabs button.selected {
  border-bottom-color: light-dark(#5d7150, #9cb28f);
  color: light-dark(#343a31, #d0d8cd);
}
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.theme-options legend {
  padding: 0 0 10px;
  color: #949b8b;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.theme-options legend {
  color: light-dark(#949b8b, #787f70);
}
}
.theme-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #62695b;
  font-size: 13px;
  cursor: pointer;
}
@supports (color: light-dark(#000, #fff)) {
.theme-options label {
  color: light-dark(#62695b, #a9b0a1);
}
}
.theme-options label.selected {
  border-color: #9fae93;
  background: #f6f7f2;
  color: #343a31;
}
@supports (color: light-dark(#000, #fff)) {
.theme-options label.selected {
  border-color: light-dark(#9fae93, #5d6b52);
  background: light-dark(#f6f7f2, #1c1d1a);
  color: light-dark(#343a31, #d0d8cd);
}
}
.theme-options label:has(input:focus-visible) {
  outline: 2px solid #89967d;
  outline-offset: 2px;
}
@supports (color: light-dark(#000, #fff)) {
.theme-options label:has(input:focus-visible) {
  outline: 2px solid light-dark(#89967d, #7d8a71);
}
}
.theme-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.settings-language .language-select {
  width: min(320px, 100%);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
@media (max-width: 520px) {
  .theme-options {
    grid-template-columns: 1fr;
  }
}
.resource-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.resource-row > div {
  flex: 1;
  min-width: 0;
}
.resource-row strong {
  font-weight: 500;
  font-size: 14px;
}
.resource-row p {
  color: #62695b;
  line-height: 1.7;
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@supports (color: light-dark(#000, #fff)) {
.resource-row p {
  color: light-dark(#62695b, #a9b0a1);
}
}
.resource-row small {
  color: #949b8b;
}
@supports (color: light-dark(#000, #fff)) {
.resource-row small {
  color: light-dark(#949b8b, #787f70);
}
}
.resource-row > button {
  padding: 9px;
  font-size: 12px;
  color: #707b62;
}
@supports (color: light-dark(#000, #fff)) {
.resource-row > button {
  color: light-dark(#707b62, #99a48a);
}
}
.connection-dialog {
  background: #fbfaf8;
  border-radius: 14px;
  width: min(1040px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
}
@supports (color: light-dark(#000, #fff)) {
.connection-dialog {
  background: light-dark(#fbfaf8, #1a1918);
}
}
.browser-address,
.browser-input,
.connection-save {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  align-items: center;
}
.browser-address input,
.browser-input input {
  flex: 1;
}
.browser-input button {
  flex: 0 0 auto;
  padding: 8px;
  font-size: 12px;
}
.browser-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #86917c;
}
@supports (color: light-dark(#000, #fff)) {
.browser-location {
  color: light-dark(#86917c, #838e79);
}
}
.remote-screen {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.remote-screen img {
  display: block;
  width: 100%;
}
.remote-busy {
  position: absolute;
  inset: 0;
  background: #fbfaf840;
  display: grid;
  place-items: center;
}
@supports (color: light-dark(#000, #fff)) {
.remote-busy {
  background: light-dark(#fbfaf840, #1a191840);
}
}
.connection-save input {
  flex: 1;
}
.connection-save button {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .messages .message {
    max-width: 90%;
  }
  .app {
    --sidebar-width: 0px;
  }
  .sidebar {
    position: fixed;
    top: var(--titlebar-height);
    left: 0;
    bottom: 0;
    width: 258px;
    z-index: 35;
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: var(--titlebar-height) 0 0;
    background: #1c241b33;
    z-index: 30;
  }
  @supports (color: light-dark(#000, #fff)) {
  .sidebar-scrim {
    background: light-dark(#1c241b33, #0000007a);
  }
  }
  .sidebar-hidden .sidebar {
    transform: translateX(-100%);
  }
  .agent-rename {
    opacity: 0.65;
  }
  .messages,
  .conversation-composer {
    width: calc(100% - 32px);
  }
  .management-page {
    padding: 28px 22px;
  }
  .composer-hint {
    font-size: 9px;
    max-width: 150px;
  }
  .connection-dialog {
    padding: 16px;
  }
  .connection-save {
    flex-wrap: wrap;
  }
  .connection-save input {
    flex: 1 1 100%;
  }
  .browser-input {
    flex-wrap: wrap;
  }
  .browser-input input {
    flex: 1 1 100%;
  }
}

.work-log {
  margin: 6px 0 8px 12px;
  color: #7d8277;
  font-size: 12px;
}

@supports (color: light-dark(#000, #fff)) {

.work-log {
  color: light-dark(#7d8277, #94998e);
}
}
.work-log > summary,
.tool-entry > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  width: fit-content;
  padding: 5px 0;
  user-select: none;
}
.work-log summary::-webkit-details-marker {
  display: none;
}
.work-chevron,
.tool-entry > summary > svg:last-child {
  transition: transform 140ms ease;
}
.work-log[open] > summary > .work-chevron,
.tool-entry[open] > summary > svg:last-child {
  transform: rotate(90deg);
}
.work-log-content {
  margin: 12px 0 0 3px;
  padding: 1px 0 1px 17px;
  border-left: 1px solid #dfdfd6;
}
@supports (color: light-dark(#000, #fff)) {
.work-log-content {
  border-left: 1px solid light-dark(#dfdfd6, #31312a);
}
}
.activity-entry:empty {
  display: none;
}
.activity-entry + .activity-entry {
  margin-top: 12px;
}
.activity-label {
  display: block;
  color: #969a90;
  font-size: 11px;
  margin: 8px 0;
}
@supports (color: light-dark(#000, #fff)) {
.activity-label {
  color: light-dark(#969a90, #7a7d74);
}
}
.reasoning-content,
.activity-commentary {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.reasoning-content p,
.activity-commentary p {
  margin: 7px 0;
}
.tool-entry {
  margin: 9px 0;
}
.tool-entry pre {
  font-size: 11px;
  line-height: 1.6;
  color: #63695e;
  background: #f1f0eb;
  border-radius: 7px;
  padding: 13px;
  margin: 7px 0;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@supports (color: light-dark(#000, #fff)) {
.tool-entry pre {
  color: light-dark(#63695e, #a9afa3);
  background: light-dark(#f1f0eb, #23221f);
}
}
.tool-entry.error > summary {
  color: #a95d4c;
}
@supports (color: light-dark(#000, #fff)) {
.tool-entry.error > summary {
  color: light-dark(#a95d4c, #d88876);
}
}
.activity-placeholder {
  margin: 9px 0;
}
.answer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  padding-left: 5px;
  min-height: 24px;
}
.answer-actions > span {
  color: #888e80;
  font-size: 11px;
}
.copy-answer {
  width: 27px;
  height: 27px;
  color: #969b91;
}
@supports (color: light-dark(#000, #fff)) {
.copy-answer {
  color: light-dark(#969b91, #787d73);
}
}

.language-select {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: #707968;
  font-size: 13px;
  min-width: 0;
}

@supports (color: light-dark(#000, #fff)) {

.language-select {
  color: light-dark(#707968, #9aa492);
}
}
.language-select select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 5px 2px;
  cursor: pointer;
}
.language-select select:focus-visible {
  outline: 2px solid #89967d;
  outline-offset: 2px;
}
@supports (color: light-dark(#000, #fff)) {
.language-select select:focus-visible {
  outline: 2px solid light-dark(#89967d, #7d8a71);
}
}
.language-select select:disabled {
  opacity: 0.6;
}
.login-page .language-select {
  display: flex;
  flex-direction: row;
  margin: 0 0 14px;
  padding: 0;
}

.app.browser-open {
  grid-template-columns: var(--sidebar-width) minmax(320px, 0.8fr) minmax(
      560px,
      1.2fr
    );
}
.browser-open .messages,
.browser-open .conversation-composer {
  width: calc(100% - 40px);
}
.browser-attention {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a77940;
  margin-left: auto;
}
@supports (color: light-dark(#000, #fff)) {
.browser-attention {
  background: light-dark(#a77940, #b98a51);
}
}
.live-browser-panel {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin-top: calc(-1 * var(--titlebar-height));
  background: #f5f4f0;
  border-left: 1px solid var(--line);
  z-index: 41;
}
@supports (color: light-dark(#000, #fff)) {
.live-browser-panel {
  background: light-dark(#f5f4f0, #1f1f1c);
}
}
.live-browser-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 8px;
  min-height: 52px;
}
.live-browser-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.live-browser-expand {
  margin-left: auto;
}
.live-browser-content {
  position: relative;
  flex: 1;
  min-height: 180px;
  min-width: 0;
  background: #eaeae5;
  overflow: hidden;
}
@supports (color: light-dark(#000, #fff)) {
.live-browser-content {
  background: light-dark(#eaeae5, #282824);
}
}
.live-browser-panel[hidden] {
  display: none;
}
.live-browser-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.live-browser-scaled {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}
.live-browser-loading,
.live-browser-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  background: #f5f4f0;
  color: #7a856f;
  padding: 24px;
  text-align: center;
}
@supports (color: light-dark(#000, #fff)) {
.live-browser-loading,
.live-browser-error {
  background: light-dark(#f5f4f0, #1f1f1c);
  color: light-dark(#7a856f, #909b85);
}
}
.live-browser-error p {
  line-height: 1.6;
}
.live-browser-save {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}
.live-browser-save > span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #7a856f;
}
@supports (color: light-dark(#000, #fff)) {
.live-browser-save > span {
  color: light-dark(#7a856f, #909b85);
}
}
.live-browser-save input {
  min-width: 0;
  flex: 1 1 35%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
@supports (color: light-dark(#000, #fff)) {
.live-browser-save input {
  background: light-dark(#fff, #131313);
}
}
.live-browser-save .primary {
  margin-left: auto;
}
@media (max-width: 1100px) {
  .app.browser-open {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }
  .live-browser-panel {
    position: fixed;
    top: var(--titlebar-height);
    right: 0;
    bottom: 0;
    width: min(840px, 100%);
    margin-top: 0;
    box-shadow: -15px 0 50px #262c2420;
  }
  @supports (color: light-dark(#000, #fff)) {
  .live-browser-panel {
    box-shadow: -15px 0 50px light-dark(#262c2420, #00000080);
  }
  }
}

/* Expanded browsing occupies the workspace beside the sidebar, from the top
   of the window. Keep the conversation mounted so drafts/reading position survive. */
.app.browser-open.browser-expanded {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}
.app.browser-expanded .main {
  grid-column: 2;
  grid-row: 1;
  visibility: hidden;
  pointer-events: none;
}
.app.browser-expanded .live-browser-panel {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  margin-top: calc(-1 * var(--titlebar-height));
  box-shadow: none;
}
.app.browser-expanded .window-chrome {
  z-index: 70;
  width: max(var(--sidebar-width), calc(var(--sidebar-toggle-left) + 46px));
  height: var(--titlebar-height);
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.app.browser-expanded .sidebar-toggle { pointer-events: auto; }
.app.browser-expanded .live-browser-toolbar {
  -webkit-app-region: drag;
}
.app.browser-expanded.sidebar-hidden .live-browser-toolbar {
  padding-left: calc(var(--sidebar-toggle-left) + 58px);
}
@media (max-width: 700px) {
  .app.browser-expanded .sidebar { z-index: 60; }
  .app.browser-expanded .sidebar-scrim { z-index: 55; }
  .app.browser-expanded .live-browser-toolbar {
    padding-left: calc(var(--sidebar-toggle-left) + 58px);
  }
}

/* The agent browser unit's screen: frames scaled to the panel, input mapped back. */
.unit-screen-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.unit-tabs {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.unit-tab {
  flex: 0 1 180px;
  min-width: 80px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #e2e1da;
  color: #5f6857;
}
@supports (color: light-dark(#000, #fff)) {
.unit-tab {
  background: light-dark(#e2e1da, #2f2e29);
  color: light-dark(#5f6857, #a9b3a0);
}
}
.unit-tab.active {
  background: #fff;
  color: #2f352b;
  box-shadow: 0 0 0 1px #deddd6;
}
@supports (color: light-dark(#000, #fff)) {
.unit-tab.active {
  background: light-dark(#fff, #131313);
  color: light-dark(#2f352b, #d5ddd0);
  box-shadow: 0 0 0 1px light-dark(#deddd6, #32312c);
}
}
.unit-tab-select {
  flex: 1;
  min-width: 0;
  padding: 6px 4px 6px 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.unit-tab-close,
.unit-tab-new {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.unit-tab-close:hover,
.unit-tab-new:hover {
  background: rgba(0, 0, 0, 0.06);
}
@supports (color: light-dark(#000, #fff)) {
.unit-tab-close:hover,
.unit-tab-new:hover {
  background: light-dark(rgba(0, 0, 0, 0.06), #ffffff1b);
}
}
.unit-screen-address {
  flex: none;
  margin: 8px 10px;
}
.unit-screen-address input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #deddd6;
  color: #4b5244;
  font: inherit;
  font-size: 12.5px;
  text-overflow: ellipsis;
  outline: none;
}
@supports (color: light-dark(#000, #fff)) {
.unit-screen-address input {
  background: light-dark(#fff, #131313);
  border: 1px solid light-dark(#deddd6, #32312c);
  color: light-dark(#4b5244, #bdc5b5);
}
}
.unit-screen-address-error {
  margin: 4px 2px 0;
  font-size: 12px;
  color: #a1473a;
}
@supports (color: light-dark(#000, #fff)) {
.unit-screen-address-error {
  color: light-dark(#a1473a, #f08e7e);
}
}
.unit-screen-address input:focus {
  border-color: #8a9580;
}
@supports (color: light-dark(#000, #fff)) {
.unit-screen-address input:focus {
  border-color: light-dark(#8a9580, #7f8975);
}
}
.unit-screen-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #7a856f;
  background: #f5f4f0;
}
@supports (color: light-dark(#000, #fff)) {
.unit-screen-empty {
  color: light-dark(#7a856f, #909b85);
  background: light-dark(#f5f4f0, #1f1f1c);
}
}
.unit-screen-empty p:first-child {
  color: #3f463a;
  font-weight: 600;
}
@supports (color: light-dark(#000, #fff)) {
.unit-screen-empty p:first-child {
  color: light-dark(#3f463a, #c7cfc1);
}
}
.unit-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #eaeae5;
  outline: none;
}
@supports (color: light-dark(#000, #fff)) {
.unit-screen {
  background: light-dark(#eaeae5, #282824);
}
}
/* Receives typing (and the input method's composition) while the screen has focus; not visible. */
.unit-screen-typing {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  resize: none;
}
.unit-screen img {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  cursor: default;
}

/* ── The DM and its tasks (personal agent plan 2026-09-27, D10) ─────────── */
.dm-row {
  margin-bottom: 14px;
}
.tasks-label .icon-button.active {
  background: #e0e4dd;
}
@supports (color: light-dark(#000, #fff)) {
.tasks-label .icon-button.active {
  background: light-dark(#e0e4dd, #2b2e29);
}
}
.task-list[role="list"] {
  display: grid;
  gap: 2px;
  align-content: start;
}
.task-empty {
  padding: 0 12px;
  font-size: 12px;
}
.task-row .task-link {
  display: grid;
  gap: 3px;
  padding: 8px 12px;
}
.task-row .task-link span.task-row-title {
  color: #3f463c;
  font-size: 12.5px;
}
@supports (color: light-dark(#000, #fff)) {
.task-row .task-link span.task-row-title {
  color: light-dark(#3f463c, #c6cfc3);
}
}
.task-row .task-link .task-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #979a92;
  font-size: 11px;
}
@supports (color: light-dark(#000, #fff)) {
.task-row .task-link .task-row-meta {
  color: light-dark(#979a92, #7a7d75);
}
}
.task-row-meta time {
  margin-left: auto;
}
.task-row .task-link.active .task-row-meta {
  color: #5d7150;
}
@supports (color: light-dark(#000, #fff)) {
.task-row .task-link.active .task-row-meta {
  color: light-dark(#5d7150, #9cb28f);
}
}
/* A task: its title bar, then the conversation. */
.task-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(740px, calc(100% - 84px));
  margin: 0 auto;
  padding: calc(var(--titlebar-height) - 10px) 0 10px;
  border-bottom: 1px solid var(--line);
}
.task-header h1 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: inherit;
  letter-spacing: normal;
  text-align: left;
  font-size: 15px;
  font-weight: 560;
  color: #2f372d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@supports (color: light-dark(#000, #fff)) {
.task-header h1 {
  color: light-dark(#2f372d, #d2dccf);
}
}
.task-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7c8175;
}
@supports (color: light-dark(#000, #fff)) {
.task-status {
  color: light-dark(#7c8175, #959a8e);
}
}
.task-status.running,
.task-status.waiting {
  color: #5d7150;
}
@supports (color: light-dark(#000, #fff)) {
.task-status.running,
.task-status.waiting {
  color: light-dark(#5d7150, #9cb28f);
}
}
.task-status.error {
  color: #a94f3f;
}
@supports (color: light-dark(#000, #fff)) {
.task-status.error {
  color: light-dark(#a94f3f, #e98876);
}
}
/* In a task only the inputs are bubbles; answers take the full width. */
.task-view .messages .message.assistant {
  width: 100%;
  max-width: 100%;
}
.task-view .message.assistant .message-body {
  width: 100%;
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
}
.new-task-hint {
  margin-top: 30vh;
  text-align: center;
  color: #89917f;
  font-size: 14px;
}
@supports (color: light-dark(#000, #fff)) {
.new-task-hint {
  color: light-dark(#89917f, #848c7a);
}
}
/* In the DM: a task the agent opened, and a task's result as one line. */
.task-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 84%);
  margin: 0 0 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #3f463c;
  font-size: 13px;
  text-align: left;
}
@supports (color: light-dark(#000, #fff)) {
.task-card {
  background: light-dark(#fff, #131313);
  color: light-dark(#3f463c, #c6cfc3);
}
}
.task-card:hover:not(:disabled) {
  background: #f4f4ef;
}
@supports (color: light-dark(#000, #fff)) {
.task-card:hover:not(:disabled) {
  background: light-dark(#f4f4ef, #1f1f1c);
}
}
.task-card-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 520;
}
.task-card-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7c8175;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.task-card-status {
  color: light-dark(#7c8175, #959a8e);
}
}
.task-result-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px auto 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #6f7569;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.task-result-line {
  color: light-dark(#6f7569, #9fa598);
}
}
.task-result-line:hover:not(:disabled) {
  background: #ecece6;
}
@supports (color: light-dark(#000, #fff)) {
.task-result-line:hover:not(:disabled) {
  background: light-dark(#ecece6, #262622);
}
}
.task-result-line.error .trace-dot {
  background: #a94f3f;
}
@supports (color: light-dark(#000, #fff)) {
.task-result-line.error .trace-dot {
  background: light-dark(#a94f3f, #e98876);
}
}
.task-result-line small {
  color: #979a92;
}
@supports (color: light-dark(#000, #fff)) {
.task-result-line small {
  color: light-dark(#979a92, #7a7d75);
}
}
/* Composer uploads */
.composer.dragging {
  border-color: #8a9c7c;
  box-shadow:
    0 0 0 3px #8a9c7c22,
    0 12px 26px #3c453208;
}
@supports (color: light-dark(#000, #fff)) {
.composer.dragging {
  border-color: light-dark(#8a9c7c, #758667);
  box-shadow:
    0 0 0 3px #8a9c7c22,
    0 12px 26px light-dark(#3c453208, #00000020);
}
}
.composer-attachments {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.upload-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  padding: 5px 6px 5px 8px;
  border-radius: 10px;
  background: #f1f2ec;
  color: #4a5245;
  font-size: 12px;
  border: 1px solid transparent;
}
@supports (color: light-dark(#000, #fff)) {
.upload-chip {
  background: light-dark(#f1f2ec, #21211d);
  color: light-dark(#4a5245, #bcc6b7);
}
}
.upload-chip img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 7px;
  background: #e2e4dc;
}
@supports (color: light-dark(#000, #fff)) {
.upload-chip img {
  background: light-dark(#e2e4dc, #2c2d27);
}
}
.upload-chip.error {
  border-color: #d9a59a;
  background: #f8ecea;
  color: #a94f3f;
}
@supports (color: light-dark(#000, #fff)) {
.upload-chip.error {
  border-color: light-dark(#d9a59a, #75483f);
  background: light-dark(#f8ecea, #29211f);
  color: light-dark(#a94f3f, #e98876);
}
}
.upload-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.upload-meta {
  display: inline-flex;
  align-items: center;
  color: #8c9382;
  flex-shrink: 0;
  font-size: 11px;
}
@supports (color: light-dark(#000, #fff)) {
.upload-meta {
  color: light-dark(#8c9382, #828978);
}
}
.upload-chip.error .upload-meta {
  color: #a94f3f;
}
@supports (color: light-dark(#000, #fff)) {
.upload-chip.error .upload-meta {
  color: light-dark(#a94f3f, #e98876);
}
}
.upload-chip .icon-button {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.composer-tools .icon-button {
  color: #91968e;
}
@supports (color: light-dark(#000, #fff)) {
.composer-tools .icon-button {
  color: light-dark(#91968e, #7e827b);
}
}
.composer-tools .icon-button:hover {
  color: #4a5245;
}
@supports (color: light-dark(#000, #fff)) {
.composer-tools .icon-button:hover {
  color: light-dark(#4a5245, #bcc6b7);
}
}

/* Attachments inside a sent message */
.message-attachments {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}
.attachment-image {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  max-width: min(320px, 100%);
}
.attachment-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  background: #e2e4dc;
}
@supports (color: light-dark(#000, #fff)) {
.attachment-image img {
  background: light-dark(#e2e4dc, #2c2d27);
}
}
.attachment-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(320px, 100%);
  padding: 9px 13px;
  border-radius: 14px;
  background: #e7ebe1;
  color: #343a31;
  text-decoration: none;
  font-size: 13px;
}
@supports (color: light-dark(#000, #fff)) {
.attachment-file {
  background: light-dark(#e7ebe1, #262922);
  color: light-dark(#343a31, #d0d8cd);
}
}
.attachment-file:hover {
  background: #dfe4d8;
}
@supports (color: light-dark(#000, #fff)) {
.attachment-file:hover {
  background: light-dark(#dfe4d8, #2b2f26);
}
}
.attachment-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.attachment-size {
  color: #7c8572;
  font-size: 11px;
  flex-shrink: 0;
}
@supports (color: light-dark(#000, #fff)) {
.attachment-size {
  color: light-dark(#7c8572, #919a87);
}
}

/* Image viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  background: #1f2320e6;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100% - 60px);
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #fff;
}
.lightbox-close:hover {
  background: #ffffff22;
  color: #fff;
}
.lightbox-download {
  color: #e6e9e1;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff1a;
}
.lightbox-download:hover {
  background: #ffffff2e;
}
@media (max-width: 700px) {
  .lightbox {
    padding: 16px;
  }
  .attachment-image,
  .attachment-file {
    max-width: 100%;
  }
}
.local-browser-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 20px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f1efe8;
  color: #5a6350;
  font-size: 13px;
}@supports (color: light-dark(#000, #fff)) {.local-browser-notice {
  background: light-dark(#f1efe8, #24231e);
  color: light-dark(#5a6350, #adb8a2);
}
}

.user-browser-card {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin: 4px 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

@supports (color: light-dark(#000, #fff)) {

.user-browser-card {
  background: light-dark(#fff, #131313);
}
}
.user-browser-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.user-browser-heading strong {
  font-weight: 500;
  font-size: 14px;
}
.user-browser-state {
  margin-left: auto;
  color: #949b8b;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.user-browser-state {
  color: light-dark(#949b8b, #787f70);
}
}
.user-browser-state.connected {
  color: #4f7a3a;
}
@supports (color: light-dark(#000, #fff)) {
.user-browser-state.connected {
  color: light-dark(#4f7a3a, #89b774);
}
}
.user-browser-allows {
  margin: 0;
  padding-left: 18px;
  color: #62695b;
  font-size: 13px;
  line-height: 1.7;
}
@supports (color: light-dark(#000, #fff)) {
.user-browser-allows {
  color: light-dark(#62695b, #a9b0a1);
}
}
.user-browser-auto {
  margin: 0;
  color: #62695b;
  font-size: 13px;
}
@supports (color: light-dark(#000, #fff)) {
.user-browser-auto {
  color: light-dark(#62695b, #a9b0a1);
}
}
.user-browser-pairing summary {
  color: #949b8b;
  font-size: 12px;
  cursor: pointer;
}
@supports (color: light-dark(#000, #fff)) {
.user-browser-pairing summary {
  color: light-dark(#949b8b, #787f70);
}
}
.user-browser-pairing[open] summary {
  margin-bottom: 8px;
}
.user-browser-pairing p {
  margin: 0 0 6px;
  color: #62695b;
  font-size: 13px;
}
@supports (color: light-dark(#000, #fff)) {
.user-browser-pairing p {
  color: light-dark(#62695b, #a9b0a1);
}
}
.user-browser-pairing div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-browser-pairing code {
  padding: 6px 10px;
  border-radius: 7px;
  background: #f1efe8;
  font-size: 13px;
  user-select: all;
}
@supports (color: light-dark(#000, #fff)) {
.user-browser-pairing code {
  background: light-dark(#f1efe8, #24231e);
}
}
.user-browser-pairing small {
  color: #949b8b;
}
@supports (color: light-dark(#000, #fff)) {
.user-browser-pairing small {
  color: light-dark(#949b8b, #787f70);
}
}

/* "Use my PC": the permission mode, the working folders and the saved answers (PcAccess.tsx). */
.pc-modes {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.pc-modes legend {
  padding: 0 0 6px;
  color: #949b8b;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.pc-modes legend {
  color: light-dark(#949b8b, #787f70);
}
}
.pc-modes label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.pc-modes label.selected {
  border-color: #9fae93;
  background: #f6f7f2;
}
@supports (color: light-dark(#000, #fff)) {
.pc-modes label.selected {
  border-color: light-dark(#9fae93, #5d6b52);
  background: light-dark(#f6f7f2, #1c1d1a);
}
}
.pc-modes input {
  margin-top: 3px;
}
.pc-modes span {
  display: grid;
  gap: 3px;
}
.pc-modes strong {
  font-weight: 500;
  font-size: 13px;
}
.pc-modes small,
.pc-directories small,
.pc-rules small {
  color: #62695b;
  font-size: 12px;
  line-height: 1.6;
}
@supports (color: light-dark(#000, #fff)) {
.pc-modes small,
.pc-directories small,
.pc-rules small {
  color: light-dark(#62695b, #a9b0a1);
}
}
.pc-directories,
.pc-rules {
  display: grid;
  gap: 6px;
  justify-items: start;
  width: 100%;
}
.pc-directories strong,
.pc-rules strong {
  font-weight: 500;
  font-size: 13px;
}
.pc-directories ul {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pc-directories li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-directories code {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 7px;
  background: #f1efe8;
  font-size: 12px;
  overflow-wrap: anywhere;
}
@supports (color: light-dark(#000, #fff)) {
.pc-directories code {
  background: light-dark(#f1efe8, #24231e);
}
}
.pc-directories .empty-note {
  margin: 0;
}
.pc-directories > button,
.pc-rules > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #707b62;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.pc-directories > button,
.pc-rules > button {
  color: light-dark(#707b62, #99a48a);
}
}

/* Questions about actions on the user's PCs, above the composer. */
.pc-approvals {
  display: grid;
  gap: 8px;
  width: min(740px, calc(100% - 84px));
  margin: 0 auto;
  padding-top: 8px;
}
.pc-approval {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #d9c9a8;
  border-radius: 12px;
  background: #fdf9ef;
  font-size: 13px;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval {
  border: 1px solid light-dark(#d9c9a8, #4b3e21);
  background: light-dark(#fdf9ef, #1d1a13);
}
}
.pc-approval header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f5a2c;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval header {
  color: light-dark(#6f5a2c, #cab282);
}
}
.pc-approval header strong {
  font-weight: 600;
}
.pc-approval header span {
  margin-left: auto;
  font-size: 12px;
}
.pc-approval p {
  margin: 0;
  color: #62695b;
  line-height: 1.6;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval p {
  color: light-dark(#62695b, #a9b0a1);
}
}
.pc-approval small {
  color: #8a8062;
  font-size: 12px;
  line-height: 1.6;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval small {
  color: light-dark(#8a8062, #a19678);
}
}
.pc-approval pre,
.pc-approval-path {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval pre,
.pc-approval-path {
  background: light-dark(#fff, #131313);
}
}
.pc-approval-diff {
  max-height: 220px;
  overflow: auto;
}
.pc-approval-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pc-approval-options button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  text-align: left;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval-options button {
  background: light-dark(#fff, #131313);
}
}
.pc-approval-options button.primary {
  border-color: transparent;
  background: #46563d;
  color: #fff;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval-options button.primary {
  background: light-dark(#46563d, #b5c8ab);
  color: light-dark(#fff, #131313);
}
}
.pc-approval-options button.deny {
  color: #9d5a44;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval-options button.deny {
  color: light-dark(#9d5a44, #da917a);
}
}
.pc-approval-elsewhere {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fdf9ef;
  color: #6f5a2c;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval-elsewhere {
  background: light-dark(#fdf9ef, #1d1a13);
  color: light-dark(#6f5a2c, #cab282);
}
}
.pc-approval-elsewhere button {
  padding: 4px 9px;
  border: 1px solid #d9c9a8;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}
@supports (color: light-dark(#000, #fff)) {
.pc-approval-elsewhere button {
  border: 1px solid light-dark(#d9c9a8, #4b3e21);
  background: light-dark(#fff, #131313);
}
}
@media (max-width: 700px) {
  .pc-approvals {
    width: calc(100% - 24px);
  }
}
