:root {
  --green: #07a45b;
  --green-dark: #058547;
  --chat-green: #a7e976;
  --text: #252525;
  --secondary: #858585;
  --line: #e5e5e5;
  --panel: #f3f3f3;
  --list: #e9e9e9;
  --rail: #292b2d;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    sans-serif;
  color: var(--text);
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  background: var(--panel);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: var(--green-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #159c67;
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #6eb791;
  box-shadow: 0 0 0 2px #07a45b0d;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
input[type='checkbox'] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 20px;
  font-weight: 500;
}
h2 {
  font-size: 19px;
  font-weight: 550;
}
h3 {
  font-size: 16px;
  font-weight: 550;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
strong {
  font-weight: 550;
}
.muted,
.tiny {
  color: var(--secondary);
}
.tiny {
  font-size: 12px;
}
.green-text {
  color: var(--green-dark);
}
.full {
  width: 100%;
}
.center {
  text-align: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 7px 17px;
  background: #fff;
  font-size: 13px;
  white-space: nowrap;
  line-height: 1.4;
}
.button:hover {
  background: #f5f5f5;
  text-decoration: none;
}
.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.button.primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.button.subtle {
  background: transparent;
  border-color: transparent;
}
.button.subtle:hover {
  background: #ededed;
}
.button.danger {
  background: #fff0ee;
  color: #bd4141;
  border-color: #f2d7d1;
}
.button.text-button {
  padding: 0 3px;
  min-height: auto;
  background: transparent;
  border: 0;
  color: var(--green-dark);
}
.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  padding: 0;
  flex-shrink: 0;
}
.icon-button:hover,
.icon-button.pressed {
  background: #dedede;
}
.icon-button.active {
  color: var(--green);
}
.avatar {
  --avatar-color: #d9e9da;
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 4px;
  background: var(--avatar-color);
  color: #40554a;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  user-select: none;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px #00000004;
}
.avatar > span {
  line-height: 1;
}
.avatar.color-0 {
  --avatar-color: #dae9ec;
  color: #49636c;
}
.avatar.color-1 {
  --avatar-color: #ead9ce;
  color: #7a5a45;
}
.avatar.color-2 {
  --avatar-color: #d5dfce;
  color: #4f6742;
}
.avatar.color-3 {
  --avatar-color: #d9d7eb;
  color: #625877;
}
.avatar.color-4 {
  --avatar-color: #e4d8ba;
  color: #74613b;
}
.avatar.color-5 {
  --avatar-color: #e0cfd2;
  color: #775b67;
}
.avatar.color-6 {
  --avatar-color: #c7dad8;
  color: #35625e;
}
.avatar.color-7 {
  --avatar-color: #ccd8e7;
  color: #47627e;
}
.avatar.large {
  width: 70px;
  height: 70px;
  min-width: 70px;
  font-size: 32px;
  border-radius: 6px;
}
.avatar.hero-avatar {
  width: 78px;
  height: 78px;
  font-size: 38px;
}
.ai-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  font-style: normal;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1px;
  font-size: 8px;
  line-height: 12px;
  min-width: 17px;
  background: #edf3ee;
  color: #58816a;
  text-align: center;
  border-radius: 3px;
  border: 1.5px solid #f3f3f3;
}
.avatar.large .ai-badge,
.avatar.hero-avatar .ai-badge {
  font-size: 10px;
  min-width: 22px;
  line-height: 15px;
}
.inline-ai {
  font-family: Arial, sans-serif;
  font-size: 9px;
  color: #7a9284;
  border: 1px solid #cddbd1;
  border-radius: 3px;
  padding: 1px 3px;
  vertical-align: middle;
  margin-left: 7px;
  font-weight: 500;
}
.group-avatar {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 4px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: #d8dcd6;
  border-radius: 4px;
  align-content: center;
}
.group-avatar .avatar {
  min-width: 0;
  width: 16px;
  height: 16px;
  font-size: 9px;
  border-radius: 1.5px;
}
.group-avatar .ai-badge {
  display: none;
}
.messenger {
  display: flex;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  isolation: isolate;
}
.rail {
  width: 64px;
  flex-shrink: 0;
  background: var(--rail);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 28px 0 15px;
  z-index: 8;
}
.self-avatar {
  padding: 0;
  margin: 0 0 28px;
}
.self-avatar .avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 18px;
}
.rail-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 9px;
}
.rail-item {
  width: 100%;
  height: 47px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #939799;
}
.rail-item:hover {
  color: #d2d8d6;
}
.rail-item.active {
  color: #50c88c;
}
.rail-item span {
  display: none;
}
.rail-dot {
  position: absolute;
  right: 14px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ee675f;
}
.rail-bottom {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rail-brand {
  font-size: 16px;
  color: #6f7473;
  letter-spacing: 1px;
  padding-bottom: 6px;
}
.conversation-column {
  display: flex;
  flex-direction: column;
  width: 282px;
  flex-shrink: 0;
  min-height: 0;
  background: var(--list);
  border-right: 1px solid #dcdcdc;
  z-index: 5;
}
.list-header {
  height: 75px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 24px 18px 14px;
}
.search-field {
  height: 29px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  background: #dcdcdc;
  padding: 0 9px;
  color: #888;
}
.search-field input {
  background: transparent;
  border: 0;
  box-shadow: none !important;
  border-radius: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  font-size: 12px;
  padding: 0;
  color: #444;
}
.search-field input::placeholder {
  color: #888;
}
.search-field .icon-button {
  width: 18px;
  height: 20px;
}
.search-field .icon-button svg {
  width: 12px;
}
.list-header .search-field {
  flex: 1;
}
.plus-anchor {
  position: relative;
}
.list-header > .plus-anchor > .icon-button {
  width: 29px;
  height: 29px;
  background: #dcdcdc;
  color: #777;
}
.list-header > .plus-anchor > .icon-button:hover {
  background: #cfcfcf;
}
.plus-menu {
  position: absolute;
  right: 0;
  top: 37px;
  background: #fff;
  box-shadow: 0 6px 24px #0002;
  border: 1px solid #dedede;
  border-radius: 5px;
  width: 163px;
  padding: 6px;
  z-index: 40;
}
.plus-menu .button {
  justify-content: flex-start;
  width: 100%;
  border: 0;
  padding: 11px 12px;
  gap: 13px;
  min-height: 42px;
}
.plus-menu .button:hover {
  background: #f1f1f1;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 20px 13px;
  font-size: 12px;
  color: #8a8a8a;
  letter-spacing: 0.3px;
}
.list-heading span {
  font-size: 11px;
  color: #aaa;
}
.secondary-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.conversation-row {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  position: relative;
}
.conversation-row:hover {
  background: #dedede;
}
.conversation-row.pinned {
  background: #e3e3e3;
}
.conversation-row.selected {
  background: #cdd2ce;
}
.conversation-row.selected:hover {
  background: #cdd2ce;
}
.list-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.conversation-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.conversation-title {
  font-size: 14px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 173px;
}
.conversation-preview {
  display: block;
  font-size: 12px;
  color: #939393;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.conversation-tail {
  position: absolute;
  right: 16px;
  top: 14px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 21px;
  max-width: 44px;
  color: #a3a3a3;
}
.conversation-tail time {
  font-size: 10px;
  line-height: 1;
  background: inherit;
}
.conversation-title {
  padding-right: 24px;
}
.conversation-preview {
  padding-right: 16px;
}
.unread {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  border-radius: 10px;
  background: #e96559;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  text-align: center;
  padding: 0 4px;
}
.unread.muted-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  right: -3px;
  top: -3px;
  padding: 0;
}
.pin-dot {
  height: 4px;
  width: 4px;
  background: #a6b3aa;
  border-radius: 50%;
  margin: 5px;
}
.list-footer {
  padding: 12px 18px;
  border-top: 1px solid #dddddd;
  font-size: 10px;
  line-height: 1.5;
  color: #9a9a9a;
  white-space: nowrap;
}
.list-footer button,
.list-footer > span {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #929a94;
}
.list-footer i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #9aa99e;
}
.main-panel {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #f5f5f5;
}
.chat-header {
  height: 75px;
  min-height: 75px;
  border-bottom: 1px solid #dfdfdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 29px;
  gap: 15px;
  background: #f5f5f5;
  position: relative;
  z-index: 2;
}
.chat-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}
.chat-heading h1 {
  font-size: 19px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.chat-head-actions {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #7f7f7f;
}
.chat-head-actions > .icon-button {
  width: 28px;
}
.member-count {
  font-size: 13px;
  color: #a0a0a0;
  margin-right: 1px;
}
.header-ai {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #91a397;
  border: 1px solid #d5ded7;
  border-radius: 3px;
  padding: 2px 4px;
  margin-right: 4px;
}
.mobile-back {
  display: none;
}
.chat-stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.message-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 30px 14px;
  scroll-behavior: auto;
}
.day-divider {
  font-size: 11px;
  color: #a4a4a4;
  text-align: center;
  padding: 5px 0 19px;
  letter-spacing: 0.2px;
}
.system-message {
  text-align: center;
  font-size: 11px;
  color: #a4a4a4;
  padding: 1px 15px 24px;
  line-height: 1.5;
}
.message {
  display: flex;
  gap: 11px;
  margin: 0 0 18px;
  align-items: flex-start;
  transition: background 0.2s;
  border-radius: 8px;
}
.message > .avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 19px;
  margin-top: 1px;
}
.message-body {
  max-width: min(72%, 660px);
  min-width: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.message.outgoing {
  flex-direction: row-reverse;
}
.message.outgoing .message-body {
  align-items: flex-end;
}
.message-name {
  font-size: 11px;
  color: #939393;
  margin: 0 0 5px 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.message-name small {
  font-size: 8px;
  color: #a0afa5;
  letter-spacing: 0.3px;
  font-family: Arial, sans-serif;
}
.bubble {
  border: 1px solid #eaeaea;
  background: #fff;
  padding: 9px 13px;
  position: relative;
  border-radius: 4px;
  line-height: 1.75;
  font-size: 13px;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
  min-height: 39px;
}
.bubble:before {
  position: absolute;
  content: '';
  top: 12px;
  left: -5px;
  width: 8px;
  height: 8px;
  background: inherit;
  border-left: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  transform: rotate(45deg);
}
.outgoing .bubble {
  background: var(--chat-green);
  border-color: #a0df70;
}
.outgoing .bubble:before {
  left: auto;
  right: -5px;
  border: 0;
  border-top: 1px solid #a0df70;
  border-right: 1px solid #a0df70;
}
.bubble code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  background: #00000006;
  padding: 2px 4px;
  border-radius: 3px;
}
.bubble strong {
  font-weight: 550;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 15px;
  padding: 4px 1px 0;
  opacity: 0;
  transition: opacity 0.15s;
  color: #b2b2b2;
  font-size: 9px;
}
.message:hover .message-meta,
.message:focus-within .message-meta {
  opacity: 1;
}
.message-meta button {
  padding: 0;
  line-height: 1;
  display: flex;
  color: #999;
}
.message-meta button:hover {
  color: var(--green);
}
.highlight-message {
  background: #fff6cc;
  box-shadow: 0 0 0 8px #fff6cc;
}
.chat-begin {
  margin: 75px 15px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}
.composer {
  border-top: 1px solid #dedede;
  background: #fafafa;
  min-height: 167px;
  padding: 10px 25px 13px;
  display: flex;
  flex-direction: column;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 29px;
  margin: 0 0 5px;
}
.composer-toolbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.composer-toolbar .icon-button {
  height: 28px;
  width: 27px;
  color: #747474;
}
.composer-toolbar .icon-button:hover {
  background: #ececec;
}
.composer-toolbar .icon-button svg {
  width: 20px;
  height: 20px;
}
.at-button {
  font-size: 22px;
  font-family: Arial, sans-serif;
  font-weight: 300;
}
.composer textarea {
  width: 100%;
  resize: none;
  min-height: 63px;
  max-height: 160px;
  flex: 1;
  border: 0;
  padding: 5px 4px;
  background: transparent;
  box-shadow: none;
  line-height: 1.6;
  font-size: 14px;
  outline: none;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.composer-footer > span {
  font-size: 10px;
  color: #b0b0b0;
}
.send-button {
  background: #e9e9e9;
  color: #428f60;
  font-size: 13px;
  border-radius: 3px;
  min-width: 81px;
  padding: 7px 18px;
  line-height: 1.3;
}
.send-button span {
  font-size: 10px;
  padding-left: 3px;
  color: #7f9a86;
}
.send-button:hover {
  background: #dcebdd;
  color: #218249;
}
.mention-strip {
  display: flex;
  gap: 6px;
  padding: 1px 3px 3px;
}
.mention-strip button {
  padding: 3px 7px;
  background: #edf1ed;
  color: #52916a;
  border-radius: 3px;
  font-size: 11px;
}
.typing-state {
  background: #f5f5f5;
  color: #a2a2a2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 30px 10px;
  font-size: 11px;
}
.typing-state i {
  width: 3px;
  height: 3px;
  background: #a4ada7;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
.typing-state i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-state i:nth-child(3) {
  animation-delay: 0.3s;
}
.typing-state span {
  margin-left: 3px;
}
.inline-note {
  border-top: 1px solid #ddd;
  display: flex;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 0 0;
  color: #4c8860;
  font-size: 12px;
}
.approval-card {
  width: 315px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e1e5e1;
  border-radius: 5px;
  box-shadow: 0 1px 2px #00000003;
  overflow: hidden;
}
.approval-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 16px 10px;
  font-size: 14px;
}
.approval-symbol {
  display: flex;
  color: #6d907c;
}
.approval-origin {
  font-size: 11px;
  color: #8f9b92;
  padding: 0 16px 9px;
}
.approval-question {
  font-size: 13px;
  line-height: 1.7;
  padding: 0 16px 8px;
  color: #3d4540;
  white-space: pre-wrap;
}
.approval-explainer {
  font-size: 11px;
  color: #989c99;
  line-height: 1.6;
  padding: 0 16px 14px;
}
.approval-knowledge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #8e978f;
  padding: 0 16px 13px;
  line-height: 1.5;
}
.approval-card footer {
  padding: 10px 12px;
  background: #fafbf9;
  border-top: 1px solid #edf0eb;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.approval-card .button {
  font-size: 11px;
  min-height: 29px;
  padding: 5px 11px;
}
.approval-resolved {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #85988a;
  font-size: 12px;
  padding: 3px 5px;
}
.contact-row {
  width: 100%;
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 68px;
  padding: 12px 21px;
  text-align: left;
}
.contact-row:hover {
  background: #dedede;
}
.contact-row.selected {
  background: #cdd2ce;
}
.contact-row > span:not(.avatar) {
  min-width: 0;
  line-height: 1.4;
  font-size: 14px;
}
.contact-row small {
  display: block;
  font-size: 11px;
  color: #959595;
  margin-top: 4px;
}
.contact-section-title {
  font-size: 11px;
  color: #a0a0a0;
  padding: 14px 22px 8px;
}
.new-friends {
  padding-top: 18px;
  padding-bottom: 18px;
}
.new-friend-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dba75e;
  color: white;
  border-radius: 4px;
}
.count-badge {
  margin-left: auto;
  color: #fff;
  background: #e5665e;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.contact-profile {
  width: min(500px, 100%);
  padding: 64px 25px 40px;
  margin: 0 auto;
}
.profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 23px;
}
.profile-identity h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 4px 0 11px;
}
.profile-identity p {
  font-size: 13px;
  line-height: 1.65;
  color: #959595;
  max-width: 270px;
}
.profile-properties {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 21px 13px;
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
  padding: 27px 0;
  margin: 30px 0 30px;
  font-size: 13px;
  line-height: 1.4;
}
.profile-properties > span {
  color: #999;
}
.profile-properties > p {
  color: #686868;
}
.wide-button {
  width: 190px;
  display: flex;
  margin: 0 auto;
  min-height: 39px;
}
.contact-profile > .subtle {
  display: flex;
  margin: 12px auto;
}
.new-friends-panel {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 25px 28px;
  overflow: auto;
}
.friend-request-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid #e5e5e5;
}
.friend-request-row > div {
  flex: 1;
  min-width: 0;
}
.friend-request-row strong {
  font-size: 14px;
}
.friend-request-row p {
  font-size: 12px;
  color: #939393;
  margin-top: 7px;
  line-height: 1.5;
}
.friend-request-row .button {
  font-size: 12px;
  padding: 6px 12px;
}
.quiet-note {
  font-size: 11px;
  line-height: 1.7;
  color: #a0a0a0;
  padding-top: 20px;
}
.detail-drawer {
  width: 286px;
  flex-shrink: 0;
  background: #f9f9f9;
  border-left: 1px solid #dedede;
  display: flex;
  flex-direction: column;
  overflow: auto;
  z-index: 7;
  min-height: 0;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  height: 75px;
  min-height: 75px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
}
.drawer-header .icon-button {
  width: 24px;
  height: 24px;
}
.drawer-header .icon-button svg {
  width: 17px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 6px;
  padding: 24px 17px 23px;
}
.member-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 7px;
  padding: 0;
}
.member-grid button > .avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: 19px;
}
.member-grid button > span:not(.avatar),
.member-grid button > small {
  width: 100%;
  font-size: 10px;
  color: #7f7f7f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-grid .member-add > span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c6c6c6;
  border-radius: 4px;
  color: #b3b3b3;
}
.member-grid .member-add:hover > span {
  color: #5a936e;
  border-color: #7ba88b;
}
.drawer-section {
  border-top: 1px solid #e6e6e6;
  padding: 9px 0;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  width: 100%;
  padding: 10px 20px;
  text-align: left;
  font-size: 12px;
}
.detail-row:hover {
  background: #f1f1f1;
}
.detail-row > span:first-child {
  flex: 1;
}
.detail-row strong {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #9b9b9b;
  font-weight: 400;
}
.detail-row > svg {
  color: #b8b8b8;
  width: 13px;
}
.group-description {
  padding: 2px 20px 13px;
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.65;
}
.switch {
  display: block;
  position: relative;
  width: 31px;
  height: 18px;
  border-radius: 12px;
  background: #dadada;
  transition: background 0.15s;
}
.switch:after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #0001;
  transition: transform 0.15s;
}
.switch.on {
  background: #62bb7b;
}
.switch.on:after {
  transform: translateX(13px);
}
.drawer-search {
  margin: 18px 16px 12px;
  background: #eee;
  min-height: 31px;
}
.history-results {
  padding: 0 17px 20px;
  overflow: auto;
}
.history-results > .tiny {
  padding: 6px 0 10px;
}
.history-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}
.history-item strong {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #666;
}
.history-item time {
  font-size: 9px;
  color: #aaa;
  font-weight: 400;
}
.history-item p {
  font-size: 12px;
  line-height: 1.7;
  max-height: 100px;
  overflow: hidden;
  color: #8a8a8a;
  margin-top: 6px;
  white-space: pre-wrap;
}
.drawer-pad {
  padding: 18px;
}
.drawer-pad .button + .button {
  margin-top: 6px;
}
.drawer-note {
  display: flex;
  width: 100%;
  gap: 10px;
  padding: 15px 19px;
  align-items: center;
  text-align: left;
}
.drawer-note:hover {
  background: #eee;
}
.drawer-note > svg {
  color: #91a293;
}
.drawer-note > span {
  flex: 1;
  min-width: 0;
}
.drawer-note strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.drawer-note small {
  display: block;
  font-size: 10px;
  color: #aaa;
  margin-top: 4px;
}
.leave-group {
  color: #be6260;
  padding: 22px;
  font-size: 12px;
  border-top: 1px solid #e6e6e6;
  margin-top: 6px;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 54px 24px;
  text-align: center;
  color: #b6bcb7;
  gap: 14px;
}
.empty-state strong {
  font-size: 13px;
  font-weight: 400;
  color: #969d97;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.75;
  max-width: 240px;
  color: #a7aaa8;
}
.secondary-content > .empty-state {
  padding: 60px 20px;
}
.secondary-content .empty-state svg {
  width: 34px;
  height: 34px;
}
.detail-drawer .empty-state {
  padding: 45px 20px;
}
.detail-drawer .empty-state svg {
  width: 34px;
  height: 34px;
}
.welcome-space {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 50px;
}
.welcome-symbol {
  color: #c5cbc7;
}
.welcome-space h1 {
  font-size: 19px;
  letter-spacing: 3px;
  color: #a9b3ac;
  margin: 19px 0 11px;
  font-weight: 400;
}
.welcome-space p {
  font-size: 12px;
  color: #b4bab6;
  letter-spacing: 0.2px;
}
.create-note-row {
  width: 100%;
  padding: 16px 21px;
  font-size: 12px;
  text-align: left;
  color: #66856e;
  display: flex;
  gap: 8px;
  align-items: center;
}
.create-note-row:hover {
  background: #dfdfdf;
}
.note-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid #dfdfdf;
}
.note-row:hover {
  background: #e1e1e1;
}
.note-row.selected {
  background: #d2d7d2;
}
.note-icon {
  width: 33px;
  height: 39px;
  min-width: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff1ed;
  border: 1px solid #dce0d8;
  border-radius: 3px;
  color: #8a9a81;
}
.note-row > span:last-child {
  min-width: 0;
  flex: 1;
}
.note-row strong {
  font-size: 12px;
  line-height: 1.5;
  display: block;
}
.note-row small {
  display: block;
  color: #a2a2a2;
  font-size: 10px;
  margin: 5px 0;
}
.note-row p {
  font-size: 11px;
  line-height: 1.5;
  max-height: 34px;
  overflow: hidden;
  color: #9a9a9a;
}
.note-document {
  padding: 40px max(30px, 6%);
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
  overflow: auto;
  flex: 1;
}
.note-document-meta {
  display: flex;
  gap: 9px;
  font-size: 11px;
  color: #a0a0a0;
  margin-bottom: 20px;
}
.note-document > h1 {
  font-size: 26px;
  font-weight: 550;
  line-height: 1.4;
  margin-bottom: 25px;
}
.note-content {
  font-size: 14px;
  line-height: 1.95;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #525852;
}
.note-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid #e1e1e1;
  margin-top: 32px;
  padding-top: 20px;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 22px 21px;
  text-align: left;
  color: #747b76;
  font-size: 13px;
}
.settings-row span {
  flex: 1;
  color: #555;
}
.settings-row > svg:first-child {
  width: 20px;
}
.settings-row > svg:last-child {
  color: #aaa;
}
.settings-row:hover {
  background: #ddd;
}
.settings-row.selected {
  background: #cdd2ce;
}
.settings-panel {
  width: min(660px, 100%);
  padding: 35px 35px 50px;
  margin: 0 auto;
  overflow: auto;
}
.settings-profile {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 10px 0 32px;
}
.settings-profile h2 {
  font-size: 21px;
  margin-bottom: 7px;
  font-weight: 500;
}
.settings-profile p {
  font-size: 12px;
  color: #a0a0a0;
}
.section-intro {
  font-size: 13px;
  line-height: 1.8;
  color: #8b8b8b;
  margin-bottom: 25px;
}
.device-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 0;
  border-bottom: 1px solid #e4e4e4;
}
.device-row > svg {
  color: #9caaa0;
}
.device-row > div {
  flex: 1;
  min-width: 0;
}
.device-row strong {
  font-size: 13px;
}
.device-row p {
  font-size: 11px;
  color: #a2a2a2;
  margin-top: 7px;
  line-height: 1.5;
}
.device-row .button {
  font-size: 11px;
  padding: 5px 10px;
}
.download-links {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  padding: 30px 0;
  font-size: 12px;
}
.download-links .button {
  min-height: 39px;
  font-size: 12px;
}
.download-links.compact {
  flex-direction: row;
  justify-content: center;
  gap: 25px;
  padding: 15px 0;
}
.source-job-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}
.source-job-row > span:nth-child(2) {
  flex: 1;
}
.source-job-row strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.source-job-row small {
  display: block;
  font-size: 11px;
  color: #a2a2a2;
}
.source-job-row > svg {
  color: #aaa;
}
.settings-panel > .button {
  margin-top: 20px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #00000033;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  animation: fade-in 0.12s ease;
}
.modal-card {
  width: 460px;
  max-width: 100%;
  max-height: min(90dvh, 880px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 50px #0002;
  overflow: hidden;
}
.modal-card.wide {
  width: 620px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 23px 25px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid #f1f1f1;
}
.modal-header h2 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 550;
}
.modal-header p {
  font-size: 11px;
  color: #999;
  line-height: 1.5;
  margin-top: 6px;
}
.modal-header .icon-button {
  width: 24px;
  height: 24px;
  color: #aaa;
  margin: -2px -5px 0 0;
}
.modal-header .icon-button svg {
  width: 17px;
}
.modal-body {
  padding: 23px 25px;
  overflow: auto;
  min-height: 0;
  font-size: 13px;
  line-height: 1.7;
}
.modal-footer {
  padding: 16px 24px;
  background: #fafafa;
  border-top: 1px solid #ededed;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.modal-footer .button {
  font-size: 12px;
  min-height: 34px;
}
.field {
  display: block;
  margin: 0 0 20px;
}
.field > span {
  display: block;
  font-size: 12px;
  color: #676f69;
  margin-bottom: 9px;
  font-weight: 500;
}
.field input:not([type='checkbox']),
.field textarea,
.field select {
  width: 100%;
  padding: 9px 11px;
  min-height: 38px;
  font-size: 13px;
  line-height: 1.65;
}
.field select {
  appearance: auto;
  padding: 9px 10px;
  background: #fff;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b4b4b4;
  font-size: 12px;
}
.field textarea {
  min-height: 70px;
  resize: vertical;
}
.field-hint {
  font-size: 11px;
  line-height: 1.7;
  color: #9a9a9a;
  margin: 0 0 16px;
}
.field > .field-hint {
  margin-top: -2px;
  margin-bottom: 12px;
}
.form-error {
  color: #c86359;
  font-size: 12px;
  line-height: 1.65;
  margin: 12px 0 0;
}
.form-error:empty {
  display: none;
}
#auth-form input[aria-invalid='true'],
#guest-auth-form input[aria-invalid='true'] {
  border-color: #aa2923;
  outline: 2px solid #aa2923;
  outline-offset: 1px;
}
.signup-password-error {
  display: block;
  margin: 5px 0;
  padding: 6px 10px;
  border-inline-start: 3px solid #aa2923;
  color: #79251f;
  background: #fff0ed;
  font-size: 14px;
  line-height: 1.5;
}
:is(#auth-form, #guest-auth-form):has(.signup-password-error) .form-error {
  color: #79251f;
  font-size: 14px;
  font-weight: 600;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #8b978e;
  background: #f4f7f2;
  padding: 12px 13px;
  border-radius: 4px;
  margin: 12px 0;
}
.notice > svg {
  margin-top: 2px;
  color: #94a38c;
}
.notice.demo-notice {
  background: #f7f6ee;
  color: #9f9570;
}
.notice.demo-notice > svg {
  color: #afa074;
}
.friend-search {
  height: 35px;
  background: #f0f0f0;
  margin-bottom: 12px;
}
.friend-search-results {
  max-height: 400px;
  overflow: auto;
}
.actor-result {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #f1f1f1;
}
.actor-result > div {
  flex: 1;
  min-width: 0;
}
.actor-result strong {
  font-size: 13px;
}
.actor-result p {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actor-result .button {
  padding: 5px 11px;
  min-height: 30px;
  font-size: 12px;
}
.friend-intro {
  text-align: center;
  padding: 7px 0 26px;
}
.friend-intro h3 {
  margin-top: 13px;
  font-size: 16px;
}
.picker-search {
  height: 33px;
  background: #efefef;
}
.picker-selection {
  font-size: 11px;
  color: #9a9a9a;
  padding: 13px 0 5px;
}
.picker-list {
  max-height: 340px;
  overflow: auto;
  margin: 0 -8px;
}
.picker-contact {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 8px;
  cursor: pointer;
  border-radius: 3px;
}
.picker-contact:hover {
  background: #f5f5f5;
}
.picker-contact > span:last-child {
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
}
.picker-contact small {
  font-size: 10px;
  color: #a2a2a2;
  display: block;
  margin-top: 5px;
}
.picker-contact .avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 18px;
}
.picker-list .empty-inline {
  text-align: center;
  color: #aaa;
  padding: 35px 10px;
  font-size: 12px;
}
.permission-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}
.permission-intro strong {
  font-size: 14px;
}
.permission-intro p {
  font-size: 11px;
  color: #9d9d9d;
  margin-top: 3px;
}
.knowledge-checklist {
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  overflow: hidden;
}
.knowledge-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border-bottom: 1px solid #ebebeb;
  cursor: pointer;
}
.knowledge-check:last-child {
  border-bottom: 0;
}
.knowledge-check:hover {
  background: #fafafa;
}
.knowledge-check input {
  margin-top: 2px;
}
.knowledge-check > span {
  flex: 1;
  min-width: 0;
}
.knowledge-check strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.knowledge-check small {
  display: block;
  font-size: 11px;
  color: #a0a0a0;
  line-height: 1.65;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.knowledge-check > svg {
  color: #b2bcb2;
  margin-top: 3px;
}
.knowledge-check:has(input:checked) {
  background: #f8f9f6;
}
.permission-extra {
  font-size: 11px;
  margin: 7px 0;
  color: #909b92;
}
.permission-extra summary {
  cursor: pointer;
  padding: 8px 0;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #777;
  padding: 11px 0;
  line-height: 1.6;
}
.review-question {
  padding: 2px 0 15px;
  line-height: 1.8;
  font-size: 14px;
  color: #5e6c61;
}
.review-question + .field-hint {
  margin-bottom: 16px;
}
.review-question ~ .knowledge-checklist {
  margin-bottom: 24px;
}
.member-profile {
  text-align: center;
  padding: 10px 20px 16px;
}
.member-profile h3 {
  font-size: 20px;
  margin: 16px 0 10px;
}
.member-profile p {
  color: #999;
  font-size: 12px;
  line-height: 1.7;
}
.member-profile small {
  color: #9eaaa1;
  display: block;
  margin-top: 10px;
}
.center-avatar {
  text-align: center;
  margin: 4px 0 25px;
}
.knowledge-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.knowledge-owner > div {
  flex: 1;
}
.knowledge-owner strong {
  display: block;
  font-size: 14px;
}
.knowledge-owner small {
  display: block;
  font-size: 10px;
  color: #a0a0a0;
  margin-top: 3px;
}
.knowledge-owner .button {
  padding: 5px 8px;
  font-size: 11px;
}
.private-knowledge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.private-knowledge-list > button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fdfdfc;
}
.private-knowledge-list > button:hover {
  border-color: #b6cfbd;
  background: #f9fcf7;
}
.private-knowledge-list strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #526657;
}
.private-knowledge-list p {
  color: #989c97;
  font-size: 11px;
  margin: 8px 0;
  line-height: 1.75;
  white-space: pre-wrap;
}
.private-knowledge-list small {
  color: #aab3a7;
  font-size: 10px;
}
.file-section {
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 18px;
}
.file-section h3 {
  font-size: 12px;
  margin-bottom: 8px;
  color: #79857a;
}
.file-section > .button {
  padding: 7px 0;
  font-size: 11px;
  margin-bottom: 8px;
}
.attachment-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  padding: 7px 0;
  color: #8f988e;
}
.attachment-row > span {
  flex: 1;
}
.attachment-row .button {
  padding: 3px 6px;
  font-size: 11px;
  min-height: 25px;
}
.attachment-row small {
  font-size: 10px;
  color: #b5b2a6;
}
.source-provenance {
  margin-top: 20px;
  padding: 15px;
  background: #f6f8f5;
  border-radius: 4px;
}
.source-provenance strong {
  font-size: 11px;
  color: #7f907e;
}
.source-provenance p {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #919c8e;
  margin-top: 9px;
}
.source-provenance small {
  font-size: 10px;
  margin-left: auto;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}
.emoji-grid button {
  font-size: 26px;
  padding: 8px;
  border-radius: 4px;
}
.emoji-grid button:hover {
  background: #f1f1f1;
}
.mention-choice {
  padding: 12px 7px;
}
.mention-choice:hover {
  background: #f3f5f1;
}
.mention-choice > span:last-of-type {
  flex: 1;
}
.action-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.action-list > .button {
  justify-content: flex-start;
  border: 0;
  padding: 13px 8px;
  gap: 12px;
}
.version-list details {
  border-bottom: 1px solid #e7e7e7;
}
.version-list summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 12px;
  color: #657968;
}
.version-list summary span {
  font-size: 10px;
  color: #aaa;
}
.version-list details > div {
  font-size: 12px;
  color: #90958e;
  line-height: 1.8;
  padding: 10px 0 20px;
}
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 30px;
  gap: 8px;
}
.wizard-steps > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #b1b5b0;
  white-space: nowrap;
}
.wizard-steps b {
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0f0ed;
  color: #b1b7ad;
  font-weight: 500;
}
.wizard-steps .current {
  color: #38845a;
}
.wizard-steps .current b {
  background: #d8ebdc;
  color: #4b8a5c;
}
.wizard-steps .done {
  color: #98b09c;
}
.wizard-steps .done b {
  background: #eef5ed;
  color: #8bb38c;
}
.wizard-question {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 10px;
}
.wizard-description {
  font-size: 12px;
  color: #929b92;
  line-height: 1.8;
  margin-bottom: 23px;
}
.source-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.source-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  text-align: left;
}
.source-option:hover {
  background: #fafbf9;
}
.source-option.selected {
  border-color: #9bc6a5;
  background: #f4f9f2;
}
.source-option > span:nth-child(2) {
  font-size: 14px;
  flex: 1;
  line-height: 1.4;
}
.source-option small {
  display: block;
  font-size: 10px;
  color: #a3aaa1;
  margin-top: 3px;
}
.source-option > i {
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.source-option.selected > i {
  background: #6eaf7e;
  color: white;
  border-color: #6eaf7e;
}
.source-mark {
  font-size: 17px;
  width: 37px;
  height: 37px;
  min-width: 37px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-weight: 600;
  background: #e5ebe5;
  color: #526d51;
}
.source-mark.color-codex {
  background: #242b2a;
  color: #fff;
}
.source-mark.color-kimi {
  background: #151515;
  color: #e9f5dd;
}
.source-mark.color-antigravity {
  background: #e6e9f4;
  color: #7082b4;
}
.source-mark.color-codebuddy {
  background: #deedee;
  color: #608d9b;
}
.source-mark.color-t3 {
  background: #ece5f3;
  color: #947bac;
  font-size: 14px;
}
.wizard-alternative {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  padding: 22px 0 0;
}
.wizard-alternative .button {
  font-size: 11px;
}
.authorization-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 17px 0 28px;
  color: #a8b4aa;
}
.authorization-visual .source-mark {
  width: 53px;
  height: 53px;
  font-size: 24px;
  border-radius: 12px;
}
.dotted-link {
  width: 80px;
  border-top: 2px dotted #c6d4c7;
}
.authorization-detail {
  background: #f7f8f5;
  border: 1px solid #e9ece6;
  border-radius: 5px;
  padding: 16px 18px;
  margin: 26px 0 13px;
  position: relative;
}
.authorization-detail strong {
  font-size: 12px;
  font-weight: 500;
}
.authorization-detail p {
  font-size: 11px;
  line-height: 1.8;
  color: #a0a59a;
  margin: 8px 0 0 16px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4b57b;
  margin-right: 10px;
  vertical-align: middle;
}
.status-dot.waiting {
  animation: pulse 1.4s infinite;
}
.technical-details {
  font-size: 11px;
  color: #9d9f99;
  padding-top: 12px;
}
.technical-details summary {
  cursor: pointer;
  color: #8b9988;
}
.technical-details p {
  margin-top: 10px;
  line-height: 1.8;
}
.sample-label {
  font-size: 10px;
  letter-spacing: 0.2px;
  background: #f7f5ea;
  color: #a7a078;
  padding: 9px 11px;
  border-radius: 3px;
  margin: -7px 0 20px;
}
.source-catalog {
  border: 1px solid #e4e7e0;
  border-radius: 4px;
  overflow: hidden;
  max-height: 340px;
  overflow: auto;
}
.catalog-project + .catalog-project {
  border-top: 1px solid #e5e7e1;
}
.project-check {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f5f7f2;
  padding: 13px;
  cursor: pointer;
}
.project-check strong {
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex: 1;
}
.project-check small {
  color: #a4ada0;
  font-size: 10px;
}
.catalog-chat {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px 14px 39px;
  cursor: pointer;
  border-top: 1px solid #f2f3ef;
}
.catalog-chat:hover {
  background: #fbfcf8;
}
.catalog-chat > input {
  margin-top: 2px;
}
.catalog-chat strong {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  display: block;
}
.catalog-chat small {
  display: block;
  font-size: 10px;
  color: #aaa;
  margin-top: 4px;
}
.catalog-chat em {
  display: block;
  font-style: normal;
  font-size: 9px;
  color: #b1b1a1;
  margin-top: 3px;
}
.selection-summary {
  font-size: 11px;
  color: #94a28e;
  line-height: 1.7;
  padding: 15px 0 0;
}
.selection-summary strong {
  font-weight: 500;
  color: #6e8b64;
}
.source-progress {
  text-align: center;
  padding: 13px 0 10px;
}
.source-progress > .spinner {
  margin: 0 auto 22px;
}
.source-progress h3 {
  font-size: 18px;
  font-weight: 500;
  color: #697d68;
  margin-bottom: 9px;
}
.source-progress > p {
  font-size: 12px;
  color: #a0ab9b;
}
.source-progress ol {
  text-align: left;
  margin: 26px auto 0;
  width: 240px;
  list-style: none;
  padding: 0;
}
.source-progress li {
  font-size: 11px;
  line-height: 1.6;
  color: #babeb5;
  position: relative;
  padding: 0 0 17px 23px;
}
.source-progress li:before {
  position: absolute;
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e1e5da;
  left: 0;
  top: 5px;
}
.source-progress li.done {
  color: #8baa80;
}
.source-progress li.done:before {
  background: #9cbe89;
}
.source-progress li.active {
  color: #709960;
}
.source-progress li.active:before {
  background: #78a561;
  animation: pulse 1s infinite;
}
.source-success {
  text-align: center;
  padding: 6px 12px 17px;
}
.source-success h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 19px 0 13px;
}
.source-success > p {
  color: #969f91;
  font-size: 12px;
  line-height: 1.9;
  max-width: 390px;
  margin: auto;
  white-space: pre-wrap;
}
.source-success > small {
  color: #a9b0a3;
  line-height: 1.8;
  font-size: 10px;
  display: block;
}
.success-facts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
  font-size: 10px;
  color: #8c9d81;
}
.success-facts span + span:before {
  content: '·';
  margin-right: 10px;
  color: #c1cbb7;
}
.device-connect-explainer {
  text-align: center;
  color: #9ba894;
  padding: 10px 5px 5px;
}
.device-connect-explainer h3 {
  font-size: 18px;
  color: #75876f;
  margin: 17px 0 12px;
}
.device-connect-explainer p {
  font-size: 12px;
  line-height: 1.9;
  color: #a2aa9b;
  max-width: 330px;
  margin: 0 auto;
}
.file-drop {
  border: 1px dashed #cbd5c6;
  background: #fafcf7;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 40px 20px;
  position: relative;
  cursor: pointer;
  text-align: center;
  color: #9aaa90;
  margin-bottom: 16px;
}
.file-drop strong {
  color: #87977f;
  font-size: 13px;
  font-weight: 500;
}
.file-drop span {
  font-size: 11px;
  color: #b1b9a9;
}
.file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.demo-label {
  display: inline-block;
  font-size: 10px;
  border-radius: 3px;
  background: #f6f2df;
  padding: 3px 8px;
  color: #a29668;
}
.demo-info h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 13px 0 15px;
}
.demo-info p {
  font-size: 12px;
  line-height: 1.9;
  color: #8c9489;
  margin-bottom: 14px;
}
.demo-users .contact-row {
  padding: 13px 4px;
}
.demo-users .contact-row > span:last-of-type {
  flex: 1;
}
.demo-users .contact-row:hover {
  background: #f5f7f2;
}
.invite-preview {
  text-align: center;
  color: #8e9f85;
  padding: 20px 0;
}
.invite-preview h3 {
  color: #65775b;
  font-size: 19px;
  margin: 16px 0 10px;
}
.invite-preview p {
  font-size: 12px;
  color: #9ba694;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 33px;
  transform: translateX(-50%);
  z-index: 200;
  background: #343b34ed;
  color: #fff;
  padding: 11px 19px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.7;
  max-width: min(90vw, 560px);
  box-shadow: 0 5px 20px #0002;
  animation: fade-in 0.2s ease;
  backdrop-filter: blur(8px);
}
.toast.error {
  background: #79564ef2;
}
.auth-screen,
.connection-error {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3ef;
  overflow: auto;
}
.auth-screen {
  align-items: flex-start;
}
.auth-card {
  margin: auto;
  width: 365px;
  max-width: 100%;
  padding: 32px;
  text-align: center;
}
.auth-brand {
  width: 57px;
  height: 57px;
  background: #6c9d74;
  color: #fff;
  font-size: 30px;
  line-height: 57px;
  margin: 0 auto 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 300;
}
.auth-card > h1 {
  font-size: 25px;
  letter-spacing: 5px;
  font-weight: 500;
  color: #526a50;
  margin-bottom: 10px;
}
.auth-card > p {
  font-size: 12px;
  color: #a4ae9f;
  margin-bottom: 35px;
}
.auth-card > h2 {
  font-size: 17px;
  font-weight: 400;
  text-align: left;
  margin-bottom: 24px;
  color: #76846e;
}
.auth-card .field {
  text-align: left;
  margin-bottom: 17px;
}
.auth-card .field > span {
  font-size: 11px;
  color: #8f9987;
}
.auth-card .button {
  min-height: 40px;
}
.auth-code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.auth-code-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.auth-code-button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 12px;
}
.auth-code-status {
  display: block;
  min-height: 16px;
}
.auth-toggle {
  font-size: 12px;
  color: #9daa93;
  margin-top: 21px;
}
.connection-error {
  flex-direction: column;
  padding: 35px;
  text-align: center;
}
.connection-error h1 {
  font-size: 22px;
  color: #6b7d62;
  margin-bottom: 15px;
}
.connection-error > p {
  font-size: 13px;
  line-height: 1.8;
  color: #939f88;
  max-width: 470px;
  margin-bottom: 25px;
}
.connection-error > small {
  font-size: 10px;
  color: #b0b8a7;
  margin-top: 19px;
}
.loading-state {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.spinner {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e3e9de;
  border-top-color: #86ac72;
  animation: spin 0.8s linear infinite;
}
.spinner.large {
  width: 39px;
  height: 39px;
  border-width: 3px;
}
.boot {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8b9d80;
  font-size: 13px;
  gap: 18px;
}
.boot p {
  color: #adb7a5;
  font-size: 12px;
}
.boot h1 {
  font-weight: 400;
  font-size: 23px;
  letter-spacing: 3px;
}
.brand-mark {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: #6c9d74;
  color: #fff;
  font-size: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot .brand-mark {
  margin-bottom: 5px;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-thumb {
  background: #c1c7bf;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .conversation-column {
    width: 310px;
  }
  .message-list {
    padding-left: 44px;
    padding-right: 44px;
  }
  .composer {
    padding-left: 40px;
    padding-right: 40px;
  }
  .chat-header {
    padding-left: 42px;
    padding-right: 42px;
  }
  .message-body {
    max-width: min(72%, 760px);
  }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .conversation-column {
    width: 254px;
  }
  .rail {
    width: 59px;
  }
  .message-list {
    padding-left: 23px;
    padding-right: 23px;
  }
  .chat-header {
    padding-left: 23px;
    padding-right: 23px;
  }
  .detail-drawer {
    width: 270px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    box-shadow: -8px 0 24px #00000007;
  }
  .drawer-open .main-panel {
    padding-right: 0;
  }
  .message-body {
    max-width: 80%;
  }
}
@media (max-width: 760px) {
  .messenger {
    display: block;
    height: 100dvh;
  }
  .rail {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 62px;
    padding: 4px 12px 5px;
    background: #f5f5f5;
    border-top: 1px solid #dcdcdc;
    flex-direction: row;
    z-index: 10;
    justify-content: space-between;
    padding-bottom: max(5px, env(safe-area-inset-bottom));
    height: calc(58px + env(safe-area-inset-bottom));
  }
  .self-avatar,
  .rail-brand {
    display: none;
  }
  .rail-main {
    width: 75%;
    display: flex;
    flex-direction: row;
    gap: 0;
  }
  .rail-item {
    height: 46px;
    flex: 1;
    color: #8a8f8a;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
  }
  .rail-item svg {
    width: 22px;
    height: 22px;
  }
  .rail-item span {
    display: block;
    font-size: 9px;
    color: inherit;
  }
  .rail-item.active {
    color: #329968;
  }
  .rail-bottom {
    width: 25%;
    margin: 0;
    display: flex;
  }
  .rail-dot {
    top: 2px;
    right: 30%;
  }
  .conversation-column {
    width: 100%;
    height: calc(100% - 58px - env(safe-area-inset-bottom));
    border: 0;
    background: #f1f1f1;
  }
  .list-header {
    height: 64px;
    padding: 18px 18px 9px;
    gap: 13px;
  }
  .list-header .search-field {
    height: 33px;
    background: #e4e4e4;
  }
  .list-header > .plus-anchor > .icon-button {
    width: 32px;
    height: 32px;
    background: transparent;
  }
  .list-heading {
    padding: 9px 21px 10px;
    color: #242424;
    font-size: 22px;
    font-weight: 550;
    letter-spacing: 0;
  }
  .list-heading > span {
    font-size: 12px;
    font-weight: 400;
    color: #a3aaa3;
  }
  .list-footer {
    padding: 10px 20px;
    font-size: 9px;
    background: #f0f0f0;
    border-top-color: #e5e5e5;
  }
  .conversation-row {
    height: 79px;
    padding: 12px 20px;
    background: #fafafa;
    gap: 13px;
    border-bottom: 1px solid #ececec;
  }
  .conversation-row.pinned {
    background: #f1f2ef;
  }
  .conversation-row.selected {
    background: #eef1ec;
  }
  .conversation-row .avatar {
    width: 45px;
    height: 45px;
    min-width: 45px;
    font-size: 23px;
  }
  .conversation-row .group-avatar {
    width: 45px;
    height: 45px;
    min-width: 45px;
    gap: 2px;
    padding: 4px;
  }
  .group-avatar .avatar,
  .conversation-row .group-avatar .avatar {
    width: 17.5px;
    height: 17.5px;
    min-width: 0;
    font-size: 9px;
  }
  .conversation-title {
    font-size: 16px;
    max-width: none;
    padding-right: 44px;
  }
  .conversation-copy {
    gap: 7px;
  }
  .conversation-preview {
    font-size: 12px;
    padding-right: 19px;
  }
  .conversation-tail {
    top: 16px;
    right: 20px;
    gap: 22px;
  }
  .conversation-tail time {
    font-size: 10px;
  }
  .main-panel {
    display: none;
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
  }
  .has-selection .main-panel {
    display: flex;
  }
  .has-selection .conversation-column,
  .has-selection .rail {
    display: none;
  }
  .has-selection .mobile-back {
    display: inline-flex;
    width: 28px;
    margin-left: -5px;
    color: #3c453d;
  }
  .chat-header {
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
    gap: 7px;
  }
  .chat-heading {
    gap: 7px;
  }
  .chat-heading h1 {
    font-size: 17px;
    max-width: 230px;
    font-weight: 500;
  }
  .chat-head-actions {
    gap: 7px;
  }
  .chat-head-actions > .icon-button {
    width: 27px;
  }
  .chat-head-actions > .icon-button svg {
    width: 19px;
  }
  .member-count {
    font-size: 11px;
    margin-right: 0;
  }
  .header-ai {
    display: none;
  }
  .message-list {
    padding: 20px 15px 12px;
  }
  .message {
    gap: 9px;
    margin-bottom: 17px;
  }
  .message > .avatar {
    width: 35px;
    height: 35px;
    min-width: 35px;
    font-size: 18px;
  }
  .message-body {
    max-width: calc(100% - 89px);
  }
  .bubble {
    font-size: 14px;
    line-height: 1.7;
    padding: 9px 11px;
  }
  .message-name {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .message-meta {
    opacity: 1;
    font-size: 8px;
    color: #b6b6b6;
    padding-top: 3px;
  }
  .message-meta button {
    width: 16px;
    height: 13px;
    color: #b9c2b8;
  }
  .system-message {
    font-size: 10px;
    padding: 0 15px 20px;
    line-height: 1.7;
  }
  .day-divider {
    font-size: 10px;
    padding-bottom: 17px;
  }
  .composer {
    min-height: 140px;
    padding: 8px 13px calc(10px + env(safe-area-inset-bottom));
    background: #fbfbfb;
  }
  .composer-toolbar {
    margin-bottom: 2px;
    height: 28px;
  }
  .composer-toolbar > div {
    gap: 13px;
  }
  .composer textarea {
    min-height: 49px;
    font-size: 15px;
    line-height: 1.55;
    padding: 5px 5px;
  }
  .composer-footer {
    padding-top: 2px;
  }
  .composer-footer > span {
    font-size: 8px;
    max-width: 230px;
  }
  .send-button {
    padding: 7px 17px;
    font-size: 12px;
    min-width: 71px;
  }
  .send-button span {
    display: none;
  }
  .typing-state {
    padding: 0 15px 8px;
    font-size: 10px;
  }
  .detail-drawer {
    position: fixed;
    right: 0;
    top: 0;
    width: min(320px, 88vw);
    height: 100%;
    box-shadow: -10px 0 70px #0003;
    z-index: 30;
    background: #fafafa;
    border-left: 1px solid #e2e5dd;
  }
  .drawer-header {
    height: 64px;
    min-height: 64px;
    padding: 17px 18px;
  }
  .member-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 24px 18px;
  }
  .drawer-open:before {
    content: '';
    position: fixed;
    inset: 0;
    background: #0002;
    z-index: 20;
    pointer-events: none;
  }
  .detail-row {
    min-height: 50px;
    font-size: 13px;
  }
  .detail-drawer .detail-row strong {
    font-size: 11px;
  }
  .approval-card {
    width: 280px;
  }
  .approval-heading {
    font-size: 13px;
    padding: 13px 13px 9px;
  }
  .approval-origin,
  .approval-question,
  .approval-explainer,
  .approval-knowledge {
    padding-left: 13px;
    padding-right: 13px;
  }
  .approval-question {
    font-size: 12px;
  }
  .approval-explainer {
    font-size: 10px;
  }
  .approval-card .button {
    font-size: 10px;
    padding: 6px 10px;
  }
  .approval-card footer {
    padding: 9px;
  }
  .contact-row {
    background: #fafafa;
    border-bottom: 1px solid #ececec;
    min-height: 71px;
    padding: 13px 21px;
  }
  .contact-row .avatar {
    width: 43px;
    height: 43px;
    min-width: 43px;
    font-size: 22px;
  }
  .contact-row.selected {
    background: #f2f4ef;
  }
  .contact-row > span:not(.avatar) {
    font-size: 15px;
  }
  .new-friends {
    margin-bottom: 8px;
    background: #fafafa;
  }
  .contact-section-title {
    padding-top: 15px;
    padding-bottom: 10px;
  }
  .contact-profile {
    padding: 40px 30px;
  }
  .profile-identity {
    gap: 19px;
  }
  .profile-identity h2 {
    font-size: 21px;
  }
  .profile-properties {
    grid-template-columns: 72px 1fr;
    font-size: 12px;
    padding: 25px 0;
    margin: 30px 0;
  }
  .profile-identity p {
    font-size: 12px;
  }
  .new-friends-panel {
    padding: 12px 20px;
  }
  .friend-request-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
  }
  .friend-request-row > div {
    min-width: 160px;
  }
  .friend-request-row .button {
    font-size: 11px;
    padding: 5px 9px;
  }
  .friend-request-row .subtle {
    margin-left: 51px;
  }
  .note-row {
    background: #fafafa;
    padding: 19px 20px;
  }
  .note-row strong {
    font-size: 14px;
  }
  .note-row p {
    font-size: 12px;
  }
  .note-row.selected {
    background: #eef1e9;
  }
  .create-note-row {
    padding: 18px 21px;
    background: #f8faf4;
    font-size: 13px;
  }
  .note-document {
    padding: 27px 24px;
  }
  .note-document > h1 {
    font-size: 23px;
  }
  .note-content {
    font-size: 14px;
    line-height: 1.9;
  }
  .note-document-meta {
    font-size: 10px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .note-actions .button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .settings-row {
    background: #fafafa;
    border-bottom: 1px solid #ececec;
    padding: 24px 22px;
    font-size: 14px;
  }
  .settings-panel {
    padding: 25px 24px 35px;
  }
  .settings-profile {
    margin-bottom: 30px;
  }
  .settings-profile h2 {
    font-size: 21px;
  }
  .device-row {
    gap: 12px;
  }
  .device-row strong {
    font-size: 12px;
  }
  .device-row > svg {
    width: 25px;
  }
  .modal-backdrop {
    padding: 17px;
  }
  .modal-card,
  .modal-card.wide {
    width: 100%;
    max-height: 91dvh;
    border-radius: 6px;
  }
  .modal-header {
    padding: 19px 20px 16px;
  }
  .modal-header h2 {
    font-size: 16px;
  }
  .modal-body {
    padding: 20px;
    line-height: 1.7;
  }
  .modal-footer {
    padding: 14px 18px;
  }
  .modal-footer .button {
    font-size: 12px;
    padding: 8px 13px;
    min-height: 36px;
  }
  .field {
    margin-bottom: 18px;
  }
  .field input:not([type='checkbox']),
  .field textarea,
  .field select {
    font-size: 16px;
    padding: 8px 10px;
    min-height: 40px;
  }
  .field input::placeholder,
  .field textarea::placeholder {
    font-size: 12px;
  }
  .field > span {
    font-size: 12px;
  }
  .search-field input {
    font-size: 14px;
  }
  .modal-body .search-field input {
    font-size: 16px;
  }
  .wizard-steps {
    gap: 4px;
    margin-bottom: 25px;
  }
  .wizard-steps > span {
    font-size: 8px;
    gap: 3px;
  }
  .wizard-steps b {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }
  .wizard-question {
    font-size: 17px;
  }
  .wizard-description {
    font-size: 12px;
    margin-bottom: 21px;
  }
  .source-option {
    padding: 12px 13px;
    gap: 12px;
  }
  .source-option > span:nth-child(2) {
    font-size: 13px;
  }
  .source-mark {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 16px;
  }
  .source-options {
    gap: 8px;
  }
  .source-option small {
    font-size: 9px;
  }
  .source-options + .wizard-alternative {
    padding-top: 19px;
  }
  .authorization-visual {
    padding: 8px 0 23px;
    gap: 20px;
  }
  .dotted-link {
    width: 60px;
  }
  .authorization-detail {
    padding: 13px 14px;
    margin-top: 20px;
  }
  .authorization-detail strong {
    font-size: 11px;
  }
  .authorization-detail p {
    font-size: 10px;
  }
  .catalog-chat {
    padding: 13px 12px 13px 27px;
  }
  .catalog-chat strong {
    font-size: 12px;
  }
  .project-check {
    gap: 8px;
    padding: 12px 11px;
  }
  .project-check strong {
    font-size: 11px;
  }
  .project-check small {
    font-size: 8px;
  }
  .project-check strong svg {
    width: 15px;
  }
  .source-catalog {
    max-height: 290px;
  }
  .sample-label {
    font-size: 9px;
    line-height: 1.5;
    padding: 8px 10px;
  }
  .source-success {
    padding: 2px 0 10px;
  }
  .source-success h3 {
    font-size: 20px;
  }
  .source-success > p {
    font-size: 11px;
  }
  .success-facts {
    gap: 8px;
    font-size: 9px;
    margin: 22px 0;
  }
  .source-success > small {
    font-size: 9px;
  }
  .permission-intro {
    margin-bottom: 22px;
  }
  .permission-intro p {
    font-size: 10px;
  }
  .knowledge-check {
    padding: 12px 10px;
    gap: 8px;
  }
  .knowledge-check strong {
    font-size: 11px;
  }
  .knowledge-check small {
    font-size: 10px;
  }
  .picker-list {
    max-height: 300px;
  }
  .picker-contact {
    padding: 11px 8px;
  }
  .picker-contact > span:last-child {
    font-size: 13px;
  }
  .picker-contact small {
    font-size: 9px;
  }
  .picker-selection {
    font-size: 10px;
  }
  .friend-search-results .actor-result {
    gap: 11px;
  }
  .actor-result p {
    font-size: 10px;
    max-width: 190px;
  }
  .actor-result .button {
    padding: 5px 7px;
    font-size: 11px;
  }
  .emoji-grid {
    gap: 4px;
  }
  .emoji-grid button {
    font-size: 24px;
    padding: 8px 4px;
  }
  .toast {
    bottom: 24px;
    font-size: 11px;
    max-width: 90vw;
    padding: 10px 15px;
  }
  .auth-card {
    width: 365px;
    padding: 28px;
  }
  .auth-brand {
    width: 54px;
    height: 54px;
    line-height: 54px;
    font-size: 29px;
  }
  .auth-card .field input {
    font-size: 16px;
  }
  .auth-card > p {
    font-size: 11px;
  }
  .source-job-row {
    gap: 12px;
  }
  .source-job-row strong {
    font-size: 13px;
  }
  .source-job-row small {
    font-size: 10px;
  }
  .version-list summary {
    font-size: 11px;
  }
  .private-knowledge-list p {
    font-size: 10px;
  }
  .profile-identity .avatar.large {
    width: 63px;
    height: 63px;
    min-width: 63px;
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.file-bubble {
  min-width: 210px;
  padding: 0;
}
.chat-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  max-width: 320px;
  padding: 16px;
  text-align: left;
  width: 100%;
}
.chat-file > svg:first-child {
  color: #96aa80;
}
.chat-file > svg:last-child {
  color: #9ead8c;
  margin-left: 9px;
}
.chat-file > span {
  min-width: 0;
  flex: 1;
}
.chat-file strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat-file small {
  display: block;
  font-size: 10px;
  color: #9ca58e;
  margin-top: 5px;
}
.grant-manager-heading {
  font-size: 11px;
  color: #99a28f;
  margin: 19px 0 7px;
}
.grant-manager-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid #eee;
}
.grant-manager-row > span:not(.avatar) {
  flex: 1;
}
.grant-manager-row strong {
  font-size: 12px;
  display: block;
}
.grant-manager-row small {
  font-size: 10px;
  color: #aaa;
  display: block;
  margin-top: 5px;
}
.grant-manager-row > svg {
  color: #a8b49e;
}
@media (max-width: 760px) {
  .file-bubble,
  .chat-file {
    min-width: 190px;
    max-width: 100%;
  }
  .chat-file {
    gap: 9px;
    padding: 13px;
  }
  .chat-file strong {
    font-size: 11px;
  }
  .chat-file small {
    font-size: 9px;
  }
  .chat-file > svg:first-child {
    width: 24px;
  }
  .chat-file > svg:last-child {
    display: none;
  }
}

.modal-footer {
  flex-wrap: wrap;
}
.knowledge-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.knowledge-section-heading > span {
  font-size: 12px;
  color: #676f69;
  font-weight: 500;
}
.knowledge-section-heading > div {
  display: flex;
  gap: 12px;
}
.knowledge-section-heading .button {
  font-size: 11px;
}
.permission-selection-summary {
  font-size: 11px;
  color: #93a38a;
  margin-top: 12px;
  line-height: 1.7;
}
.permission-selection-summary strong {
  font-size: 13px;
  color: #688d5d;
}
.permission-blocked {
  margin: 2px 0 22px;
  border-top: 1px solid #eceee7;
  border-bottom: 1px solid #eceee7;
  padding: 11px 0;
}
.permission-blocked summary {
  cursor: pointer;
  font-size: 11px;
  color: #929f88;
}
.permission-blocked summary > span {
  font-size: 10px;
  color: #b2baa9;
  float: right;
}
.permission-blocked .field-hint {
  margin: 12px 0 6px;
  font-size: 10px;
}
.blocked-checklist .check-line {
  font-size: 11px;
  padding: 10px 0;
}
.blocked-checklist .check-line > span {
  flex: 1;
}
.blocked-checklist .check-line > svg {
  color: #acb4a5;
}
.knowledge-check.explicitly-blocked {
  opacity: 0.55;
  background: #f4f4f1;
}
.knowledge-check em {
  font-style: normal;
  color: #a49882;
  font-size: 10px;
  margin-top: 5px;
  display: block;
}

/* Keep the shared download entry visible above every signed-in view. */
.desktop-download-bar {
  height: 44px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f5f5f5;
  border-bottom: 1px solid #dedede;
  font-size: 12px;
}
.desktop-download-bar .button {
  min-height: 34px;
  white-space: nowrap;
  font-size: 12px;
}
.messenger.desktop-download-layout {
  position: relative;
  height: calc(100dvh - 44px);
}
.auth-card .auth-desktop-download {
  margin-top: 12px;
}
.desktop-download-platforms section + section {
  margin-top: 24px;
}
.desktop-download-platforms h3 {
  margin: 0 0 8px;
}
.desktop-download-platforms p {
  margin: 0;
  color: var(--muted);
}

/* Source catalog: only returned metadata; selected IDs live in scoped draft state. */
.catalog-toolbar {
  margin-top: 18px;
}
.catalog-view,
.catalog-selection-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.catalog-view .button[aria-pressed='true'] {
  color: #087c42;
  border-color: #11834d;
  background: #edf6ee;
}
.catalog-view label,
.catalog-batch {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.catalog-batch {
  padding: 12px;
  line-height: 1.6;
}
.catalog-project h3 {
  margin: 0;
}
.catalog-project-toggle {
  display: flex;
  width: 100%;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: #f5f7f2;
  padding: 14px;
  cursor: pointer;
  text-align: left;
}
.catalog-project-toggle span {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.catalog-project-toggle small {
  font-size: 11px;
  font-weight: 400;
  color: #626962;
}
.catalog-more {
  margin: 12px;
  max-width: calc(100% - 24px);
}
.catalog-empty,
.catalog-warning {
  padding: 12px;
  line-height: 1.7;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.catalog-warning {
  background: #fff8e9;
}
#source-catalog-browser .catalog-chat {
  padding-left: 16px;
}
#source-catalog-browser .catalog-chat > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#source-catalog-browser .catalog-chat small {
  color: #677267;
}
#source-catalog-browser .source-catalog {
  max-height: 350px;
}
@media (max-width: 760px) {
  .catalog-project-toggle {
    align-items: flex-start;
    flex-direction: column;
  }
  .catalog-selection-tools {
    align-items: flex-start;
  }
  #source-catalog-browser .source-catalog {
    max-height: 40vh;
  }
}
.catalog-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  font-size: 11px;
  color: #626962;
  background: #fafbf9;
}
.catalog-pagination .button {
  padding: 7px 10px;
}
#source-catalog-browser .catalog-toolbar {
  margin-top: 8px;
}
#source-catalog-browser .catalog-view,
#source-catalog-browser .catalog-selection-tools {
  margin: 6px 0;
  gap: 8px;
}
#source-catalog-browser .catalog-view .button {
  padding: 8px 10px;
}
#source-catalog-browser .selection-summary {
  padding: 4px 0;
  margin: 0;
}
#source-catalog-browser .catalog-selection-tools .catalog-batch {
  padding: 6px 0;
  font-size: 11px;
}
#source-catalog-browser .catalog-selection-tools .button {
  padding: 6px 8px;
  font-size: 11px;
}
#source-catalog-browser .catalog-pagination {
  padding: 6px;
}
.catalog-help {
  margin-top: 10px;
  font-size: 11px;
  color: #626962;
}
@media (max-width: 760px) {
  #source-catalog-browser .catalog-view .button,
  #source-catalog-browser .catalog-selection-tools .button,
  #source-catalog-browser .catalog-pagination .button {
    min-height: 44px;
  }
  #source-catalog-browser .catalog-selection-tools .catalog-batch {
    min-height: 44px;
  }
  #source-catalog-browser .catalog-batch input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }
  #source-catalog-browser .catalog-toolbar .field {
    margin-bottom: 8px;
  }
  #catalog-search {
    min-height: 44px;
  }
}
