:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: #27352e;
  background: #f6f7f9;
  font-synthesis: none;
  font-size: 15px;
  --green: #257d57;
  --dark: #172923;
  --muted: #89928d;
  --border: #edf0ed;
  --mint: #d9f3e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--green);
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #85bda1;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6fa78c;
  box-shadow: 0 0 0 3px #e5f1e9;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
strong {
  font-weight: 600;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.initial-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  color: var(--green);
}
.workspace {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 232px;
  background: var(--dark);
  color: #c4d1ca;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 31px 20px 0;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brand > .icon {
  background: #9bdfb4;
  color: #173e2b;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  transform: rotate(-5deg);
  stroke-width: 2;
}
.brand-light {
  font-weight: 400;
  color: #acbbb2;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.9px;
  margin-top: 6px;
  font-weight: 500;
  color: #83998b;
}
.workspace-label {
  font-size: 13px;
  letter-spacing: 1px;
  color: #7d9788;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 47px 12px 18px;
}
.workspace-label span {
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid #3c5044;
  padding: 3px 5px;
  border-radius: 3px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 0;
  background: none;
  color: #a6bbb0;
  padding: 14px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  text-align: left;
  font-size: 15px;
  transition: background 0.15s;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-item:hover {
  background: #233b2f;
}
.nav-item.active {
  background: #cdf0d9;
  color: #214332;
  font-weight: 600;
}
.nav-item small {
  margin-left: auto;
  background: #b3d8bf;
  border-radius: 5px;
  min-width: 22px;
  padding: 2px 5px;
  font-size: 13px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-tip {
  background: #21372b;
  border: 1px solid #304737;
  border-radius: 10px;
  padding: 18px 14px;
  margin: 0 3px 24px;
}
.sidebar-tip > .icon {
  display: block;
  color: #aad99e;
  margin-bottom: 12px;
  width: 23px;
  height: 23px;
}
.sidebar-tip strong {
  font-size: 14px;
  color: #d5e4d9;
  display: block;
  letter-spacing: 0.4px;
}
.sidebar-tip p {
  font-size: 13px;
  line-height: 1.9;
  color: #92ac9a;
  margin-top: 9px;
}
.sidebar-tip button {
  padding: 0;
  background: none;
  border: 0;
  color: #b8dbc2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  margin-top: 18px;
}
.sidebar-tip button .icon {
  width: 13px;
  height: 13px;
}
.admin-profile {
  border-top: 1px solid #304238;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 23px 0;
}
.admin-avatar,
.small-avatar {
  background: #e9cfad;
  color: #71563d;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
  font-size: 15px;
  width: 33px;
  height: 33px;
}
.admin-profile strong {
  color: #dae3dd;
  font-size: 14px;
}
.admin-profile small {
  display: block;
  color: #7d9887;
  font-size: 12px;
  margin-top: 4px;
}
.admin-profile .icon-btn {
  margin-left: auto;
  color: #94a99b;
}
.admin-profile .icon {
  width: 16px;
  height: 16px;
}
main {
  width: calc(100% - 232px);
  margin-left: 232px;
}
.topbar {
  height: 73px;
  background: #fff;
  border-bottom: 1px solid #e9edea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9baba1;
  font-size: 14px;
}
.breadcrumbs .icon {
  width: 10px;
  height: 10px;
  color: #c0c8c3;
}
.breadcrumbs strong {
  color: #4b5b50;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 13px;
  color: #738278;
}
.timezone {
  color: #9ba59f;
  letter-spacing: 0.3px;
}
.topbar-dot {
  width: 4px;
  height: 4px;
  background: #d8ddd9;
  border-radius: 50%;
  margin: 0 3px;
}
.small-avatar {
  width: 29px;
  height: 29px;
  font-size: 13px;
  margin-left: 5px;
}
.page-content {
  max-width: 1610px;
  margin: 0 auto;
  padding: 34px 36px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2.1px;
  color: #88988d;
  font-weight: 600;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: 1px;
  font-weight: 650;
  margin-top: 8px;
  line-height: 1.35;
}
.heading-dot {
  color: #6aab81;
  margin-left: 3px;
}
.page-heading p {
  font-size: 14px;
  color: #8c9891;
  margin-top: 9px;
  letter-spacing: 0.3px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn .icon {
  width: 15px;
  height: 15px;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 2px #174d2610;
}
.btn.primary:hover {
  background: #1d6646;
}
.btn.secondary {
  background: #fff;
  border-color: #dfe5df;
  color: #546258;
}
.btn.secondary:hover {
  background: #f1f5f1;
}
.btn.compact {
  min-height: 31px;
  font-size: 13px;
  padding: 7px 11px;
}
.btn.loading {
  opacity: 0.6;
  cursor: wait;
}
.icon-btn {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #8d9b91;
  padding: 6px;
}
.icon-btn:hover {
  background: #edf3ed;
  color: var(--green);
}
.icon-btn .icon {
  width: 16px;
  height: 16px;
}
.icon-btn.danger:hover {
  background: #fff0ed;
  color: #b64d40;
}
.text-btn {
  background: none;
  border: 0;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  color: #829487;
  padding: 3px 0;
}
.text-btn .icon {
  width: 12px;
  height: 12px;
}
.text-btn:hover {
  color: var(--green);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  font-weight: 500;
}
.badge i {
  height: 4px;
  width: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.green {
  background: #e9f5ec;
  color: #4b9064;
}
.badge.gray {
  background: #f0f2f1;
  color: #8b9890;
}
.badge.amber {
  background: #fff2d5;
  color: #a47c31;
}
.badge.blue {
  background: #edf2fc;
  color: #6d89b3;
}
.badge.red {
  background: #fff0eb;
  color: #ba6858;
}
.bot-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border-radius: 10px;
  background: #ebf2ec;
  border: 1px solid #dce8de;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.banner-icon {
  width: 45px;
  height: 45px;
  background: #d1e7d4;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #4b7f56;
  flex-shrink: 0;
}
.banner-icon .icon {
  width: 25px;
  height: 25px;
}
.banner-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.banner-title strong {
  font-size: 15px;
}
.bot-banner p {
  font-size: 13px;
  color: #7e9080;
  margin-top: 8px;
  line-height: 1.5;
  word-break: break-word;
}
.btn.banner-btn {
  background: #fff;
  border-color: #d8e3d9;
  margin-left: auto;
  color: #54745b;
  font-size: 13px;
  min-height: 33px;
  padding: 8px 12px;
  flex-shrink: 0;
}
.btn.banner-btn .icon {
  width: 11px;
  height: 11px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px 17px;
  box-shadow: 0 2px 4px #263b2502;
}
.stat-label {
  font-size: 14px;
  color: #8b988e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.stat-icon .icon {
  width: 16px;
  height: 16px;
}
.mint {
  background: #e9f5ed;
  color: #6aa783;
}
.blue {
  background: #edf2fc;
  color: #859fcb;
}
.peach {
  background: #fff1e7;
  color: #d19c73;
}
.lavender {
  background: #f3effa;
  color: #a493bf;
}
.stat-value {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.stat-value span {
  font-size: 13px;
  color: #a5aea7;
  margin-left: 9px;
  font-weight: 400;
}
.stat-card p {
  font-size: 12px;
  color: #9aa69d;
  margin-top: 9px;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 23px;
  align-items: start;
}
.dashboard-left {
  min-width: 0;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px #263b2502;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 0;
  gap: 14px;
}
.card-heading h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.2px;
}
.card-heading h3 .icon {
  width: 17px;
  height: 17px;
  color: #85a68e;
}
.card-heading p {
  font-size: 13px;
  color: #9ca69f;
  margin-top: 7px;
  line-height: 1.8;
}
.period-label {
  font-size: 12px;
  background: #fafbfa;
  border: 1px solid #edf0ed;
  padding: 7px 9px;
  border-radius: 5px;
  color: #8a968d;
  display: flex;
  align-items: center;
  gap: 10px;
}
.period-label .icon {
  width: 12px;
  height: 12px;
}
.trend-card {
  min-height: 292px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 24px 0;
  justify-content: flex-end;
  font-size: 12px;
  color: #99a39c;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77ad90;
}
.chart-legend .legend-out {
  background: #bccbc0;
}
.chart-wrap {
  padding: 0 17px 10px;
}
.chart {
  display: block;
  width: 100%;
  max-height: 220px;
  overflow: visible;
}
.chart text {
  font-size: 12px;
  fill: #a1ada4;
  font-family: inherit;
}
.chart-grid {
  stroke: #edf1ed;
  stroke-dasharray: 3 5;
  stroke-width: 1;
}
.chart-area {
  fill: #f0f7f1;
}
.chart-in {
  fill: none;
  stroke: #77ad90;
  stroke-width: 2.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-out {
  fill: none;
  stroke: #c1cfc4;
  stroke-width: 2;
  stroke-dasharray: 4 5;
}
.chart-point {
  fill: #fff;
  stroke: #77ad90;
  stroke-width: 1.7;
}
.dashboard-lower {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 18px;
  margin-top: 20px;
}
.dashboard-lower .card-heading {
  padding: 20px 18px 14px;
}
.dashboard-lower .card-heading h3 {
  font-size: 15px;
}
.popular-row {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 0;
  background: none;
  padding: 14px 18px;
  gap: 12px;
  border-top: 1px solid #f3f5f2;
}
.popular-row:hover {
  background: #fbfcfa;
}
.rank {
  color: #bac4bc;
  font-size: 14px;
  font-weight: 500;
}
.rank.first {
  color: #72a782;
}
.popular-row > span:nth-child(2) {
  min-width: 0;
}
.popular-row strong {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}
.popular-row small {
  font-size: 11px;
  color: #a7afa9;
  display: block;
  margin-top: 5px;
  font-weight: 400;
}
.popular-row b {
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  color: #607766;
}
.popular-row b small {
  font-size: 9px;
}
.recent-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-top: 1px solid #f3f5f2;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf1e8;
  color: #8f9e75;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
}
.recent-row > div {
  min-width: 0;
  flex: 1;
}
.recent-row strong {
  font-size: 13px;
}
.recent-row p {
  color: #9aa69e;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 155px;
  margin-top: 5px;
}
.recent-row time {
  color: #acb5ae;
  font-size: 9px;
  white-space: nowrap;
}
.subtle-note {
  padding: 13px 18px;
  background: #fcfdfb;
  border-top: 1px solid #f3f5f2;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #a4b0a5;
}
.subtle-note .icon {
  width: 12px;
  height: 12px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 24px;
  min-height: 150px;
  text-align: center;
}
.empty > .icon {
  width: 33px;
  height: 33px;
  color: #bdcec1;
  margin-bottom: 16px;
}
.empty strong {
  font-size: 15px;
  color: #91a195;
}
.empty p {
  font-size: 13px;
  line-height: 1.9;
  color: #adb6ae;
  margin-top: 10px;
  max-width: 260px;
}
.recent-card .empty {
  min-height: 253px;
}
.preview-panel {
  padding: 19px 17px 14px;
  border-radius: 10px;
  background: #eef1ee;
  border: 1px solid #e7ece6;
  position: sticky;
  top: 20px;
  min-width: 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1px;
}
.section-title h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}
.section-title .icon {
  width: 15px;
  height: 15px;
  color: #86998a;
}
.live-indicator {
  font-size: 9px;
  letter-spacing: 1px;
  color: #769683;
  display: flex;
  gap: 4px;
  align-items: center;
}
.live-indicator:before {
  content: "";
  background: #6fa780;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e0e9df;
}
.preview-hint {
  font-size: 12px;
  color: #97a398;
  line-height: 1.8;
  margin-top: 10px;
  margin-bottom: 18px;
}
.phone {
  background: #fff;
  border: 5px solid #fff;
  box-shadow:
    0 4px 22px #334c3210,
    0 0 0 1px #e1e7df;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-status {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 18px 0;
  color: #293b33;
  font-size: 12px;
  background: #fdfefd;
}
.phone-status strong {
  font-size: 13px;
  font-weight: 600;
}
.phone-status div {
  font-size: 12px;
  letter-spacing: 1px;
}
.phone-status span {
  font-size: 14px;
}
.telegram-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdfefd;
  padding: 8px 10px 11px;
  border-bottom: 1px solid #e9eeeb;
}
.telegram-header > .icon:first-child {
  color: #7ba2bd;
  width: 18px;
  height: 18px;
}
.telegram-header > .icon:last-child {
  width: 16px;
  height: 16px;
  color: #9baba0;
  margin-left: auto;
}
.telegram-header strong {
  display: block;
  font-size: 14px;
}
.telegram-header small {
  display: block;
  font-size: 12px;
  color: #9aaba0;
  margin-top: 4px;
}
.bot-avatar {
  width: 31px;
  height: 31px;
  background: #80b79a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.bot-avatar .icon {
  width: 18px;
  height: 18px;
}
.chat-area {
  height: 377px;
  background-color: #e8efe5;
  background-image: radial-gradient(#adc0a936 0.9px, transparent 0.9px);
  background-size: 17px 17px;
  padding: 14px 9px 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c5d4c5 transparent;
}
.chat-date {
  width: 35px;
  text-align: center;
  margin: 0 auto 19px;
  border-radius: 9px;
  padding: 3px 4px;
  font-size: 11px;
  color: #fff;
  background: #a9b8a5;
}
.chat-line {
  display: flex;
  gap: 5px;
  margin-bottom: 13px;
  align-items: flex-end;
}
.chat-group {
  max-width: calc(100% - 26px);
  min-width: 0;
}
.chat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #82b99a;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-bottom: 1px;
}
.chat-avatar .icon {
  width: 13px;
  height: 13px;
}
.bubble {
  background: #fff;
  border-radius: 10px 10px 10px 3px;
  padding: 10px 10px 7px;
  font-size: 13px;
  line-height: 1.9;
  color: #49594b;
  box-shadow: 0 1px 2px #4b624a10;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 70px;
}
.bubble small {
  display: block;
  text-align: right;
  font-size: 9px;
  color: #b1bbae;
  line-height: 1.2;
  margin-top: 5px;
}
.chat-line.user {
  justify-content: flex-end;
}
.user .bubble {
  background: #d4edc2;
  border-radius: 10px 10px 3px 10px;
}
.user .bubble small {
  color: #7ca872;
}
.inline-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}
.inline-menu button {
  background: #f8fcf5bd;
  color: #4c7454;
  font-size: 11px;
  border: 0;
  border-radius: 5px;
  padding: 9px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  transition: background 0.15s;
}
.inline-menu button:hover {
  background: #fff;
}
.inline-menu button:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.preview-input {
  padding: 10px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
}
.preview-input input {
  min-width: 0;
  flex: 1;
  background: #f4f6f3;
  border: 0;
  border-radius: 17px;
  padding: 9px 10px;
  font-size: 12px;
  color: #5f7363;
  box-shadow: none;
}
.preview-input input::placeholder {
  color: #a9b3a9;
}
.preview-input button {
  width: 29px;
  height: 29px;
  background: #74a486;
  border: 0;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.preview-input .icon {
  width: 14px;
  height: 14px;
}
.preview-bottom {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9bab9c;
  font-size: 11px;
  margin-top: 14px;
  line-height: 1.7;
  white-space: nowrap;
}
.preview-bottom .icon {
  width: 11px;
  height: 11px;
}
.preview-bottom button {
  background: none;
  border: 0;
  padding: 0;
  color: #97aa9b;
  margin-left: auto;
}
.preview-bottom button .icon {
  width: 12px;
  height: 12px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #a5afa8;
  margin-top: 29px;
  padding-top: 18px;
  border-top: 1px solid #e8ece8;
  gap: 10px;
}
.page-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-footer .icon {
  width: 11px;
  height: 11px;
}
.footer-dot {
  padding: 0 5px;
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 23px;
  align-items: start;
}
.faq-toolbar,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f8faf7;
  border: 1px solid #e9eee8;
  border-radius: 7px;
  padding: 0 11px;
  min-width: 0;
  max-width: 330px;
  width: 100%;
}
.search-box .icon {
  width: 15px;
  height: 15px;
  color: #a1afa1;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 13px;
  box-shadow: none;
}
.search-box input::placeholder {
  color: #a7b0a6;
}
.muted {
  font-size: 13px;
  color: #9ba79d;
}
.tabs {
  display: flex;
  padding: 0 22px;
  border-bottom: 1px solid #eef1ed;
  gap: 23px;
  overflow-x: auto;
}
.tab {
  background: none;
  border: 0;
  padding: 14px 0;
  font-size: 13px;
  color: #9eaa9e;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.selected {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.tab small {
  background: #e9f2e7;
  color: #749779;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 6px;
}
.faq-item {
  display: flex;
  gap: 13px;
  padding: 24px 22px;
  border-bottom: 1px solid #f0f3ef;
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-symbol {
  width: 35px;
  height: 35px;
  background: #f2f7ef;
  color: #8cac8c;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.faq-symbol .icon {
  width: 18px;
  height: 18px;
}
.faq-item-content {
  flex: 1;
  min-width: 0;
}
.faq-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.faq-title h3 {
  font-size: 15px;
  line-height: 1.7;
}
.faq-item-content > p {
  font-size: 13px;
  color: #9da89e;
  line-height: 1.9;
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.faq-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #a5afa5;
  margin-top: 12px;
}
.faq-meta > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.faq-meta .icon {
  width: 10px;
  height: 10px;
}
.keyword-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.keyword-list span {
  font-size: 11px;
  color: #8ca08d;
  background: #f4f7f1;
  border: 1px solid #edf1e8;
  border-radius: 4px;
  padding: 3px 6px;
}
.faq-actions {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin-top: -3px;
}
.faq-actions .icon-btn {
  width: 24px;
  height: 28px;
}
.faq-actions .icon {
  width: 13px;
  height: 13px;
}
.info-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 17px 6px;
  font-size: 13px;
  color: #93a194;
  line-height: 1.9;
}
.info-strip .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.form-body {
  padding: 24px 24px;
}
.form-body label,
form > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: #617263;
  margin-bottom: 22px;
}
.form-body label:last-child {
  margin-bottom: 0;
}
label > span:not(.switch span) {
  color: #a3b59f;
}
input,
textarea,
select {
  border: 1px solid #e2e9de;
  background: #fff;
  border-radius: 6px;
  padding: 11px 12px;
  color: #4b604e;
  font-size: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.9;
  min-height: 72px;
}
input::placeholder,
textarea::placeholder {
  color: #b0b9ad;
}
label small {
  font-size: 12px;
  color: #a2aea0;
  line-height: 1.8;
  font-weight: 400;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 23px;
}
.switch-row strong {
  font-size: 14px;
  font-weight: 500;
  color: #60705f;
}
.switch-row small {
  font-size: 12px;
  color: #a3afa0;
  display: block;
  margin-top: 6px;
  line-height: 1.8;
}
.switch-row .switch {
  margin: 0;
  display: block;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch span {
  display: block;
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: #d9e0d7;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.switch span:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0001;
  transition: transform 0.2s;
}
.switch input:checked + span {
  background: #6c9e7a;
}
.switch input:checked + span:after {
  transform: translateX(14px);
}
.switch input:focus-visible + span {
  outline: 3px solid #92bf9c;
  outline-offset: 2px;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 19px 24px;
  border-top: 1px solid #f0f3ed;
  background: #fdfefb;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  padding: 13px 20px;
  background: #f9fbf7;
  border-top: 1px solid #f1f4ee;
  border-bottom: 1px solid #eff2eb;
  font-weight: 500;
  color: #97a48f;
  white-space: nowrap;
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f4ed;
  color: #7c8e76;
}
tbody tr:hover {
  background: #fdfefb;
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-cell strong {
  display: block;
  font-size: 13px;
  color: #576b51;
  white-space: nowrap;
}
.user-cell small {
  font-size: 12px;
  display: block;
  margin-top: 5px;
  color: #a2b098;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 13px;
}
.table-toolbar select {
  padding: 9px 12px;
  font-size: 13px;
  min-width: 105px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: #a0ac97;
  font-size: 13px;
  gap: 16px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.table-card .card-heading {
  padding-bottom: 22px;
}
.message-column {
  min-width: 260px;
  width: 45%;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  max-width: 540px;
}
.nowrap {
  white-space: nowrap;
}
.settings-card .setup-steps {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.setup-steps > span {
  border: 1px solid #d7e5ce;
  background: #f4f8ef;
  flex-shrink: 0;
  color: #8aa17d;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.setup-steps p {
  font-size: 13px;
  color: #97a48d;
  line-height: 1.9;
}
.setup-steps code {
  background: #f3f6ee;
  padding: 1px 3px;
  border-radius: 3px;
  color: #788e6b;
  font-size: 13px;
}
.settings-card label:has(input[name="bot_token"]) {
  margin-top: 25px;
}
.form-divider {
  height: 1px;
  background: #f0f3eb;
}
.error-box {
  padding: 12px;
  background: #fff4e6;
  border: 1px solid #f0e5c8;
  border-radius: 6px;
  color: #ad8b47;
  font-size: 13px;
  margin-top: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.password-card {
  margin-top: 20px;
}
.password-card .form-body {
  padding-top: 20px;
}
.password-card label {
  margin-bottom: 17px;
}
.danger-outline {
  background: #fff;
  border-color: #ecdace;
  color: #b2866d;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #21452d;
  color: #fff;
  border-radius: 9px;
  padding: 13px 21px;
  font-size: 15px;
  z-index: 200;
  box-shadow: 0 5px 30px #0002;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90vw;
  line-height: 1.8;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #9b5944;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #152c2066;
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.modal {
  width: 610px;
  max-width: 100%;
  background: #fff;
  height: 100%;
  overflow-y: auto;
  box-shadow: -12px 0 50px #152c2010;
}
.modal > .card-heading {
  border-bottom: 1px solid #edf2e7;
  padding: 24px;
}
.modal-content {
  padding: 25px;
}
.detail-profile {
  display: flex;
  gap: 13px;
  align-items: center;
}
.detail-profile > .avatar {
  width: 47px;
  height: 47px;
  font-size: 18px;
}
.detail-profile h2 {
  font-size: 18px;
  color: #4a6041;
}
.detail-profile p {
  font-size: 13px;
  color: #97a68d;
  margin-top: 7px;
}
.detail-profile > .badge {
  margin-left: auto;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  background: #f8faf4;
  border: 1px solid #f0f3e9;
  border-radius: 8px;
  padding: 17px;
  margin: 24px 0;
}
.detail-stats small {
  display: block;
  font-size: 12px;
  color: #a1ae92;
}
.detail-stats strong {
  font-size: 14px;
  color: #7c906d;
  display: block;
  margin-top: 9px;
}
.notes-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-title {
  font-size: 15px;
  margin: 30px 0 18px;
  display: flex;
  justify-content: space-between;
}
.history-title small {
  font-size: 12px;
  font-weight: 400;
  color: #9fad93;
}
.history-item {
  border: 1px solid #edf2e6;
  background: #fcfdf9;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.history-item.out {
  background: #f3f8ec;
  border-color: #e7efdc;
  margin-left: 20px;
}
.history-item.in {
  margin-right: 20px;
}
.history-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.history-item strong {
  font-size: 13px;
  color: #81956e;
}
.history-item time {
  font-size: 11px;
  color: #a9b79a;
}
.history-item p {
  font-size: 14px;
  color: #718661;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 9px;
}
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 100vh;
  background: #fff;
}
.auth-story {
  padding: 45px 65px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: -270px;
  top: 30%;
  border: 1px solid #3a5c3d;
  border-radius: 50%;
  box-shadow:
    0 0 0 80px #203a291a,
    0 0 0 160px #2c47331a;
  pointer-events: none;
}
.auth-story .brand {
  max-width: 235px;
}
.auth-pitch {
  margin: auto 0;
  padding: 70px 0;
  position: relative;
  z-index: 1;
}
.auth-pitch .eyebrow {
  color: #95b28f;
  font-size: 14px;
  letter-spacing: 3px;
}
.auth-pitch h1 {
  font-size: 42px;
  color: #e1efda;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 24px;
}
.auth-pitch p {
  font-size: 15px;
  color: #91a78a;
  line-height: 2.2;
  margin-top: 22px;
}
.auth-story > small {
  font-size: 11px;
  letter-spacing: 2px;
  color: #6d8765;
}
.auth-bubbles {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 40px;
  max-width: 330px;
}
.auth-bubbles span {
  font-size: 14px;
  color: #b5ccab;
  padding: 14px 18px;
  border: 1px solid #3e5a38;
  background: #2c4429;
  border-radius: 14px 14px 14px 2px;
  width: fit-content;
}
.auth-bubbles span:nth-child(2) {
  align-self: flex-end;
  background: #c1dea8;
  color: #456437;
  border: 0;
  border-radius: 14px 14px 2px 14px;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.auth-form {
  width: 355px;
  max-width: 100%;
}
.auth-form h2 {
  font-size: 29px;
  font-weight: 600;
  color: #2c4223;
  margin-top: 15px;
  letter-spacing: 1px;
}
.auth-form > p {
  font-size: 14px;
  color: #9eac94;
  line-height: 1.9;
  margin-top: 12px;
}
.auth-form form {
  margin-top: 36px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  color: #7c8f6e;
  margin-top: 22px;
}
.auth-form input {
  padding: 14px;
  border-color: #e3ebdc;
  font-size: 15px;
}
.auth-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 19px;
  font-size: 15px;
  min-height: 45px;
}
.auth-foot {
  display: flex;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: #adb9a3;
  margin-top: 28px;
}
.auth-foot .icon {
  width: 12px;
  height: 12px;
}
.form-error {
  font-size: 14px;
  color: #b07457;
  margin-top: 13px;
  line-height: 1.8;
}
.form-error:empty {
  display: none;
}
@media (min-width: 1500px) {
  .page-content {
    padding: 40px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .dashboard-layout,
  .split-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .chat-area {
    height: 405px;
  }
  .preview-panel {
    padding: 22px;
  }
  .bubble {
    font-size: 14px;
  }
  .inline-menu button {
    font-size: 12px;
  }
  .stat-card {
    padding: 22px;
  }
  .dashboard-lower .card-heading {
    padding: 22px;
  }
  .popular-row {
    padding: 18px 22px;
  }
  .trend-card {
    min-height: 310px;
  }
  .chart {
    max-height: 240px;
  }
  .recent-card .empty {
    min-height: 285px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand {
    font-size: 20px;
  }
  .brand > .icon {
    width: 33px;
    height: 33px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  main {
    width: calc(100% - 200px);
    margin-left: 200px;
  }
  .page-content {
    padding: 27px 23px 18px;
  }
  .topbar {
    padding: 0 23px;
  }
  .dashboard-layout,
  .split-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 18px;
  }
  .preview-panel {
    padding: 15px 12px;
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-label {
    font-size: 13px;
  }
  .stat-value {
    font-size: 26px;
  }
  .timezone {
    display: none;
  }
  .dashboard-lower .recent-card .empty {
    min-height: 175px;
  }
  .popular-row strong {
    max-width: 220px;
  }
  .faq-item {
    padding: 20px 16px;
    gap: 9px;
  }
  .faq-toolbar {
    padding: 18px 16px;
  }
  .tabs {
    padding: 0 16px;
    gap: 18px;
  }
  .faq-symbol {
    display: none;
  }
  .form-body {
    padding: 22px 18px;
  }
  .card-heading {
    padding: 21px 18px 0;
  }
  .chat-area {
    height: 360px;
  }
  .preview-bottom {
    font-size: 9px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-pitch h1 {
    font-size: 36px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 76px;
    padding: 24px 12px 0;
  }
  .sidebar .brand {
    justify-content: center;
  }
  .sidebar .brand > span,
  .workspace-label,
  .nav-item > span,
  .nav-item > small,
  .sidebar-tip,
  .admin-profile > div,
  .admin-profile > .admin-avatar {
    display: none;
  }
  .sidebar nav {
    margin-top: 45px;
  }
  .nav-item {
    justify-content: center;
    padding: 15px 0;
    margin-bottom: 12px;
  }
  .nav-item .icon {
    width: 21px;
    height: 21px;
  }
  .admin-profile {
    justify-content: center;
    padding: 20px 0;
  }
  .admin-profile .icon-btn {
    margin: 0;
  }
  .sidebar .brand > .icon {
    width: 37px;
    height: 37px;
  }
  main {
    width: calc(100% - 76px);
    margin-left: 76px;
  }
  .dashboard-layout,
  .split-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-content {
    padding: 25px 20px 18px;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .stat-card p {
    font-size: 11px;
  }
  .stat-icon {
    width: 25px;
    height: 25px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 12px;
  }
  .page-heading {
    gap: 12px;
  }
  .heading-actions .btn {
    padding: 9px 11px;
    font-size: 13px;
  }
  .faq-title h3 {
    font-size: 14px;
  }
  .faq-title .badge {
    font-size: 11px;
  }
  .faq-actions {
    flex-direction: column;
  }
  .faq-meta {
    gap: 8px;
  }
  .form-row {
    gap: 12px;
  }
  .auth-form-wrap {
    padding: 35px;
  }
  .auth-story {
    padding: 32px;
  }
  .auth-pitch h1 {
    font-size: 30px;
  }
  .auth-pitch p {
    font-size: 15px;
  }
  .topbar-right {
    font-size: 12px;
  }
  .popular-row strong {
    max-width: 170px;
  }
}
@media (max-width: 760px) {
  .dashboard-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
    max-width: 370px;
    width: 100%;
    justify-self: center;
    margin-top: 5px;
  }
  .dashboard-lower {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-label {
    font-size: 14px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-card p {
    font-size: 12px;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    padding-top: 25px;
  }
  .heading-actions .secondary {
    display: none;
  }
  .workspace-name,
  .topbar-dot {
    display: none;
  }
  .page-content {
    padding: 24px 17px 18px;
  }
  .topbar {
    padding: 0 17px;
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.8;
    max-width: 240px;
  }
  .bot-banner {
    padding: 16px 14px;
    gap: 11px;
  }
  .bot-banner p {
    font-size: 12px;
  }
  .banner-icon {
    width: 37px;
    height: 37px;
  }
  .banner-title strong {
    font-size: 15px;
  }
  .btn.banner-btn {
    font-size: 12px;
    padding: 7px 9px;
  }
  .dashboard-lower {
    gap: 12px;
  }
  .card-heading {
    padding: 20px 17px 0;
  }
  .chart {
    max-height: 240px;
  }
  .recent-row {
    padding: 12px;
  }
  .recent-row time {
    display: none;
  }
  .popular-row {
    padding: 14px;
  }
  .popular-row strong {
    max-width: 130px;
  }
  .page-footer {
    font-size: 11px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .preview-panel {
    padding: 20px;
  }
  .preview-hint {
    font-size: 13px;
  }
  .chat-area {
    height: 390px;
  }
  .preview-bottom {
    font-size: 11px;
  }
  .preview-bottom .icon {
    width: 12px;
    height: 12px;
  }
  .bubble {
    font-size: 14px;
  }
  .inline-menu button {
    font-size: 12px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    min-height: 200px;
    padding: 28px;
  }
  .auth-story .brand {
    font-size: 22px;
  }
  .auth-pitch {
    padding: 27px 0 0;
  }
  .auth-pitch h1 {
    font-size: 27px;
    line-height: 1.5;
    margin-top: 12px;
  }
  .auth-pitch h1 br {
    display: none;
  }
  .auth-pitch > p,
  .auth-bubbles,
  .auth-story > small {
    display: none;
  }
  .auth-pitch .eyebrow {
    font-size: 12px;
  }
  .auth-form-wrap {
    padding: 38px 25px;
  }
  .auth-form {
    width: 380px;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  .auth-form form {
    margin-top: 28px;
  }
  .faq-item {
    padding: 23px 18px;
  }
  .faq-title h3 {
    font-size: 15px;
  }
  .faq-item-content > p {
    font-size: 14px;
  }
  .faq-actions {
    flex-direction: row;
  }
  .table-toolbar {
    padding: 18px;
  }
  .pagination {
    padding: 18px;
    font-size: 12px;
  }
  .pagination > div {
    gap: 8px;
  }
}
@media (max-width: 470px) {
  .sidebar {
    width: 56px;
    padding: 20px 7px 0;
  }
  .sidebar .brand > .icon {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 10px;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .nav-item {
    padding: 13px 0;
  }
  .nav-item .icon {
    width: 18px;
    height: 18px;
  }
  main {
    width: calc(100% - 56px);
    margin-left: 56px;
  }
  .page-content {
    padding: 21px 13px 16px;
  }
  .topbar {
    padding: 0 13px;
    height: 58px;
  }
  .breadcrumbs {
    font-size: 13px;
    gap: 8px;
  }
  .small-avatar {
    width: 25px;
    height: 25px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
  }
  .page-heading p {
    max-width: 180px;
    font-size: 12px;
  }
  .heading-actions .btn {
    padding: 8px 9px;
    font-size: 12px;
    gap: 4px;
    min-height: 34px;
  }
  .heading-actions .btn .icon {
    width: 12px;
    height: 12px;
  }
  .bot-banner {
    flex-wrap: wrap;
  }
  .bot-banner > div:nth-child(2) {
    flex: 1;
    min-width: 150px;
  }
  .btn.banner-btn {
    margin-left: 48px;
    min-height: 29px;
  }
  .stat-card {
    padding: 13px 12px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-icon {
    width: 24px;
    height: 24px;
  }
  .stat-icon .icon {
    width: 13px;
    height: 13px;
  }
  .stat-card p {
    font-size: 11px;
  }
  .stat-value {
    font-size: 25px;
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .popular-row strong {
    max-width: 180px;
  }
  .recent-row time {
    display: block;
  }
  .preview-panel {
    padding: 15px 12px;
  }
  .preview-hint {
    font-size: 12px;
  }
  .preview-bottom {
    font-size: 9px;
  }
  .preview-input input {
    font-size: 11px;
  }
  .faq-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .faq-toolbar > .muted {
    font-size: 12px;
  }
  .faq-title h3 {
    font-size: 14px;
  }
  .faq-actions {
    flex-direction: column;
  }
  .faq-item {
    padding: 20px 14px;
  }
  .faq-title {
    gap: 5px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-body {
    padding: 20px 15px;
  }
  .form-footer {
    padding: 17px 15px;
  }
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }
  .pagination {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-heading {
    padding: 19px 15px 0;
  }
  .period-label {
    font-size: 11px;
    gap: 5px;
    padding: 6px;
  }
  .trend-card .card-heading h3 {
    font-size: 15px;
  }
  .trend-card .card-heading p {
    font-size: 11px;
  }
  .chart-legend {
    font-size: 11px;
  }
  .modal-content {
    padding: 18px;
  }
  .detail-stats {
    gap: 7px;
    padding: 12px;
  }
  .detail-stats strong {
    font-size: 12px;
  }
  .history-item time {
    font-size: 9px;
  }
  .detail-profile h2 {
    font-size: 17px;
  }
  .detail-profile p {
    font-size: 12px;
  }
  .auth-pitch h1 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.phone-status,
.phone-status strong,
.phone-status div {
  font-size: 10px;
}
.bubble small {
  font-size: 10px;
}
.chat-date {
  font-size: 11px;
  width: 42px;
}

/* Category controls share the same dialog and form language as the workspace. */
.category-select {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-select select {
  flex: 1;
  width: 0;
}
.category-create {
  margin-bottom: 25px;
}
.category-create > label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #617263;
}
.category-create > div {
  display: flex;
  gap: 10px;
}
.category-create input {
  flex: 1;
  width: 0;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid #edf0ed;
}
.category-row > input {
  flex: 1;
  width: 0;
}
.category-count {
  font-size: 12px;
  color: #829180;
  white-space: nowrap;
}
.category-note {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.9;
  color: #8b9988;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.preview-bottom {
  white-space: normal;
  font-size: 11px;
}
.phone-status {
  flex-shrink: 0;
}
.brand small {
  font-size: 7px;
  letter-spacing: 1.7px;
}
.sidebar-tip strong {
  font-size: 12px;
}
.sidebar-tip p {
  font-size: 12px;
}
.faq-item-content > p {
  color: #7c887e;
}
.page-heading p,
.preview-hint {
  color: #7c897f;
}
@media (max-width: 760px) {
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .heading-actions .btn[data-action="manage-categories"] {
    display: inline-flex;
  }
  .page-heading:has([data-action="manage-categories"]) {
    flex-wrap: wrap;
  }
  .page-heading:has([data-action="manage-categories"]) .heading-actions {
    padding-top: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .preview-panel {
    max-width: 390px;
  }
  .inline-menu {
    grid-template-columns: 1fr;
  }
  .popular-row strong {
    max-width: none;
    white-space: normal;
    line-height: 1.7;
  }
  .preview-input input {
    font-size: 12px;
  }
}
@media (max-width: 470px) {
  .category-select {
    flex-wrap: wrap;
  }
  .category-select select {
    flex-basis: 100%;
  }
  .category-row {
    gap: 6px;
    flex-wrap: wrap;
  }
  .category-row > input {
    flex-basis: calc(100% - 85px);
  }
  .category-create > div {
    flex-wrap: wrap;
  }
  .category-create input {
    flex-basis: 100%;
  }
  .auth-foot {
    font-size: 11px;
    line-height: 1.8;
  }
}
