#hub.with-sidebar {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  max-width: 1600px;
  padding: 24px 32px;
  min-height: calc(100vh - 130px);
}
.hub-sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid #dfebe6;
  padding: 12px 20px 20px 0;
  align-self: stretch;
}
.hub-sidebar .eyebrow {
  font-size: 10px;
  margin: 18px 10px 9px;
  letter-spacing: 0.13em;
}
.hub-sidebar a,
.hub-future {
  padding: 11px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-decoration: none;
}
.hub-sidebar a.active {
  background: #dff2e9;
  color: #075e50;
  font-weight: 650;
}
.hub-sidebar a:hover {
  background: #edf5f0;
}
.hub-sidebar small,
.hub-future small {
  margin-left: auto;
  font-size: 10px;
}
.hub-future {
  color: #788a83;
}
.hub-content {
  min-width: 0;
}
.hub-content h1 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.045em;
  margin: 18px 0;
}
.hub-content > section > p {
  color: #60786d;
}
.hub-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 35px;
}
.hub-page-card {
  display: block;
  padding: 28px;
  background: white;
  border: 1px solid #dce8e0;
  border-radius: 14px;
  text-decoration: none;
  margin-top: 18px;
}
.hub-page-card h2 {
  font-size: 21px;
}
.hub-page-card p {
  line-height: 1.7;
  color: #62746b;
}
.hub-page-card small {
  color: #507260;
}
.inbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.inbox-toolbar h2 {
  font-size: 30px;
  margin: 6px 0 10px;
}
.inbox-simulation {
  font-size: 12px;
  color: #496558;
  background: #edf5ef;
  border: 1px solid #dce8df;
  padding: 10px 14px;
  border-radius: 8px;
}
.inbox-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  border: 1px solid #dce6df;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 610px;
  margin-top: 20px;
}
.inbox-sidebar {
  border-right: 1px solid #e3eae5;
  padding: 16px;
  min-width: 0;
}
.inbox-sidebar input,
.inbox-sidebar select {
  width: 100%;
  margin-bottom: 12px;
}
.inbox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1ee;
  border-radius: 8px;
  padding: 16px 10px;
  background: white;
  cursor: pointer;
}
.inbox-row.selected {
  background: #e8f4ed;
}
.inbox-row strong {
  font-size: 13px;
}
.inbox-row p {
  grid-column: 1/-1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #60756a;
}
.inbox-row small {
  grid-column: 1/-1;
  font-size: 10px;
  color: #62776c;
}
.inbox-tag {
  font-size: 10px;
  color: #0c7054;
}
.inbox-list-empty {
  font-size: 13px;
  line-height: 1.7;
  color: #64766a;
  padding: 20px 6px;
}
.inbox-thread {
  min-width: 0;
  background: #fbfdfb;
}
.inbox-empty {
  display: flex;
  min-height: 540px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 32px;
}
.inbox-empty p {
  max-width: 330px;
  color: #6d7e73;
  font-size: 14px;
  line-height: 1.7;
}
.inbox-empty-icon {
  font-size: 34px;
  color: #16876a;
  background: #e7f5eb;
  padding: 12px 22px;
  border-radius: 20px;
}
.inbox-thread-header {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #e2ece4;
  align-items: center;
}
.inbox-thread-header small {
  display: block;
  margin-top: 5px;
  color: #6a7b70;
  font-size: 11px;
}
.inbox-thread-header > button:last-child {
  margin-left: auto;
}
.inbox-thread button:not(.primary) {
  border: 1px solid #dce8de;
  border-radius: 7px;
  background: white;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}
#inbox-messages {
  height: 340px;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overscroll-behavior: contain;
}
.inbox-bubble {
  max-width: 85%;
  padding: 13px 16px;
  border: 1px solid #dfe8df;
  border-radius: 12px;
  background: #fff;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.inbox-bubble p {
  margin: 0 0 9px;
  font-size: 14px;
  white-space: pre-wrap;
}
.inbox-bubble small {
  font-size: 10px;
  color: #66796c;
}
.inbox-bubble.outbound {
  align-self: flex-end;
  background: #e1f2e7;
  border-color: #d2e9da;
}
.inbox-bubble.failed {
  border-color: #c06d64;
}
.inbox-postback {
  display: block;
  margin-bottom: 8px;
}
#inbox-compose {
  padding: 16px 22px;
  border-top: 1px solid #e3eae5;
  background: white;
}
#inbox-compose textarea {
  width: 100%;
  margin: 8px 0;
  resize: vertical;
  box-sizing: border-box;
}
.inbox-compose-actions {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}
.inbox-compose-actions label {
  font-size: 10px;
  color: #6b7c71;
}
.inbox-compose-actions select {
  display: block;
  margin-top: 5px;
}
.inbox-tools {
  padding: 12px 22px;
  font-size: 12px;
  color: #60776a;
}
.inbox-tools form,
.inbox-create {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 16px;
}
.inbox-create {
  background: #f0f7f1;
  border-radius: 10px;
}
.inbox-create label,
.inbox-tools label {
  font-size: 12px;
  flex: 1;
  min-width: 150px;
}
.inbox-create input,
.inbox-create select,
.inbox-tools input,
.inbox-tools select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
#inbox-error {
  padding: 10px;
  color: #a3332d;
  background: #fff0ed;
}
.sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#inbox-back {
  display: none;
}
.inbox-layout input,
.inbox-layout select,
.inbox-layout textarea,
.inbox-create input,
.inbox-create select {
  border: 1px solid #d6e2d9;
  border-radius: 7px;
  background: white;
  padding: 10px;
  font: inherit;
  min-width: 0;
  box-sizing: border-box;
}
.inbox-layout button:disabled {
  opacity: 0.5;
  cursor: default;
}
#inbox-list {
  max-height: 530px;
  overflow: auto;
}
#customer-inbox button:focus-visible,
.hub-sidebar a:focus-visible {
  outline: 2px solid #08756b;
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  #hub.with-sidebar {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }
  .inbox-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .hub-overview-grid {
    grid-template-columns: 1fr;
  }
  .inbox-toolbar .button {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  #hub.with-sidebar {
    display: block;
    padding: 12px;
  }
  .hub-sidebar {
    flex-direction: row;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid #dfe8df;
    padding: 0 0 12px;
    margin-bottom: 22px;
    gap: 4px;
  }
  .hub-sidebar .eyebrow,
  .hub-future,
  .hub-sidebar small {
    display: none;
  }
  .hub-sidebar a {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px;
  }
  .inbox-layout {
    grid-template-columns: 1fr;
    min-height: 540px;
  }
  .inbox-sidebar {
    border: 0;
  }
  .inbox-thread {
    display: none;
  }
  .thread-selected .inbox-sidebar {
    display: none;
  }
  .thread-selected .inbox-thread {
    display: block;
  }
  #inbox-back {
    display: block;
  }
  .inbox-toolbar {
    align-items: start;
  }
  .inbox-toolbar .button {
    max-width: 145px;
  }
  .inbox-compose-actions {
    align-items: center;
  }
  .inbox-compose-actions .button {
    font-size: 12px;
    padding: 10px;
  }
  .inbox-bubble {
    max-width: 95%;
  }
  #inbox-messages {
    padding: 16px;
  }
  .inbox-thread-header {
    padding: 14px;
    gap: 8px;
  }
  .inbox-thread-header strong {
    font-size: 13px;
  }
}
/* Three destinations are enough for the current product. Keep navigation inline
   instead of dedicating a permanent rail to future functionality. */
#hub.with-sidebar {
  display: block;
  max-width: 1420px;
  padding: 20px 28px;
  min-height: calc(100vh - 165px);
}
.hub-sidebar.compact-nav {
  display: block;
  border: 0;
  border-bottom: 1px solid #dce7df;
  margin: 0 0 26px;
  padding: 0;
  overflow: visible;
}
.compact-nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
}
.compact-nav li {
  margin: 0;
  padding: 0;
}
.hub-sidebar.compact-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  min-height: 44px;
  font-size: 14px;
  white-space: nowrap;
}
.nav-icon {
  width: 21px;
  height: 21px;
  flex: none;
  vertical-align: middle;
}
.hub-content:focus {
  outline: none;
}
.workspace-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background: white;
  z-index: 20;
}
.workspace-skip:focus {
  top: 12px;
}
#hub.onboarding-mode {
  max-width: 1140px;
}
#onboarding-workspace {
  max-width: 760px;
  margin: 8px auto 32px;
}
.onboarding-header h2 {
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.onboarding-steps {
  counter-reset: setup;
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.onboarding-steps li {
  counter-increment: setup;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 12px;
  color: #64776a;
}
.onboarding-steps .step-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #cddfd1;
  border-radius: 50%;
  flex: none;
  background: #fff;
}
.onboarding-steps li[aria-current="step"] {
  color: #153e2e;
  font-weight: 650;
}
.onboarding-steps li[aria-current="step"] .step-number {
  background: #153e2e;
  color: white;
  border-color: #153e2e;
}
.onboarding-phone-entry {
  display: grid;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid #dce8df;
  border-bottom: 1px solid #dce8df;
}
.onboarding-phone-entry p {
  margin: 0;
}
#onboarding-workspace .onboarding-phone-entry > label:first-child {
  display: block;
}
.wizard-next {
  padding: 24px;
  background: #e7f4eb;
  border: 1px solid #d5e9dc;
  border-radius: 12px;
  margin-bottom: 28px;
}
.wizard-next h3 {
  margin-top: 0;
}
.wizard-next p {
  font-size: 14px;
  line-height: 1.6;
  color: #496354;
}
.wizard-next .text-link {
  display: inline-block;
  margin: 12px;
}
.wizard-back {
  display: inline-block;
  margin: 0 0 22px;
  text-decoration: none;
  font-size: 14px;
  color: #256d51;
}
.channel-cards {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid #dce8df;
  border-radius: 12px;
  background: white;
  text-decoration: none;
}
.channel-card > .nav-icon {
  width: 28px;
  height: 28px;
}
.channel-card h2 {
  font-size: 20px;
  margin: 0 0 6px;
}
.channel-card p {
  margin: 0 0 10px;
  color: #5a7364;
  font-size: 14px;
}
.channel-card small {
  font-size: 12px;
  color: #5a7364;
}
.channel-card > span:last-child {
  margin-left: auto;
}
.channel-card:hover {
  border-color: #7baf94;
  background: #f7fbf8;
}
.channel-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}
.hub-loading {
  padding: 30px 0;
}
.hub-loading h1 {
  font-size: 28px;
}
@media (max-width: 760px) {
  #hub.with-sidebar {
    padding: 12px;
  }
  .hub-sidebar.compact-nav {
    margin-bottom: 20px;
  }
  .compact-nav ul {
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hub-sidebar.compact-nav a {
    padding: 10px 8px;
    justify-content: center;
    font-size: 12px;
    gap: 6px;
  }
  .nav-icon {
    width: 18px;
    height: 18px;
  }
  .onboarding-steps {
    gap: 6px;
  }
  .onboarding-steps li {
    font-size: 11px;
    gap: 5px;
  }
  .onboarding-steps .step-number {
    width: 22px;
    height: 22px;
  }
  .wizard-next {
    padding: 18px;
  }
  .channel-card {
    padding: 18px;
    gap: 14px;
  }
  .channel-card p {
    font-size: 13px;
  }
  .inbox-layout {
    margin-top: 14px;
  }
  .preview-banner {
    font-size: 11px;
    gap: 6px;
    line-height: 1.4;
  }
  #onboarding-workspace {
    margin-top: 4px;
  }
}

#onboarding-devices {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.inbox-description {
  font-size: 13px;
  color: #61766a;
  margin: 4px 0 16px;
}

.phone-number-input {
  position: relative;
}
.phone-number-input > span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
#onboarding-workspace .phone-number-input input {
  padding-left: 30px;
}

#onboarding-add-device[hidden] {
  display: none;
}
#onboarding-add-device {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
#user-settings-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;
  padding: 30px;
  background: var(--paper, #f7faf6);
  color: var(--ink, #12352f);
  border: 1px solid #cad9d0;
  border-radius: 16px;
}
#user-settings-dialog::backdrop {
  background: #12352f66;
}
#user-settings-dialog form {
  display: grid;
  gap: 18px;
}
#user-settings-dialog .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#user-settings-dialog input[type="checkbox"] {
  flex-shrink: 0;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #4c685a;
  margin-bottom: 9px;
}
.message-channel {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid #aacdb9;
  background: #f5fbf7;
  border-radius: 5px;
  padding: 3px 6px;
}
.resolve-help {
  margin: 0;
  padding: 10px 20px;
  font-size: 11px;
  color: #5a7062;
  background: #f2f7f3;
  border-bottom: 1px solid #e2ece4;
}
.message-details {
  margin-top: 12px;
  border-top: 1px solid #cddfd2;
  padding-top: 9px;
  font-size: 12px;
}
.message-details summary {
  cursor: pointer;
  min-height: 24px;
  color: #285b41;
  line-height: 1.6;
}
.message-details summary:focus-visible {
  outline: 2px solid #08756b;
  outline-offset: 3px;
}
.message-detail-body {
  margin-top: 10px;
  max-width: 100%;
  font-size: 11px;
}
.message-detail-body dl {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}
.message-detail-body dt {
  font-weight: 600;
}
.message-detail-body dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.message-detail-body h4 {
  margin: 14px 0 8px;
}
.message-detail-body ol {
  padding-left: 18px;
  line-height: 1.8;
}
.message-detail-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  box-sizing: border-box;
  background: #f7faf8;
  color: #214835;
  padding: 12px;
  font-size: 10px;
  max-height: 260px;
  overflow: auto;
}
.inbox-bubble .message-provenance {
  font-size: 11px;
  line-height: 1.6;
  color: #5a7062;
  margin-top: 10px;
}
.inbox-thread-header > div {
  min-width: 0;
}
.inbox-thread-header strong {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .inbox-thread-header {
    flex-wrap: wrap;
  }
  .inbox-thread-header > button:last-child {
    font-size: 11px;
    max-width: 100%;
  }
  .resolve-help {
    padding: 10px 14px;
  }
  .message-detail-body dl {
    grid-template-columns: 65px minmax(0, 1fr);
  }
}

.inbox-thread .message-meta .message-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #4c685a;
  cursor: pointer;
}
.inbox-thread .message-meta .message-info:hover,
.inbox-thread .message-meta .message-info[aria-expanded="true"] {
  background: #f5fbf7;
  border-color: #aacdb9;
}
.message-info:focus-visible {
  outline: 2px solid #08756b;
  outline-offset: 2px;
}
.message-details[hidden] {
  display: none;
}

.message-info svg {
  flex: 0 0 16px;
}

.composer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.composer-heading .composer-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.composer-channel select {
  width: auto;
  max-width: 100%;
}
.composer-classification {
  font-size: 11px;
  line-height: 1.6;
  color: #526b5c;
  margin: 8px 0 14px;
}

.rcs-content img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 8px;
}
.rcs-content p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rcs-text-link {
  color: #24634c;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.rcs-text-link[aria-disabled="true"] {
  cursor: default;
}
.rcs-content small {
  display: block;
  margin: 6px 0;
}
.composer-media {
  margin: 10px 0;
  font-size: 12px;
}
.composer-media label {
  display: block;
  margin-top: 10px;
}
.composer-media input {
  width: 100%;
  box-sizing: border-box;
}
#inbox-preview:not(:empty) {
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #cddfd2;
  border-radius: 10px;
}

.rcs-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.rcs-chips button:disabled {
  opacity: 1;
  color: #53695e;
  cursor: default;
}
.rcs-chips a {
  padding: 8px 12px;
  border: 1px solid #aacdb9;
  border-radius: 16px;
  color: #174d39;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.rcs-call-preview {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rcs-call-preview small {
  font-size: 11px;
}
#inbox-suggestions fieldset {
  border: 1px solid #cddfd2;
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
  min-width: 0;
}
#inbox-suggestions button {
  margin: 8px 8px 0 0;
}
#inbox-suggestions fieldset > small {
  display: block;
  margin-top: 8px;
}
/* Conversation workspace: queue, history and contact context. */
.inbox-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}
.info-open .inbox-layout {
  grid-template-columns: 260px minmax(0, 1fr) 270px;
}
.inbox-sidebar {
  padding: 16px 12px;
  background: #fff;
}
.inbox-filters {
  font-size: 12px;
  border-bottom: 1px solid #e2ece4;
  padding: 0 4px 14px;
}
.inbox-filters summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0 12px;
}
.inbox-filters label {
  display: block;
  font-size: 11px;
  color: #53695e;
  margin-bottom: 5px;
}
.inbox-filters select {
  padding: 8px 10px;
}
#inbox-results {
  font-size: 11px;
  color: #53695e;
  margin: 16px 8px 4px;
}
.inbox-row {
  position: relative;
  padding: 18px 10px;
  gap: 8px;
}
.inbox-row strong {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-row.is-unread strong {
  font-weight: 750;
}
.inbox-row-time {
  font-size: 10px;
  color: #5a7062;
  align-self: center;
}
.inbox-row .inbox-tag {
  grid-column: 1 / -1;
  grid-row: 4;
  justify-self: start;
  background: #f0f5f1;
  padding: 3px 7px;
  border-radius: 12px;
}
.inbox-row.is-unread .inbox-tag {
  background: #d6f2e3;
  color: #07553e;
  font-weight: 650;
}
.inbox-thread-header {
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: white;
}
.inbox-thread-header > div {
  flex: 1 1 160px;
}
.inbox-thread-header button {
  min-height: 36px;
}
#inbox-messages {
  height: clamp(280px, 40vh, 520px);
  padding: 24px;
}
.inbox-day {
  align-self: center;
  color: #5b7163;
  background: #edf3ef;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 10px;
}
.inbox-context {
  border-left: 1px solid #e2ece4;
  background: #fff;
  padding: 20px;
  min-width: 0;
}
.inbox-context[hidden] {
  display: none;
}
.context-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.context-heading h3 {
  margin: 0;
  font-size: 15px;
}
.context-identity {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 24px 0;
  overflow-wrap: anywhere;
}
.context-identity strong {
  font-size: 15px;
}
.context-identity small {
  color: #526d5d;
  font-size: 12px;
}
.contact-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e3f1e9;
  color: #165b43;
  font-size: 18px;
}
#inbox-contact-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  font-size: 11px;
  line-height: 1.5;
}
#inbox-contact-facts dt {
  color: #61776a;
}
#inbox-contact-facts dd {
  text-align: right;
  margin: 0;
  overflow-wrap: anywhere;
}
.context-section {
  border-top: 1px solid #e3eae5;
  margin-top: 20px;
  padding-top: 20px;
}
.context-section h4,
.context-section label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 10px;
}
.context-section p {
  font-size: 12px;
  color: #526d5d;
}
.context-section input,
.context-section textarea {
  width: 100%;
  margin-bottom: 10px;
  resize: vertical;
  font-size: 12px;
}
.context-section small {
  display: block;
  color: #61776a;
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.inbox-context button,
.inbox-filters button {
  padding: 8px 10px;
  border: 1px solid #dce8de;
  background: white;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  min-height: 34px;
}
.context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#inbox-context-status {
  color: #1e644b;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 1199px) {
  .info-open .inbox-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .inbox-context {
    grid-column: 2;
    border-top: 1px solid #e2ece4;
  }
}
@media (max-width: 760px) {
  .inbox-layout,
  .info-open .inbox-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .inbox-context {
    grid-column: 1;
    padding: 20px;
    border-left: 0;
  }
  .info-open.thread-selected .inbox-thread {
    display: none;
  }
  .inbox-thread-header > div {
    flex-basis: 180px;
  }
  #inbox-messages {
    padding: 16px;
  }
  .inbox-row {
    padding: 18px 12px;
  }
}

/* Account preferences: separate content groups and balanced actions. */
#user-settings-dialog h2 {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.25;
}
#user-settings-dialog .account-profile-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
#user-settings-dialog .account-profile-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
#user-settings-dialog #profile-security {
  flex-shrink: 0;
}
#user-settings-dialog h3 {
  margin: 0 0 16px;
  font-size: 17px;
}
#user-settings-dialog .check {
  margin: 0;
  padding: 10px 0;
  line-height: 1.5;
  font-size: 14px;
}
#user-settings-dialog form {
  gap: 8px;
}
#preferences-feedback:empty {
  display: none;
}
#user-settings-dialog .account-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#user-settings-dialog .button {
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}
#user-settings-dialog .account-dialog-actions .button {
  min-width: 100px;
}
@media (max-width: 520px) {
  #user-settings-dialog {
    padding: 22px;
  }
  #user-settings-dialog .account-profile-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  #user-settings-dialog .account-dialog-actions .button {
    flex: 1;
    min-width: 0;
  }
}

/* Test context belongs to the selected conversation, not the whole workspace. */
#inbox-mode-note {
  order: 0;
  margin: 0;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--line, #dce6e0);
  font-size: 0.75rem;
  flex-shrink: 0;
}
#inbox-mode-note[hidden],
#inbox-test-tools[hidden],
#inbox-outcome-label[hidden] {
  display: none;
}
.delivery-attempts {
  padding-left: 1.2rem;
}
.delivery-attempts li {
  padding: 0.25rem 0;
}

.rcs-carousel {
  display: flex;
  gap: 0.75rem;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.rcs-rich-card {
  padding: 0.75rem;
  border: 1px solid #c9dbd2;
  border-radius: 0.75rem;
  min-width: 200px;
  max-width: 300px;
  scroll-snap-align: start;
  overflow-wrap: anywhere;
}
.rcs-rich-card > strong {
  display: block;
  margin: 0.5rem 0;
}

.message-fallback {
  border-top: 1px dashed #afc8bb;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
}
.message-fallback > strong {
  font-size: 0.75rem;
  color: #2e6752;
}

#inbox-send {
  margin-left: auto;
}
