:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #283c35;
  background: #f5f6f3;
  font-synthesis: none;
  --green: #28785f;
  --ink: #233e33;
  --muted: #89928b;
  --line: #e7eae4;
  --soft: #f6f7f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
textarea,
select {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #49a889;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8ec4aa;
  outline-offset: 1px;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  display: block;
  flex-shrink: 0;
}
.icon-button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #8a948e;
}
.icon-button:hover {
  background: #eef1eb;
  color: var(--green);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid #dce2da;
  background: #fff;
  border-radius: 7px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 39px;
}
.button:hover {
  background: #f4f7f1;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 2px 3px #183c3212;
}
.button.primary:hover {
  background: #1d634b;
}
.text-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #738178;
}
.text-button:hover {
  color: var(--green);
}
.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #589b72;
  display: inline-block;
  flex-shrink: 0;
}
.channel-icon {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -1px;
}
.channel-icon svg {
  width: 14px;
  height: 14px;
}
.telegram {
  background: #e6f3fb;
  color: #459bc7;
}
.vk {
  background: #eaf1ff;
  color: #397bec;
}
.max {
  background: #eee9fc;
  color: #805bce;
}
.max-symbol {
  font-size: 17px;
  font-style: italic;
  line-height: 1;
}
.badge {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
}
.badge.new {
  color: #578476;
  background: #edf4ed;
}
.badge.open {
  background: #edf0fb;
  color: #7683b8;
}
.badge.pending {
  background: #fbf1de;
  color: #ac8c4c;
}
.badge.closed {
  background: #eef0ed;
  color: #859087;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  background: #efe4db;
  color: #99785b;
}
.avatar.color-1 {
  background: #e9e2f2;
  color: #987ab8;
}
.avatar.color-2 {
  background: #e1eade;
  color: #829572;
}
.avatar.color-3 {
  background: #e2eaf1;
  color: #7091ac;
}
.avatar.color-4 {
  background: #f2e5df;
  color: #b28b78;
}
.avatar.color-0 {
  background: #ede7d6;
  color: #a38b57;
}
.muted {
  color: #90988f;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: #8b958b;
  line-height: 1.7;
}
.empty .icon {
  margin: 0 auto 13px;
  width: 32px;
  height: 32px;
  color: #a8b7aa;
}
.empty strong {
  display: block;
  font-weight: 600;
  color: #607665;
  font-size: 15px;
  margin-bottom: 5px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 31px 26px 28px;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 700;
  color: #234336;
  line-height: 1;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 41px;
  border-radius: 11px;
  background: #2c765b;
  color: #fff;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 37px;
  padding-bottom: 5px;
  box-shadow: 0 3px 7px #2c765b15;
  line-height: 1;
}
.brand-caption {
  display: block;
  font-size: 8px;
  font-weight: 500;
  color: #849386;
  letter-spacing: 0.1px;
  margin-top: 7px;
}
.workspace {
  margin: 0 17px 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e0e5db;
  border-radius: 8px;
  background: #fcfdf9;
  padding: 12px 10px;
}
.workspace-avatar {
  width: 29px;
  height: 29px;
  background: #e5ebde;
  color: #6c855d;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-weight: 650;
}
.workspace strong {
  font-size: 11px;
  display: block;
}
.workspace small {
  font-size: 9px;
  color: #8d9787;
  display: block;
  margin-top: 3px;
}
.workspace-dot {
  width: 5px;
  height: 5px;
  background: #7d9e76;
  border-radius: 50%;
  margin-left: auto;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #97a08f;
  margin: 0 27px 12px;
  font-weight: 600;
}
.sidebar nav {
  padding: 0 15px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 13px;
  color: #798675;
  border-radius: 7px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-item.active {
  background: #e4eadc;
  color: #38583c;
}
.nav-item:hover {
  background: #e9eee3;
}
.nav-count {
  margin-left: auto;
  background: #578460;
  color: #fff;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 9px;
  min-width: 18px;
  text-align: center;
}
.tiny-badge {
  font-size: 10px;
  margin-left: auto;
  color: #97a18f;
}
.channel-caption {
  margin-top: 34px;
  margin-bottom: 12px;
}
.sidebar-channel {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 28px;
  width: 100%;
  color: #7d8976;
  font-size: 11px;
}
.sidebar-channel:hover {
  background: #edf1e6;
}
.sidebar-channel .channel-icon {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  font-size: 11px;
}
.sidebar-channel .channel-icon svg {
  width: 12px;
  height: 12px;
}
.sidebar-channel .online-dot {
  margin-left: auto;
  background: #b3bea9;
  width: 5px;
  height: 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.demo-card {
  margin: 0 20px 21px;
  border: 1px solid #e0e6d8;
  padding: 17px 14px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f8f9f2, #eff3e8);
}
.demo-orbit {
  font-size: 25px;
  color: #789466;
  display: block;
  margin-bottom: 10px;
}
.demo-card strong {
  font-size: 11px;
  color: #627454;
}
.demo-card p {
  font-size: 10px;
  line-height: 1.8;
  color: #8a957e;
  margin: 7px 0 13px;
}
.demo-card button {
  font-size: 10px;
  font-weight: 600;
  color: #678555;
  padding: 0;
  width: 100%;
  text-align: left;
}
.demo-card button span {
  float: right;
}
.operator {
  border-top: 1px solid #e0e6d9;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 19px 23px;
}
.operator-avatar,
.header-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5eada;
  border: 3px solid white;
  color: #758567;
  font-size: 11px;
  width: 33px;
  height: 33px;
}
.operator strong {
  font-size: 11px;
  font-weight: 600;
}
.operator small {
  display: block;
  font-size: 9px;
  color: #8d9983;
  margin-top: 4px;
}
.operator small .online-dot {
  width: 5px;
  height: 5px;
}
.operator .icon-button {
  margin-left: auto;
}
.topbar {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #fdfefb;
}
.breadcrumb {
  font-size: 11px;
  color: #99a095;
  display: flex;
  gap: 14px;
}
.breadcrumb span {
  color: #c5cbc0;
}
.breadcrumb strong {
  font-weight: 500;
  color: #667763;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.connection-state {
  font-size: 10px;
  color: #96a18f;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mode-badge {
  font-size: 9px;
  color: #939d85;
  border: 1px solid #dfe6d5;
  border-radius: 5px;
  padding: 4px 7px;
  background: #f4f7ee;
}
.header-avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
  border-width: 2px;
}
.page-heading {
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 26px;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #919d86;
  font-weight: 600;
  margin-bottom: 7px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
  font-weight: 620;
  margin: 0;
  color: #2b4335;
  display: flex;
  align-items: center;
  gap: 11px;
}
.page-heading h1 > span {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  padding: 3px 7px;
  background: #e9ede3;
  border: 1px solid #e0e6d8;
  color: #809371;
  border-radius: 6px;
}
.page-heading p {
  font-size: 11px;
  color: #929c8d;
  margin: 7px 0 0;
}
.page-heading .button {
  font-size: 11px;
  color: #5c7058;
  min-height: 36px;
  padding: 9px 12px;
}
.page-heading .button .icon {
  width: 15px;
  height: 15px;
}
.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
}
.inbox-title {
  font-size: 13px;
  font-weight: 650;
  display: flex;
  gap: 8px;
  align-items: center;
}
.inbox-title span {
  font-size: 10px;
  font-weight: 400;
  color: #a1aa9c;
}
.search-box {
  margin: 0 17px 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f7f8f4;
  border: 1px solid #e9ede4;
  border-radius: 6px;
  padding: 9px;
  color: #a3ad9e;
}
.search-box .icon {
  width: 14px;
  height: 14px;
}
.search-box input {
  font-size: 10px;
  outline: none;
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
}
.search-box input::placeholder {
  color: #a3ad9e;
}
.search-box kbd {
  font: 9px inherit;
  border: 1px solid #e5e9df;
  border-radius: 3px;
  padding: 0 4px;
  color: #a5ad9e;
}
.list-tabs {
  display: flex;
  gap: 16px;
  margin: 0 18px;
  border-bottom: 1px solid #ebeee6;
}
.list-tabs button {
  font-size: 10px;
  padding: 0 0 11px;
  white-space: nowrap;
  color: #97a08f;
}
.list-tabs button.active {
  color: #36734f;
  border-bottom: 2px solid #568765;
  margin-bottom: -1px;
  font-weight: 600;
}
.list-tabs span {
  font-size: 9px;
  background: #eef1e8;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 3px;
}
.list-selects {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 17px 10px;
  border-bottom: 1px solid #eff1ec;
  gap: 5px;
}
.list-selects select {
  font-size: 9px;
  border: 0;
  max-width: 50%;
  background: transparent;
  color: #84917b;
  cursor: pointer;
  padding: 0;
}
.conversation-list {
  overflow: auto;
  flex: 1;
}
.conversation-row {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 17px 16px 16px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #f0f2eb;
  min-height: 102px;
}
.conversation-row:hover {
  background: #f7f9f3;
}
.conversation-row.active {
  background: #eff5eb;
}
.conversation-row.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #70a378;
}
.avatar-wrap {
  position: relative;
  height: 40px;
  flex-shrink: 0;
}
.avatar-wrap > .channel-icon {
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 17px;
  height: 17px;
  border: 2px solid white;
  font-size: 9px;
  border-radius: 5px;
}
.avatar-wrap > .channel-icon svg {
  width: 9px;
  height: 9px;
}
.avatar-wrap .max-symbol {
  font-size: 12px;
}
.row-body {
  min-width: 0;
  flex: 1;
}
.row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.row-top strong {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-top time {
  color: #a4ad9d;
  font-size: 9px;
  flex-shrink: 0;
}
.row-preview {
  font-size: 10px;
  color: #97a08f;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 5px 0 6px;
  min-height: 16px;
}
.row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.row-bottom .badge {
  font-size: 8px;
  padding: 3px 5px;
}
.unread-count {
  font-size: 8px;
  background: #79a776;
  color: #fff;
  min-width: 15px;
  height: 15px;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.priority-mark {
  color: #c4a969;
  font-size: 11px;
  margin-left: 3px;
}
.list-footer {
  padding: 14px 15px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0a994;
  background: #fdfefb;
}
.list-footer .online-dot {
  width: 4px;
  height: 4px;
  background: #a8ba97;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  min-height: 80px;
  gap: 12px;
}
.chat-person {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.chat-person .avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.chat-person strong {
  font-size: 13px;
  font-weight: 650;
}
.chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #9aa491;
  margin-top: 6px;
}
.chat-meta .channel-icon {
  width: 13px;
  height: 13px;
  font-size: 8px;
  border-radius: 3px;
}
.chat-meta .channel-icon svg {
  width: 9px;
  height: 9px;
}
.chat-meta .max-symbol {
  font-size: 10px;
}
.chat-actions {
  display: flex;
  gap: 6px;
}
.resolve-button {
  padding: 7px 9px;
  border: 1px solid #e2e8dc;
  border-radius: 6px;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7c8c72;
  white-space: nowrap;
}
.resolve-button:hover {
  background: #eff5e9;
}
.resolve-button .icon {
  width: 13px;
  height: 13px;
}
.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 23px 26px 18px;
  background-color: #fcfdf9;
  scrollbar-width: thin;
  scrollbar-color: #e2e6da transparent;
}
.date-divider {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #a5ad9a;
  font-size: 9px;
  margin: 1px 0 22px;
}
.date-divider:before,
.date-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #edf0e6;
  max-width: 65px;
}
.system-event {
  font-size: 9px;
  text-align: center;
  color: #a3ad97;
  margin-bottom: 23px;
  line-height: 1.8;
}
.message {
  max-width: 87%;
  margin-bottom: 17px;
  width: fit-content;
  animation: appear 0.15s ease;
}
.message .sender-name {
  font-size: 9px;
  color: #91a085;
  margin-bottom: 6px;
}
.message-bubble {
  background: white;
  border: 1px solid #e8ecdf;
  border-radius: 0 10px 10px 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 2px #243a2802;
  min-width: 100px;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  font-size: 11px;
  color: #67725f;
}
.message-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 8px;
  color: #adb49f;
  margin-top: 6px;
}
.message-time .icon {
  width: 12px;
  height: 12px;
  color: #8bab7d;
}
.message.out {
  margin-left: auto;
}
.message.out .sender-name {
  text-align: right;
}
.message.out .message-bubble {
  background: #eaf1e3;
  border-color: #e1ead7;
  border-radius: 10px 0 10px 10px;
}
.message.out .message-text {
  color: #637756;
}
.message.note {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: 100%;
}
.message.note .message-bubble {
  background: #fff8e7;
  border-color: #f0e7ce;
  border-radius: 8px;
}
.message.note .sender-name {
  color: #ac995f;
  text-align: center;
}
.message-state-error {
  color: #b77660 !important;
}
.attachment-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 10px;
  color: #99987e;
}
.attachment-chip .icon {
  width: 13px;
  height: 13px;
}
.composer-area {
  padding: 14px 20px 16px;
  background: #fff;
  border-top: 1px solid #e9ede2;
}
.composer {
  border: 1px solid #dfe5d8;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 4px #233d2010;
  overflow: hidden;
}
.composer:focus-within {
  border-color: #90ac81;
}
.composer-tabs {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 13px 0;
}
.composer-tabs > button {
  font-size: 9px;
  color: #a2aa96;
  padding: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid transparent;
}
.composer-tabs > button.active {
  color: #638053;
  border-color: #8ba678;
  font-weight: 600;
}
.composer-tabs > button .icon {
  width: 10px;
  height: 10px;
}
.composer-tabs > span {
  margin-left: auto;
  font-size: 8px;
  color: #b0b8a6;
  padding-bottom: 7px;
}
.composer textarea {
  resize: vertical;
  min-height: 70px;
  max-height: 220px;
  width: 100%;
  border: 0;
  outline: none;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.7;
  display: block;
}
.composer textarea::placeholder {
  color: #a8b09b;
}
.composer-bottom {
  padding: 6px 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.composer-bottom .text-button {
  font-size: 9px;
  color: #95a189;
}
.composer-bottom .text-button .icon {
  width: 12px;
  height: 12px;
}
.composer-bottom > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.composer-bottom .button {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 10px;
}
.composer-bottom .button .icon {
  width: 12px;
  height: 12px;
}
.composer-hint {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #aab3a0;
  gap: 8px;
  margin-top: 10px;
}
.composer-hint span:last-child {
  white-space: nowrap;
}
#char-count {
  font-size: 8px;
  color: #a5ae99;
}
.quick-replies {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 10px;
  font-size: 9px;
  color: #9aa98c;
}
.quick-replies button {
  background: #f1f5eb;
  border: 1px solid #e3ead8;
  padding: 5px 6px;
  border-radius: 4px;
  color: #728464;
}
.note-mode .composer {
  background: #fffaf0;
  border-color: #e7dab2;
}
.note-mode textarea {
  background: #fffaf0;
}
.note-mode .composer-tabs > button.active {
  color: #a18b43;
  border-color: #c5b366;
}
.profile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 19px 17px;
  font-size: 10px;
  font-weight: 600;
  color: #77896a;
  min-height: 61px;
}
.profile-title .icon {
  width: 13px;
  height: 13px;
}
.profile-identity {
  text-align: center;
  padding: 24px 12px 19px;
}
.profile-identity .avatar {
  width: 62px;
  height: 62px;
  font-size: 20px;
  margin-bottom: 12px;
  background: #f0e5db;
  color: #aa8d6f;
}
.profile-identity h2 {
  font-size: 14px;
  margin: 0 0 5px;
  font-weight: 600;
  color: #526548;
}
.profile-identity p {
  margin: 0;
  color: #a3ae96;
  font-size: 10px;
}
.profile-identity .badge {
  margin-top: 12px;
  font-size: 9px;
}
.profile-section {
  margin: 0 17px;
  padding: 17px 0;
  border-top: 1px solid #eaf0e0;
}
.section-label {
  font-size: 9px;
  font-weight: 600;
  color: #8a987b;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-data {
  display: flex;
  gap: 8px;
  font-size: 10px;
  align-items: flex-start;
  margin-top: 13px;
  color: #859374;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.profile-data .icon {
  width: 13px;
  height: 13px;
  color: #a5b096;
  margin-top: 1px;
}
.profile-data .missing {
  color: #b3bca5;
  font-size: 9px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 4px 7px;
  background: #f2f0e5;
  border: 1px solid #ebe8d7;
  color: #a59a71;
  font-size: 9px;
  border-radius: 4px;
}
.tag:nth-child(2n) {
  background: #f0ecf6;
  border-color: #e7e0f0;
  color: #a28ab9;
}
.profile-select {
  width: 100%;
  font-size: 10px;
  border: 1px solid #e3e9d9;
  border-radius: 5px;
  padding: 8px;
  background: white;
  color: #889675;
}
.owner-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #82916f;
}
.owner-row .operator-avatar {
  width: 26px;
  height: 26px;
  font-size: 9px;
  background: #eef2e6;
  border: 0;
}
.owner-row button {
  margin-left: auto;
  color: #89a072;
  font-size: 9px;
}
.profile-stats {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a2ad94;
  margin-top: 11px;
}
.profile-stats strong {
  font-weight: 500;
  color: #839271;
}
.profile-bottom {
  margin: 4px 17px 20px;
  border-radius: 6px;
  border: 1px dashed #dfe6d2;
  padding: 12px;
  font-size: 9px;
  line-height: 1.7;
  color: #a7b197;
}
.profile-bottom strong {
  display: block;
  color: #8b9c79;
  font-weight: 500;
  margin-bottom: 3px;
}
.secondary-page {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 30px 26px;
  padding: 25px;
  overflow: auto;
  flex: 1;
}
.section-intro {
  color: #87967a;
  font-size: 12px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 0 24px;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.channel-card {
  border: 1px solid #e5eadf;
  border-radius: 10px;
  padding: 24px;
  background: #fcfdf9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.channel-card > .channel-icon {
  width: 42px;
  height: 42px;
  font-size: 22px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.channel-card > .channel-icon svg {
  width: 24px;
  height: 24px;
}
.channel-card > .channel-icon .max-symbol {
  font-size: 30px;
}
.channel-card h2 {
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 600;
}
.channel-status {
  font-size: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #a19269;
  background: #f7f2e7;
  padding: 5px 7px;
  border-radius: 5px;
}
.channel-card p {
  font-size: 12px;
  color: #8d9a80;
  line-height: 1.8;
  margin: 18px 0;
}
.channel-card details {
  width: 100%;
  margin-bottom: 18px;
}
.channel-card summary {
  font-size: 11px;
  color: #6b8758;
  cursor: pointer;
}
.channel-card code {
  display: block;
  font-size: 10px;
  color: #859771;
  margin-top: 9px;
  overflow-wrap: anywhere;
  background: #f1f5e9;
  padding: 6px;
}
.channel-card .button {
  margin-top: auto;
  font-size: 11px;
}
.setup-note {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid #e7eadd;
  background: #f8f9f1;
  border-radius: 8px;
  color: #8a967a;
  font-size: 12px;
  line-height: 1.9;
}
.setup-note strong {
  color: #647953;
}
.setup-note code {
  background: #eaf0df;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 3px;
}
.clients-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.clients-table th {
  color: #a1ab94;
  font-size: 10px;
  font-weight: 500;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.clients-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #eff2e8;
  font-size: 12px;
  color: #839571;
}
.client-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5d7750;
  font-weight: 600;
  text-align: left;
}
.client-name .avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.client-channel {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.clients-table tr:hover td {
  background: #fbfdf7;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 9px;
  background: #294636;
  color: white;
  box-shadow: 0 6px 25px #18372025;
  font-size: 12px;
  max-width: 90%;
  z-index: 100;
  line-height: 1.6;
}
.error-text {
  color: #b36a56;
  font-size: 12px;
  line-height: 1.6;
}
dialog {
  border: 1px solid #dce5d0;
  border-radius: 13px;
  padding: 25px;
  width: 400px;
  max-width: 95vw;
  box-shadow: 0 20px 100px #193d2033;
  color: #526b46;
}
dialog::backdrop {
  background: #23362066;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.dialog-heading h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
dialog label,
.login-card label {
  display: block;
  font-size: 11px;
  color: #839273;
  margin: 15px 0;
}
dialog input,
.login-card input {
  width: 100%;
  border: 1px solid #dee5d4;
  border-radius: 6px;
  margin-top: 6px;
  padding: 10px;
  background: #fcfdf9;
}
dialog form > .button {
  width: 100%;
  margin-top: 9px;
}
.login-screen {
  height: 100vh;
  display: grid;
  place-items: center;
  background: #eff3e9;
}
.login-card {
  width: 380px;
  max-width: 92vw;
  border: 1px solid #dce5d0;
  background: #fff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 8px 50px #375c2710;
}
.login-card h1 {
  font-size: 23px;
  font-weight: 600;
  margin-top: 24px;
}
.login-card p {
  color: #91a081;
  font-size: 12px;
}
.login-card .button {
  width: 100%;
  margin-top: 12px;
}
.connection-state.offline {
  color: #b09165;
}
.connection-state.offline .online-dot {
  background: #bf9e6a;
}
@keyframes appear {
  from {
    opacity: 0.4;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
