:root {
  --canvas: #fcfcfc;
  --sidebar: #f2f2f2;
  --surface: #ffffff;
  --surface-soft: #fbfbfb;
  --text: #18181b;
  --text-secondary: #71717a;
  --text-muted: #a4a7ad;
  --border: #e4e4e7;
  --border-strong: #c7c7cc;
  --divider: #ececee;
  --hover: #f4f4f5;
  --pressed: #ececee;
  --strong: #27272a;
  --status-green: #00b982;
  --link-blue: #279fc1;
  --shadow-panel: 0 12px 32px rgb(24 24 27 / 8%), 0 2px 8px rgb(24 24 27 / 4%);
  --font-ui: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  margin: 0;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #c9c9ce;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--canvas);
  border: 0;
  border-radius: 0;
}

.app-shell.is-search-open {
  grid-template-columns:
    272px
    minmax(0, 1fr)
    clamp(340px, 26vw, 410px);
}

.notification-prompt {
  position: absolute;
  right: 18px;
  bottom: 76px;
  left: 18px;
  z-index: 4;
  padding: 10px;
  background: #fff;
  border: 1px solid #e3e3e6;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgb(24 24 27 / 8%);
}

.notification-prompt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3f3f45;
  font-size: 13px;
  line-height: 18px;
}

.notification-prompt-head svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #9a9ba1;
}

.notification-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.notification-prompt-actions button {
  height: 32px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}

.notification-prompt-actions button:first-child {
  color: #3f3f45;
  background: #fff;
  border: 1px solid #dfe0e4;
}

.notification-prompt-actions button:last-child {
  color: #fff;
  background: #5331dc;
}

.sidebar {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px 12px 14px;
  overflow: hidden;
  background: var(--sidebar);
}

.brand-row {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.brand {
  color: #111113;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.4px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  transition: background-color 120ms ease;
}

.icon-button:hover {
  background: rgb(255 255 255 / 70%);
}

.icon-button:active {
  background: #e7e7e9;
}

.icon-button svg {
  width: 23px;
  height: 23px;
}

.agent-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 66px;
  flex: 0 0 66px;
  align-items: center;
  margin-top: 15px;
  padding: 0 14px 0 12px;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
  border: 1px solid #e6e6e8;
  border-radius: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.agent-card:hover {
  border-color: #dbdbde;
  box-shadow: 0 2px 8px rgb(24 24 27 / 3%);
}

.agent-dots {
  position: absolute;
  top: 0;
  left: 8px;
  width: 58px;
  height: 66px;
  pointer-events: none;
}

.agent-avatar {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.agent-avatar-large {
  width: 36px;
  height: 36px;
}

.agent-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status-dot {
  position: absolute;
  right: -1px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  background: var(--status-green);
  border: 2px solid var(--surface);
  border-radius: 999px;
}

.agent-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  margin-left: 9px;
}

.agent-card-name {
  overflow: hidden;
  color: #111113;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-card-status {
  color: #a0a0a6;
  font-size: 12px;
  line-height: 17px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 17px;
}

.nav-item {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  gap: 11px;
  padding: 0 9px;
  color: #1d1d20;
  background: transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
  transition: background-color 120ms ease;
}

.nav-item:hover {
  background: rgb(255 255 255 / 70%);
}

.nav-item:active {
  background: #e8e8ea;
}

.nav-item.is-active {
  background: #e4e4e5;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.sidebar-footer {
  min-width: 0;
  margin-top: auto;
  padding: 0 2px 4px;
}

.sidebar-plan-card {
  width: 100%;
  overflow: hidden;
  background: rgb(255 255 255 / 82%);
  border: 1px solid #e2e2e5;
  border-radius: 14px;
}

.sidebar-plan-content {
  padding: 11px 11px 10px;
}

.sidebar-plan-status {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #55555c;
  font-size: 12px;
  line-height: 18px;
}

.sidebar-plan-balance-copy {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.sidebar-plan-balance-copy > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #8b8b92;
}

.sidebar-plan-balance-copy > span:not(.sidebar-plan-progress) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-plan-status strong {
  flex: 0 0 auto;
  color: #252529;
  padding: 2px 8px;
  border: 1px solid #d7d7db;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  line-height: 18px;
}

.sidebar-plan-progress {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  background: conic-gradient(
    #81c7da var(--remaining-percentage, 0%),
    #dedee2 0
  );
  border-radius: 50%;
}

.sidebar-plan-progress > span {
  display: block;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.sidebar-plan-link {
  display: flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 8px;
  color: #4f7884;
  background: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
}

.sidebar-plan-link:hover {
  background: #f5f7f8;
}

.sidebar-plan-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transform: rotate(-90deg);
}

.sidebar-plan-card.is-low {
  background: #fff9f0;
  border-color: #f0ddc2;
}

.sidebar-plan-card.is-low .sidebar-plan-balance-copy {
  color: #a36528;
  font-weight: 600;
}

.sidebar-plan-card.is-low .sidebar-plan-progress {
  background: conic-gradient(
    #d89b56 var(--remaining-percentage, 0%),
    #ecdcc6 0
  );
}

.sidebar-plan-card.is-low .sidebar-plan-link {
  color: #8a5926;
  background: #fff0dd;
}

.user-entry {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  background: transparent;
  border-top: 1px solid #e7e7e9;
  border-radius: 0;
}

.user-entry:hover {
  background: #f7f7f8;
}

.user-entry-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #9999a0;
  transition: transform 120ms ease;
}

.user-entry[aria-expanded="true"] .user-entry-chevron {
  transform: rotate(180deg);
}

.user-avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #6b36f3;
  background: #eee8ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
}

.main-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--canvas);
}

.topbar {
  display: flex;
  height: 64px;
  flex: 0 0 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 16px;
}

.topbar h1 {
  margin: 0;
  color: #111113;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.25px;
}

.search-button {
  width: 38px;
  height: 38px;
}

.search-button svg {
  width: 24px;
  height: 24px;
}

.chat-search-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid #ececee;
}

.chat-search-toolbar {
  display: grid;
  height: 70px;
  flex: 0 0 70px;
  grid-template-columns: 136px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 16px;
}

.search-time-button,
.chat-search-field {
  display: flex;
  height: 36px;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: #3d3d42;
  background: #fff;
  border: 1px solid #dedee2;
  border-radius: 11px;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.search-time-button {
  justify-content: flex-start;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.search-time-button:hover,
.search-time-button[aria-expanded="true"] {
  background: #f7f7f8;
  border-color: #cfcfd4;
}

.search-time-button svg,
.chat-search-field > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #5e5e65;
}

.chat-search-field {
  padding-right: 10px;
  color: #999aa1;
  background: #f5f5f6;
  border-color: #f5f5f6;
}

.chat-search-field:focus-within {
  background: #fff;
  border-color: #d4d4d8;
  box-shadow: 0 0 0 3px rgb(39 159 193 / 7%);
}

.chat-search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #303035;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.chat-search-field input::placeholder {
  color: #a3a4aa;
}

.search-close-button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.search-close-button svg {
  width: 18px;
  height: 18px;
}

.search-tabs {
  display: flex;
  height: 54px;
  flex: 0 0 54px;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f2;
}

.search-tab {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #55555c;
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 120ms ease, color 120ms ease;
}

.search-tab:hover {
  color: #27272b;
  background: #f7f7f8;
}

.search-tab.is-active {
  color: #27272b;
  background: #f0f0f2;
}

.search-results {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 12px 18px;
  scrollbar-color: #d7d7da transparent;
  scrollbar-width: thin;
}

.search-result-item {
  display: grid;
  width: 100%;
  min-height: 72px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 13px 8px 12px;
  color: #28282d;
  background: transparent;
  border-bottom: 1px solid #f0f0f2;
  text-align: left;
  transition: background-color 120ms ease;
}

.search-result-item:hover,
.search-result-item.is-selected {
  background: #f3f4f5;
}

.search-result-item:active {
  background: #ececee;
}

.search-result-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  color: #58585f;
  background: #f0f0f2;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.search-result-avatar.is-agent {
  background: #a9ddec;
}

.search-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-copy {
  min-width: 0;
}

.search-result-sender {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  color: #77777f;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #303035;
  font-size: 13px;
  line-height: 19px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-result-time {
  padding-top: 1px;
  color: #a1a2a8;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.search-file-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
}

.search-file-icon svg {
  width: 16px;
  height: 16px;
}

.search-file-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.search-file-row .search-result-sender {
  color: #97989f;
}

.search-result-source {
  margin-left: 7px;
  color: #a4a5ab;
  font-weight: 400;
}

.search-empty-state {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 24px;
  color: #a0a1a8;
  font-size: 13px;
  text-align: center;
}

.search-calendar-popover {
  position: absolute;
  z-index: 40;
  top: 58px;
  left: 14px;
  width: min(318px, calc(100% - 28px));
  padding: 13px;
  background: #fff;
  border: 1px solid #e1e1e4;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgb(24 24 27 / 10%), 0 2px 7px rgb(24 24 27 / 4%);
}

.search-calendar-header {
  display: grid;
  height: 30px;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
  color: #313136;
  font-size: 13px;
  text-align: center;
}

.search-calendar-nav {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #696a71;
  background: transparent;
  border-radius: 8px;
}

.search-calendar-nav:hover {
  background: #f2f2f3;
}

.search-calendar-nav svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

.search-calendar-nav.is-next svg {
  transform: rotate(-90deg);
}

.search-calendar-weekdays,
.search-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.search-calendar-weekdays {
  margin-top: 9px;
  color: #a0a1a7;
  font-size: 10px;
  line-height: 22px;
  text-align: center;
}

.search-calendar-days button {
  display: grid;
  width: 100%;
  height: 30px;
  place-items: center;
  color: #45454b;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
}

.search-calendar-days button:hover {
  background: #f1f6f8;
}

.search-calendar-days button.is-outside-month {
  color: #c3c4c8;
}

.search-calendar-days button.is-today {
  color: var(--link-blue);
  box-shadow: inset 0 0 0 1px #a9ddec;
}

.search-calendar-days button.is-selected {
  color: #fff;
  background: var(--link-blue);
  box-shadow: none;
}

.search-calendar-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f2;
}

.search-calendar-quick button,
.search-calendar-footer button {
  height: 30px;
  padding: 0 8px;
  color: #6c6d74;
  background: #f6f6f7;
  border-radius: 8px;
  font-size: 11px;
  transition: background-color 120ms ease, color 120ms ease;
}

.search-calendar-quick button:hover,
.search-calendar-footer button:hover {
  color: #303035;
  background: #ededee;
}

.search-calendar-quick button.is-active {
  color: var(--link-blue);
  background: #eaf8fb;
}

.search-calendar-footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 9px;
}

.search-calendar-footer button {
  color: #55565c;
  background: transparent;
  border: 1px solid #e1e1e4;
}

.search-calendar-footer button.is-primary {
  color: #fff;
  background: #27272a;
  border-color: #27272a;
}

.search-calendar-footer button.is-primary:hover {
  color: #fff;
  background: #17171a;
}

.chat-user-message.is-search-highlighted .user-message-bubble {
  background: #eaf8fb;
  box-shadow: 0 0 0 2px #cceff5;
}

.agent-message.is-search-highlighted,
.context-message.is-search-highlighted {
  border-radius: 14px;
  background: #f4fbfd;
  box-shadow: 0 0 0 6px #f7fdfe;
}

.conversation {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #d7d7da transparent;
  scrollbar-width: thin;
}

.chat-column {
  width: min(768px, calc(100% - 48px));
  min-height: 100%;
  margin: 0 auto;
  padding: 24px 0 88px;
}

.context-message {
  width: min(980px, 100%);
  margin: 0 auto;
  padding-left: 47px;
  color: #222225;
  font-size: 20px;
  line-height: 1.85;
}

.context-message ul {
  margin: 0;
  padding-left: 24px;
}

.context-message li::marker {
  color: #a7a7ad;
  font-size: 0.8em;
}

.context-message p {
  margin: 9px 0 0;
}

.context-message strong,
.message-content strong {
  font-weight: 700;
}

.agent-message {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  width: min(980px, 100%);
  gap: 9px;
  margin: 32px auto 0;
}

.message-avatar {
  width: 36px;
  height: 36px;
}

.message-content {
  min-width: 0;
  color: #242427;
  font-size: 16px;
  line-height: 1.65;
}

.message-author {
  margin: -2px 0 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.message-content p {
  margin: 0;
}

.agent-message .message-content a.agent-content-link {
  color: var(--link-blue);
  text-decoration: none;
  cursor: pointer;
}

.agent-message .message-content a.agent-content-link:hover {
  text-decoration: underline;
}

.agent-message .message-content a.agent-content-link:focus-visible {
  outline: 2px solid rgb(39 159 193 / 28%);
  outline-offset: 2px;
  border-radius: 2px;
}

.agent-link-demo-list {
  margin: 6px 0 0;
  padding-left: 23px;
}

.agent-link-demo-list li {
  margin: 3px 0;
}

.message-checklist {
  margin: 48px 0 0;
  padding-left: 23px;
}

.message-checklist li {
  margin: 7px 0;
}

.message-checklist li::marker {
  color: #a7a7ad;
}

.qa-exchange {
  display: block;
}

.qa-exchange + .qa-exchange {
  margin-top: 54px;
}

.chat-user-message {
  position: relative;
  display: flex;
  width: min(768px, 100%);
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-end;
  margin: 0 auto;
}

.user-message-content {
  display: flex;
  width: fit-content;
  max-width: min(680px, 76%);
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
}

.user-message-bubble {
  max-width: min(680px, 76%);
  padding: 12px 16px;
  color: #303034;
  background: #f0f0f2;
  border-radius: 18px 18px 5px 18px;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.user-message-content > .user-message-bubble {
  max-width: 100%;
}

.user-message-text {
  white-space: pre-wrap;
}

.user-message-actions {
  min-height: 30px;
  margin-top: 6px;
}

.user-message-bubble.is-editing {
  width: min(640px, 70vw);
  padding: 12px;
  background: #f4f4f5;
  border-radius: 16px 16px 5px 16px;
}

.user-message-editor {
  display: grid;
  gap: 10px;
}

.user-message-edit-textarea {
  width: 100%;
  min-height: 108px;
  max-height: 260px;
  padding: 11px 12px;
  overflow-y: auto;
  color: #303034;
  background: #fff;
  border: 1px solid #d7d7db;
  border-radius: 10px;
  outline: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.65;
  resize: vertical;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.user-message-edit-textarea:focus {
  border-color: #a7a7ad;
  box-shadow: 0 0 0 3px rgb(39 39 42 / 5%);
}

.user-message-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.user-message-edit-button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #3d3d43;
  background: #fff;
  border: 1px solid #d8d8dc;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.user-message-edit-button:hover {
  background: #f8f8f9;
  border-color: #cfcfd4;
}

.user-message-edit-button:active {
  transform: scale(0.97);
}

.user-message-edit-button.is-primary {
  color: #fff;
  background: #27272a;
  border-color: #27272a;
}

.user-message-edit-button.is-primary:hover {
  background: #17171a;
  border-color: #17171a;
}

.user-message-edit-button:disabled {
  color: #a0a0a7;
  background: #e6e6e8;
  border-color: #e6e6e8;
  cursor: not-allowed;
  transform: none;
}

.qa-exchange .agent-message {
  margin-top: 20px;
}

.message-content p.message-followup {
  margin-top: 10px;
}

.current-context-message {
  position: relative;
  margin-top: 66px;
}

.message-actions {
  position: relative;
  display: flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
}

.context-message > .message-actions {
  margin-top: 13px;
}

.message-action-button {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #8b8b92;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  transition: color 100ms ease, background-color 100ms ease;
}

.message-action-button:hover,
.message-action-button[aria-expanded="true"] {
  color: #3f3f44;
  background: #f1f1f3;
}

.message-action-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.message-action-button > .message-action-label {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 7px);
  left: 50%;
  padding: 4px 7px;
  pointer-events: none;
  color: #fff;
  background: #303034;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgb(24 24 27 / 12%);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  opacity: 0;
  transform: translate(-50%, 3px);
  transition: opacity 100ms ease, transform 100ms ease;
  white-space: nowrap;
}

.message-action-button:hover > .message-action-label,
.message-action-button:focus-visible > .message-action-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.message-action-button[aria-expanded="true"] > .message-action-label {
  opacity: 0;
}

.message-more-menu {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 6px);
  right: 0;
  left: auto;
  width: 176px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgb(24 24 27 / 9%);
}

.message-more-menu-item {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  color: #3e3e43;
  background: transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.message-more-menu-item:hover {
  background: #f3f3f4;
}

.message-more-menu-item svg {
  width: 16px;
  height: 16px;
  color: #77777f;
}

.share-checkbox {
  display: none;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  padding: 0;
  color: transparent;
  background: #fff;
  border: 1px solid #cfd0d5;
  border-radius: 6px;
  transition: background-color 100ms ease, border-color 100ms ease, transform 100ms ease;
}

.share-checkbox:hover {
  border-color: #9edbea;
}

.share-checkbox:active {
  transform: scale(0.94);
}

.share-checkbox svg {
  width: 14px;
  height: 14px;
}

.conversation.is-share-mode .share-checkbox {
  display: grid;
}

.conversation.is-share-mode .agent-message > .share-checkbox,
.conversation.is-share-mode .context-message > .share-checkbox {
  position: absolute;
  top: 7px;
  left: -29px;
}

.conversation.is-share-mode .chat-user-message > .share-checkbox {
  margin: 8px 10px 0 0;
}

.share-checkbox.is-checked {
  color: #fff;
  background: #78c8dc;
  border-color: #78c8dc;
}

.conversation.is-share-mode .message-actions {
  display: none;
}

.agent-message.is-share-selected,
.context-message.is-share-selected {
  background: #fbfeff;
  border-radius: 14px;
  box-shadow: 0 0 0 5px #f1fafc;
}

.chat-user-message.is-share-selected .user-message-bubble {
  background: #eef8fb;
  box-shadow: 0 0 0 1px #c9eaf2;
}

.share-action-area {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  padding: 0 32px 18px;
}

.share-action-bar {
  display: flex;
  width: min(1038px, 100%);
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 14px 16px 14px 22px;
  background: #fff;
  border: 1px solid #d9dadd;
  border-radius: 24px;
  box-shadow: 0 3px 12px rgb(24 24 27 / 5%);
}

.share-selection-count {
  color: #55555c;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.share-action-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
}

.share-cancel-button,
.share-create-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.share-cancel-button {
  color: #3c3c41;
  background: #fff;
  border: 1px solid #dedee2;
}

.share-cancel-button:hover {
  background: #f7f7f8;
  border-color: #d1d1d6;
}

.share-create-button {
  color: #279fc1;
  background: #dff5fb;
  border: 1px solid #b9e7f2;
}

.share-create-button:hover:not(:disabled) {
  background: #cfeff7;
  border-color: #9edbea;
}

.share-cancel-button:active,
.share-create-button:active:not(:disabled) {
  transform: scale(0.97);
}

.share-create-button:disabled {
  color: #aaaeb1;
  cursor: default;
  background: #f1f2f3;
  border-color: #e2e3e5;
}

.share-success-toast {
  position: fixed;
  z-index: 120;
  top: 22px;
  right: 24px;
  display: grid;
  width: min(360px, calc(100vw - 48px));
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: #fbfeff;
  border: 1px solid #b9e7f2;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgb(24 24 27 / 10%);
  animation: content-in 140ms ease-out both;
}

.share-success-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #279fc1;
  background: #dff5fb;
  border-radius: 999px;
}

.share-success-icon svg {
  width: 18px;
  height: 18px;
}

.share-success-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.share-success-copy strong {
  color: #2f2f34;
  font-size: 13px;
  font-weight: 650;
  line-height: 19px;
}

.share-success-copy span {
  color: #7f8388;
  font-size: 12px;
  line-height: 18px;
}

.plans-view {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--canvas);
}

.plans-frame {
  width: min(1128px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.plans-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 18px;
}

.plans-back-button {
  flex: 0 0 auto;
  margin-top: 2px;
}

.plans-heading {
  min-width: 0;
}

.plans-heading h1 {
  margin: 0;
  color: #17171a;
  font-size: 28px;
  font-weight: 650;
  line-height: 36px;
  letter-spacing: -0.4px;
}

.plans-heading p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 21px;
}

.usage-plan-summary {
  min-width: 0;
  padding: 24px 24px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.plans-current-head,
.plans-current-usage-head,
.plans-current-usage-stats {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.plans-current-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.plans-current-icon {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  background: #fafafa;
  border-radius: 16px;
}

.plans-current-icon span {
  position: absolute;
  width: 21px;
  height: 12px;
  background: linear-gradient(135deg, #d7e0ff 12%, #819ff8 55%, #446de2 100%);
  border: 1px solid #4d5ea8;
  border-radius: 999px 999px 999px 999px / 72% 72% 72% 72%;
  box-shadow: inset 0 1px 2px rgb(255 255 255 / 70%), 0 1px 2px rgb(34 45 90 / 18%);
  transform: rotate(-38deg);
}

.plans-current-icon span:nth-child(1) {
  top: 31px;
  left: 15px;
}

.plans-current-icon span:nth-child(2) {
  top: 19px;
  left: 31px;
}

.plans-current-icon span:nth-child(3) {
  top: 34px;
  left: 39px;
  transform: rotate(20deg);
}

.plans-current-icon span:nth-child(4) {
  top: 45px;
  left: 20px;
  transform: rotate(-17deg);
}

.plans-current-icon span:nth-child(5) {
  top: 39px;
  left: 28px;
  transform: rotate(-32deg);
}

.plans-current-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.plans-current-eyebrow {
  margin: 0;
  color: #999ca3;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.plan-card-status {
  color: #237d9a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.plans-current-name {
  color: #19191c;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.plans-current-price {
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
  color: #202023;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.plans-current-price strong {
  color: #111113;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.plans-current-price span {
  color: #737680;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.usage-view-plans-button {
  min-height: 30px;
  padding: 4px 12px;
  color: #18181b;
  background: #fff;
  border: 1px solid #dedee3;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.usage-view-plans-button:hover {
  background: #f8f8f9;
  border-color: #d2d2d8;
}

.plans-current-usage {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.plans-current-usage-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.plans-current-usage-title {
  margin: 0;
  color: #161619;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.plans-current-refill {
  color: #999ca3;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.plans-current-usage-stats {
  align-items: center;
  margin-top: 14px;
}

.plans-current-usage-amount {
  min-width: 0;
  overflow: hidden;
  color: #17171a;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plans-current-remaining {
  flex: 0 0 auto;
  color: #999ca3;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.plans-current-progress {
  width: 100%;
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  background: #f1f1f2;
  border-radius: 999px;
}

.plans-current-progress-value {
  display: block;
  height: 100%;
  background: #171719;
  border-radius: inherit;
}

.plans-available {
  margin-top: 24px;
}

.plans-available > h2,
.plans-credits-guide > h2 {
  margin: 0;
  color: #242428;
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
}

.plans-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.plan-card {
  display: flex;
  min-width: 0;
  min-height: 400px;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.plan-card.is-current {
  background: #f8fbfd;
  border-color: #8fcddd;
  box-shadow: inset 0 0 0 1px rgb(39 159 193 / 8%);
}

.plan-card-top {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-card-name {
  color: #1d1d20;
  font-size: 20px;
  font-weight: 680;
  line-height: 27px;
}

.plan-card-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  background: #e2f3f8;
  border-radius: 999px;
}

.plan-card-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 18px;
  color: #1f1f22;
}

.plan-card-price strong {
  font-size: 26px;
  font-weight: 680;
  line-height: 34px;
  letter-spacing: -0.3px;
}

.plan-card-price span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.plan-card-total {
  margin-top: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider);
}

.plan-card-total strong {
  display: block;
  color: #1f1f22;
  font-size: 21px;
  font-weight: 680;
  line-height: 28px;
}

.plan-card-total span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 19px;
}

.plan-card-includes {
  margin-top: 17px;
  color: #77777f;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.plan-card-credit-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 7px;
  color: #3f3f44;
  font-size: 13px;
  line-height: 20px;
}

.plan-card-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 17px 0 20px;
  padding: 0;
  color: #55555c;
  font-size: 12px;
  line-height: 18px;
  list-style: none;
}

.plan-card-features li {
  position: relative;
  padding-left: 17px;
}

.plan-card-features li::before {
  position: absolute;
  top: 7px;
  left: 3px;
  width: 5px;
  height: 5px;
  background: #7db8c8;
  border-radius: 999px;
  content: "";
}

.plan-card-button {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: 8px 12px;
  color: #74747b;
  background: #f2f2f3;
  border: 1px solid #e0e0e3;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
}

.plan-card.is-current .plan-card-button {
  color: #247d98;
  background: #e6f4f8;
  border-color: #c4e4ec;
}

.plans-credits-guide {
  margin-top: 30px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.plans-credits-guide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin: 13px 0 0;
  padding-left: 18px;
  color: #5f5f66;
  font-size: 13px;
  line-height: 21px;
}

.plans-billing-link {
  display: inline;
  padding: 0;
  color: var(--link-blue);
  background: transparent;
  font-weight: 600;
  line-height: inherit;
}

.plans-billing-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.plans-early-note {
  color: #77777f;
}

.settings-view {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--canvas);
}

.settings-frame {
  width: min(1128px, calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0 48px;
}

.settings-frame > h1 {
  margin: 0;
  color: #17171a;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
}

.settings-layout {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 46px;
  margin-top: 22px;
}

.settings-navigation {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.settings-nav-item {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  padding: 0 12px;
  color: #303034;
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

.settings-nav-item.is-active {
  color: #202023;
  background: #e5e5e6;
}

.settings-content {
  min-width: 0;
}

.settings-content-heading {
  position: relative;
  margin-bottom: 24px;
}

.settings-content-heading.is-usage {
  margin-bottom: 20px;
}

.settings-content-title-line {
  display: flex;
  position: relative;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}

.settings-content-title-line h2 {
  margin: 0;
  color: #202023;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.settings-content-subtitle {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.settings-placeholder {
  display: grid;
  min-height: 154px;
  place-items: center;
  padding: 28px;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.settings-placeholder p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}

.usage-panel {
  min-width: 0;
}

.usage-records-section {
  min-width: 0;
  margin-top: 28px;
}

.usage-section-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.usage-toolbar {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  scroll-margin-top: 18px;
  overflow: visible;
}

.usage-section-head h3 {
  margin: 0;
  color: #1f1f22;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.usage-filter-button,
.usage-date-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  color: #8e929a;
  background: #fff;
  border: 1px solid #e3e3e7;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.usage-filter-button {
  min-width: 86px;
  justify-content: space-between;
}

.usage-date-button {
  min-width: 215px;
  justify-content: space-between;
  color: #93979f;
}

.usage-filter-button:hover,
.usage-date-button:hover {
  border-color: #d7d7dc;
  background: #fbfbfc;
}

.usage-filter-button svg {
  width: 13px;
  height: 13px;
  color: #b4b6bc;
}

.usage-date-button svg {
  width: 16px;
  height: 16px;
  color: #c1c4cb;
}

.usage-range-popover {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 20;
  width: 286px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e1e1e4;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgb(24 24 27 / 10%), 0 2px 7px rgb(24 24 27 / 4%);
}

.usage-range-presets {
  display: grid;
  gap: 6px;
}

.usage-range-option {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  color: #44444b;
  background: #f7f7f8;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}

.usage-range-option:hover,
.usage-range-option.is-active {
  color: #1e7f99;
  background: #eaf8fb;
}

.usage-range-custom {
  display: none;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f2;
}

.usage-range-popover.is-custom .usage-range-custom {
  display: grid;
}

.usage-range-field {
  display: grid;
  gap: 6px;
}

.usage-range-field label {
  color: #7a7b82;
  font-size: 11px;
  line-height: 16px;
}

.usage-range-field input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: #27272b;
  background: #fff;
  border: 1px solid #dfe0e4;
  border-radius: 8px;
  font-size: 13px;
}

.usage-range-apply {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #fff;
  background: #27272a;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
}

.usage-range-apply:hover {
  background: #17171a;
}

.usage-table-wrap {
  min-width: 0;
  margin-top: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.usage-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.usage-table th,
.usage-table td {
  padding: 10px 18px;
  text-align: left;
  vertical-align: middle;
}

.usage-table th {
  color: #a0a3aa;
  background: #fafafa;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.usage-table thead tr,
.usage-table tbody tr {
  position: relative;
}

.usage-table thead tr::after,
.usage-table tbody tr::after {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 1px;
  background: var(--divider);
  content: "";
}

.usage-table tbody tr:last-child::after {
  display: none;
}

.usage-table th:nth-child(1) {
  width: 132px;
}

.usage-table th:nth-child(3) {
  width: 146px;
}

.usage-table th:nth-child(4) {
  width: 142px;
}

.usage-record-row {
  color: #49494f;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
}

.usage-user-query {
  display: block;
  overflow: hidden;
  color: #27272b;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-credits-cell {
  color: #202024;
  font-weight: 650;
  white-space: nowrap;
}

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

.usage-empty-row td {
  height: 280px;
  padding: 0 24px;
  text-align: center;
}

.usage-empty-row td > span {
  display: inline-block;
  color: #2b2b30;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.usage-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  color: #3d3d42;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.usage-record-count {
  flex: 0 0 auto;
}

.usage-pagination {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.usage-pagination-pages {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usage-pagination-button,
.usage-page-size {
  display: inline-flex;
  height: 36px;
  min-width: 36px;
  align-items: center;
  justify-content: center;
  color: #55565c;
  background: #fff;
  border: 1px solid #e1e2e5;
  border-radius: 8px;
  font-size: 15px;
  line-height: 20px;
}

.usage-pagination-button {
  padding: 0 10px;
}

.usage-pagination-button:hover:not(:disabled),
.usage-pagination-button.is-active {
  color: #202124;
  background: #f1f2f4;
  border-color: #d9dade;
}

.usage-pagination-button:disabled {
  color: #c5c7cc;
  cursor: not-allowed;
}

.usage-pagination-arrow {
  padding: 0;
}

.usage-pagination-arrow svg,
.usage-page-size svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.usage-pagination-arrow svg {
  transform: rotate(90deg);
}

.usage-pagination-arrow.is-next svg {
  transform: rotate(-90deg);
}

.usage-page-size {
  position: relative;
  gap: 8px;
  padding: 0 10px 0 12px;
}

.usage-page-size select {
  min-width: 72px;
  padding: 0;
  color: inherit;
  appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  cursor: pointer;
}

.usage-page-size svg {
  width: 14px;
  height: 14px;
  transform: rotate(0deg);
}

.channel-card {
  display: grid;
  width: 100%;
  min-height: 102px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  border: 1px solid #e3e3e6;
  border-radius: 16px;
}

.telegram-channel-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: #58afe5;
  border-radius: 999px;
}

.telegram-channel-icon svg {
  width: 27px;
  height: 27px;
}

.channel-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.channel-card-copy strong {
  color: #202023;
  font-size: 16px;
  font-weight: 650;
  line-height: 22px;
}

.channel-card-copy > span {
  color: #4e4e54;
  font-size: 14px;
  line-height: 21px;
}

.channel-connect-button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #279fc1;
  background: #dff5fb;
  border: 1px solid #b9e7f2;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.channel-connect-button:hover {
  background: #cfeff7;
  border-color: #9edbea;
}

.channel-connect-button.is-connected {
  color: #2f2f2f;
  background: #fff;
  border-color: #d8d8d8;
}

.channel-connect-button.is-connected:hover {
  background: #f7f7f7;
  border-color: #c8c8c8;
}

.channel-connect-button:active {
  transform: scale(0.97);
}

.telegram-disconnect-overlay {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(24 24 27 / 24%);
}

.telegram-disconnect-dialog {
  position: relative;
  width: min(480px, 100%);
  padding: 27px 26px 24px;
  background: #fff;
  border: 1px solid #dedee2;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgb(24 24 27 / 16%), 0 3px 12px rgb(24 24 27 / 7%);
}

.telegram-disconnect-dialog:focus {
  outline: none;
}

.telegram-dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #74747b;
  background: transparent;
  border-radius: 9px;
  transition: color 120ms ease, background-color 120ms ease;
}

.telegram-dialog-close:hover {
  color: #343438;
  background: #f3f3f4;
}

.telegram-dialog-close svg {
  width: 19px;
  height: 19px;
}

.telegram-disconnect-dialog h2 {
  margin: 0;
  padding-right: 44px;
  color: #202023;
  font-size: 20px;
  font-weight: 650;
  line-height: 28px;
  letter-spacing: -0.2px;
}

.telegram-disconnect-dialog p {
  margin: 10px 0 0;
  color: #88888f;
  font-size: 14px;
  line-height: 22px;
}

.telegram-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 28px;
}

.telegram-dialog-cancel,
.telegram-dialog-confirm {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.telegram-dialog-cancel {
  color: #2f2f2f;
  background: #fff;
  border: 1px solid #d8d8d8;
}

.telegram-dialog-cancel:hover {
  background: #f7f7f7;
  border-color: #c8c8c8;
}

.telegram-dialog-confirm {
  color: #fff;
  background: #f45b61;
  border: 1px solid #f45b61;
}

.telegram-dialog-confirm:hover {
  background: #e94e55;
  border-color: #e94e55;
}

.telegram-dialog-cancel:active,
.telegram-dialog-confirm:active {
  transform: scale(0.97);
}

.files-view {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 24px 24px;
  overflow: hidden;
  background: var(--canvas);
}

.files-header {
  display: flex;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.files-header h1 {
  margin: 0;
  color: #17171a;
  font-size: 26px;
  font-weight: 650;
  line-height: 34px;
  letter-spacing: -0.35px;
}

.files-storage-copy {
  color: #9a9aa1;
  font-size: 13px;
  line-height: 20px;
}

.files-tab-bar {
  display: flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid #e5e5e8;
}

.files-tab-button {
  position: relative;
  height: 43px;
  padding: 0 2px;
  color: #8a8a91;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  transition: color 120ms ease;
}

.files-tab-button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
  border-radius: 999px 999px 0 0;
}

.files-tab-button:hover {
  color: #3f3f44;
}

.files-tab-button.is-active {
  color: #202023;
  font-weight: 600;
}

.files-tab-button.is-active::after {
  background: #27272a;
}

.files-toolbar {
  display: flex;
  min-height: 62px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}

.files-search {
  display: flex;
  width: min(320px, 100%);
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #8e8e95;
  background: #fff;
  border: 1px solid #dedee2;
  border-radius: 10px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.files-search:focus-within {
  border-color: #c8c8cd;
  box-shadow: 0 0 0 3px rgb(39 39 42 / 4%);
}

.files-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.files-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: #27272a;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.files-search input::placeholder {
  color: #a1a1a7;
}

.files-content,
.all-files-panel,
.memory-view {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

.files-content {
  display: flex;
  overflow: hidden;
}

.all-files-panel,
.memory-view {
  width: 100%;
}

.all-files-panel {
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 12px;
}

.all-files-list {
  min-width: 720px;
  padding: 0;
}

.all-file-row {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f2;
  border-radius: 9px;
  transition: background-color 120ms ease;
}

.all-file-row:last-child {
  border-bottom-color: transparent;
}

.all-file-row:hover {
  background: #f7f7f8;
}

.all-file-row .type-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
}

.all-file-copy {
  min-width: 0;
}

.all-file-name {
  overflow: hidden;
  color: #29292d;
  font-size: 14px;
  font-weight: 550;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-file-meta {
  margin-top: 2px;
  color: #9b9ba2;
  font-size: 12px;
  line-height: 18px;
}

.file-tree-header,
.file-tree-row {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) repeat(3, 150px);
  column-gap: 32px;
  align-items: center;
}

.file-tree-header {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 44px;
  padding: 0 18px;
  color: #898990;
  background: #fff;
  border-bottom: 1px solid #ececef;
  font-size: 13px;
  line-height: 20px;
}

.file-tree-rows {
  padding: 7px 8px 12px;
}

.file-tree-row {
  min-height: 44px;
  padding: 0 10px;
  color: #303034;
  border-radius: 8px;
  transition: background-color 120ms ease;
}

.file-tree-row:hover {
  background: #f7f7f8;
}

.file-tree-folder-row[aria-level="1"]:not(:first-child) {
  margin-top: 8px;
}

.file-tree-primary {
  display: flex;
  min-width: 0;
  height: 44px;
  align-items: center;
  padding-left: calc(var(--file-tree-depth) * 28px);
}

.file-tree-folder-button {
  width: 100%;
  gap: 8px;
  padding-right: 10px;
  color: #29292d;
  text-align: left;
  background: transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 550;
}

.file-tree-disclosure {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: #9a9aa1;
  transition: transform 120ms ease;
}

.file-tree-disclosure svg {
  width: 17px;
  height: 17px;
}

.file-tree-folder-row.is-collapsed .file-tree-disclosure {
  transform: rotate(-90deg);
}

.file-tree-folder-icon {
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  color: #3b82f6;
}

.file-tree-folder-icon svg {
  width: 20px;
  height: 20px;
}

.file-tree-file-primary {
  gap: 10px;
  padding-right: 10px;
}

.file-tree-file-primary::before {
  width: 18px;
  flex: 0 0 18px;
  content: "";
}

.file-tree-row .type-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
}

.file-tree-row .type-icon svg {
  width: 14px;
  height: 14px;
}

.file-tree-row .type-icon-abbr {
  right: 1px;
  bottom: 1px;
  min-width: 9px;
  padding: 0 1px;
  font-size: 5px;
  line-height: 7px;
}

.file-tree-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tree-file-row .file-tree-name {
  font-weight: 450;
}

.file-tree-created-at,
.file-tree-size,
.file-tree-source {
  overflow: hidden;
  color: #85858d;
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-empty-state,
.memory-empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  color: #a0a0a7;
  font-size: 14px;
  text-align: center;
}

.memory-view {
  display: flex;
}

.memory-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 12px;
}

.memory-navigation {
  min-width: 0;
  min-height: 0;
  padding: 20px 12px;
  overflow-y: auto;
  background: #fafafa;
  border-right: 1px solid #ececef;
}

.memory-nav-group-label {
  margin: 0 10px 8px;
  color: #343438;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.memory-nav-item {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 2px 0;
  padding: 8px 10px;
  overflow: hidden;
  color: #55555c;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 120ms ease, background-color 120ms ease;
}

.memory-nav-item.is-child {
  padding-left: 18px;
}

.memory-nav-item:not(.is-child) {
  min-height: 44px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.memory-nav-item:hover {
  color: #27272a;
  background: #f0f0f2;
}

.memory-nav-item.is-active {
  color: #202023;
  background: #eaeaed;
  font-weight: 600;
}

.memory-document-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #fff;
}

.memory-document-content {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  padding: 34px 48px 44px;
  overflow-y: auto;
}

.memory-document-title {
  max-width: 820px;
  margin: 0 auto 30px;
  color: #202023;
  font-size: 24px;
  font-weight: 650;
  line-height: 34px;
  letter-spacing: -0.25px;
}

.memory-document-section {
  max-width: 820px;
  margin: 0 auto 28px;
}

.memory-document-section:last-child {
  margin-bottom: 0;
}

.memory-document-section h3 {
  margin: 0 0 10px;
  color: #29292d;
  font-size: 15px;
  font-weight: 650;
  line-height: 24px;
}

.memory-document-section p {
  position: relative;
  margin: 5px 0;
  padding-left: 15px;
  color: #5e5e65;
  font-size: 14px;
  line-height: 1.75;
}

.memory-document-section p::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "·";
  color: #a1a1a7;
  font-weight: 700;
}

.memory-document-footer {
  display: flex;
  min-height: 62px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 24px;
  border-top: 1px solid #ececef;
}

.memory-edit-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: #279fc1;
  background: #dff5fb;
  border: 1px solid #b9e7f2;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.memory-edit-button:hover {
  background: #cfeff7;
  border-color: #9edbea;
}

.memory-edit-button:active {
  transform: scale(0.97);
}

.memory-edit-panel {
  width: calc(100% - 48px);
  max-width: 868px;
  flex: 0 0 auto;
  align-self: center;
  margin: 0 24px 20px;
  padding: 15px 16px 14px;
  background: #fbfeff;
  border: 1px solid #b9e7f2;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgb(39 159 193 / 5%);
}

.memory-edit-header {
  margin-bottom: 10px;
  color: #29292d;
  font-size: 14px;
  font-weight: 650;
  line-height: 21px;
}

.memory-edit-composer {
  display: flex;
  min-width: 0;
  min-height: 104px;
  align-items: flex-end;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d9e9ed;
  border-radius: 13px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.memory-edit-composer:focus-within {
  border-color: #a9ddea;
  box-shadow: 0 0 0 3px rgb(39 159 193 / 6%);
}

#memoryEditInput {
  min-width: 0;
  min-height: 82px;
  max-height: 126px;
  flex: 1 1 auto;
  padding: 3px 4px;
  overflow-y: auto;
  color: #29292d;
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  font-size: 14px;
  line-height: 1.65;
  scrollbar-color: #d3d3d6 transparent;
  scrollbar-width: thin;
}

#memoryEditInput::placeholder {
  color: #a2a6aa;
}

.memory-edit-submit {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: #fff;
  background: #55b8d3;
  border-radius: 11px;
  transition: background-color 120ms ease, transform 120ms ease;
}

.memory-edit-submit:hover {
  background: #3eabc8;
}

.memory-edit-submit:active {
  transform: scale(0.96);
}

.memory-edit-submit svg {
  width: 21px;
  height: 21px;
}

.memory-edit-feedback {
  margin: 9px 2px 0;
  color: #6f858c;
  font-size: 12px;
  line-height: 18px;
}

.schedule-view {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 20px 24px;
  overflow: hidden;
  background: var(--canvas);
}

.schedule-header {
  display: flex;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.schedule-header h1 {
  margin: 0;
  color: #17171a;
  font-size: 26px;
  font-weight: 650;
  line-height: 34px;
  letter-spacing: -0.35px;
}

.schedule-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-action-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.schedule-template-button {
  color: #343438;
  background: #fff;
  border: 1px solid #dedee1;
}

.schedule-template-button:hover {
  background: #f8f8f9;
  border-color: #d2d2d6;
}

.schedule-new-button {
  color: #fff;
  background: #27272a;
  border: 1px solid #27272a;
}

.schedule-new-button:hover {
  background: #17171a;
  border-color: #17171a;
}

.schedule-action-button:active,
.schedule-icon-button:active,
.schedule-view-button:active {
  transform: scale(0.97);
}

.schedule-toolbar {
  display: flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 4px 0 12px;
}

.schedule-week-navigation,
.schedule-view-toggle {
  display: flex;
  align-items: center;
}

.schedule-week-navigation {
  height: 42px;
  gap: 0;
  padding: 3px 4px;
  background: #fff;
  border: 1px solid #dfdfe2;
  border-radius: 12px;
}

.schedule-date-range {
  min-width: 170px;
  padding: 0 8px;
  color: #28282c;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
}

.schedule-icon-button,
.schedule-view-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #5a5a61;
  background: transparent;
  border-radius: 8px;
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.schedule-icon-button:hover,
.schedule-view-button:hover,
.schedule-view-button.is-active {
  color: #242427;
  background: #eeeef0;
}

.schedule-icon-button svg {
  width: 18px;
  height: 18px;
}

.schedule-previous-week svg {
  transform: rotate(90deg);
}

.schedule-next-week svg {
  transform: rotate(-90deg);
}

#scheduleCalendarButton {
  margin-left: 0;
}

.schedule-view-toggle {
  padding: 2px;
  background: #f1f1f3;
  border-radius: 10px;
}

.schedule-view-button {
  width: 32px;
  height: 30px;
  flex-basis: 32px;
  border-radius: 8px;
}

.schedule-view-button.is-active {
  background: #fff;
  box-shadow: 0 1px 3px rgb(24 24 27 / 8%);
}

.calendar-view-glyph {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.calendar-view-glyph::before {
  position: absolute;
  top: 3px;
  right: 1px;
  left: 1px;
  height: 1.5px;
  content: "";
  background: currentColor;
}

.list-view-glyph {
  position: relative;
  display: block;
  width: 16px;
  height: 13px;
}

.list-view-glyph::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 16px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.schedule-calendar-wrap {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  background: #fff;
  border: 1px solid #e1e1e4;
  border-radius: 0;
  scrollbar-color: #d4d4d7 transparent;
  scrollbar-width: thin;
}

.schedule-calendar {
  display: grid;
  min-width: 840px;
  min-height: 100%;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.schedule-day-column {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid #ececee;
}

.schedule-day-column:last-child {
  border-right: 0;
}

.schedule-day-column.is-today {
  background: #fbfbff;
}

.schedule-day-header {
  display: flex;
  height: 74px;
  flex: 0 0 74px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 7px 12px 5px;
  color: #85858c;
  background: #f8f8f9;
  border-bottom: 1px solid #eeeef0;
}

.schedule-day-column.is-today .schedule-day-header {
  background: #eeeefa;
}

.schedule-day-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
}

.schedule-day-number {
  display: block;
  min-width: 0;
  height: auto;
  padding: 0;
  color: #36363b;
  border-radius: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 34px;
}

.schedule-day-column.is-today .schedule-day-number {
  color: #282637;
  background: transparent;
}

.schedule-day-tasks {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 9px;
  padding: 8px;
}

.schedule-task-card {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 100px;
  flex-direction: column;
  padding: 11px 10px 9px;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(24 24 27 / 3%);
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.schedule-task-card:hover {
  background: #fafafa;
  border-color: #d6d6da;
}

.schedule-task-card:active {
  transform: scale(0.985);
}

.schedule-task-title {
  min-width: 0;
  margin: 0 0 6px;
  overflow: hidden;
  color: #27272b;
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-task-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

.schedule-task-relative {
  min-width: 0;
  overflow: hidden;
  color: #9b9ba1;
  font-size: 11px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-task-clock {
  min-width: 0;
  overflow: hidden;
  color: #9b9ba1;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-task-view-button {
  display: inline-flex;
  height: 25px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #696970;
  background: #fafafa;
  border: 1px solid #e3e3e6;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.schedule-task-view-button:hover {
  color: #343438;
  background: #f2f2f3;
}

.schedule-list-wrap {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e1e1e4;
  scrollbar-color: #d4d4d7 transparent;
  scrollbar-width: thin;
}

.schedule-future-list {
  display: flex;
  width: min(920px, calc(100% - 48px));
  min-height: 100%;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.schedule-future-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  color: #2c2c30;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 11px;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.schedule-future-card:hover {
  background: #f8f8f9;
  border-color: #d6d6da;
}

.schedule-future-card:active {
  transform: scale(0.992);
}

.schedule-future-card-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 24px;
}

.schedule-future-card-title {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-future-card-relative {
  color: #73737b;
  font-size: 13px;
  line-height: 21px;
  white-space: nowrap;
}

.schedule-future-card-description {
  min-width: 0;
  overflow: hidden;
  color: #8f8f97;
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-list-empty,
.schedule-detail-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: #9a9aa2;
  font-size: 13px;
}

.schedule-detail-view,
.schedule-template-view {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 20px 24px;
  overflow: hidden;
  background: var(--canvas);
}

.subview-header {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex: 0 0 auto;
  align-items: center;
  gap: 17px;
  margin-bottom: 12px;
}

.subview-back-button {
  display: inline-flex;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 11px 0 8px;
  color: #48484f;
  background: #fff;
  border: 1px solid #e1e1e4;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 550;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.subview-back-button:hover {
  color: #242427;
  background: #f7f7f8;
  border-color: #d5d5d8;
}

.subview-back-button:active {
  transform: scale(0.97);
}

.subview-back-button svg {
  width: 17px;
  height: 17px;
  transform: rotate(90deg);
}

.schedule-detail-header h1,
.schedule-template-heading h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #17171a;
  font-size: 24px;
  font-weight: 650;
  line-height: 32px;
  letter-spacing: -0.3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-conversation {
  width: min(1038px, 100%);
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 auto;
  padding: 18px 18px 64px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #d4d4d7 transparent;
  scrollbar-width: thin;
}

.schedule-detail-actions {
  display: flex;
  width: min(1038px, 100%);
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0 auto;
  padding: 8px 18px 0;
  border-top: 1px solid #ececef;
}

.schedule-detail-action,
.schedule-modal-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #3d3d43;
  background: #fff;
  border: 1px solid #dddde1;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.schedule-detail-action:hover,
.schedule-modal-button:hover {
  background: #f7f7f8;
  border-color: #d2d2d6;
}

.schedule-detail-action:active,
.schedule-modal-button:active {
  transform: scale(0.97);
}

.schedule-detail-action.is-primary,
.schedule-modal-button.is-primary {
  color: #fff;
  background: #27272a;
  border-color: #27272a;
}

.schedule-detail-action.is-primary:hover,
.schedule-modal-button.is-primary:hover {
  background: #17171a;
  border-color: #17171a;
}

.schedule-detail-action:disabled,
.schedule-modal-button:disabled {
  color: #a0a0a7;
  background: #f4f4f5;
  border-color: #e6e6e8;
  cursor: not-allowed;
  transform: none;
}

.schedule-run-feedback {
  margin-right: 4px;
  color: #777780;
  font-size: 12px;
  line-height: 18px;
}

.schedule-modal-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgb(24 24 27 / 22%);
  backdrop-filter: blur(2px);
}

.schedule-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 56px));
  padding: 24px;
  overflow: auto;
  color: #29292d;
  background: #fff;
  border: 1px solid #dfdfe3;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgb(24 24 27 / 16%);
  outline: none;
  scrollbar-color: #d4d4d7 transparent;
  scrollbar-width: thin;
}

.schedule-modal h2 {
  margin: 0;
  padding-right: 42px;
  color: #1f1f22;
  font-size: 20px;
  font-weight: 650;
  line-height: 29px;
  letter-spacing: -0.15px;
}

.schedule-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #7d7d84;
  background: transparent;
  border-radius: 8px;
}

.schedule-modal-close:hover {
  color: #343438;
  background: #f1f1f3;
}

.schedule-modal-close svg {
  width: 18px;
  height: 18px;
}

.schedule-overview-meta {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.schedule-overview-meta > div {
  display: grid;
  min-height: 42px;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #f0f0f2;
}

.schedule-overview-meta dt,
.schedule-overview-description > span,
.schedule-config-label {
  color: #929299;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.schedule-overview-meta dd {
  min-width: 0;
  margin: 0;
  color: #35353a;
  font-size: 13px;
  line-height: 20px;
}

.schedule-overview-meta dd[data-status="active"] {
  color: #327a55;
}

.schedule-overview-meta dd[data-status="paused"] {
  color: #8a7044;
}

.schedule-overview-meta dd[data-status="terminated"] {
  color: #9b4d4d;
}

.schedule-overview-description {
  margin-top: 18px;
}

.schedule-overview-description p {
  margin: 7px 0 0;
  color: #45454b;
  font-size: 14px;
  line-height: 1.7;
}

.schedule-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.schedule-overview-footer {
  justify-content: space-between;
}

.schedule-overview-secondary-actions {
  display: flex;
  gap: 8px;
}

.schedule-modal-button.is-danger-secondary {
  color: #b4232c;
}

.schedule-modal-button.is-danger-secondary:hover {
  color: #9f1d25;
  background: #fff7f7;
  border-color: #e5b9bd;
}

.schedule-modal-button.is-danger {
  color: #fff;
  background: #c9343d;
  border-color: #c9343d;
}

.schedule-modal-button.is-danger:hover {
  background: #b72a33;
  border-color: #b72a33;
}

.schedule-terminate-overlay {
  z-index: 100;
}

.schedule-terminate-dialog {
  width: min(460px, 100%);
}

.schedule-terminate-dialog > p {
  margin: 14px 0 0;
  color: #5f5f66;
  font-size: 14px;
  line-height: 1.7;
}

.schedule-edit-dialog {
  width: min(720px, 100%);
}

.schedule-edit-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.schedule-edit-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.schedule-edit-field > span,
.schedule-edit-schedule legend,
.schedule-config-row label > span,
.schedule-weekly-time > span {
  color: #4d4d53;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.schedule-edit-field input,
.schedule-edit-field textarea,
.schedule-config-row input,
.schedule-config-row select,
.schedule-weekly-time input {
  width: 100%;
  color: #303034;
  background: #fff;
  border: 1px solid #dcdce0;
  border-radius: 9px;
  outline: none;
  font: inherit;
  font-size: 13px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.schedule-edit-field input,
.schedule-config-row input,
.schedule-config-row select,
.schedule-weekly-time input {
  height: 40px;
  padding: 0 11px;
}

.schedule-edit-field textarea {
  min-height: 112px;
  padding: 10px 11px 26px;
  resize: vertical;
  line-height: 1.65;
}

.schedule-edit-field input:focus,
.schedule-edit-field textarea:focus,
.schedule-config-row input:focus,
.schedule-config-row select:focus,
.schedule-weekly-time input:focus {
  border-color: #aaaab1;
  box-shadow: 0 0 0 3px rgb(39 39 42 / 5%);
}

.schedule-edit-field small {
  position: absolute;
  right: 10px;
  bottom: 7px;
  color: #a0a0a7;
  font-size: 10px;
  line-height: 15px;
}

.schedule-edit-field textarea + small {
  bottom: 8px;
}

.schedule-edit-schedule {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.schedule-edit-schedule legend {
  margin-bottom: 8px;
  padding: 0;
}

.schedule-type-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: #f2f2f4;
  border-radius: 11px;
}

.schedule-type-options button {
  height: 34px;
  color: #696970;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
}

.schedule-type-options button:hover {
  color: #343438;
}

.schedule-type-options button.is-selected {
  color: #26262a;
  background: #fff;
  box-shadow: 0 1px 3px rgb(24 24 27 / 8%);
}

.schedule-config-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.schedule-config-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.schedule-config-row label,
.schedule-weekly-time {
  display: grid;
  gap: 6px;
}

.schedule-weekly-fields {
  margin-top: 13px;
}

.schedule-weekday-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.schedule-weekday-options button {
  height: 34px;
  color: #696970;
  background: #fff;
  border: 1px solid #dedee2;
  border-radius: 8px;
  font-size: 12px;
}

.schedule-weekday-options button:hover {
  color: #343438;
  background: #f8f8f9;
}

.schedule-weekday-options button.is-selected {
  color: #27272a;
  background: #eeeef0;
  border-color: #c9c9ce;
  font-weight: 600;
}

.schedule-weekly-time {
  margin-top: 12px;
}

.schedule-run-conversation {
  display: flex;
  min-width: 0;
  flex-direction: column;
  scroll-margin-top: 18px;
}

.schedule-run-conversation + .schedule-run-conversation {
  margin-top: 66px;
}

.schedule-run-time {
  align-self: center;
  margin-bottom: 20px;
  color: #a0a0a7;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.schedule-user-message {
  max-width: min(680px, 76%);
  align-self: flex-end;
  padding: 12px 16px;
  color: #303034;
  background: #f0f0f2;
  border-radius: 18px 18px 5px 18px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.schedule-agent-message {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.schedule-agent-avatar {
  width: 36px;
  height: 36px;
}

.schedule-agent-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.schedule-agent-content {
  min-width: 0;
}

.schedule-agent-name {
  margin: 1px 0 10px;
  color: #232327;
  font-size: 16px;
  font-weight: 650;
  line-height: 23px;
}

.schedule-agent-response {
  max-width: 850px;
  color: #2e2e32;
  font-size: 15px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.schedule-agent-response p {
  margin: 0;
}

.schedule-agent-response p + p,
.schedule-agent-response p + .schedule-agent-list,
.schedule-agent-response .schedule-agent-list + p {
  margin-top: 13px;
}

.schedule-agent-list {
  margin: 10px 0 0;
  padding-left: 22px;
}

.schedule-agent-list li {
  margin: 4px 0;
  padding-left: 2px;
}

.schedule-agent-list li::marker {
  color: #888890;
}

.schedule-template-header {
  align-items: flex-start;
  padding-top: 4px;
}

.schedule-template-heading {
  min-width: 0;
}

.schedule-template-heading p {
  margin: 3px 0 0;
  color: #8f8f96;
  font-size: 13px;
  line-height: 20px;
}

.schedule-template-grid {
  display: grid;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  padding: 2px 3px 4px 0;
  overflow-y: auto;
  scrollbar-color: #d4d4d7 transparent;
  scrollbar-width: thin;
}

.schedule-template-card {
  display: flex;
  min-width: 0;
  min-height: 124px;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  color: #28282c;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 13px;
  box-shadow: 0 1px 2px rgb(24 24 27 / 2%);
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.schedule-template-card:hover {
  background: #fcfcfc;
  border-color: #d2d2d6;
  box-shadow: 0 4px 13px rgb(24 24 27 / 5%);
  transform: translateY(-1px);
}

.schedule-template-card:active {
  transform: translateY(0);
}

.schedule-template-card .row-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.schedule-template-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.schedule-template-card-title {
  overflow: hidden;
  color: #242427;
  font-size: 14px;
  font-weight: 650;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-template-card-description {
  display: -webkit-box;
  overflow: hidden;
  color: #8f8f96;
  font-size: 13px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.composer-area {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  padding: 0 24px 10px;
}

.composer-shell {
  position: relative;
  width: min(768px, 100%);
  margin: 0 auto;
}

.composer-card {
  position: relative;
  display: flex;
  min-height: 102px;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #bfc0c5;
  border-radius: 22px;
  box-shadow: 0 0 0 2px rgb(24 24 27 / 4%), 0 4px 14px rgb(24 24 27 / 3%);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.composer-card:focus-within {
  border-color: #b4b5bb;
  box-shadow: 0 0 0 2px rgb(24 24 27 / 5%), 0 5px 16px rgb(24 24 27 / 4%);
}

.composer-input-row {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  flex: 1 1 auto;
  align-items: flex-start;
}

#promptInput {
  width: auto;
  min-width: 0;
  min-height: 48px;
  max-height: 104px;
  flex: 1 1 auto;
  margin: 0;
  padding: 13px 16px 4px;
  overflow-y: auto;
  color: #242427;
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  scrollbar-color: #d3d3d6 transparent;
  scrollbar-width: thin;
}

.inline-selection {
  display: inline-flex;
  max-width: min(252px, 42%);
  height: 27px;
  flex: 0 0 auto;
  align-items: center;
  margin: 13px 0 4px 16px;
  padding: 0;
  overflow: hidden;
  color: #347fc5;
  text-align: left;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 27px;
  transition: opacity 120ms ease;
}

.inline-selection:hover {
  opacity: 0.72;
}

.inline-selection:active {
  opacity: 0.58;
}

.inline-selection-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-selection:not([hidden]) + #promptInput {
  padding-left: 8px;
}

#promptInput::placeholder {
  color: #acacb2;
}

.composer-card.has-chips #promptInput {
  min-height: 54px;
  padding-top: 8px;
}

.composer-card.has-chips .composer-input-row {
  min-height: 54px;
}

.composer-card.has-chips .inline-selection {
  margin-top: 8px;
}

.composer-toolbar {
  display: flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 8px 12px;
}

.add-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #262629;
  background: transparent;
  border-radius: 12px;
  transition: background-color 120ms ease, transform 120ms ease;
}

.add-button:hover,
.add-button[aria-expanded="true"] {
  background: var(--hover);
}

.add-button:active {
  transform: scale(0.96);
}

.add-button svg {
  width: 19px;
  height: 19px;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-button {
  display: flex;
  height: 32px;
  min-width: 160px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #333337;
  background: var(--surface);
  border: 1px solid #e7e7e9;
  border-radius: 23px;
  font-size: 13px;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.model-button:hover {
  background: #fafafa;
  border-color: #dddddf;
}

.model-button[aria-expanded="true"] {
  background: #f7f7f8;
  border-color: #d7d7db;
}

.model-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.model-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #8d8d93;
  transition: transform 120ms ease;
}

.model-button[aria-expanded="true"] .model-chevron {
  transform: rotate(180deg);
}

.send-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: #fff;
  background: var(--strong);
  border-radius: 999px;
  transition: background-color 120ms ease, transform 120ms ease;
}

.send-button:hover {
  background: #17171a;
}

.send-button:active {
  transform: scale(0.96);
}

.send-button svg {
  width: 17px;
  height: 17px;
}

.disclaimer {
  margin: 10px 0 0;
  color: #a4a7ad;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.quick-panel,
.plus-menu,
.recent-files-menu,
.skills-menu,
.model-menu {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 8px);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  transform-origin: left bottom;
  animation: panel-pop 140ms ease-out both;
}

.model-menu {
  right: 68px;
  width: min(360px, calc(100% - 96px));
  padding: 8px;
  border-radius: 16px;
  transform-origin: right bottom;
}

.model-menu-list {
  display: grid;
  gap: 2px;
}

.model-option {
  display: grid;
  width: 100%;
  min-height: 48px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: #29292d;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.model-option:hover,
.model-option:focus-visible {
  background: var(--hover);
}

.model-option.is-selected {
  background: #f4f4f5;
  border-color: #e2e2e5;
}

.model-option-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: transparent;
}

.model-option-check svg {
  width: 16px;
  height: 16px;
}

.model-option.is-selected .model-option-check {
  color: #27272a;
}

.model-option-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-multiplier {
  padding: 2px 8px;
  color: #707078;
  background: #f4f4f5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.model-option.is-selected .model-multiplier {
  color: #4b4b51;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dedee2;
}

.model-menu-note {
  margin: 8px 2px 0;
  padding: 10px 8px 4px;
  color: var(--text-muted);
  border-top: 1px solid var(--divider);
  font-size: 12px;
  line-height: 18px;
}

.quick-panel {
  left: 14px;
  display: flex;
  width: min(540px, calc(100% - 28px));
  height: min(430px, calc(100dvh - 252px));
  flex-direction: column;
  padding: 10px;
  overflow: hidden;
  border-radius: 16px;
}

.panel-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.panel-content.is-entering > * {
  animation: content-in 140ms ease-out both;
}

.command-view {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #c9c9cc transparent;
  scrollbar-width: thin;
}

.command-view::-webkit-scrollbar,
.recent-files-content::-webkit-scrollbar,
.skills-menu-content::-webkit-scrollbar {
  width: 6px;
}

.command-view::-webkit-scrollbar-thumb,
.recent-files-content::-webkit-scrollbar-thumb,
.skills-menu-content::-webkit-scrollbar-thumb {
  background: #c9c9cc;
  border-radius: 999px;
}

.group-label {
  display: flex;
  height: 27px;
  align-items: center;
  padding: 2px 9px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.skills-group-label {
  margin-top: 4px;
  border-top: 1px solid var(--divider);
}

.menu-row {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 54px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border-radius: 10px;
  transition: background-color 100ms ease;
}

.menu-row.has-trailing {
  grid-template-columns: 38px minmax(0, 1fr) 20px;
}

.menu-row:hover,
.menu-row.is-active {
  background: var(--hover);
}

.menu-row:active {
  background: var(--pressed);
}

.feature-row,
.skill-row {
  height: 50px;
}

.row-trailing {
  width: 18px;
  height: 18px;
  color: #96969d;
  transform: rotate(-90deg);
}

.row-icon,
.type-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #52525a;
  background: #f1f1f3;
  border-radius: 999px;
}

.type-icon {
  position: relative;
  border-radius: 11px;
}

.row-icon svg,
.type-icon svg {
  width: 20px;
  height: 20px;
}

.type-icon svg {
  width: 19px;
  height: 19px;
}

.type-icon-abbr {
  position: absolute;
  right: 3px;
  bottom: 3px;
  min-width: 13px;
  padding: 0 2px;
  color: currentColor;
  background: inherit;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 700;
  line-height: 10px;
  text-align: center;
}

.tone-purple {
  color: #7456dc;
  background: #eee9ff;
}

.tone-orange {
  color: #e68a27;
  background: #fceee0;
}

.tone-blue {
  color: #3b82e8;
  background: #e7f1ff;
}

.tone-rose {
  color: #d85a72;
  background: #fdecef;
}

.tone-amber {
  color: #c57c16;
  background: #fff2d8;
}

.tone-cyan {
  color: #268ca5;
  background: #e4f7fb;
}

.tone-green {
  color: #3c8c64;
  background: #e7f6ed;
}

.tone-indigo {
  color: #5c65c5;
  background: #eceeff;
}

.tone-slate {
  color: #5f6773;
  background: #eef0f3;
}

.row-copy {
  min-width: 0;
}

.row-copy.is-inline {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(152px, 214px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.feature-row .row-copy.is-inline {
  grid-template-columns: max-content minmax(0, 1fr);
}

.panel-empty {
  display: grid;
  min-height: 104px;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.row-copy.is-stacked {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.row-title,
.row-description,
.row-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title {
  color: #242427;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.row-description,
.row-meta {
  color: #9999a0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.row-meta {
  font-size: 12px;
  line-height: 17px;
}

.plus-menu {
  left: 14px;
  width: min(276px, calc(100% - 28px));
  padding: 8px;
  border-radius: 14px;
}

.plus-menu-item {
  display: grid;
  width: 100%;
  height: 50px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  text-align: left;
  background: transparent;
  border-radius: 10px;
}

.plus-menu-item.has-trailing {
  grid-template-columns: 36px minmax(0, 1fr) 18px;
}

.plus-menu-item:hover,
.plus-menu-item.is-active {
  background: var(--hover);
}

.small-action-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #56565d;
  background: #eeeef0;
  border-radius: 10px;
}

.small-action-icon svg {
  width: 19px;
  height: 19px;
}

.plus-menu-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.plus-menu-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.recent-files-menu {
  z-index: 31;
  top: 0;
  bottom: auto;
  left: 298px;
  width: min(350px, calc(100% - 28px));
  padding: 8px;
  overflow: hidden;
  border-radius: 14px;
}

.recent-files-content {
  max-height: 286px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #c9c9cc transparent;
  scrollbar-width: thin;
}

.skills-menu {
  z-index: 31;
  top: 0;
  bottom: auto;
  left: 298px;
  width: min(420px, calc(100% - 28px));
  padding: 8px;
  overflow: hidden;
  border-radius: 14px;
}

.skills-menu-content {
  max-height: min(360px, calc(100dvh - 180px));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #c9c9cc transparent;
  scrollbar-width: thin;
}

.skills-menu .menu-row {
  height: 50px;
}

.chip-rail {
  display: flex;
  max-height: 78px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
  padding: 13px 18px 0;
  overflow-y: auto;
  scrollbar-color: #d3d3d6 transparent;
  scrollbar-width: thin;
}

.chip {
  display: inline-flex;
  width: fit-content;
  max-width: 285px;
  height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 5px 0 7px;
  color: #303034;
  background: #f4f4f5;
  border: 1px solid #e7e7e9;
  border-radius: 10px;
  font-size: 13px;
  line-height: 18px;
}

.chip-icon {
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border-radius: 7px;
}

.chip-icon svg {
  width: 14px;
  height: 14px;
}

.chip-label {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-remove {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: #888890;
  background: transparent;
  border-radius: 6px;
}

.chip-remove:hover {
  color: #303034;
  background: #e4e4e6;
}

.chip-remove svg {
  width: 15px;
  height: 15px;
}

.user-menu-popover,
.language-menu-popover {
  position: fixed;
  z-index: 100;
  padding: 8px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-panel);
  transform-origin: left bottom;
  animation: panel-pop 140ms ease-out both;
}

.user-menu-popover {
  width: 290px;
}

.language-menu-popover {
  width: 320px;
  transform-origin: left center;
}

.user-menu-row,
.language-menu-row {
  display: grid;
  width: 100%;
  height: 48px;
  align-items: center;
  padding: 0 12px;
  color: #29292d;
  text-align: left;
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: background-color 100ms ease;
}

.user-menu-row {
  grid-template-columns: 22px minmax(0, 1fr) 28px;
  gap: 11px;
}

.user-menu-row:hover:not(:disabled),
.user-menu-row:focus-visible,
.language-menu-row:hover,
.language-menu-row:focus-visible,
.language-menu-row.is-selected {
  background: var(--hover);
}

.user-menu-row:disabled {
  opacity: 1;
}

.user-menu-row > svg {
  width: 20px;
  height: 20px;
  color: #55555d;
}

.user-menu-chevron {
  width: 17px !important;
  height: 17px !important;
  justify-self: end;
  color: #96969d !important;
  transform: rotate(-90deg);
}

.static-switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 17px;
  justify-self: end;
  background: #d5d5d9;
  border-radius: 999px;
}

.static-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  content: "";
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(24 24 27 / 16%);
}

.user-menu-divider {
  height: 1px;
  margin: 5px 4px;
  background: var(--divider);
}

.language-menu-row {
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 12px;
}

.language-check {
  display: none;
  width: 18px;
  height: 18px;
  color: #242427;
}

.language-menu-row.is-selected .language-check {
  display: block;
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@keyframes panel-pop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 13px;
    padding-left: 13px;
  }

  .brand {
    font-size: 28px;
  }

  .agent-card {
    padding-left: 20px;
  }

  .nav-item {
    font-size: 16px;
  }

  .composer-area {
    padding-right: 24px;
    padding-left: 24px;
  }

  .share-action-area {
    padding-right: 24px;
    padding-left: 24px;
  }

  .chat-column {
    width: min(1038px, calc(100% - 48px));
  }

  .settings-frame {
    width: min(1128px, calc(100% - 48px));
  }

  .plans-frame {
    width: min(1128px, calc(100% - 48px));
  }

  .settings-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }

  .schedule-view {
    padding-right: 16px;
    padding-left: 16px;
  }

  .files-view {
    padding-right: 16px;
    padding-left: 16px;
  }

  .memory-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .memory-document-content {
    padding-right: 36px;
    padding-left: 36px;
  }

  .schedule-detail-view,
  .schedule-template-view {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .agent-card-copy {
    margin-left: 7px;
  }

  .context-message,
  .message-content {
    font-size: 17px;
  }

  .context-message {
    padding-left: 42px;
  }

  .user-message-content {
    max-width: 82%;
  }

  .user-message-bubble.is-editing {
    width: 100%;
  }

  .share-action-bar {
    gap: 14px;
    padding-left: 16px;
  }

  .settings-layout {
    grid-template-columns: 158px minmax(0, 1fr);
    gap: 24px;
  }

  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans-current-refill {
    text-align: left;
  }

  .usage-plan-summary {
    padding: 22px;
  }

  .plans-current-head,
  .plans-current-usage-head,
  .plans-current-usage-stats {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .plans-current-identity {
    align-items: flex-start;
    gap: 12px;
  }

  .usage-section-head,
  .usage-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-toolbar {
    width: 100%;
  }

  .usage-filter-button,
  .usage-date-button {
    width: 100%;
    min-width: 0;
  }

  .usage-empty-row td {
    width: 100%;
  }

  .plans-credits-guide ul {
    grid-template-columns: 1fr;
  }

  .channel-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 16px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .telegram-channel-icon {
    width: 44px;
    height: 44px;
  }

  .model-button {
    min-width: 150px;
  }

  .schedule-header {
    gap: 14px;
  }

  .schedule-action-button {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 12px;
  }

  .schedule-date-range {
    min-width: 184px;
    font-size: 13px;
  }

  .schedule-template-card {
    min-height: 116px;
    padding: 14px;
  }

  .memory-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .memory-document-content {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 720px) {
  .usage-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-pagination {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .plans-frame {
    width: calc(100% - 32px);
    padding-top: 22px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) {
  .share-action-bar {
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .agent-card {
    height: 82px;
    flex-basis: 82px;
    margin-top: 17px;
  }

  .agent-dots {
    height: 82px;
  }

  .sidebar-nav {
    margin-top: 14px;
  }

  .nav-item {
    height: 48px;
  }

  .topbar {
    height: 60px;
    flex-basis: 60px;
  }

  .chat-column {
    padding-top: 0;
  }

  .context-message {
    font-size: 17px;
    line-height: 1.65;
  }

  .agent-message {
    margin-top: 27px;
  }

  .message-content {
    font-size: 17px;
  }

  .message-checklist {
    margin-top: 27px;
  }

  .composer-card {
    min-height: 124px;
  }

  #promptInput {
    min-height: 62px;
    padding-top: 15px;
  }

  .quick-panel {
    height: min(408px, calc(100dvh - 306px));
  }

  .schedule-view {
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .files-view {
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .files-header {
    min-height: 44px;
  }

  .files-header h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .files-toolbar {
    min-height: 52px;
  }

  .memory-navigation {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .memory-document-content {
    padding-top: 26px;
    padding-bottom: 30px;
  }

  .memory-document-title {
    margin-bottom: 22px;
    font-size: 21px;
    line-height: 30px;
  }

  .memory-document-section {
    margin-bottom: 21px;
  }

  .schedule-header {
    min-height: 44px;
  }

  .schedule-header h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .schedule-toolbar {
    min-height: 40px;
    margin-bottom: 10px;
  }

  .schedule-day-header {
    height: 58px;
    flex-basis: 58px;
  }

  .schedule-task-card {
    min-height: 102px;
  }

  .schedule-detail-view,
  .schedule-template-view {
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .subview-header {
    min-height: 48px;
    margin-bottom: 8px;
  }

  .schedule-detail-header h1,
  .schedule-template-heading h1 {
    font-size: 21px;
    line-height: 28px;
  }

  .schedule-conversation {
    padding-top: 12px;
    padding-bottom: 42px;
  }

  .schedule-run-conversation + .schedule-run-conversation {
    margin-top: 48px;
  }

  .schedule-template-card {
    min-height: 98px;
    padding: 12px 14px;
  }

  .menu-row {
    height: 48px;
  }

  .feature-row,
  .skill-row {
    height: 47px;
  }

  .row-icon,
  .type-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-height: 600px) {
  .quick-panel {
    padding: 8px;
  }

  .group-label {
    height: 18px;
    padding: 0 7px;
    font-size: 10px;
    line-height: 14px;
  }

  .menu-row,
  .feature-row,
  .skill-row {
    height: 31px;
  }

  .menu-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 0 7px;
    border-radius: 8px;
  }

  .menu-row.has-trailing {
    grid-template-columns: 28px minmax(0, 1fr) 18px;
  }

  .row-icon,
  .type-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .row-icon {
    border-radius: 999px;
  }

  .row-icon svg,
  .type-icon svg {
    width: 16px;
    height: 16px;
  }

  .row-title,
  .row-description {
    font-size: 12px;
    line-height: 15px;
  }

  .row-meta {
    font-size: 10px;
    line-height: 13px;
  }

  .type-icon-abbr {
    right: 2px;
    bottom: 2px;
    min-width: 11px;
    font-size: 6px;
    line-height: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 901px) {
  .composer-card {
    min-height: 102px;
  }

  #promptInput {
    min-height: 48px;
    padding-top: 13px;
  }
}
