/* Course workspace layout. ui-system.css owns the shared control sizing and spacing contract. */
small {
  color: rgb(119, 133, 154);
}
hr {
  border-width: 1px 0px 0px;
  border-style: solid none none;
  border-color: rgb(237, 240, 245) currentcolor currentcolor;
  border-image: none;
  margin: 20px 0px;
}
.wrap {
  flex-wrap: wrap;
}
.grid {
  display: grid;
  gap: 20px;
}
.two {
  grid-template-columns: repeat(2, minmax(0px, 1fr));
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: rgb(27, 51, 89);
  color: white;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: -1px;
}
.brand strong {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.nav-item svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.topbar-title {
  font-size: 12px;
  color: rgb(130, 144, 163);
}
.account-name {
  font-size: 12px;
  text-align: right;
}
.account-name small {
  display: block;
  text-transform: capitalize;
  font-size: 10px;
}
.icon-button {
  padding: 8px;
  display: grid;
  place-items: center;
  width: 44px;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.pad {
  padding: 23px;
}

.toolbar label {
  min-width: 140px;
}
.toolbar input[type="search"] {
  min-width: 200px;
}
.toolbar .grow {
  flex: 1 1 0%;
}
.toolbar .dates {
  display: flex;
  gap: 10px;
}
.badge.orange {
  color: rgb(154, 107, 25);
  background: rgb(255, 245, 226);
}
.table-scroll {
  overflow: auto;
}
tbody tr:last-child td {
  border-bottom: 0px;
}
tbody tr:hover {
  background: rgb(251, 252, 254);
}
td strong {
  color: rgb(51, 69, 94);
}
td small {
  display: block;
}
.loading {
  padding: 50px;
  text-align: center;
  color: rgb(113, 128, 150);
}
.error {
  color: rgb(172, 55, 72);
  background: rgb(255, 241, 243);
  border: 1px solid rgb(242, 211, 217);
  padding: 13px;
  border-radius: 8px;
}
.tabs button {
  border-width: 0px 0px 2px;
  border-style: none none solid;
  border-color: currentcolor currentcolor transparent;
  border-image: none;
  background: none;
  color: rgb(136, 148, 166);
  border-radius: 0px;
  white-space: nowrap;
}
.tabs button.active {
  color: rgb(36, 75, 125);
  border-bottom-color: rgb(36, 75, 125);
}

.message-media img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 6px;
}
.message-media audio {
  max-width: 100%;
  width: 240px;
}

.inbox-status,
.inbox-delivery {
  font-size: 10px;
  margin-top: 5px;
  color: rgb(135, 152, 170);
}
.delivery-error {
  color: rgb(187, 69, 84);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  font-size: 10px;
  margin: 12px 0px;
}
.facts strong {
  display: block;
  color: rgb(55, 79, 109);
  font-size: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.field-note {
  font-size: 11px;
  color: rgb(131, 146, 166);
  margin-top: 5px;
}
.proof-img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: rgb(245, 247, 250);
  margin-bottom: 16px;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0px, 0px, 0px, 0px);
  white-space: nowrap;
  border: 0px;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.import-preview {
  max-height: 300px;
  overflow: auto;
}
.technical-result {
  white-space: pre-wrap;
  font: 12px / 1.6 monospace;
  overflow-wrap: anywhere;
  background: rgb(244, 247, 251);
  padding: 15px;
  border-radius: 8px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
}
.text-link {
  border: 0px;
  background: none;
  padding: 0px;
  min-height: 32px;
  color: rgb(47, 95, 151);
  text-align: left;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 800px) {
  .topbar-title {
    color: rgb(41, 72, 105);
    font-weight: 700;
  }
  
  .two {
    grid-template-columns: 1fr;
  }
  
  
  .toolbar .dates {
    width: 100%;
  }
  .toolbar .dates label {
    flex: 1 1 0%;
    min-width: 0px;
  }
  .mobile-nav button svg {
    width: 20px;
    height: 20px;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  .form-grid .full {
    grid-column: auto;
  }
  .account-name {
    display: none;
  }
  .pad {
    padding: 18px;
  }

  .table-scroll {
    max-width: 100%;
  }
  
}
.ui-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-button > .ui-icon,
.nav-item > .ui-icon,
.mobile-nav .ui-icon {
  margin: 0px;
}
/* Adapt existing enrollment components to shared component metrics. */
.pad {
  padding: 22px;
}
.grid {
  display: grid;
  gap: 20px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.error {
  padding: 12px 16px;
  color: var(--red);
  background: #fff0f1;
  border-radius: 8px;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.card.pad,
.card.card-pad {
  min-width: 0;
}
.stack {
  gap: 16px;
}
.field-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 16px;
  line-height: 1.6;
}
.technical-result {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.settings-section {
  margin-top: 20px;
}
.settings-content {
  min-width: 0;
}
.settings-content .settings-section .settings-section {
  margin-top: 0;
}
.settings-content form > .form-field {
  margin: 16px 0;
}
.modal-body > form > .form-field {
  margin-top: 16px;
}
.modal-body > form > .check {
  margin-top: 16px;
}
.modal-body > form > .stack {
  margin-top: 16px;
}
.form-grid > .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.switch-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check input {
  width: 18px;
  height: 18px;
  flex: none;
}
.check small {
  display: block;
}
.row .icon-btn {
  flex-shrink: 0;
}
.tabs > .btn {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 17px 0;
  background: none;
  font-size: 12px;
  color: var(--muted);
}
.tabs > .btn.active {
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
}
.toolbar {
  flex-wrap: wrap;
}
.toolbar .dates {
  display: flex;
  gap: 12px;
}
.toolbar .form-field {
  margin: 0;
  min-width: 0;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
.table-scroll .btn {
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 8px;
  min-width: 40px;
  color: var(--muted);
}
.notification-popover {
  z-index: 80;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 45px #17243c26;
  width: min(420px, calc(100vw - 24px));
}
.notification-head,
.notification-footer {
  padding: 16px;
}
.notification-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  padding: 16px;
  color: var(--ink);
}
.notification-item.unread {
  background: #f0f6ff;
}
.notification-item strong,
.notification-item small,
.notification-item time {
  display: block;
}
.notification-item small {
  margin: 6px 0;
  white-space: pre-line;
}
.notification-item time {
  font-size: 10px;
  color: var(--muted);
}
.workspace-results button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 12px;
  color: var(--ink);
}
.workspace-results button:hover,
.workspace-results button:focus {
  background: #edf4ff;
}
.workspace-results strong,
.workspace-results small {
  display: block;
}
.workspace-results {
  max-height: 420px;
  overflow: auto;
  z-index: 70;
}
.notification-symbol {
  color: var(--blue);
}
.account-menu {
  z-index: 80;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: white;
  padding: 12px;
  border: 2px solid var(--blue);
}
.skip-link:focus {
  top: 10px;
}
.photo-editor-layout {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 20px 0;
}
.photo-editor-layout canvas {
  max-width: 100%;
  border-radius: 8px;
}
#profile-canvas {
  touch-action: none;
  width: min(320px, 100%);
}
.profile-photo-editor .photo-editor-preview canvas {
  border-radius: 50%;
  background: var(--bg);
}
.channel-mark svg {
  fill: currentColor;
  stroke: none;
}
.mobile-brand {
  display: none;
}
.store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main {
  min-height: calc(100vh - 71px);
}
@media (max-width: 1200px) {
  
  
  
  
  
  .photo-editor-layout {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .main {
    width: 100%;
    margin-left: 0;
    padding: 24px 16px 100px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .toolbar .dates {
    width: 100%;
  }
  .toolbar .dates .form-field {
    flex: 1;
  }
  
  
  
  
  
  
  
  
  
  
  
  .pad {
    padding: 18px;
  }
  .mobile-brand {
    display: flex;
  }
.user-label {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid > .full {
    grid-column: auto;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  
  
  .profile-photo-editor .photo-editor-preview {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.login-card {
  min-width: 0;
}
.calendar-panel {
  z-index: 150;
}
.export-menu {
  z-index: 80;
}

.settings-content .technical-grid {
  align-items: start;
}
.technical-stack .settings-section {
  margin-top: 0;
}
.technical-stack .settings-save {
  margin-top: 18px;
}
.settings-content .settings-save button {
  white-space: normal;
}
.notification-item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.workspace-results strong {
  overflow-wrap: anywhere;
}
.account-summary {
  overflow-wrap: anywhere;
}

.breakdown {
  padding: 14px 0px;
  border-bottom: 1px solid rgb(240, 242, 246);
  display: flex;
  justify-content: space-between;
}

/* Courses use the Able Fashion product card; the cover is a flat course mark. */
.course-cover {
  background: #eef0f7;
}
.course-cover .course-mark svg {
  width: 56px;
  height: 56px;
  color: var(--blue);
  stroke-width: 1.5;
}
.course-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Inbox: Able Fashion layout with Visual Ace conversation and enrollment panels. */
.chat-panel > .empty {
  margin: auto;
}
.conversation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.conversation-head {
  position: absolute;
  right: 18px;
  bottom: 92px;
  z-index: 3;
}
.conversation-head .live-new {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(23, 36, 60, 0.14);
}
.message.note {
  align-self: center;
  max-width: 80%;
}
.message.note .bubble {
  background: #fff8ec;
  border-radius: 10px;
  color: #7a4b08;
}
.message time {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
}
.message .message-media {
  margin-top: 8px;
}
.message .bubble.media-only .message-media {
  margin-top: 0;
}
.inbox-status:empty,
.inbox-delivery:empty {
  display: none;
}
.composer .inbox-status,
.composer .inbox-delivery {
  margin: 0 12px 8px;
  font-size: 11px;
  color: var(--muted);
}
.inbox-search .search-field {
  width: 100%;
}
.case-details .context-head {
  margin-bottom: 6px;
}
.case-details .context-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.case-details .context-section:last-child {
  border-bottom: 0;
}
.case-details h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-details .context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.case-details .review-item + .review-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.case-details .facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.case-details .facts strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}
.case-details .ledger-line {
  padding: 6px 0;
  font-size: 12px;
}
.case-details .ledger-line small {
  display: block;
}
.reply-text-fix,
#reply-form textarea {
  overflow-y: auto;
  scrollbar-width: none;
  resize: none;
}
#reply-form textarea::-webkit-scrollbar {
  display: none;
}
.inbox-list-head .inbox-status-filters {
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.inbox-list-head .inbox-status-filters .btn {
  padding-inline: 9px;
  flex-shrink: 0;
}
.chat-panel .chat-header > .chat-header-controls {
  flex: 0 0 auto;
  flex-basis: auto;
}
.chat-header-controls .conversation-ai-control,
.chat-header-controls .conversation-ai-row {
  flex-shrink: 0;
  min-width: max-content;
}
.usage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .usage-grid {
    grid-template-columns: 1fr;
  }
}

.page-head .actions .control-host {
  width: 135px;
}
.page-head .actions .ui-select-trigger {
  width: 100%;
}
@media (max-width: 800px) {
  .page-head .actions {
    flex-wrap: nowrap;
  }
}
/* Three enrollment stages: stack on phones instead of squeezing three cards. */
@media (max-width: 800px) {
  .fulfillment-overview:has(> :nth-child(5)) {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .fulfillment-overview:has(> :nth-child(5)) > .flow-arrow {
    display: none;
  }
  .fulfillment-overview:has(> :nth-child(5)) .fulfillment-step small {
    white-space: nowrap;
  }
}
/* Messenger/Telegram dialog: one group per connected Page or chat. */
.connection-page {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.connection-page .setting-switch {
  border-bottom: 0;
  padding-bottom: 8px;
}
.connection-actions {
  gap: 8px;
  flex-wrap: wrap;
}
/* Sign-in cards: workspace mark above the title, as in Able Fashion. */
.login-mark {
  margin-bottom: 30px;
}
.login-card .mfa-secret {
  overflow-wrap: anywhere;
  margin: 24px 0;
}
/* Technical Setup connection groups and the read-only channel status dialog. */
.connection-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 4px;
}
.connection-status-list {
  margin-top: 8px;
}
.connection-status-list .detail-line small {
  display: block;
  color: var(--muted);
}
/* Remove member: a separated danger row in Manage member, then a confirmation that lists what is deleted. */
.member-remove {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #f0d8dc;
  border-radius: 12px;
  background: #fffafa;
}
.member-remove .sub {
  margin: 2px 0 0;
}
.member-remove .btn {
  flex: none;
}
.remove-summary > p {
  margin: 0 0 14px;
}
.remove-summary .remove-list-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.remove-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 14px;
  list-style: none;
  border: 1px solid #f0d8dc;
  border-radius: 12px;
  background: #fffafa;
}
.remove-list li {
  position: relative;
  padding-left: 18px;
}
.remove-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
@media (max-width: 640px) {
  .member-remove {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Inbox filters: channel tiles and status chips share one 4-column grid,
   one height rhythm and one selected style. */
.inbox-list-head .channel-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 8px;
}
.inbox-list-head .channel-filter {
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}
.inbox-list-head .inbox-status-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}
.inbox-list-head .inbox-status-filters .btn {
  justify-content: center;
  height: 30px;
  min-height: 30px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
}
.inbox-list-head .channel-filter:hover,
.inbox-list-head .inbox-status-filters .btn:hover {
  border-color: #c3cfdb;
  color: var(--ink);
}
.inbox-list-head .channel-filter.is-selected,
.inbox-list-head .inbox-status-filters .btn[aria-pressed="true"] {
  border-color: #000451;
  background: #eef1fa;
  color: #000451;
}

/* Search: a quiet, compact field instead of a large outlined box. */
.search-field input:not([type="checkbox"]):not([type="radio"]) {
  height: 36px;
  min-height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f3f5f8;
  box-shadow: none;
  font-size: 12.5px;
}
.search-field input:not([type="checkbox"]):not([type="radio"]):hover {
  background: #edf0f4;
}
.search-field input:not([type="checkbox"]):not([type="radio"]):focus {
  border-color: #c9d4df;
  background: #fff;
  box-shadow: 0 0 0 3px #0004510f;
  outline: none;
}
.search-field > svg.icon {
  left: 11px;
  width: 15px;
  height: 15px;
  color: #8c99ac;
}
.toolbar .search-field {
  flex: 0 1 300px;
  max-width: 300px;
}
@media (max-width: 640px) {
  .toolbar .search-field {
    flex: 1 1 100%;
    max-width: none;
  }
}
/* Toolbars inside a table card get inner spacing so the quiet search sits inside the card. */
.card > div > .toolbar,
.card > .toolbar {
  align-items: center;
  margin-bottom: 0;
  padding: 12px 16px;
}

/* Hold a chat to select it (5.11.0): no text selection or phone callout while holding. */
#queue-list .conversation-row {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.inbox-list .chat-selection-bar {
  min-height: 44px;
}
/* What a deletion keeps reads as safe, not as another thing removed. */
.remove-list.keep-list {
  border-color: #d3e9df;
  background: #f6fbf8;
}
.remove-list.keep-list li::before {
  background: var(--green);
}

/* TEST runs (Agency Admin only, test-runs.js). */
.conversation-channel.test-mark {
  font-size: 9px;
  font-weight: 700;
  color: #8a4b08;
  background: #fff3e0;
}
.test-run-line {
  margin: 4px 0 0;
  font-size: 11px;
  color: #8a4b08;
}
.test-banner {
  background: #fff8ed;
  border-color: #f0e0c8;
}
.test-run-name {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.test-media {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}
.test-panel,
.test-report {
  display: grid;
  gap: 14px;
}
.test-create {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.test-create .form-field {
  flex: 1;
  min-width: 200px;
  margin: 0;
}
.test-runs {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
}
.test-run .between {
  gap: 12px;
  flex-wrap: wrap;
}
.test-token .row,
.test-report > .row {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.test-token-new {
  background: #f0f8f3;
  border-color: #d8eade;
}
.test-token-value {
  width: 100%;
  margin: 10px 0;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.test-channel-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #fff3e0;
  color: #8a4b08;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.channel-menu .channel-menu-list button > span.test-channel-mark {
  flex: none;
  width: 16px;
  height: 16px;
}
.test-runs-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f3f5f7;
  color: #46566e;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.test-runs-link:hover {
  background: #fff;
  color: var(--primary, #000451);
}
.test-runs-link .icon {
  width: 14px;
  height: 14px;
}

/* Agent packs: long approved text the sales agent reads in full. */
.form-field textarea.pack-text {
  min-height: 360px;
  line-height: 1.6;
  resize: vertical;
}
