:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-muted: #f8faf9;
  --border: #dce2e1;
  --text: #1f2927;
  --muted: #66736f;
  --primary: #147d6f;
  --primary-dark: #0e6258;
  --green-soft: #e8f5f1;
  --amber: #9a6500;
  --amber-soft: #fff6dd;
  --red: #b53a3a;
  --red-soft: #fff0f0;
  --blue: #35699a;
  --sidebar: #202927;
  --sidebar-muted: #aebbb7;
  --shadow: 0 1px 2px rgba(24, 36, 33, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 18px; height: 18px; flex: 0 0 auto; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: white;
  padding: 18px 12px;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 20px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #35a28f;
  color: white;
  font-size: 17px;
  font-weight: 800;
}
.brand div { display: grid; gap: 2px; }
.brand strong { font-size: 15px; letter-spacing: 0; }
.brand small { color: var(--sidebar-muted); font-size: 11px; }
.nav-list { display: grid; gap: 3px; }
.nav-list a, .sidebar-footer a, .nav-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 6px;
  padding: 0 11px;
  background: transparent;
  color: #d7dfdd;
  text-align: left;
  cursor: pointer;
}
.nav-list a:hover, .sidebar-footer a:hover, .nav-button:hover { background: #2a3532; color: white; }
.nav-list a.active { background: #e7f4f0; color: #135e54; font-weight: 700; }
.nav-list a.disabled { color: #75817e; cursor: default; }
.nav-list a small { margin-left: auto; font-size: 10px; text-transform: uppercase; }
.sidebar-footer { margin-top: auto; display: grid; gap: 3px; border-top: 1px solid #38423f; padding-top: 10px; }
.sidebar-footer .trailing { margin-left: auto; width: 14px; }
.sidebar-footer form { margin: 0; }

.main { min-width: 0; }
.topbar {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}
.topbar > div:first-of-type { display: flex; align-items: center; gap: 10px; }
.topbar strong { font-size: 15px; }
.environment {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
}
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); }
.mobile-menu { display: none; }
.content { max-width: 1500px; margin: 0 auto; padding: 24px 28px 40px; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-heading h1 { margin: 0 0 5px; font-size: 23px; line-height: 1.25; letter-spacing: 0; }
.page-heading p { margin: 0; color: var(--muted); }
.actions { display: flex; gap: 8px; }
.actions form { margin: 0; }
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.button.primary { background: var(--primary); color: white; }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: white; border-color: var(--border); color: var(--text); }
.button.secondary:hover { border-color: #aebbb7; }
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--text);
  cursor: pointer;
}

.safe-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #b8ddd4;
  border-radius: 6px;
  background: var(--green-soft);
  color: #145e53;
}
.safe-banner > svg { width: 22px; height: 22px; }
.safe-banner div { display: grid; gap: 2px; }
.safe-banner span { font-size: 12px; color: #42746c; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}
.metric {
  min-height: 104px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: 0; }
.metric:hover { background: var(--surface-muted); }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { font-size: 26px; line-height: 1; }
.metric > svg { position: absolute; right: 14px; top: 14px; color: #84a59e; }
.metric.danger > svg, .metric.danger strong { color: var(--red); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.panel-heading { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.panel-heading h2 { margin: 0; font-size: 14px; }
.panel-heading a { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-size: 12px; font-weight: 700; }
.panel-heading a svg { width: 14px; }
.compact-list > a, .operation-list > div {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf0ef;
}
.compact-list > a:last-child, .operation-list > div:last-child { border-bottom: 0; }
.compact-list > a:hover { background: var(--surface-muted); }
.compact-list div, .operation-list div { min-width: 0; display: grid; gap: 3px; }
.compact-list strong, .operation-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.compact-list small, .operation-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8a9693; }
.status-dot.done { background: #2c9b78; }
.status-dot.waiting { background: #d39520; }
.status-dot.blocked { background: #c64a4a; }

.kind {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.kind-feedback { background: #f2edff; color: #66509d; }
.kind-question { background: #e8f2fb; color: var(--blue); }
.kind-chat { background: var(--green-soft); color: #19705f; }
.rating { margin-top: 7px; display: flex; align-items: center; gap: 3px; color: #9a6500; font-size: 12px; font-weight: 700; }
.rating svg { width: 13px; fill: #e8b449; stroke: #c78c16; }

.filters {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) 180px 38px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.segmented { display: flex; height: 38px; border: 1px solid var(--border); border-radius: 6px; background: white; overflow: hidden; }
.segmented a { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 700; }
.segmented a:last-child { border-right: 0; }
.segmented a.active { background: var(--primary); color: white; }
.search { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--muted); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.filters select { height: 38px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; background: white; color: var(--text); }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: white; box-shadow: var(--shadow); }
.data-table { width: 100%; min-width: 1160px; border-collapse: collapse; table-layout: fixed; }
.data-table th { height: 42px; padding: 0 12px; background: #f7f9f8; border-bottom: 1px solid var(--border); color: var(--muted); text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.data-table td { height: 94px; padding: 11px 12px; border-bottom: 1px solid #edf0ef; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfc; }
.data-table th:nth-child(1) { width: 100px; }
.data-table th:nth-child(2) { width: 210px; }
.data-table th:nth-child(3) { width: 27%; }
.data-table th:nth-child(4) { width: 29%; }
.data-table th:nth-child(5) { width: 125px; }
.data-table th:nth-child(6) { width: 58px; }
.identity { display: grid; gap: 3px; }
.identity strong, .identity span, .identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity span, .identity small { color: var(--muted); font-size: 11px; }
.cell-text { max-height: 67px; overflow: hidden; line-height: 1.45; color: #394541; }
.cell-text.draft { color: #315d55; }
.row-action { text-align: right; }
.row-action .icon-button { margin-left: auto; }
.button:disabled { opacity: 0.48; cursor: not-allowed; }
.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;
}

.interaction-dialog {
  width: min(820px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(21, 35, 31, 0.22);
}
.interaction-dialog::backdrop { background: rgba(24, 36, 33, 0.48); }
.interaction-dialog form { display: grid; max-height: calc(100vh - 34px); }
.interaction-dialog header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}
.interaction-dialog header > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.interaction-dialog header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interaction-body { min-height: 0; overflow-y: auto; display: grid; gap: 16px; padding: 18px; }
.interaction-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: 12px; }
.interaction-meta span { display: inline-flex; align-items: center; gap: 4px; }
.interaction-meta svg { width: 14px; height: 14px; }
.customer-message { display: grid; gap: 6px; }
.customer-message label, .draft-editor > span { font-size: 12px; font-weight: 800; }
.customer-message > div {
  max-height: 180px;
  overflow-y: auto;
  padding: 12px;
  border-left: 3px solid #b8ddd4;
  background: var(--surface-muted);
  white-space: pre-wrap;
  line-height: 1.48;
}
.draft-editor { display: grid; gap: 6px; }
.draft-editor textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid #cdd5d3;
  border-radius: 6px;
  padding: 11px 12px;
  outline: 0;
  color: var(--text);
  line-height: 1.48;
}
.draft-editor textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 125, 111, 0.12); }
.character-count { justify-self: end; color: var(--muted); font-size: 11px; }
.inline-error { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #efc1c1; border-radius: 6px; background: var(--red-soft); color: var(--red); }
.inline-error svg { margin-top: 1px; }
.approval-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.approval-toggle input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.approval-toggle > span { display: grid; gap: 2px; }
.approval-toggle small { color: var(--muted); font-size: 11px; }
.interaction-dialog footer { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.dialog-spacer { flex: 1; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status svg { width: 14px; height: 14px; }
.status.success { background: var(--green-soft); color: #18705f; }
.status.error { background: var(--red-soft); color: var(--red); }
.status.waiting { background: var(--amber-soft); color: var(--amber); }
.status.neutral { background: #edf1f4; color: #51616b; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.pagination a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: white; }
.pagination span { color: var(--muted); font-size: 12px; }

.settings-list { display: grid; gap: 8px; }
.settings-list section, .settings-list .setting-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}
.settings-list section > svg, .settings-list .setting-row > svg:first-child { width: 22px; height: 22px; color: var(--primary); }
.settings-list section div, .settings-list .setting-row div { display: grid; gap: 3px; }
.settings-list section span:not(.status), .settings-list .setting-row span:not(.status) { color: var(--muted); font-size: 12px; }
.setting-row {
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.setting-row:hover { border-color: #aebbb7; background: var(--surface-muted); }
.setting-row .setting-chevron { width: 17px; height: 17px; color: #8a9693; }

.secret-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(21, 35, 31, 0.22);
}
.secret-dialog::backdrop { background: rgba(24, 36, 33, 0.48); }
.secret-dialog form { display: grid; }
.secret-dialog header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}
.secret-dialog header > div { display: flex; align-items: center; gap: 9px; }
.secret-dialog header > div svg { color: var(--primary); }
.dialog-body { display: grid; gap: 8px; padding: 20px 18px; }
.dialog-body label { font-size: 12px; font-weight: 700; }
.dialog-body p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.secret-input {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #cdd5d3;
  border-radius: 6px;
  background: white;
  color: var(--muted);
}
.secret-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 125, 111, 0.12); }
.secret-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.secret-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.notice { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #c8d9e7; border-radius: 6px; background: #eef6fb; color: #315c7d; }
.notice.error { border-color: #efc1c1; background: var(--red-soft); color: var(--red); }
.empty-state { padding: 28px 16px; color: var(--muted); text-align: center; }
.operation-list.full > div { min-height: 72px; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #eef1f0; }
.login-panel { width: min(380px, 100%); padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: white; box-shadow: 0 12px 35px rgba(25, 39, 35, 0.10); }
.login-brand { padding: 0 0 26px; color: var(--text); }
.login-brand small { color: var(--muted); }
.login-panel h1 { margin: 0 0 6px; font-size: 24px; }
.login-panel > p { margin: 0 0 22px; color: var(--muted); }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 5px; color: #46534f; font-size: 12px; font-weight: 700; }
.login-form input { height: 42px; border: 1px solid #cdd5d3; border-radius: 6px; padding: 0 11px; outline: 0; }
.login-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 125, 111, 0.12); }
.login-form .button { margin-top: 10px; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr 180px 38px; }
  .segmented { grid-column: 1 / -1; width: max-content; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -260px; width: 240px; transition: left 160ms ease; box-shadow: 12px 0 30px rgba(0,0,0,.18); }
  .sidebar.open { left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .topbar > div:first-of-type { min-width: 0; display: grid; gap: 2px; }
  .topbar > div:first-of-type strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .environment { width: max-content; }
  .user-chip span { display: none; }
  .content { padding: 18px 14px 30px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .page-heading h1 { font-size: 21px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .button { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--border); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
  .filters { grid-template-columns: minmax(0, 1fr) 38px; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented a { flex: 1 0 auto; }
  .filters select { grid-column: 1 / -1; grid-row: 3; }
  .settings-list section, .settings-list .setting-row { grid-template-columns: 34px minmax(0, 1fr); }
  .settings-list section .status, .settings-list .setting-row .status { grid-column: 2; width: max-content; }
  .setting-row .setting-chevron { display: none; }
  .secret-dialog footer { display: grid; grid-template-columns: 1fr 1fr; }
  .secret-dialog footer .button { width: 100%; white-space: normal; }
  .interaction-dialog footer { display: grid; grid-template-columns: 1fr 1fr; }
  .interaction-dialog footer .dialog-spacer { display: none; }
  .interaction-dialog footer .button { width: 100%; white-space: normal; }
  .interaction-dialog footer .send-button { grid-column: 1 / -1; }
  .customer-message > div { max-height: 145px; }
  .draft-editor textarea { min-height: 155px; }
  .safe-banner { align-items: flex-start; }
}


.automation-state {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #b8ddd4;
  border-radius: 6px;
  background: var(--green-soft);
  color: #145e53;
  font-size: 12px;
  font-weight: 700;
}
.auto-reply-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  box-shadow: var(--shadow);
}
.auto-reply-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.auto-reply-title > svg { width: 21px; height: 21px; color: var(--primary); }
.auto-reply-title > div { display: grid; gap: 2px; }
.auto-reply-title span { color: var(--muted); font-size: 11px; }
.rating-switches { display: flex; align-items: center; gap: 8px; }
.rating-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.rating-label { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; }
.rating-label svg { width: 13px; height: 13px; fill: #e8b449; stroke: #c78c16; }
.rating-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  width: 32px;
  height: 18px;
  position: relative;
  border-radius: 9px;
  background: #cbd3d1;
  transition: background 140ms ease;
}
.switch-track::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(24, 36, 33, .22);
  transition: transform 140ms ease;
}
.rating-switch input:checked + .switch-track { background: var(--primary); }
.rating-switch input:checked + .switch-track::after { transform: translateX(14px); }
.rating-switch input:focus-visible + .switch-track { outline: 3px solid rgba(20, 125, 111, .18); }

.bulk-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: white;
}
.select-all-label { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.select-all-label input, .selection-column input { width: 17px; height: 17px; accent-color: var(--primary); }
.selection-count { color: var(--muted); font-size: 12px; }
.bulk-send { margin-left: auto; }
.bulk-toolbar + .data-table-wrap { border-radius: 0 0 6px 6px; }

.queue-table { min-width: 1380px; }
.queue-table th:nth-child(1) { width: 44px; }
.queue-table th:nth-child(2) { width: 90px; }
.queue-table th:nth-child(3) { width: 210px; }
.queue-table th:nth-child(4) { width: 30%; }
.queue-table th:nth-child(5) { width: 31%; }
.queue-table th:nth-child(6) { width: 125px; }
.queue-table th:nth-child(7) { width: 104px; }
.queue-table td { height: auto; min-height: 94px; }
.selection-column { text-align: center; vertical-align: middle !important; }
.cell-text {
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.42;
}
.cell-text.fit-medium { font-size: 12px; line-height: 1.38; }
.cell-text.fit-small { font-size: 11px; line-height: 1.34; }
.cell-text.fit-xsmall { font-size: 10px; line-height: 1.3; }
.identity strong, .identity span, .identity small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions form { margin: 0; }
.row-actions .icon-button { margin: 0; }
.row-actions .quick-send { color: var(--primary); }
.row-actions .quick-send:disabled { color: var(--muted); cursor: not-allowed; }
.status.auto { margin-top: 6px; background: #e9f6ff; color: #35699a; }

@media (max-width: 760px) {
  .auto-reply-panel { align-items: stretch; flex-direction: column; }
  .rating-switches { justify-content: space-between; overflow-x: auto; }
  .rating-switch { flex: 0 0 auto; }
  .bulk-toolbar { flex-wrap: wrap; padding: 8px 10px; }
  .bulk-send { width: 100%; margin-left: 0; }
  .automation-state { width: 100%; justify-content: center; }
}

.brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding: 2px 8px 20px;
}
.brand-logo {
  width: 132px;
  height: 53px;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}
.brand-logo img {
  width: 106%;
  height: 106%;
  display: block;
  object-fit: cover;
  transform: translate(-3%, -3%);
}
.brand-subtitle {
  color: var(--sidebar-muted);
  font-size: 10.5px;
  line-height: 1.4;
}
.login-brand {
  width: 100%;
  align-items: center;
  padding: 0 0 24px;
}
.login-brand .brand-logo {
  width: 164px;
  height: 66px;
}
.login-brand .brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}