@import "./tenant-page-styles.css";
.tenant-console {
  --ink: #182233;
  --muted: #59667a;
  --line: #e0e5ec;
  --paper: #f5f6f8;
  --panel: #fff;
  --deep: #182233;
  --green: #3158d4;
  --mint: #edf1ff;
  --gold: #805313;
  --blue: #3158d4;
  --red: #a62a40;
  --shadow: none;
  --tenant-brand: #3158d4;
}
.tenant-console .tenant-business-tag {
  font-size: 11px;
  color: #59667a;
  background: #f5f6f8;
  border: 1px solid #e0e5ec;
  border-radius: 5px;
  padding: 4px 7px;
  max-width: 280px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.tenant-console .topbar {
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tenant-console .topbar > div {
  min-width: 0;
}
.tenant-console .topbar h1 {
  font-size: 25px;
  letter-spacing: -0.7px;
  font-weight: 650;
  margin: 0 0 5px;
  line-height: 1.3;
}
.tenant-console .subtitle {
  font-size: 13px;
  color: #59667a;
  line-height: 1.5;
  margin: 0;
}
.tenant-console .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.tenant-console
  :is(.btn, .btn-primary, .btn-secondary, .btn-remove, .resume-ai-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  height: auto;
  max-width: 100%;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 6px;
  color: #182233;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  box-shadow: none;
  cursor: pointer;
}
.tenant-console :is(.btn.primary, .btn-primary) {
  background: #3158d4;
  border-color: #3158d4;
  color: #fff;
}
.tenant-console :is(.btn, .btn-secondary):hover:not(:disabled) {
  background: #edf1ff;
  border-color: #c7d2f2;
}
.tenant-console :is(.btn.primary, .btn-primary):hover:not(:disabled) {
  background: #2545b2;
  color: #fff;
}
.tenant-console button:disabled {
  opacity: 0.55;
  cursor: default;
}
.tenant-console :is(input, textarea, select) {
  min-width: 0;
  max-width: 100%;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.tenant-console
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.tenant-console textarea,
.tenant-console select {
  width: 100%;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #cbd3df;
  color: #182233;
}
.tenant-console :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: #3158d4;
  flex-shrink: 0;
}
.tenant-console :focus-visible {
  outline: 3px solid #8da6ff;
  outline-offset: 3px;
}
.tenant-console a:focus-visible {
  border-radius: 3px;
}
.tenant-console label {
  font-weight: 500;
}
.tenant-console .form-group {
  gap: 6px;
  min-width: 0;
}
.tenant-console .form-group label {
  font-size: 12px;
}
.tenant-console .form-group small {
  color: #59667a;
  font-size: 11px;
}
.tenant-console :is(h3, h4) {
  color: #182233;
}
.tenant-console
  :is(.config-description, .model-description, .channel-description) {
  font-size: 12px;
  color: #59667a;
}
.tenant-console .panel {
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 10px;
  box-shadow: none;
  min-width: 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.tenant-console .panel-head {
  padding: 13px 16px;
  border-bottom: 1px solid #e0e5ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.tenant-console .panel-head h2 {
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.tenant-console .summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.tenant-console .metric {
  padding: 14px 16px;
  background: #fff;
  border: 0;
  border-right: 1px solid #e0e5ec;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}
.tenant-console .metric:last-child {
  border-right: 0;
}
.tenant-console .metric label {
  font-size: 11px;
  color: #59667a;
  margin-bottom: 7px;
}
.tenant-console .metric strong {
  font-size: 25px;
  font-weight: 650;
  line-height: 1.3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  letter-spacing: -0.6px;
}
.tenant-console .metric span {
  font-size: 11px;
  font-weight: 400;
  color: #59667a;
  letter-spacing: 0;
}
.tenant-console .workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}
.tenant-console .queue {
  padding: 0;
  gap: 0;
}
.tenant-console .item {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #e0e5ec;
  border-radius: 0;
  padding: 14px 16px;
  background: #fff;
  text-align: left;
  color: #182233;
  width: 100%;
  cursor: pointer;
}
.tenant-console .item:last-child {
  border-bottom: 0;
}
.tenant-console .item:hover,
.tenant-console .item.selected {
  background: #f4f6ff;
  box-shadow: none;
}
.tenant-console .item > div {
  min-width: 0;
}
.tenant-console .item h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
}
.tenant-console .item p {
  font-size: 12px;
  color: #59667a;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.tenant-console .priority {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  margin: 0;
  background: #8d9db7;
}
.tenant-console .priority.high {
  background: #a62a40;
}
.tenant-console .priority.medium {
  background: #b17a26;
}
.tenant-console
  :is(.pill, .status, .status-badge, .role-badge, .ai-status-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 23px;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
  box-shadow: none;
}
.tenant-console .pill,
.tenant-console .status.ai {
  background: #edf1ff;
  color: #3158d4;
}
.tenant-console .status.staff {
  background: #fff4df;
  color: #805313;
}
.tenant-console .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px 16px 0;
  border-bottom: 1px solid #e0e5ec;
}
.tenant-console .tab {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 0;
  background: transparent;
  color: #59667a;
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
}
.tenant-console .tab.active {
  background: transparent;
  color: #3158d4;
  border-bottom-color: #3158d4;
}
.tenant-console .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e0e5ec;
}
.tenant-console .info-card {
  background: #f8f9fb;
  border: 0;
  border-radius: 7px;
  padding: 12px;
  min-width: 0;
}
.tenant-console .info-card label {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #59667a;
  font-weight: 500;
}
.tenant-console .info-card strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.tenant-console .info-card p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.tenant-console .thread-detail-header {
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.tenant-console .thread-detail-header > div {
  min-width: 0;
}
.tenant-console .thread-detail-header p {
  font-size: 12px;
  color: #59667a;
}
.tenant-console .thread-messages {
  padding: 16px;
  gap: 12px;
  background: #fafbfe;
  max-height: 500px;
  overflow: auto;
  scroll-behavior: auto;
}
.tenant-console .message-content {
  max-width: min(680px, 90%);
  padding: 10px 12px;
  border-radius: 8px;
  min-width: 0;
  box-shadow: none;
}
.tenant-console .message-text {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tenant-console .message-label {
  font-size: 11px;
  font-weight: 500;
}
.tenant-console .thread-reply-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
}
.tenant-console .thread-reply-box textarea {
  min-height: 84px;
  resize: vertical;
}
.tenant-console
  :is(.thread-alert, .alert-error, .team-members-error, .thread-list-error) {
  padding: 12px;
  border: 1px solid #f2d5dc;
  background: #fff0f2;
  color: #a62a40;
  border-radius: 7px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.tenant-console .alert-success {
  padding: 12px;
  background: #eaf7f1;
  color: #166b52;
  border: 1px solid #cfe9dd;
  border-radius: 7px;
  margin: 12px 0;
}
.tenant-console
  :is(.thread-detail-state, .team-members-empty, .team-members-loading) {
  padding: 28px 16px;
  color: #59667a;
  text-align: center;
}
.tenant-console .staff-takeover-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff8e9;
  border: 0;
  border-bottom: 1px solid #f1e3c5;
  color: #805313;
  border-radius: 0;
}
.tenant-console .staff-takeover-content {
  display: flex;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.tenant-console .staff-takeover-message {
  font-size: 12px;
}
.tenant-console .staff-takeover-banner button {
  flex-shrink: 0;
  color: #805313;
  border-color: #e3d2af;
}
.tenant-console .team-members {
  max-width: 100%;
  overflow: auto;
}
.tenant-console .team-members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.tenant-console .team-members-table th {
  padding: 10px 12px;
  background: #f8f9fb;
  font-size: 11px;
  color: #59667a;
  font-weight: 500;
  white-space: nowrap;
}
.tenant-console .team-members-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e5ec;
  max-width: 350px;
  overflow-wrap: anywhere;
}
.tenant-console :is(.model-grid, .provider-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}
.tenant-console :is(.model-card, .provider-option) {
  min-width: 0;
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 7px;
  box-shadow: none;
  padding: 12px;
}
.tenant-console :is(.model-card.selected, .provider-option.selected) {
  background: #edf1ff;
  border-color: #3158d4;
}
.tenant-console .model-card h4 {
  font-size: 13px;
  font-weight: 600;
}
.tenant-console .model-card p {
  font-size: 12px;
  color: #59667a;
}
.tenant-console .badge {
  background: #f0f2f6;
  color: #59667a;
  border-radius: 5px;
  font-size: 11px;
}
.tenant-console .channel-card {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #e0e5ec;
  border-radius: 7px;
  padding: 14px;
  min-width: 0;
}
.tenant-console .channel-info {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.tenant-console .channel-info > div {
  min-width: 0;
}
.tenant-console .channel-info p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.tenant-console .channel-icon {
  background: #edf1ff;
  color: #3158d4;
  border-radius: 7px;
  flex-shrink: 0;
}
.tenant-console .channel-status {
  font-size: 12px;
  flex-wrap: wrap;
}
.tenant-console .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tenant-console .general-settings {
  gap: 16px;
}
.tenant-console pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.tenant-console .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tenant-console .tenant-form-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
}
.tenant-console .tenant-builder-preview {
  position: sticky;
  top: 16px;
}
.tenant-console .tenant-two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tenant-console .tenant-wrap-row {
  flex-wrap: wrap;
  min-width: 0;
}
.tenant-console .public-preview :is(input, textarea, select) {
  background: #fff;
}
.tenant-console .public-preview button {
  white-space: normal;
  height: auto;
  min-height: 40px;
  padding: 8px;
}
.tenant-console .public-preview {
  min-width: 0;
}
.tenant-console .public-preview * {
  min-width: 0;
}
.tenant-console .public-preview strong {
  overflow-wrap: anywhere;
}
.tenant-auth {
  min-height: 100dvh !important;
  background:
    radial-gradient(ellipse at top, #e8edff, transparent 65%), #f5f6f8 !important;
  padding: 24px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}
.tenant-auth > div {
  justify-self: center;
  min-width: 0;
  max-width: min(100%, 540px);
  width: 100%;
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 14px;
  box-shadow: 0 16px 60px #1822330a;
  padding: 28px;
}
.tenant-auth .brand {
  padding: 0;
  display: flex;
  gap: 9px;
}
.tenant-auth .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #3158d4;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.tenant-auth .brand-text strong {
  color: #182233;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.tenant-auth h1 {
  font-size: 25px !important;
  font-weight: 650 !important;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
.tenant-auth h3 {
  font-size: 14px;
  font-weight: 600;
}
.tenant-auth p {
  line-height: 1.5;
}
.tenant-auth form {
  min-width: 0;
}
.tenant-auth :is(a) {
  text-decoration: none;
}
.tenant-auth :is(button, a) {
  max-width: 100%;
  white-space: normal;
}
.tenant-auth .tenant-auth-plan {
  cursor: pointer;
  min-width: 0;
}
.tenant-public {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.tenant-public * {
  box-sizing: border-box;
  min-width: 0;
}
.tenant-public .panel {
  box-shadow: 0 12px 40px #1822330a;
  border-radius: 12px;
  max-width: 100%;
}
.tenant-public :is(input, select, textarea, button) {
  max-width: 100%;
  font: inherit;
}
.tenant-public :focus-visible {
  outline: 3px solid #8da6ff;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .tenant-console .tenant-form-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .tenant-console .tenant-builder-preview {
    position: static;
  }
}
@media (max-width: 900px) {
  .tenant-console .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .tenant-console .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .tenant-console .topbar {
    margin-bottom: 18px;
  }
  .tenant-console .topbar h1 {
    font-size: 23px;
  }
  .tenant-console .topbar .actions {
    width: 100%;
  }
  .tenant-console .tenant-business-tag {
    max-width: 140px;
    font-size: 10px;
  }
  .tenant-console :is(.detail-grid, .form-row, .tenant-two-columns) {
    grid-template-columns: minmax(0, 1fr);
  }
  .tenant-console .item {
    grid-template-columns: 6px minmax(0, 1fr);
    gap: 8px;
  }
  .tenant-console .item > .status {
    grid-column: 2;
    justify-self: start;
  }
  .tenant-console .thread-reply-box {
    grid-template-columns: minmax(0, 1fr);
  }
  .tenant-console .thread-reply-box button {
    justify-self: end;
  }
  .tenant-console .tenant-builder-preview {
    padding: 12px;
  }
  .tenant-console .thread-detail-header {
    padding: 14px;
  }
  .tenant-auth {
    padding: 16px !important;
  }
  .tenant-auth > div {
    padding: 22px;
  }
  .tenant-console .tenant-wrap-row {
    align-items: flex-start;
  }
  .tenant-console .tenant-wrap-row > span,
  .tenant-console .tenant-wrap-row > strong {
    min-width: 0;
  }
  .tenant-console .tenant-form-question-top {
    flex-wrap: wrap;
  }
  .tenant-console .public-preview {
    padding: 10px;
  }
  .tenant-public {
    padding: 16px !important;
  }
  .tenant-public .panel {
    padding: 20px !important;
  }
}
@media (max-width: 400px) {
  .tenant-console .tenant-business-tag {
    max-width: 110px;
  }
  .tenant-console .admin-breadcrumb {
    font-size: 11px;
    gap: 5px;
  }
  .tenant-console .item {
    padding: 12px;
  }
  .tenant-console .panel-head {
    padding: 12px;
  }
  .tenant-console .metric {
    padding: 12px;
  }
  .tenant-auth > div {
    padding: 20px;
  }
  .tenant-auth h1 {
    font-size: 23px !important;
  }
}
@media (pointer: coarse) {
  .tenant-console
    :is(.btn, .btn-primary, .btn-secondary, .btn-remove, .resume-ai-btn, .tab) {
    min-height: 44px;
  }
  .tenant-console :is(input, select, textarea),
  .tenant-public :is(input, select, textarea) {
    font-size: 16px;
  }
}
.tenant-console .tenant-inquiry-summary {
  padding: 16px;
  display: grid;
  gap: 16px;
  font-size: 13px;
  color: #59667a;
}
.tenant-console .tenant-settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.tenant-console .tenant-main > section {
  min-width: 0;
}
@media (max-width: 760px) {
  .tenant-console .tenant-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tenant-console .tenant-auth-form {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.tenant-auth .admin-brand {
  margin-bottom: 24px;
}
.tenant-auth h1 {
  margin: 6px 0 10px;
}
.tenant-auth .tenant-auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e5ec;
  font-size: 12px;
  color: #59667a;
}
.tenant-onboarding-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.tenant-onboarding-step {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #f8f9fb;
  border-radius: 8px;
  min-width: 0;
}
.tenant-step-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #edf1ff;
  color: #3158d4;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.tenant-onboarding-step > div {
  min-width: 0;
}
.tenant-onboarding-step p {
  font-size: 12px;
  margin: 5px 0 8px;
}
.tenant-console .toggle-switch {
  border: 0;
  flex-shrink: 0;
}
.tenant-console
  :is(
    .tp-settings-primaryButton,
    .tp-settings-secondaryButton,
    .tp-settings-dangerButton
  ) {
  min-height: 34px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: normal;
  text-align: center;
}
.tenant-console .tp-settings-secondaryButton {
  background: #fff;
  border: 1px solid #e0e5ec;
  color: #182233;
}
.tenant-console .tp-settings-dangerButton {
  background: #fff;
  border: 1px solid #e9ccd2;
  color: #a62a40;
}
.tenant-console.tenant-auth > div {
  padding: 28px;
}
@media (max-width: 760px) {
  .tenant-console.tenant-auth > div {
    padding: 22px;
  }
  .tenant-console .tp-intake-form-builderPanel {
    padding: 14px;
  }
  .tenant-console .tp-intake-form-previewForm {
    padding: 14px;
  }
}
.tenant-console .tenant-auth-plan {
  padding-right: 34px !important;
}
@media (max-width: 520px) {
  .tenant-console .tp-auth-signup-plansGrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tenant-console .tp-auth-signup-buttonRow {
    flex-wrap: wrap;
  }
  .tenant-console .tp-auth-signup-buttonRow > button {
    flex: 1;
    min-width: 0;
  }
}
.tenant-console .tenant-business-tag {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tenant-console .tp-intake-form-previewBrand > div {
  flex: 0 0 32px;
}
.tenant-console .tp-intake-form-previewBrand > strong {
  flex: 1;
  min-width: 0;
}
