:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #242426;
  background: #fafafa;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #e1e1e5;
  border-radius: 9px;
  padding: 10px 15px;
  background: white;
  color: inherit;
}
button:hover {
  background: #f4f4f6;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #29292c;
  border-color: #29292c;
  color: white;
}
.primary:hover {
  background: #45454a;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e1e1e5;
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: inherit;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label {
  display: block;
  font-size: 13px;
  margin: 0 0 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
.muted {
  color: #83838b;
  font-size: 12px;
}
.mark {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: #242426;
  text-decoration: none;
}
.mark:first-letter {
  color: #ff583d;
}
.quiet {
  border: 0;
  background: none;
  text-align: left;
  color: #76767e;
  padding: 8px 0;
}
.badge {
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 600;
  border: 1px solid #e1e1e5;
  border-radius: 5px;
  padding: 5px 7px;
  display: inline-block;
  color: #777;
}
.eyebrow {
  font-size: 10px;
  color: #92929a;
  letter-spacing: 1.6px;
  margin-bottom: 8px;
}
#login {
  max-width: 500px;
  margin: 14vh auto;
  padding: 30px;
}
#login .mark {
  margin-bottom: 70px;
}
#login h1 {
  font-size: 48px;
  line-height: 1.12;
}
#login a {
  display: block;
  margin: 24px 0;
  color: #666;
}
#console {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #e7e7eb;
  background: #f5f5f7;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
aside .mark {
  margin-bottom: 30px;
}
aside label {
  font-size: 9px;
  letter-spacing: 1.2px;
  margin-bottom: 0;
}
nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}
nav button {
  border: 0;
  background: none;
  text-align: left;
  color: #73737b;
  padding: 11px 12px;
}
nav button.active {
  background: #e8e8ed;
  color: #222;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
main {
  padding: 38px 50px;
  min-width: 0;
  max-width: 1700px;
  width: 100%;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 36px;
}
header h1 {
  margin-bottom: 0;
}
header select {
  max-width: 210px;
}
#notice {
  padding: 14px 18px;
  background: #edf4ff;
  border: 1px solid #cbdfff;
  border-radius: 10px;
  margin-bottom: 20px;
  white-space: pre-wrap;
}
#notice.error {
  background: #fff1ee;
  border-color: #f5d4cd;
  color: #993b28;
}
.card {
  background: white;
  border: 1px solid #e7e7ec;
  border-radius: 15px;
  padding: 26px;
  margin-bottom: 20px;
}
.card p:last-child {
  margin-bottom: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}
.field {
  margin-bottom: 19px;
}
.field:last-child {
  margin-bottom: 0;
}
.field small {
  display: block;
  color: #92929a;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 7px;
}
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #f3f3f7;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 22px;
}
.card.app {
  cursor: pointer;
  min-height: 210px;
  transition: transform 0.15s;
}
.card.app:hover {
  transform: translateY(-3px);
  border-color: #c8c8d0;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid #e7e7eb;
  padding-bottom: 12px;
}
.tabs button {
  border: 0;
  color: #888;
}
.tabs button.active {
  color: #222;
  background: #ededf1;
}
.design {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr);
  gap: 50px;
}
.preview-space {
  background: #f0f0f3;
  border-radius: 20px;
  padding: 35px 20px;
  min-height: 640px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 20px;
  position: sticky;
  top: 30px;
}
.phone {
  width: 290px;
  height: 565px;
  background: #fff;
  border: 7px solid #29292d;
  border-radius: 42px;
  box-shadow: 0 14px 45px #00000014;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #171717;
}
.phone-status {
  padding: 13px 22px 6px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 11px;
}
.phone-header {
  padding: 17px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #0000000c;
}
.phone-messages {
  padding: 22px 15px;
  flex: 1;
  overflow: auto;
}
.phone-welcome {
  text-align: center;
  margin: 30px 0;
  color: inherit;
}
.phone-welcome h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.phone-welcome p {
  font-size: 12px;
  opacity: 0.6;
}
.bubble {
  padding: 11px 14px;
  border-radius: 17px;
  max-width: 90%;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.out {
  margin-left: auto;
  background: #007aff;
  color: white;
}
.bubble.in {
  background: #f1f1f4;
  color: #171717;
}
.phone-composer {
  padding: 14px;
  font-size: 11px;
  opacity: 0.6;
  border-top: 1px solid #0000000c;
}
.preview-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 310px;
}
.preview-controls button {
  padding: 7px 9px;
  font-size: 11px;
}
pre {
  background: #f5f5f8;
  padding: 20px;
  border-radius: 10px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
}
.inbox {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  border: 1px solid #e4e4e9;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  min-height: 620px;
}
.conversation-list {
  border-right: 1px solid #e7e7eb;
  padding: 15px;
}
.conversation-list button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  margin: 5px 0;
  padding: 15px 10px;
}
.conversation-list .selected {
  background: #ededf3;
}
.conversation-list strong,
.conversation-list small {
  display: block;
}
.conversation-list small {
  color: #999;
  margin-top: 6px;
}
.conversation {
  padding: 25px;
  min-width: 0;
}
.messages {
  min-height: 240px;
  max-height: 45vh;
  overflow: auto;
  margin: 25px 0;
}
.conversation .bubble {
  max-width: 80%;
  font-size: 14px;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: #888;
}
.member {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.switch {
  width: auto;
}
dialog {
  border: 1px solid #e5e5e9;
  border-radius: 18px;
  padding: 30px;
  width: min(480px, calc(100vw - 35px));
  box-shadow: 0 30px 100px #0002;
}
dialog::backdrop {
  background: #0005;
}
.danger {
  color: #ad4c3a;
}
.wide {
  grid-column: 1/-1;
}
.status-dot {
  color: #a6a6ae;
  font-size: 11px;
}
.hero {
  padding: 20px 0 35px;
  max-width: 650px;
}
.hero h2 {
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -1px;
}
.hero p {
  color: #8a8a92;
  font-size: 15px;
}
@media (max-width: 1100px) {
  main {
    padding: 30px;
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .design {
    gap: 20px;
  }
  .inbox {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  #console {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    height: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid #ddd;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  aside .mark {
    margin-bottom: 0;
  }
  aside label,
  aside .quiet {
    display: none;
  }
  nav {
    grid-column: 1/-1;
    display: flex;
    overflow: auto;
    margin: 0;
  }
  nav button {
    white-space: nowrap;
  }
  .sidebar-bottom {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
  }
  .sidebar-bottom select {
    width: 130px;
  }
  .sidebar-bottom #sign-out {
    display: block;
    margin-left: auto;
  }
  main {
    padding: 25px 18px;
  }
  .grid,
  .grid.three,
  .design {
    grid-template-columns: 1fr;
  }
  .preview-space {
    position: static;
  }
  .inbox {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    border-right: 0;
    border-bottom: 1px solid #ddd;
    max-height: 240px;
    overflow: auto;
  }
  .conversation {
    padding: 18px;
  }
  header {
    gap: 12px;
  }
  header select {
    max-width: 150px;
  }
  h1 {
    font-size: 26px;
  }
}
input[type="color"] {
  height: 42px;
  padding: 5px 7px;
  cursor: pointer;
}
aside {
  overflow: auto;
}
.sidebar-bottom {
  padding-top: 22px;
  flex-shrink: 0;
}
#demo-label {
  background: #fff7e8;
  border-color: #e9d8af;
  color: #91642b;
}
.phone-status {
  white-space: pre;
  font-size: 10px;
}
.phone .card {
  padding: 18px;
}
@media (max-width: 800px) {
  .preview-space {
    order: -1;
    min-height: 0;
    padding: 25px 15px;
  }
  .phone {
    height: 490px;
  }
}
.design {
  grid-template-columns: 145px minmax(290px, 1fr) minmax(230px, 310px);
  gap: 25px;
  align-items: start;
}
.element-menu {
  display: grid;
  gap: 5px;
  padding-top: 12px;
}
.element-menu button {
  border: 0;
  background: none;
  text-align: left;
  color: #888;
  padding: 12px;
}
.element-menu button.active {
  background: #ececf1;
  color: #222;
  font-weight: 600;
}
.property-inspector .card {
  padding: 22px;
  background: #fff;
}
.property-inspector .field {
  margin-bottom: 22px;
}
.property-inspector .card:has(.field:not([hidden])) {
  display: block;
}
.design-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px 0;
  border-top: 1px solid #e8e8ed;
  border-bottom: 1px solid #e8e8ed;
  position: sticky;
  top: 0;
  background: #fafafaf5;
  z-index: 2;
}
.design-toolbar .actions {
  margin: 0;
  align-items: center;
}
.design-toolbar .field {
  margin: 0;
  max-width: 140px;
}
.design-toolbar label {
  display: none;
}
.design .preview-space {
  padding: 30px 12px;
  min-height: 650px;
  position: static;
}
.design .phone {
  width: 275px;
  height: 550px;
}
.design .preview-controls {
  justify-content: center;
}
.design .preview-space > .muted {
  text-align: center;
  font-size: 10px;
}
.property-inspector small {
  font-size: 10px;
}
@media (max-width: 1150px) and (min-width: 801px) {
  main {
    padding: 28px 22px;
  }
  .design {
    grid-template-columns: 115px minmax(280px, 1fr) minmax(190px, 240px);
    gap: 14px;
  }
  .property-inspector .card {
    padding: 15px;
  }
}
@media (max-width: 800px) {
  .design {
    grid-template-columns: 1fr;
  }
  .element-menu {
    display: flex;
    overflow: auto;
    padding: 0;
    order: -2;
  }
  .element-menu .eyebrow {
    display: none;
  }
  .element-menu button {
    white-space: nowrap;
  }
  .design-toolbar {
    position: static;
    flex-wrap: wrap;
    gap: 12px;
  }
  .design-toolbar .actions {
    justify-content: flex-start;
  }
  .design-toolbar .actions .muted {
    width: 100%;
  }
  .design .preview-space {
    min-height: 0;
  }
  .property-inspector {
    order: 1;
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  background: #19191d;
  color: #eee;
}
html[data-theme="dark"] body {
  background: #19191d;
}
html[data-theme="dark"] aside {
  background: #222228;
  border-color: #393940;
}
html[data-theme="dark"] .mark {
  color: #f5f5f7;
}
html[data-theme="dark"] button,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #2a2a31;
  border-color: #44444e;
  color: #eee;
}
html[data-theme="dark"] .primary {
  background: #eee;
  color: #222;
  border-color: #eee;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .inbox,
html[data-theme="dark"] .property-inspector .card {
  background: #24242a;
  border-color: #41414a;
}
html[data-theme="dark"] nav button.active,
html[data-theme="dark"] .element-menu button.active {
  background: #3c3c45;
  color: #fff;
}
html[data-theme="dark"] .design-toolbar {
  background: #19191df5;
  border-color: #444;
}
html[data-theme="dark"] .preview-space,
html[data-theme="dark"] pre,
html[data-theme="dark"] .app-icon {
  background: #303039;
}
html[data-theme="dark"] .conversation-list .selected {
  background: #41414c;
}
html[data-theme="dark"] #notice {
  background: #29374e;
  border-color: #3c5275;
}
html[data-theme="dark"] #notice.error {
  background: #4e2e29;
  border-color: #75443c;
  color: #ffd6cf;
}
html[data-theme="dark"] dialog {
  background: #24242a;
  color: #eee;
  border-color: #444;
}
html[data-theme="dark"] .tabs {
  border-color: #444;
}
.billing-mode {
  align-self: flex-start;
}
.billing-active {
  color: #168056;
  font-weight: 600;
}
.billing-plan-price {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 18px 0;
}
.billing-metrics {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}
.billing-metric h3 {
  margin: 0;
  font-size: 14px;
}
.billing-metric strong {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.billing-meter {
  height: 7px;
  overflow: hidden;
  background: #ededf2;
  border-radius: 5px;
  margin-top: 12px;
}
.billing-meter > span {
  display: block;
  height: 100%;
  background: #2e806a;
  border-radius: 5px;
}
.billing-meter.at-limit > span {
  background: #d7774a;
}
.billing-limit-note {
  font-size: 11px;
  margin: 7px 0 0;
}
.billing-reset {
  margin-top: 26px !important;
}
.billing-plans-heading {
  margin: 34px 0 22px;
}
.billing-plans-heading h2 {
  margin-bottom: 8px;
}
.billing-plan-limits {
  padding: 0;
  list-style: none;
  line-height: 2.1;
  color: #75757f;
  margin: 24px 0;
}
.billing-current-plan {
  border-color: #7da997;
  box-shadow: 0 0 0 1px #7da997;
}
.billing-plans .card {
  display: flex;
  flex-direction: column;
}
.billing-plans .card button {
  margin-top: auto;
  align-self: flex-start;
}
.billing-current-plan button:disabled {
  opacity: 1;
  cursor: default;
  background: #eef5f1;
  border-color: #e0e9e3;
  color: #47735b;
}
html[data-theme="dark"] .billing-meter {
  background: #41414c;
}
html[data-theme="dark"] .billing-current-plan button:disabled {
  background: #2b4237;
  color: #b0d4bd;
  border-color: #466451;
}
html[data-theme="dark"] .billing-active {
  color: #9acbb4;
}

.data-conversation { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; gap: 5px; margin-bottom: 6px; }
.data-conversation small { color: #76767b; max-width: 100%; overflow-wrap: anywhere; }
#content dl { display: grid; grid-template-columns: minmax(100px, 1fr) auto; gap: 6px 20px; }
#content dd { margin: 0; font-variant-numeric: tabular-nums; }

.team-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(340px, 1.2fr);
  gap: 24px;
  align-items: start;
}
.team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #e9eaee;
}
.team-member-identity,
.team-profile-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.team-member-identity strong,
.team-member-identity small {
  display: block;
  overflow-wrap: anywhere;
}
.team-member-identity small {
  color: #70747d;
  margin-top: 4px;
  font-size: 12px;
}
.team-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf1f7;
  color: #475267;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.team-avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}
.team-profile-preview {
  margin: 20px 0;
}
.team-member-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-member-actions .field {
  margin: 0;
}
.team-member-actions label {
  font-size: 11px;
  color: #70747d;
}
.team-member-actions select {
  min-width: 110px;
}
.team-member-actions button {
  white-space: nowrap;
}
.team-invitation {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid #e9eaee;
}
.team-invitation small {
  color: #70747d;
}
.team-advanced {
  padding: 20px 24px;
}
.team-advanced summary {
  cursor: pointer;
  font-weight: 600;
}
.inbox-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin-bottom: 8px;
  opacity: 0.9;
}
.inbox-author .team-avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
}
.inbox-author small {
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 9px;
}
@media (max-width: 1100px) {
  .team-layout {
    grid-template-columns: 1fr;
  }
  .team-member-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 550px) {
  .team-member {
    align-items: flex-start;
    flex-direction: column;
  }
  .team-member-actions {
    width: 100%;
    justify-content: space-between;
  }
}
html[data-theme="dark"] .team-avatar {
  background: #303845;
  color: #e6edf8;
}
html[data-theme="dark"] .team-member,
html[data-theme="dark"] .team-invitation {
  border-color: #343844;
}

/* Explicit operator consent; independent from customer push settings. */
#operator-notifications { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #e1e1e5; border-radius: 12px; }
#operator-notifications small { display: block; font-size: 11px; line-height: 1.45; opacity: .8; }
#operator-notifications button { white-space: normal; }
#operator-notifications small:last-child { grid-column: 1 / -1; }

.assistant-image-actions { display:flex; align-items:center; gap:12px; margin:8px 0 16px; }
.assistant-image-actions img { width:48px; height:48px; object-fit:contain; border-radius:50%; }
.assistant-image-actions img[hidden] { display:none; }
