:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0f14;
  color: #edf2f7;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #0b0f14;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0b0f14;
}

.login-panel {
  width: min(400px, 100%);
  padding: 32px;
  border: 1px solid #29313b;
  border-radius: 8px;
  background: #141a21;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #2ac79a;
  color: #07130f;
  font-weight: 900;
}

.login-panel h1 {
  margin: 18px 0 4px;
  font-size: 28px;
  letter-spacing: 0;
}

.login-panel > p {
  margin: 0 0 28px;
  color: #8c98a6;
}

.login-panel label {
  display: block;
  margin-bottom: 8px;
  color: #c9d1da;
  font-size: 13px;
  font-weight: 700;
}

.login-panel input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #3a4552;
  border-radius: 6px;
  outline: none;
  background: #0d1218;
  color: #edf2f7;
}

.form-error {
  min-height: 18px;
  margin: 12px 0 0 !important;
  color: #ff9797 !important;
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid #232b34;
  background: #10151b;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 6px 22px;
}

.brand > div:last-child {
  min-width: 0;
}

.brand strong,
.brand span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
}

.brand span {
  margin-top: 2px;
  color: #788593;
  font-size: 11px;
}

.main-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #9aa6b4;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.nav-item:hover {
  background: #171e26;
  color: #eef2f6;
}

.nav-item.active {
  border-color: #29443c;
  background: #16241f;
  color: #62dfba;
}

.nav-symbol {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #242d37;
  color: #aab5c1;
  font-size: 10px;
  font-weight: 900;
}

.nav-item.active .nav-symbol {
  background: #245a49;
  color: #a8f3dc;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 8px 2px;
  border-top: 1px solid #232b34;
}

.sidebar-footer strong,
.sidebar-footer span {
  display: block;
}

.sidebar-footer strong {
  font-size: 11px;
}

.sidebar-footer span {
  margin-top: 2px;
  color: #71808e;
  font-size: 10px;
}

.domain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ac79a;
  box-shadow: 0 0 0 3px rgba(42, 199, 154, 0.12);
}

.app-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 28px;
  border-bottom: 1px solid #232b34;
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 1px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: #2ac79a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-actions,
.command-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.save-status {
  margin-right: 4px;
  color: #788593;
  font-size: 11px;
}

.save-status.dirty {
  color: #f4c15d;
}

.button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  letter-spacing: 0;
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button.primary {
  background: #2ac79a;
  color: #07130f;
}

.button.secondary {
  border-color: #35404c;
  background: #182029;
  color: #e4eaf0;
}

.button.ghost {
  background: transparent;
  color: #8c98a6;
}

.button.wide {
  width: 100%;
  margin-top: 14px;
}

.content {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 26px 28px 50px;
}

.studio-intro,
.view-heading,
.editor-heading,
.band-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.studio-intro,
.view-heading {
  margin-bottom: 18px;
}

.studio-intro h2,
.view-heading h2,
.editor-heading h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.studio-intro p,
.view-heading p,
.band-heading p {
  margin: 5px 0 0;
  color: #82909e;
  font-size: 12px;
}

.studio-layout {
  min-height: 720px;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #27303a;
  border-radius: 8px;
  background: #12181f;
}

.preset-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  border-right: 1px solid #27303a;
  background: #10161c;
}

.panel-label {
  padding: 2px 8px 10px;
  color: #6f7c89;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.preset-list {
  display: grid;
  gap: 5px;
}

.preset-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #aab4bf;
  text-align: left;
}

.preset-item:hover {
  background: #182029;
}

.preset-item.active {
  border-color: #2a594a;
  background: #182720;
  color: #edf5f2;
}

.preset-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #344252;
  color: #eef4f8;
  font-size: 12px;
  font-weight: 850;
}

.preset-item.active .preset-avatar {
  background: #2a8c70;
}

.preset-copy {
  min-width: 0;
}

.preset-copy strong,
.preset-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preset-copy strong {
  font-size: 12px;
}

.preset-copy span {
  margin-top: 2px;
  color: #74818e;
  font-size: 10px;
}

.text-command {
  margin-top: auto;
  padding: 10px 8px 2px;
  border: 0;
  background: transparent;
  color: #8b98a5;
  font-size: 11px;
  text-align: left;
}

.text-command.danger {
  color: #ef8b8b;
}

.preset-editor {
  min-width: 0;
}

.editor-heading {
  min-height: 76px;
  padding: 14px 22px;
  border-bottom: 1px solid #27303a;
}

.status-toggle,
.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aeb8c3;
  font-size: 12px;
  font-weight: 700;
}

.status-toggle input,
.toggle-field input {
  width: 36px;
  height: 20px;
  appearance: none;
  position: relative;
  margin: 0;
  border: 1px solid #44505e;
  border-radius: 999px;
  background: #252e38;
  outline: none;
}

.status-toggle input::after,
.toggle-field input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8995a2;
  transition: transform 120ms ease;
}

.status-toggle input:checked,
.toggle-field input:checked {
  border-color: #2ac79a;
  background: #17644f;
}

.status-toggle input:checked::after,
.toggle-field input:checked::after {
  transform: translateX(16px);
  background: #d9fff3;
}

.editor-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 18px;
  border-bottom: 1px solid #27303a;
}

.editor-tab {
  min-width: max-content;
  height: 45px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #7e8b98;
  font-size: 12px;
  font-weight: 750;
}

.editor-tab:hover {
  color: #dce3e9;
}

.editor-tab.active {
  border-color: #2ac79a;
  color: #75e5c2;
}

.editor-content {
  padding: 0 22px 34px;
}

.settings-band {
  padding: 24px 0;
  border-bottom: 1px solid #27303a;
}

.settings-band:last-child {
  border-bottom: 0;
}

.band-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

.band-heading h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  min-width: 0;
}

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

.field > label,
.field-label {
  display: block;
  margin-bottom: 6px;
  color: #aab5c0;
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.compact-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #35414e;
  border-radius: 6px;
  outline: none;
  background: #0d1319;
  color: #edf2f7;
}

.field input,
.field select,
.compact-input {
  height: 39px;
  padding: 0 11px;
}

.field textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.45;
}

.field textarea.prompt-editor {
  min-height: 180px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.compact-input:focus {
  border-color: #2ac79a;
  box-shadow: 0 0 0 3px rgba(42, 199, 154, 0.1);
}

.field-help {
  margin: 5px 0 0;
  color: #687684;
  font-size: 10px;
  line-height: 1.4;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.range-row input[type="range"] {
  height: 26px;
  padding: 0;
  accent-color: #2ac79a;
}

.range-value {
  color: #79e1c1;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.toggle-field {
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #303b47;
  border-radius: 6px;
  background: #151c24;
}

.repeater-list {
  display: grid;
  gap: 10px;
}

.audit-score {
  padding: 6px 9px;
  border-radius: 999px;
  background: #222c36;
  color: #b7c2cd;
  font-size: 10px;
  font-weight: 800;
}

.optimization-list,
.config-block-list,
.message-step-list {
  display: grid;
  gap: 10px;
}

.optimization-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px;
  border: 1px solid #303a46;
  border-left-width: 3px;
  border-radius: 6px;
  background: #151c24;
}

.optimization-item > span {
  color: #8996a3;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.optimization-item strong {
  display: block;
  font-size: 12px;
}

.optimization-item p {
  margin: 4px 0 0;
  color: #7f8c99;
  font-size: 10px;
}

.optimization-item.urgent {
  border-left-color: #ef6e76;
}

.optimization-item.important {
  border-left-color: #efbb53;
}

.optimization-item.optional {
  border-left-color: #5da9e9;
}

.optimization-item.success {
  border-left-color: #2ac79a;
}

.config-block {
  padding: 14px;
  border: 1px solid #303a46;
  border-radius: 7px;
  background: #141b22;
}

.config-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.config-block-head strong {
  font-size: 12px;
}

.phase-grid,
.message-step,
.url-row,
.objection-row,
.sequence-row,
.condition-row {
  display: grid;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid #303a46;
  border-radius: 7px;
  background: #151c24;
}

.phase-grid {
  grid-template-columns: minmax(100px, 0.8fr) minmax(190px, 1.7fr) 78px 92px 82px 100px 40px;
}

.message-step {
  grid-template-columns: minmax(240px, 2fr) 170px minmax(120px, 0.8fr) 40px;
}

.url-row {
  grid-template-columns: minmax(140px, 0.8fr) minmax(240px, 2fr) 160px 100px 40px;
}

.objection-row {
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.5fr) 130px 90px 40px;
}

.sequence-row {
  grid-template-columns: minmax(130px, 0.7fr) minmax(260px, 1.7fr) 130px 90px 40px;
}

.condition-row {
  grid-template-columns: minmax(260px, 1fr) 100px 40px;
}

.compact-area {
  min-height: 72px;
  height: auto;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.4;
}

.repeater-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(220px, 2fr) 92px 92px 40px;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid #303a46;
  border-radius: 7px;
  background: #151c24;
}

.repeater-row.objection {
  grid-template-columns: minmax(160px, 1fr) minmax(240px, 1.5fr) 80px 40px;
}

.compact-field label {
  display: block;
  margin-bottom: 5px;
  color: #7f8c99;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.remove-row {
  width: 36px;
  height: 36px;
  border: 1px solid #54383c;
  border-radius: 6px;
  background: #2b1b1e;
  color: #f09b9b;
  font-size: 18px;
}

.add-row {
  margin-top: 10px;
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-config-list {
  border-top: 1px solid #29323d;
}

.playground-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.engine-indicator {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8693a0;
  font-size: 11px;
  font-weight: 700;
}

.engine-indicator > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef6e76;
}

.engine-indicator.online > span {
  background: #2ac79a;
}

.playground-surface {
  min-height: 620px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #29323d;
  border-radius: 8px;
  background: #11171e;
}

.playground-messages {
  height: 550px;
  overflow-y: auto;
  padding: 20px;
  background: #0e141a;
}

.account-config-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) 130px 130px;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid #29323d;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #354355;
  font-size: 12px;
  font-weight: 850;
}

.account-identity strong,
.account-identity span {
  display: block;
}

.account-identity strong {
  font-size: 13px;
}

.account-identity span {
  margin-top: 2px;
  color: #758290;
  font-size: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid #29323d;
  border-radius: 8px;
  background: #141a21;
}

.metric {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #29323d;
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  color: #82909e;
  font-size: 11px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
}

.live-account-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.live-account {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) repeat(3, auto);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #29323d;
  border-radius: 7px;
  background: #141a21;
  color: inherit;
  text-align: left;
}

.live-account.selected,
.live-account:hover {
  border-color: #2a8c70;
  background: #16231f;
}

.live-stat {
  text-align: right;
}

.live-stat strong,
.live-stat span {
  display: block;
}

.live-stat strong {
  font-size: 13px;
}

.live-stat span {
  color: #74818e;
  font-size: 9px;
}

.online-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(42, 199, 154, 0.13);
  color: #69dbb9;
  font-size: 10px;
  font-weight: 800;
}

.online-status.offline {
  background: rgba(238, 111, 111, 0.13);
  color: #f19898;
}

.conversation-workspace {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #29323d;
  border-radius: 8px;
  background: #11171e;
}

.conversation-sidebar {
  min-width: 0;
  border-right: 1px solid #29323d;
}

.conversation-toolbar,
.message-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #29323d;
}

.conversation-toolbar h3,
.message-header h3,
.message-empty h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.counter {
  min-width: 26px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #27313c;
  color: #b7c0ca;
  font-size: 10px;
  font-weight: 800;
}

.search-box {
  display: block;
  padding: 10px;
  border-bottom: 1px solid #29323d;
}

.search-box input {
  width: 100%;
  height: 37px;
  padding: 0 11px;
  border: 1px solid #34404c;
  border-radius: 6px;
  outline: none;
  background: #0c1117;
  color: #e9eef3;
}

.conversation-list {
  height: 500px;
  overflow-y: auto;
}

.conversation-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #202832;
  background: transparent;
  color: inherit;
  text-align: left;
}

.conversation-item:hover,
.conversation-item.selected {
  background: #1a222b;
}

.conversation-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #354355;
  font-size: 11px;
  font-weight: 850;
}

.conversation-copy {
  min-width: 0;
}

.conversation-copy strong,
.conversation-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy strong {
  font-size: 12px;
}

.conversation-copy span {
  margin-top: 3px;
  color: #7a8794;
  font-size: 10px;
}

.conversation-badge {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2ac79a;
  color: #07130f;
  font-size: 9px;
  font-weight: 900;
}

.waiting-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #efbb53;
}

.message-panel {
  min-width: 0;
}

.message-empty {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7e8b98;
  text-align: center;
}

.message-empty p,
.message-header p {
  margin: 4px 0 0;
  color: #758290;
  font-size: 10px;
}

.empty-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #394450;
  border-radius: 50%;
  color: #2ac79a;
  font-weight: 850;
}

.message-view {
  height: 600px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.messages {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background: #0e141a;
}

.message {
  width: fit-content;
  max-width: min(74%, 640px);
  margin-bottom: 10px;
}

.message.own {
  margin-left: auto;
}

.message-bubble {
  padding: 9px 11px;
  border-radius: 7px;
  background: #242d37;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.own .message-bubble {
  background: #17644f;
}

.message-meta {
  margin: 3px 2px 0;
  color: #697785;
  font-size: 9px;
}

.message.own .message-meta {
  text-align: right;
}

.reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid #29323d;
}

.reply-form textarea {
  min-width: 0;
  resize: none;
  padding: 9px 10px;
  border: 1px solid #34404c;
  border-radius: 6px;
  outline: none;
  background: #0c1117;
  color: #e9eef3;
}

.empty-state {
  padding: 28px 16px;
  color: #73808d;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  padding: 11px 13px;
  border: 1px solid #35414d;
  border-radius: 6px;
  background: #1a222b;
  color: #e8edf2;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: #7b3a40;
  color: #ffb3b3;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }

  .studio-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

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

  .phase-grid,
  .message-step,
  .url-row,
  .objection-row,
  .sequence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .remove-row {
    align-self: end;
  }

  .live-account-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: sticky;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid #232b34;
  }

  .app-sidebar .brand,
  .sidebar-footer {
    display: none;
  }

  .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
    padding: 0 5px;
    font-size: 11px;
  }

  .nav-symbol {
    display: none;
  }

  .topbar {
    min-height: 62px;
    padding: 10px 12px;
  }

  .topbar h1 {
    font-size: 17px;
  }

  .save-status,
  .button.ghost {
    display: none;
  }

  .content {
    padding: 18px 12px 36px;
  }

  .studio-intro,
  .view-heading {
    align-items: flex-start;
  }

  .command-row {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-layout {
    display: block;
  }

  .preset-sidebar {
    border-right: 0;
    border-bottom: 1px solid #27303a;
  }

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

  .text-command {
    margin-top: 8px;
  }

  .editor-heading {
    padding: 13px;
  }

  .editor-tabs {
    padding: 0 7px;
  }

  .editor-content {
    padding: 0 13px 24px;
  }

  .form-grid,
  .form-grid.three,
  .toggle-grid,
  .sequence-grid {
    grid-template-columns: 1fr;
  }

  .repeater-row,
  .repeater-row.objection {
    grid-template-columns: 1fr;
  }

  .phase-grid,
  .message-step,
  .url-row,
  .objection-row,
  .sequence-row,
  .condition-row,
  .optimization-item {
    grid-template-columns: 1fr;
  }

  .account-config-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .playground-toolbar {
    grid-template-columns: 1fr;
  }

  .playground-messages {
    height: 500px;
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid #29323d;
  }

  .conversation-workspace {
    grid-template-columns: 1fr;
  }

  .conversation-sidebar {
    border-right: 0;
    border-bottom: 1px solid #29323d;
  }

  .conversation-list {
    height: 330px;
  }

  .message-view,
  .message-empty {
    height: 540px;
    min-height: 540px;
  }
}
