:root {
  --ink: #172b2a;
  --muted: #5a6c67;
  --orange: #e9662c;
  --orange-dark: #ac3c0d;
  --paper: #f3f5f4;
  --line: #dce3df;
  --white: #fff;
  --green: #286558;
  --font:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Tahoma, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--font);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  font-weight: 650;
  line-height: 1.35;
  min-height: 42px;
  padding: 10px 17px;
  transition: background 0.12s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.2;
  letter-spacing: -1.1px;
  font-weight: 700;
  max-width: 760px;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
p.subtitle {
  color: var(--muted);
  margin-top: 13px;
  max-width: 680px;
}
strong {
  font-weight: 650;
}
small,
.small {
  font-size: 12px;
  color: var(--muted);
}
.primary {
  background: var(--orange);
  color: #fff;
  white-space: nowrap;
}
.primary:hover {
  background: var(--orange-dark);
}
.secondary {
  background: white;
  border: 1px solid #becbc4;
  color: var(--ink);
}
.secondary:hover {
  background: #eaf0ec;
}
.text-button {
  background: transparent;
  color: var(--green);
  padding: 7px 9px;
  min-height: 36px;
}
.text-button:hover {
  background: #eaf0ec;
}
.danger {
  color: #aa3924;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf0ee;
  color: #52615b;
  border: 1px solid #dce3df;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-on {
  background: #e6f1eb;
  border-color: #c5ded1;
  color: #1c6047;
}
#app {
  display: flex;
  min-height: 100vh;
}
aside {
  background: var(--ink);
  color: #e2ebe6;
  width: 228px;
  flex-shrink: 0;
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.6px;
}
.sidebar-caption {
  font-size: 11px;
  color: #a7bdb2;
  margin: 15px 0 31px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav a {
  min-height: 44px;
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 550;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #bacbc2;
}
nav a:hover {
  background: #253d36;
  color: #fff;
}
nav a.active {
  background: #304b40;
  color: #fff;
  border-inline-start: 3px solid var(--orange);
  padding-inline-start: 9px;
}
.nav-symbol {
  width: 19px;
  text-align: center;
  font-size: 19px;
  color: #b6cabd;
  line-height: 1;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #b8c9be;
}
.sidebar-bottom > span {
  margin-bottom: 10px;
}
.side-button {
  color: #c7d4ce;
  background: transparent;
  font-size: 12px;
  padding: 7px 0;
  min-height: 36px;
}
.side-button:hover {
  color: white;
}
.workspace {
  margin-inline-start: 228px;
  width: calc(100% - 228px);
}
header {
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  padding: 14px 40px;
  gap: 18px;
}
.account-caption {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}
.account-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--orange);
}
#mode-label {
  margin-inline-start: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}
.mode {
  font-size: 11px;
}
.pause-button {
  background: #eaf0ec;
  color: var(--green);
  padding: 8px 13px;
  font-size: 12px;
  min-height: 36px;
}
.pause-button.muted {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
#content {
  max-width: 1430px;
  padding: 42px 40px 50px;
  margin: auto;
  min-height: calc(100vh - 140px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 34px;
}
.page-heading .small {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
}
.page-heading > button {
  margin-top: 32px;
}
.summary {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  margin-bottom: 28px;
  gap: 30px;
}
.summary > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary strong {
  font-size: 26px;
  line-height: 1.4;
}
.summary span {
  color: var(--muted);
  font-size: 12px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 34px;
}
.notice-mark {
  width: 42px;
  height: 42px;
  background: #eef4f0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 25px;
  flex-shrink: 0;
}
.notice p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.notice button {
  margin-inline-start: auto;
  flex-shrink: 0;
}
.flow {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.flow > h2 {
  max-width: 230px;
  font-size: 22px;
}
.flow ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex: 1;
}
.flow li {
  font-size: 13px;
  flex: 1;
  max-width: 210px;
  counter-increment: step;
}
.flow li:before {
  content: counter(step);
  display: block;
  color: var(--green);
  font-size: 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid #b6cec0;
  padding-bottom: 6px;
  width: 27px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: start;
}
th {
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  padding: 16px 18px;
  background: #fafcfb;
  border-bottom: 1px solid var(--line);
  text-align: start;
}
td {
  padding: 18px;
  vertical-align: middle;
  border-bottom: 1px solid #eef1ef;
  font-size: 13px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  margin-top: 5px;
  max-width: 310px;
  overflow-wrap: anywhere;
}
td strong {
  display: block;
  font-size: 14px;
}
.price-cell {
  font-weight: 650;
  white-space: nowrap;
  font-size: 15px;
}
.details-cell {
  color: var(--muted);
}
.row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.row-actions button {
  font-size: 12px;
  white-space: nowrap;
}
.empty {
  background: white;
  border: 1px dashed #c7d4cc;
  border-radius: 9px;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  padding: 28px;
  text-align: center;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
}
.empty-mark {
  font-size: 28px;
  color: #8ba799;
}
.activity-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.activity-toolbar select {
  max-width: 240px;
}
.reason {
  max-width: 310px;
  font-size: 11px;
}
.time-cell {
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}
.pagination button {
  min-height: 36px;
  font-size: 12px;
}
footer {
  text-align: center;
  color: #8b9b92;
  font-size: 11px;
  padding: 12px 20px 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  min-width: 0;
}
label {
  font-size: 13px;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #c5d1c9;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 14px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 8px 0 20px;
  max-width: 650px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-footer {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(790px, calc(100vw - 32px));
  padding: 32px;
  max-height: calc(100vh - 40px);
  color: var(--ink);
  background: #fff;
  overflow: auto;
}
dialog::backdrop {
  background: #172b2a70;
  backdrop-filter: blur(2px);
}
.dialog-close {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  inset-inline-end: 16px;
  top: 12px;
}
.icon-button {
  font-size: 25px;
  line-height: 1;
  background: transparent;
  min-height: 40px;
  padding: 7px 12px;
}
.editor-form {
  margin-top: 28px;
}
#modal-content > h2 {
  font-size: 25px;
  margin-inline-end: 40px;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.preview-form {
  background: white;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.preview-result {
  min-height: 400px;
}
.phone {
  max-width: 370px;
  margin: 24px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 15px 35px #172b2a0a;
  min-height: 370px;
}
.phone-header {
  padding: 20px;
  border-bottom: 1px solid #e9eeeb;
  display: flex;
  gap: 12px;
  align-items: center;
}
.phone-header small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.phone-header strong {
  font-size: 13px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.large {
  height: 48px;
  width: 48px;
  font-size: 23px;
}
.chat-body {
  padding: 25px 20px;
}
.chat-label {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 9px;
}
.chat-bubble {
  background: #e8f0eb;
  padding: 15px 17px;
  border-radius: 4px 16px 16px 16px;
  font-size: 14px;
  margin-bottom: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.public-preview {
  font-size: 13px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.phone-empty {
  height: 370px;
  display: grid;
  place-items: center;
  font-size: 40px;
  color: #bdcdc3;
  border: 1px dashed #c7d4cc;
  border-radius: 22px;
  max-width: 370px;
  margin: 0 auto;
}
.connection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.connection-status,
.connection-tools {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 26px;
}
.connection-account {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
  margin-bottom: 10px;
}
.connection-account small {
  display: block;
  margin-top: 4px;
}
.check-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eef1ef;
  font-size: 13px;
}
.check-row:last-child {
  border: 0;
}
.copy-url {
  border: 1px solid var(--line);
  background: var(--paper);
  margin-top: 15px;
  border-radius: 6px;
  padding: 12px;
  overflow-wrap: anywhere;
}
.copy-url code {
  font: 12px/1.7 var(--font);
  display: block;
  overflow-wrap: anywhere;
}
.copy-url button {
  margin-top: 5px;
  padding-inline-start: 0;
}
.limit-form {
  margin-top: 24px;
}
.limit-form .field {
  max-width: 180px;
}
.connection-tools hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.connection-tools dl {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.connection-tools dd {
  margin: 0;
  color: var(--ink);
}
.post-picker {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 240px;
  overflow: auto;
  background: var(--paper);
  padding: 8px;
}
.post-option {
  display: block;
  width: 100%;
  background: transparent;
  text-align: start;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.post-option:hover {
  background: white;
}
#toast {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 10;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 14px 20px;
  box-shadow: 0 8px 25px #0002;
  max-width: min(550px, calc(100vw - 40px));
  font-size: 13px;
}
#toast.toast-error {
  background: #8d3124;
}
.error {
  color: #a43720;
  font-size: 13px;
  margin-top: 14px;
}
#login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 24px;
  background: linear-gradient(110deg, #e7efea 0%, #f3f5f4 70%);
}
.login-brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 32px;
}
.login-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px;
  max-width: 470px;
  width: 100%;
  box-shadow: 0 20px 60px #172b2a0a;
}
.login-panel h1 {
  font-size: 29px;
  line-height: 1.3;
  margin: 15px 0;
}
.login-panel > p:not(.small) {
  font-size: 14px;
  color: var(--muted);
}
#login-form {
  margin-top: 28px;
}
#login-form label {
  display: block;
  margin-bottom: 8px;
}
#login-form .primary {
  width: 100%;
  margin-top: 18px;
}
.login-foot {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin-top: 27px;
}
.login-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--muted);
}
.login-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#login-language {
  margin-top: 18px;
  padding-inline-start: 0;
}
html[dir="rtl"] h1 {
  letter-spacing: 0;
  line-height: 1.5;
  font-size: clamp(25px, 2.5vw, 34px);
}
html[dir="rtl"] .brand {
  letter-spacing: 0;
}
html[dir="rtl"] .chat-bubble {
  border-radius: 16px 4px 16px 16px;
}
html[dir="rtl"] .account-caption,
html[dir="rtl"] .sidebar-bottom > span {
  direction: ltr;
}
@media (max-width: 1100px) {
  aside {
    width: 200px;
    padding-inline: 15px;
  }
  .workspace {
    margin-inline-start: 200px;
    width: calc(100% - 200px);
  }
  #content {
    padding: 30px 26px;
  }
  header {
    padding-inline: 26px;
  }
  .flow {
    flex-direction: column;
  }
  .flow > h2 {
    max-width: none;
  }
  .notice {
    flex-wrap: wrap;
  }
  .notice button {
    margin-inline-start: 60px;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .preview-grid {
    gap: 24px;
  }
  .mode {
    display: none;
  }
  .row-actions {
    max-width: 170px;
  }
}
@media (max-width: 760px) {
  #app {
    display: block;
  }
  aside {
    position: relative;
    width: 100%;
    padding: 15px 18px;
    gap: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .sidebar-caption {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    gap: 5px;
    padding-bottom: 4px;
  }
  nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 10px;
    min-height: 42px;
  }
  nav a.active {
    border-inline-start: 0;
    border-bottom: 2px solid var(--orange);
    padding-inline-start: 10px;
  }
  .nav-symbol {
    display: none;
  }
  .sidebar-bottom {
    position: absolute;
    top: 12px;
    inset-inline-end: 18px;
    flex-direction: row;
    gap: 14px;
  }
  .sidebar-bottom > span {
    display: none;
  }
  .side-button {
    font-size: 11px;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  header {
    min-height: 65px;
    padding: 12px 18px;
    gap: 10px;
  }
  .account-caption {
    font-size: 11px;
  }
  #mode-label {
    gap: 0;
  }
  .badge {
    font-size: 11px;
  }
  .pause-button {
    font-size: 10px;
    min-height: 36px;
    padding: 7px 10px;
  }
  #content {
    padding: 27px 18px 40px;
  }
  .page-heading {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 24px;
  }
  .page-heading > button {
    margin-top: 0;
  }
  h1 {
    font-size: 27px;
  }
  .summary {
    gap: 14px;
    flex-wrap: wrap;
  }
  .summary > div {
    flex-basis: 42%;
  }
  .summary strong {
    font-size: 23px;
  }
  .notice {
    padding: 18px;
    gap: 12px;
  }
  .notice-mark {
    width: 32px;
    height: 32px;
  }
  .notice h2 {
    font-size: 16px;
  }
  .notice > div:nth-child(2) {
    flex: 1;
  }
  .notice button {
    margin-inline-start: 44px;
    font-size: 12px;
  }
  .flow {
    gap: 18px;
  }
  .flow ol {
    flex-direction: column;
    gap: 13px;
  }
  .flow li {
    max-width: none;
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }
  .flow li:before {
    display: inline-block;
    flex-shrink: 0;
  }
  .table-wrap {
    border-radius: 7px;
  }
  th,
  td {
    padding: 13px 12px;
  }
  .row-actions {
    min-width: 110px;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .preview-form {
    padding: 20px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    padding: 26px 20px;
    border-radius: 10px;
    max-height: calc(100dvh - 24px);
  }
  .connection-status,
  .connection-tools {
    padding: 20px;
  }
  .preview-result {
    min-height: 200px;
  }
  .phone-empty {
    height: 200px;
  }
  .login-panel {
    padding: 28px;
  }
  footer {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
