:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f7fbff;
  background: #04101d;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% -20%, rgba(25, 72, 123, 0.22), transparent 34rem),
    radial-gradient(circle at 18% 10%, rgba(20, 118, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #06111f 0%, #040b14 52%, #020915 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

svg {
  display: block;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(149, 178, 210, 0.14);
  background:
    linear-gradient(180deg, rgba(4, 12, 22, 0.94), rgba(5, 15, 27, 0.9)),
    rgba(4, 12, 22, 0.88);
  box-shadow: 0 1px 22px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, #5dc7ff 0 18%, transparent 19%),
    linear-gradient(135deg, #13a8ee 0%, #1f7dff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 22px rgba(27, 142, 255, 0.24);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-button,
.profile-button,
.notification-button {
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.icon-button:hover,
.profile-button:hover,
.notification-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

.top-divider {
  width: 1px;
  height: 36px;
  background: rgba(138, 166, 199, 0.18);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 0 7px 0 0;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 700;
}

.notification-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 22px;
  border: 1px solid rgba(92, 130, 177, 0.18);
  color: #aebbd0;
  font-size: 14px;
  font-weight: 650;
}

.notification-button.is-enabled {
  border-color: rgba(45, 218, 111, 0.26);
  color: #4ef083;
  background: rgba(18, 95, 53, 0.16);
}

.notification-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    #1e314b;
  font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.workspace {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 24px 42px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 21px;
}

.create-button,
.search-field {
  height: 51px;
  border: 1px solid rgba(92, 139, 205, 0.28);
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 38px rgba(0, 0, 0, 0.16);
}

.create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 193px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #2c9dff 0%, #2767ff 100%);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.create-button:hover {
  filter: brightness(1.06);
}

.create-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 292px;
  padding: 0 17px;
  background: rgba(9, 23, 38, 0.83);
}

.search-field:focus-within {
  border-color: rgba(55, 144, 255, 0.7);
  box-shadow:
    0 0 0 3px rgba(46, 139, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-field svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #9aa9bd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #e9f3ff;
  background: transparent;
  font-size: 16px;
}

.search-field input::placeholder {
  color: #8493a7;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 536px;
  gap: 14px;
  align-items: stretch;
}

.panel {
  min-height: 728px;
  border: 1px solid rgba(108, 137, 170, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 0%, rgba(25, 72, 128, 0.22), transparent 24rem),
    linear-gradient(180deg, rgba(10, 23, 39, 0.96), rgba(7, 17, 30, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 52px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.panel-title {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(114, 144, 181, 0.12);
}

.panel-title h1 {
  margin: 0;
  color: #f8fbff;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.bot-table {
  display: flex;
  flex-direction: column;
  min-height: 656px;
}

.table-head,
.bot-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 162px 194px 178px 86px;
  align-items: center;
}

.table-head {
  min-height: 57px;
  padding: 0 10px 0 22px;
  color: #a7b4c6;
  font-size: 16px;
}

.table-head span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.column-bot {
  grid-column: 1;
}

.column-users {
  grid-column: 3;
}

.column-starts {
  grid-column: 4;
}

.column-actions {
  grid-column: 5;
}

.table-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.bot-list {
  display: grid;
  gap: 6px;
  padding: 0 10px 0 10px;
}

.bot-row {
  width: 100%;
  min-height: 83px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(102, 130, 164, 0.14);
  border-radius: 8px;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(12, 28, 48, 0.72), rgba(8, 21, 36, 0.72)),
    rgba(9, 20, 33, 0.84);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.bot-row:hover,
.bot-row.is-selected {
  border-color: rgba(47, 132, 255, 0.92);
  background:
    radial-gradient(circle at 8% 50%, rgba(43, 118, 255, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(13, 31, 53, 0.86), rgba(9, 23, 40, 0.86));
}

.bot-row.is-selected {
  box-shadow:
    inset 0 0 0 1px rgba(47, 132, 255, 0.18),
    0 0 26px rgba(29, 100, 225, 0.05);
}

.bot-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 17px;
}

.bot-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bot-name {
  overflow: hidden;
  color: #fbfdff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-handle {
  overflow: hidden;
  color: #abb8cc;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  color: #ffffff;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -10px 16px rgba(0, 0, 0, 0.2),
    0 9px 24px rgba(0, 0, 0, 0.18);
}

.bot-avatar::before {
  position: absolute;
  inset: 9%;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
  content: "";
}

.bot-avatar svg {
  position: relative;
  z-index: 3;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bot-avatar-compact {
  width: 56px;
  height: 56px;
}

.bot-avatar-compact svg {
  width: 31px;
  height: 31px;
}

.bot-avatar-large {
  width: 92px;
  height: 92px;
}

.bot-avatar-large svg {
  width: 52px;
  height: 52px;
}

.bot-avatar-blue {
  background:
    radial-gradient(circle at 40% 24%, #77d6ff 0 8%, transparent 9%),
    linear-gradient(145deg, #455e86 0%, #273d60 52%, #17263e 100%);
}

.bot-avatar-violet {
  background: linear-gradient(145deg, #9a4cff 0%, #6828d7 100%);
}

.bot-avatar-orange {
  background: linear-gradient(145deg, #ee9a25 0%, #d06c09 100%);
}

.bot-avatar-cyan {
  background: linear-gradient(145deg, #6ee8ff 0%, #23a3bd 100%);
}

.bot-avatar-rose {
  background: linear-gradient(145deg, #ff5d93 0%, #e73769 100%);
}

.bot-avatar-green {
  background: linear-gradient(145deg, #8ee338 0%, #63a800 100%);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.status-active {
  color: #62ee86;
  background: rgba(27, 114, 62, 0.34);
}

.status-limited {
  color: #f9c844;
  background: rgba(124, 88, 12, 0.36);
}

.status-inactive {
  color: #d8dee8;
  background: rgba(86, 101, 121, 0.38);
}

.bot-metric {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f6faff;
  font-size: 17px;
  white-space: nowrap;
}

.bot-metric svg,
.bot-actions svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bot-metric svg {
  width: 18px;
  height: 18px;
  color: #c2cfdf;
  stroke-width: 1.7;
}

.bot-actions {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  justify-self: center;
  color: #aebccf;
  border-radius: 50%;
}

.bot-actions svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.bot-row:hover .bot-actions {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.bot-count {
  margin: auto 0 24px;
  color: #8795aa;
  font-size: 16px;
  text-align: center;
}

.details-panel {
  padding: 26px 21px;
}

.details-card {
  min-height: 100%;
}

.details-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 2px 28px 4px;
  border-bottom: 1px solid rgba(136, 161, 190, 0.18);
}

.details-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.details-copy h2 {
  margin: 0;
  color: #fbfdff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.details-copy a {
  color: #43a0ff;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.details-copy a:hover {
  text-decoration: underline;
}

.details-stats {
  display: grid;
  gap: 22px;
  padding: 22px 0 31px;
}

.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 35px;
}

.stat-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 15px;
  color: #bfcbdb;
  font-size: 16px;
  line-height: 1.2;
}

.stat-label svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 7px;
  color: #2d92ff;
  background: rgba(32, 107, 218, 0.26);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.stat-label.danger svg {
  color: #ff4d5e;
  background: rgba(163, 36, 54, 0.28);
}

.stat-label.success svg {
  color: #47eb74;
  background: rgba(34, 137, 67, 0.27);
}

.stat-line strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f8fbff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.webhook-state {
  gap: 9px;
}

.online-dot,
.offline-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.online-dot {
  background: #30d266;
  box-shadow: 0 0 16px rgba(48, 210, 102, 0.45);
}

.offline-dot {
  background: #8795aa;
}

.details-actions {
  display: grid;
  gap: 12px;
}

.details-actions button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  min-height: 55px;
  padding: 0 15px 0 17px;
  border: 1px solid rgba(115, 145, 180, 0.24);
  border-radius: 8px;
  color: #3997ff;
  background:
    linear-gradient(180deg, rgba(16, 35, 58, 0.72), rgba(10, 24, 42, 0.72)),
    rgba(10, 23, 39, 0.82);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.details-actions button:hover {
  border-color: rgba(60, 146, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(19, 44, 73, 0.88), rgba(12, 29, 50, 0.88)),
    rgba(10, 23, 39, 0.92);
}

.details-actions svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.details-actions svg:last-child {
  justify-self: end;
  color: #b4c2d4;
  width: 20px;
  height: 20px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 620px;
  color: #8795aa;
  font-size: 16px;
}

body.settings-open {
  overflow: hidden;
}

body.settings-open .app-shell {
  filter: brightness(0.5);
  pointer-events: none;
  user-select: none;
}

#settings-modal-root[hidden] {
  display: none;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px 32px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.23);
  cursor: default;
}

.settings-modal {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: min(1120px, calc(100vw - 48px));
  height: min(848px, calc(100vh - 92px));
  margin-left: 72px;
  border: 1px solid rgba(123, 153, 187, 0.23);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 12%, rgba(47, 105, 164, 0.19), transparent 27rem),
    radial-gradient(circle at 84% 0%, rgba(74, 122, 178, 0.13), transparent 22rem),
    linear-gradient(180deg, rgba(15, 31, 50, 0.98), rgba(8, 19, 33, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 90px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #d5deeb;
  background: transparent;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.settings-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  margin: 33px 0 64px 21px;
  padding: 27px 15px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 7%, rgba(48, 116, 196, 0.16), transparent 13rem),
    rgba(5, 16, 29, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.modal-profile {
  display: grid;
  justify-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(130, 157, 189, 0.14);
  text-align: center;
}

.modal-profile .bot-avatar-large {
  width: 92px;
  height: 92px;
  margin-bottom: 16px;
}

.modal-profile h2 {
  max-width: 176px;
  margin: 0 0 5px;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-profile a {
  max-width: 176px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #3d9bff;
  font-size: 14px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-profile .status-badge {
  justify-self: center;
}

.modal-summary {
  display: grid;
  align-content: start;
  gap: 24px;
}

.modal-summary-line {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  color: #9fb0c5;
  font-size: 13px;
  line-height: 1.2;
}

.modal-summary-line strong {
  grid-column: 2;
  margin-top: 5px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #2e99ff;
}

.summary-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.summary-icon.danger {
  color: #ff4d5e;
}

.summary-icon.success {
  color: #45e873;
}

.summary-webhook {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #46ef78;
  font-size: 15px;
  font-weight: 400;
}

.modal-summary-line strong.summary-webhook {
  color: #46ef78;
  font-weight: 400;
}

.settings-content {
  min-width: 0;
  min-height: 0;
  padding: 47px 31px 14px 32px;
  overflow: auto;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(126, 155, 189, 0.15);
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px 14px;
  border-bottom: 2px solid transparent;
  color: #a7b5c7;
  background: transparent;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.settings-tab.is-active {
  color: #3f9dff;
  border-bottom-color: #348cff;
}

.settings-tab svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 10px 20px;
}

.broadcast-panel {
  display: none;
}

.flows-panel {
  display: none;
}

.stats-panel {
  display: none;
}

.settings-modal.is-broadcast .settings-form,
.settings-modal.is-flows .settings-form,
.settings-modal.is-stats .settings-form,
.settings-modal.is-stats .broadcast-panel,
.settings-modal.is-stats .flows-panel,
.settings-modal.is-flows .broadcast-panel,
.settings-modal.is-broadcast .flows-panel,
.settings-modal.is-broadcast .settings-content > .settings-footer:not(.broadcast-footer),
.settings-modal.is-flows .settings-content > .settings-footer:not(.flow-footer),
.settings-modal.is-stats .settings-content > .settings-footer:not(.broadcast-footer) {
  display: none;
}

.settings-modal.is-broadcast .broadcast-panel {
  display: grid;
  gap: 18px;
}

.settings-modal.is-flows .flows-panel {
  display: block;
}

.settings-modal.is-stats .stats-panel {
  display: grid;
  min-height: 0;
}

.settings-modal.is-stats .settings-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.broadcast-section {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.broadcast-label {
  color: #f4f8ff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.broadcast-label span {
  color: #98a7ba;
  font-weight: 400;
}

.broadcast-audience-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.broadcast-audience-picker {
  position: relative;
  min-width: 0;
}

.broadcast-limit-field {
  display: grid;
  grid-template-columns: minmax(0, 240px);
  gap: 6px;
  margin-top: 2px;
}

.broadcast-limit-field span {
  color: #9fb0c5;
  font-size: 12px;
}

.select-control,
.broadcast-input,
.broadcast-textarea-wrap textarea {
  width: 100%;
  border: 1px solid rgba(111, 141, 177, 0.27);
  border-radius: 5px;
  color: #f5f9ff;
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.74), rgba(6, 16, 28, 0.74)),
    rgba(5, 15, 26, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.select-control,
.broadcast-input {
  height: 40px;
  padding: 0 13px;
  font-size: 14px;
}

.select-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.select-control svg {
  width: 18px;
  height: 18px;
  color: #d4dfef;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.audience-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 4;
  display: none;
  width: min(100%, 480px);
  padding: 7px;
  border: 1px solid rgba(91, 128, 171, 0.34);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(12, 29, 49, 0.98), rgba(6, 17, 30, 0.98)),
    rgba(7, 19, 33, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.broadcast-audience-picker.is-open .audience-menu {
  display: grid;
  gap: 5px;
}

.audience-menu button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 5px;
  color: #dfe8f5;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.audience-menu button:hover,
.audience-menu button.is-selected {
  background: rgba(40, 103, 175, 0.32);
}

.audience-menu strong {
  color: #ffffff;
  font-size: 13px;
}

.audience-menu span {
  color: #91a4bb;
  font-size: 12px;
}

.broadcast-textarea-wrap {
  position: relative;
  display: block;
}

.broadcast-textarea-wrap textarea {
  min-height: 148px;
  padding: 11px 14px;
  resize: none;
  font-size: 15px;
  line-height: 1.35;
}

.broadcast-textarea-wrap.rich-editor textarea {
  padding-top: 43px;
}

.broadcast-char-count {
  position: absolute;
  right: 2px;
  bottom: -22px;
  color: #9aabbf;
  font-size: 13px;
  line-height: 1;
}

.broadcast-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.broadcast-link-button-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 5px;
}

.broadcast-link-button-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.broadcast-link-button-row span {
  color: #9fb0c5;
  font-size: 12px;
}

.outline-action,
.muted-action,
.schedule-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1px solid rgba(55, 140, 255, 0.58);
  border-radius: 5px;
  color: #3d9bff;
  background: rgba(18, 48, 83, 0.42);
  font-size: 14px;
  cursor: pointer;
}

.outline-action {
  min-width: 174px;
  padding: 0 16px;
}

.outline-action svg,
.schedule-button svg,
.send-now-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.broadcast-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.test-send-row,
.schedule-row {
  display: grid;
  gap: 8px;
}

.test-send-row {
  grid-template-columns: minmax(0, 1fr) 134px;
}

.schedule-row {
  grid-template-columns: minmax(0, 1fr) 120px;
}

.muted-action {
  color: #dce9fb;
  border-color: rgba(112, 142, 176, 0.34);
  background: rgba(12, 26, 45, 0.66);
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #a9b9cd;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.input-with-icon .broadcast-input {
  padding-left: 40px;
}

.progress-card {
  display: grid;
  gap: 17px;
  min-height: 125px;
  padding: 17px 18px 10px;
  border: 1px solid rgba(102, 129, 160, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(9, 23, 40, 0.52), rgba(6, 17, 30, 0.56)),
    rgba(5, 16, 29, 0.44);
}

.progress-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.progress-metric {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: #a7b6c9;
  font-size: 14px;
  text-align: center;
}

.progress-metric + .progress-metric::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 43px;
  background: rgba(122, 151, 184, 0.18);
  content: "";
}

.progress-metric strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.progress-track {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(64, 82, 105, 0.48);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #36a2ff, #2d6bff);
}

.progress-percent {
  justify-self: center;
  margin-top: -7px;
  color: #9bacbf;
  font-size: 14px;
}

.broadcast-footer {
  padding-top: 0;
}

.schedule-button {
  min-width: 139px;
  color: #3d9bff;
}

.send-now-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 183px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, 1fr);
  min-height: 100%;
  gap: 18px;
}

.stats-alert {
  margin-bottom: 14px;
}

.stats-card {
  display: grid;
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 18px 17px 16px;
  border: 1px solid rgba(102, 129, 160, 0.2);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 0%, rgba(51, 114, 190, 0.12), transparent 72px),
    rgba(5, 16, 29, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stats-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 13px;
  border-radius: 10px;
  color: #2f9dff;
  background: rgba(19, 64, 117, 0.36);
}

.stats-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.stats-card-icon-negative {
  color: #ff4d5e;
  background: rgba(103, 30, 42, 0.42);
}

.stats-card-title {
  min-height: 0;
  margin-bottom: 9px;
  overflow: visible;
  color: #a8b8ca;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-overflow: clip;
  white-space: normal;
}

.stats-card strong {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats-card-trend {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.stats-card-trend-positive {
  color: #35e76b;
}

.stats-card-trend-negative {
  color: #ff5163;
}

.stats-card-caption {
  color: #9badbf;
  font-size: 13px;
  line-height: 1.2;
}

.flows-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  min-height: 648px;
}

.flows-list,
.flow-editor {
  min-width: 0;
  border: 1px solid rgba(102, 129, 160, 0.21);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(9, 23, 40, 0.52), rgba(6, 17, 30, 0.56)),
    rgba(5, 16, 29, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.flows-list {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.flows-list-head,
.flow-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(126, 155, 189, 0.15);
}

.flows-list-head span,
.flow-editor-head span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.flows-list-head strong,
.flow-editor-head strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.1;
}

.flows-list-head small,
.flow-editor-head small {
  color: #96a8bd;
  font-size: 12px;
  line-height: 1.2;
}

.flow-new-button {
  min-width: 92px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.flow-new-button svg {
  width: 15px;
  height: 15px;
}

.flows-scroll {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.flow-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(111, 141, 177, 0.21);
  border-radius: 7px;
  color: #dbe7f5;
  background: rgba(5, 15, 26, 0.52);
  text-align: left;
  cursor: pointer;
}

.flow-card:hover,
.flow-card.is-selected {
  border-color: rgba(55, 140, 255, 0.63);
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 122, 216, 0.16), transparent 130px),
    rgba(8, 21, 36, 0.78);
}

.flow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flow-card-head strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.flow-status.is-on {
  color: #5df184;
  background: rgba(29, 117, 62, 0.29);
}

.flow-status.is-off {
  color: #a7b4c5;
  background: rgba(86, 105, 130, 0.24);
}

.flow-trigger,
.flow-preview,
.flow-empty span {
  color: #93a6bd;
  font-size: 12px;
  line-height: 1.3;
}

.flow-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flow-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 240px;
  padding: 18px;
  color: #dfe8f4;
  text-align: center;
}

.flow-empty strong {
  color: #ffffff;
  font-size: 15px;
}

.flow-editor {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  overflow: hidden;
}

.danger-action {
  min-width: 78px;
  height: 34px;
  color: #ff7a88;
  border-color: rgba(255, 80, 98, 0.42);
  background: rgba(92, 22, 34, 0.26);
}

.danger-action:hover {
  color: #ffffff;
  border-color: rgba(255, 100, 116, 0.65);
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px 16px;
  padding: 14px;
}

.flow-trigger-fixed {
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 141, 177, 0.22);
  border-radius: 5px;
  background: rgba(5, 16, 29, 0.46);
}

.flow-trigger-fixed strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
}

.flow-trigger-fixed small {
  color: #92a5bc;
  font-size: 12px;
  line-height: 1.25;
}

.flow-textarea-wrap textarea {
  width: 100%;
  min-height: 128px;
  border: 1px solid rgba(111, 141, 177, 0.27);
  border-radius: 5px;
  color: #f5f9ff;
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.74), rgba(6, 16, 28, 0.74)),
    rgba(5, 15, 26, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding-bottom: 22px;
  resize: none;
  font-size: 14px;
  line-height: 1.35;
}

.flow-buttons-input {
  min-height: 86px;
  height: auto;
  padding: 10px 13px;
  resize: none;
  font-size: 14px;
  line-height: 1.32;
}

.flow-active-strip {
  margin-top: 2px;
}

.flow-preview-board {
  display: grid;
  grid-template-columns: minmax(0, 160px) 34px minmax(0, 1fr) 34px 84px;
  align-items: center;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 14px;
  border: 1px solid rgba(55, 140, 255, 0.18);
  border-radius: 7px;
  background:
    radial-gradient(circle at 15% 20%, rgba(52, 140, 255, 0.15), transparent 140px),
    rgba(3, 12, 22, 0.35);
}

.flow-node {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(111, 141, 177, 0.25);
  border-radius: 8px;
  color: #eaf3ff;
  background: rgba(8, 20, 34, 0.72);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.flow-node-trigger {
  color: #44a4ff;
  border-color: rgba(55, 140, 255, 0.46);
}

.flow-node-end {
  color: #5df184;
  border-color: rgba(69, 232, 115, 0.36);
}

.flow-connector {
  height: 1px;
  background: linear-gradient(90deg, rgba(58, 156, 255, 0.2), rgba(58, 156, 255, 0.78));
}

.flow-footer {
  align-self: end;
  padding: 0 14px 14px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e5ecf6;
  font-size: 14px;
  line-height: 1.2;
}

.field-label svg {
  width: 15px;
  height: 15px;
  color: #93a6bd;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.settings-input,
.secret-input input,
.menu-input input,
.settings-form textarea,
.flow-editor textarea,
.command-input {
  width: 100%;
  border: 1px solid rgba(111, 141, 177, 0.27);
  border-radius: 5px;
  color: #f5f9ff;
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.74), rgba(6, 16, 28, 0.74)),
    rgba(5, 15, 26, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings-input,
.secret-input input,
.menu-input input,
.command-input {
  height: 38px;
  padding: 0 13px;
  font-size: 14px;
}

.settings-input:focus,
.secret-input input:focus,
.menu-input input:focus,
.settings-form textarea:focus,
.flow-editor textarea:focus {
  border-color: rgba(55, 144, 255, 0.68);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(43, 129, 255, 0.12);
}

.secret-input {
  position: relative;
  display: block;
}

.secret-input input {
  padding-right: 76px;
  letter-spacing: 1px;
}

.secret-input input[data-token-field] {
  padding-right: 48px;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0;
}

.input-tools {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
}

.input-tools.single {
  right: 12px;
}

.input-tools button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #9fb0c5;
  background: transparent;
  cursor: pointer;
}

.input-tools button:hover {
  color: #ffffff;
}

.input-tools svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.avatar-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.avatar-upload-target {
  position: relative;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.avatar-upload-target .bot-avatar {
  transition:
    border-color 150ms ease,
    filter 150ms ease,
    transform 150ms ease;
}

.avatar-upload-target:hover .bot-avatar {
  border-color: rgba(72, 155, 255, 0.72);
  filter: brightness(0.8);
  transform: translateY(-1px);
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}

.avatar-upload-target:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-upload-overlay svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.bot-avatar-upload {
  width: 64px;
  height: 64px;
}

.bot-avatar-upload svg {
  width: 36px;
  height: 36px;
}

.upload-divider {
  width: 1px;
  height: 55px;
  background: rgba(121, 149, 181, 0.18);
}

.upload-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.upload-copy strong {
  color: #e8f0fb;
  font-size: 13px;
  line-height: 1.2;
}

.upload-copy span {
  color: #99a9bd;
  font-size: 12px;
  line-height: 1.2;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 143px;
  height: 36px;
  border: 1px solid rgba(51, 137, 255, 0.55);
  border-radius: 5px;
  color: #3b9bff;
  background: rgba(19, 52, 88, 0.36);
  font-size: 14px;
  cursor: pointer;
}

.sync-avatar-button {
  width: 192px;
  max-width: 100%;
}

.upload-button:hover {
  background: rgba(30, 75, 126, 0.46);
}

.upload-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.textarea-wrap {
  position: relative;
  display: block;
}

.text-toolbar {
  position: absolute;
  top: 7px;
  left: 8px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.text-toolbar:has(.emoji-picker:not([hidden])) {
  z-index: 5;
}

.editor-tool {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 25px;
  padding: 0 7px;
  border: 1px solid rgba(97, 127, 162, 0.28);
  border-radius: 5px;
  color: #dce8f8;
  background: rgba(15, 35, 60, 0.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.emoji-toggle {
  min-width: 32px;
}

.emoji-picker {
  position: absolute;
  top: 31px;
  left: 0;
  display: grid;
  gap: 10px;
  width: min(560px, calc(100vw - 160px));
  max-height: 300px;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(88, 126, 171, 0.36);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(11, 28, 49, 0.99), rgba(6, 17, 30, 0.99)),
    rgba(7, 19, 33, 0.99);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.43);
}

.emoji-picker[hidden] {
  display: none;
}

.emoji-group {
  display: grid;
  gap: 7px;
}

.emoji-group strong {
  color: #dce8f8;
  font-size: 12px;
  line-height: 1;
}

.emoji-group span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.emoji-group button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.emoji-group button:hover {
  background: rgba(57, 143, 255, 0.26);
}

.editor-tool:hover {
  color: #ffffff;
  border-color: rgba(59, 156, 255, 0.66);
  background: rgba(31, 77, 128, 0.82);
}

.rich-editor textarea {
  padding-top: 40px;
}

.description-field textarea,
.textarea-wrap.compact textarea {
  min-height: 118px;
}

.text-preview-field {
  align-content: start;
}

.text-preview-card {
  display: grid;
  gap: 12px;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid rgba(111, 141, 177, 0.27);
  border-radius: 7px;
  color: #f5f9ff;
  background:
    radial-gradient(circle at 100% 0%, rgba(48, 129, 255, 0.11), transparent 11rem),
    linear-gradient(180deg, rgba(7, 18, 31, 0.72), rgba(6, 16, 28, 0.72)),
    rgba(5, 15, 26, 0.82);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.text-preview-card:hover {
  border-color: rgba(55, 144, 255, 0.58);
  background:
    radial-gradient(circle at 100% 0%, rgba(48, 129, 255, 0.18), transparent 12rem),
    linear-gradient(180deg, rgba(9, 24, 42, 0.78), rgba(7, 18, 31, 0.78));
}

.text-preview-main {
  display: -webkit-box;
  min-height: 36px;
  overflow: hidden;
  color: #edf5ff;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.text-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #93a4b8;
  font-size: 12px;
}

.text-preview-meta em {
  color: #3b9bff;
  font-style: normal;
}

.welcome-settings-card {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(100, 135, 176, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 95% 0%, rgba(47, 127, 255, 0.12), transparent 18rem),
    rgba(5, 16, 29, 0.38);
}

.welcome-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(126, 155, 189, 0.13);
}

.welcome-settings-head span:first-child {
  display: grid;
  gap: 5px;
}

.welcome-settings-head strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.15;
}

.welcome-settings-head small,
.form-note {
  color: #92a5bc;
  font-size: 12px;
  line-height: 1.35;
}

.welcome-textarea-wrap textarea {
  min-height: 154px;
}

.welcome-buttons-editor {
  display: grid;
  gap: 10px;
}

.welcome-button-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) 34px;
  align-items: end;
  gap: 10px;
}

.welcome-button-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.welcome-button-row label span {
  color: #9fb0c5;
  font-size: 12px;
}

.welcome-remove-button {
  min-width: 34px;
  width: 34px;
  height: 38px;
  color: #ff7a88;
  font-size: 20px;
}

.welcome-add-button {
  width: max-content;
  min-width: 174px;
}

.settings-form textarea {
  min-height: 49px;
  padding: 10px 13px 17px;
  resize: none;
  font-size: 14px;
  line-height: 1.25;
}

.settings-form .rich-editor textarea,
.flow-editor .rich-editor textarea {
  padding-top: 40px;
}

.textarea-wrap.compact textarea {
  min-height: 118px;
}

.char-count {
  position: absolute;
  right: 10px;
  bottom: -18px;
  color: #93a4b8;
  font-size: 12px;
  line-height: 1;
}

.menu-input {
  position: relative;
  display: block;
}

.menu-input svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #d7e1ee;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
}

.menu-input input {
  padding-left: 36px;
}

.command-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding-right: 23px;
  overflow: hidden;
}

.command-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  color: #dce6f4;
  background: rgba(58, 76, 100, 0.55);
  font-size: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.command-chip span {
  color: #9dacbf;
  font-size: 15px;
}

.command-chevron {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 24px;
  color: #aebbd0;
}

.command-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.webhook-field .settings-input {
  font-size: 13px;
}

.webhook-status-row,
.settings-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(102, 129, 160, 0.18);
  border-radius: 5px;
  background: rgba(5, 16, 29, 0.46);
}

.settings-active-top {
  background:
    radial-gradient(circle at 90% 50%, rgba(48, 129, 255, 0.12), transparent 18rem),
    rgba(5, 16, 29, 0.52);
}

.webhook-status-row div {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px 14px;
  color: #e5ecf6;
  font-size: 13px;
}

.webhook-status-row strong {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 4px;
  color: #57e77d;
  background: rgba(29, 117, 62, 0.35);
  font-size: 12px;
  font-weight: 600;
}

.webhook-status-row small {
  flex-basis: 100%;
  overflow: visible;
  color: #8f9fb4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: normal;
}

.webhook-status-row button,
.settings-strip button {
  flex: 0 0 auto;
  min-width: 134px;
  height: 30px;
  border: 1px solid rgba(55, 140, 255, 0.54);
  border-radius: 4px;
  color: #b7d8ff;
  background: rgba(23, 55, 94, 0.48);
  font-size: 12px;
  cursor: pointer;
}

.webhook-status-row button:hover,
.settings-strip button:hover {
  color: #ffffff;
  border-color: rgba(75, 156, 255, 0.78);
}

.settings-strip {
  min-height: 56px;
  align-items: center;
}

.settings-strip div,
.active-strip > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-strip strong,
.active-strip strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.settings-strip span,
.active-strip span span {
  color: #9aaabe;
  font-size: 13px;
  line-height: 1.2;
}

.settings-strip button {
  color: #3a9cff;
}

.active-strip {
  position: relative;
  min-height: 56px;
  padding-right: 16px;
  cursor: pointer;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-control {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #334258;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.toggle-control::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  content: "";
  transition: transform 150ms ease;
}

.toggle-input:checked + .toggle-control {
  background: linear-gradient(135deg, #2e8cff, #2e63ff);
}

.toggle-input:checked + .toggle-control::after {
  transform: translateX(20px);
}

.settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}

.text-editor-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.text-editor-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  cursor: default;
}

.text-editor-modal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(760px, calc(100vw - 96px));
  max-height: min(720px, calc(100vh - 120px));
  padding: 18px;
  border: 1px solid rgba(116, 151, 191, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 0%, rgba(51, 131, 255, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(14, 31, 51, 0.99), rgba(7, 18, 31, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.text-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.text-editor-head span {
  display: grid;
  gap: 5px;
}

.text-editor-head strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
}

.text-editor-head small {
  color: #93a7bf;
  font-size: 13px;
  line-height: 1.35;
}

.text-editor-head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #d5deeb;
  background: transparent;
  cursor: pointer;
}

.text-editor-head button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.text-editor-head svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.text-editor-wrap textarea {
  width: 100%;
  min-height: 330px;
  border: 1px solid rgba(111, 141, 177, 0.27);
  border-radius: 5px;
  color: #f5f9ff;
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.74), rgba(6, 16, 28, 0.74)),
    rgba(5, 15, 26, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding-bottom: 34px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.45;
}

.text-editor-wrap .char-count {
  right: 14px;
  bottom: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(5, 17, 31, 0.74);
}

.text-editor-wrap textarea:focus {
  border-color: rgba(55, 144, 255, 0.68);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(43, 129, 255, 0.12);
}

.text-editor-wrap .emoji-picker {
  width: min(620px, calc(100vw - 140px));
}

.text-editor-footer {
  padding-top: 8px;
}

.schedule-editor-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.schedule-editor-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  cursor: default;
}

.schedule-editor-modal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(480px, calc(100vw - 96px));
  padding: 18px;
  border: 1px solid rgba(116, 151, 191, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 0%, rgba(51, 131, 255, 0.16), transparent 17rem),
    linear-gradient(180deg, rgba(14, 31, 51, 0.99), rgba(7, 18, 31, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.schedule-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.schedule-editor-head span,
.schedule-date-field {
  display: grid;
  gap: 6px;
}

.schedule-editor-head strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
}

.schedule-editor-head small,
.schedule-date-field span {
  color: #93a7bf;
  font-size: 13px;
  line-height: 1.35;
}

.schedule-editor-head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #d5deeb;
  background: transparent;
  cursor: pointer;
}

.schedule-editor-head button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.schedule-editor-head svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.schedule-editor-footer {
  padding-top: 2px;
}

.secondary-button,
.primary-button {
  min-width: 82px;
  height: 38px;
  border-radius: 5px;
  color: #e8f1ff;
  font-size: 14px;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid rgba(112, 142, 176, 0.33);
  background: rgba(12, 26, 45, 0.72);
}

.secondary-button:hover {
  border-color: rgba(151, 179, 210, 0.48);
}

.primary-button {
  min-width: 187px;
  background: linear-gradient(135deg, #2b9bff 0%, #2767ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(38, 111, 255, 0.2);
}

.primary-button:hover {
  filter: brightness(1.06);
}

.primary-button:disabled,
.secondary-button:disabled,
.muted-action:disabled,
.send-now-button:disabled,
.schedule-button:disabled,
.schedule-editor-footer .primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

.loading-state,
.bot-list .empty-state,
.details-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  color: #95a6bd;
  text-align: center;
}

.loading-state,
.bot-list .empty-state {
  border: 1px dashed rgba(82, 129, 184, 0.24);
  border-radius: 14px;
  background: rgba(6, 16, 29, 0.28);
}

.details-empty {
  min-height: 520px;
}

.empty-state strong {
  color: #e7f0ff;
  font-size: 18px;
}

.mini-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  padding: 0 16px;
}

.mini-primary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.bot-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.auth-modal {
  position: relative;
  width: min(460px, calc(100vw - 36px));
  border: 1px solid rgba(83, 130, 184, 0.46);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(20, 48, 79, 0.96), rgba(7, 20, 36, 0.97)),
    rgba(11, 27, 47, 0.96);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-form {
  display: grid;
  gap: 15px;
  padding: 34px;
}

.auth-form h2 {
  margin: 0;
  color: #f3f7ff;
  font-size: 26px;
}

.auth-form p {
  margin: 0;
  color: #aab8ca;
  line-height: 1.5;
}

.auth-kicker {
  color: #3ba0ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #d7e4f6;
  font-size: 14px;
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  border: 1px solid rgba(83, 120, 162, 0.38);
  border-radius: 8px;
  background: rgba(2, 12, 23, 0.82);
  color: #f4f8ff;
  font: inherit;
  outline: none;
}

.auth-form input {
  height: 42px;
  padding: 0 13px;
}

.auth-form textarea {
  min-height: 86px;
  resize: vertical;
  padding: 12px 13px;
}

.checkbox-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.form-note {
  color: #8fa1b7;
  line-height: 1.45;
}

.account-form {
  gap: 14px;
}

.notification-form {
  gap: 13px;
}

.notification-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(75, 112, 157, 0.28);
  border-radius: 12px;
  padding: 13px;
  background: rgba(5, 17, 31, 0.54);
}

.notification-status.is-on {
  border-color: rgba(44, 218, 116, 0.28);
  background: rgba(15, 79, 48, 0.2);
}

.notification-status > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  color: #2f9cff;
  background: rgba(47, 134, 255, 0.14);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.notification-status.is-on > svg {
  color: #36eb79;
  background: rgba(42, 220, 111, 0.16);
}

.notification-status span {
  display: grid;
  gap: 3px;
}

.notification-status strong {
  color: #ffffff;
  font-size: 15px;
}

.notification-status small {
  color: #99acc3;
  font-size: 12px;
  line-height: 1.35;
}

.notification-help-text {
  margin-top: -6px;
  color: #99acc3;
  line-height: 1.45;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-status {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(111, 141, 177, 0.26);
  border-radius: 10px;
  background: rgba(3, 14, 27, 0.5);
}

.account-status.is-ok {
  border-color: rgba(53, 231, 107, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(53, 231, 107, 0.12), transparent 160px),
    rgba(3, 14, 27, 0.5);
}

.account-status.is-degraded {
  border-color: rgba(255, 82, 110, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 82, 110, 0.13), transparent 160px),
    rgba(3, 14, 27, 0.5);
}

.account-status span {
  display: grid;
  gap: 4px;
}

.account-status strong {
  color: #ffffff;
  font-size: 14px;
}

.account-status small,
.account-status > span {
  color: #9fb0c5;
  font-size: 12px;
  line-height: 1.35;
}

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

.change-password-form {
  display: grid;
  gap: 12px;
}

.danger-button {
  color: #ff9dae;
  border-color: rgba(255, 82, 110, 0.35);
  background: rgba(95, 17, 34, 0.22);
}

.form-alert {
  min-height: 20px;
  margin: 0;
  border: 1px solid rgba(255, 82, 110, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ff9dae;
  background: rgba(95, 17, 34, 0.22);
  line-height: 1.45;
}

.form-alert[hidden] {
  display: none;
}

.full-width {
  width: 100%;
}

.modal-button-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.locked-scrim {
  display: block;
}

.command-editor {
  min-height: 106px;
  padding: 0;
}

.command-editor textarea {
  width: 100%;
  min-height: 104px;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
  background: transparent;
  color: #f5f8ff;
  font: inherit;
  outline: none;
}

.file-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.media-upload-note {
  color: #92a5bd;
  font-size: 13px;
  line-height: 1.45;
}

.progress-card-live {
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 12px;
}

.broadcast-empty {
  color: #8fa1b7;
  font-size: 13px;
}

.broadcast-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(77, 114, 157, 0.22);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(4, 14, 27, 0.44);
}

.broadcast-history-row span {
  display: grid;
  gap: 2px;
  color: #91a4bc;
  font-size: 12px;
}

.broadcast-history-row strong {
  color: #eef5ff;
  font-size: 13px;
}

.broadcast-history-meta {
  justify-items: end;
}

.broadcast-delete-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 82, 110, 0.26);
  border-radius: 8px;
  color: #ff9dae;
  background: rgba(95, 17, 34, 0.16);
  cursor: pointer;
}

.broadcast-delete-button:hover {
  border-color: rgba(255, 82, 110, 0.52);
  background: rgba(95, 17, 34, 0.34);
}

.broadcast-delete-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 48px));
  border: 1px solid rgba(67, 177, 110, 0.38);
  border-radius: 12px;
  padding: 13px 16px;
  color: #eafff1;
  background: rgba(13, 70, 39, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.app-toast-error {
  border-color: rgba(255, 82, 110, 0.44);
  color: #ffe9ee;
  background: rgba(91, 24, 39, 0.96);
}

@media (max-width: 1180px) {
  .workspace {
    padding: 20px;
  }

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

  .panel,
  .bot-table,
  .details-card {
    min-height: auto;
  }

  .details-panel {
    min-height: 0;
  }

  .modal-layer {
    padding-top: 18px;
  }

  .settings-modal {
    height: min(848px, calc(100vh - 50px));
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 75px;
    gap: 18px;
    padding: 14px 18px;
  }

  .brand {
    font-size: 18px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .create-button,
  .search-field {
    width: 100%;
  }

  .table-head {
    display: none;
  }

  .bot-list {
    padding: 12px;
  }

  .bot-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 112px;
    padding: 16px;
  }

  .bot-main {
    grid-column: 1 / -1;
  }

  .bot-status {
    justify-self: start;
  }

  .bot-metric,
  .bot-actions {
    display: none;
  }

  .modal-layer {
    padding: 18px 12px;
  }

  .settings-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 36px);
  }

  .settings-sidebar {
    margin: 18px 18px 0;
    padding: 18px;
  }

  .modal-profile {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    justify-items: start;
    text-align: left;
  }

  .modal-profile .bot-avatar-large {
    grid-row: span 3;
    width: 68px;
    height: 68px;
    margin-bottom: 0;
  }

  .modal-profile .status-badge {
    grid-column: 2;
  }

  .modal-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .modal-summary-line {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .settings-content {
    padding: 22px 18px 18px;
  }

  .settings-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }

  .settings-form {
    grid-template-columns: 1fr;
  }

  .text-editor-layer {
    padding: 14px;
  }

  .text-editor-modal {
    width: min(100%, calc(100vw - 28px));
    max-height: calc(100vh - 40px);
  }

  .text-editor-wrap textarea {
    min-height: 260px;
  }

  .flows-layout,
  .flow-grid,
  .flow-preview-board {
    grid-template-columns: 1fr;
  }

  .flows-layout {
    min-height: auto;
  }

  .flow-connector {
    justify-self: center;
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, rgba(58, 156, 255, 0.2), rgba(58, 156, 255, 0.78));
  }

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

  .broadcast-audience-row,
  .broadcast-two-column,
  .broadcast-link-button-row,
  .welcome-button-row,
  .test-send-row,
  .schedule-row {
    grid-template-columns: 1fr;
  }

  .schedule-editor-layer {
    padding: 14px;
  }

  .schedule-editor-modal {
    width: min(100%, calc(100vw - 28px));
  }

  .broadcast-actions,
  .broadcast-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .outline-action,
  .schedule-button,
  .send-now-button {
    width: 100%;
  }

  .field-wide {
    grid-column: auto;
  }

  .webhook-status-row,
  .settings-strip {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .webhook-status-row div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .webhook-status-row button,
  .settings-strip button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .top-actions {
    gap: 8px;
  }

  .profile-button span:not(.profile-avatar) {
    display: none;
  }

  .notification-button span {
    display: none;
  }

  .notification-button {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .top-divider {
    display: none;
  }

  .workspace {
    padding: 16px 12px 28px;
  }

  .panel-title {
    min-height: 60px;
    padding: 0 16px;
  }

  .panel-title h1 {
    font-size: 23px;
  }

  .details-panel {
    padding: 20px 14px;
  }

  .details-head {
    gap: 16px;
  }

  .bot-avatar-large {
    width: 72px;
    height: 72px;
  }

  .bot-avatar-large svg {
    width: 40px;
    height: 40px;
  }

  .stat-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .modal-profile {
    display: grid;
  }

  .modal-summary {
    grid-template-columns: 1fr;
  }

  .settings-footer {
    flex-direction: column-reverse;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .secondary-button,
  .primary-button {
    width: 100%;
  }
}
