:root {
  --fa-bg: #f8fafc;
  --fa-surface: #ffffff;
  --fa-surface-soft: #f1f5f9;
  --fa-surface-tint: #eff6ff;
  --fa-border: #d9e2ec;
  --fa-border-strong: #c6d2df;
  --fa-text: #0f172a;
  --fa-text-soft: #5b6b83;
  --fa-text-faint: #7b8aa0;
  --fa-blue: #1d4ed8;
  --fa-blue-dark: #1e3a8a;
  --fa-green: #15803d;
  --fa-green-soft: #dcfce7;
  --fa-red: #b91c1c;
  --fa-red-soft: #fef2f2;
  --fa-warning: #92400e;
  --fa-warning-soft: #fffbeb;
  --fa-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --fa-shadow-md: 0 18px 44px rgba(15, 23, 42, 0.08);
  --fa-shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.14);
  --fa-radius-lg: 22px;
  --fa-radius-md: 16px;
  --fa-radius-sm: 12px;
}

.fa-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fa-bg);
  color: var(--fa-text);
}

.fa-page-body custom-header,
.fa-page-body custom-footer,
.fa-page-body #mni-membership-639063312706821625 {
  flex-shrink: 0;
}

.fa-main {
  flex: 1 0 auto;
  min-height: 0;
  padding-top: 82px;
}

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

.fa-notice-bar {
  background: var(--fa-blue);
  color: #fff;
}

.fa-notice-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
}

.fa-notice-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.fa-app-section {
  padding: 24px 16px 40px;
}

.fa-app-shell {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: clamp(640px, calc(100dvh - 220px), 920px);
  background: var(--fa-surface);
  border: 1px solid var(--fa-border);
  border-radius: 26px;
  box-shadow: var(--fa-shadow-md);
  overflow: clip;
  isolation: isolate;
}

.fa-app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--fa-border);
  background: rgba(255, 255, 255, 0.96);
}

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

.fa-app-title {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.25rem);
  line-height: 1.08;
  font-weight: 800;
  color: #0b1f44;
}

.fa-app-subtitle {
  margin: 8px 0 0;
  color: var(--fa-text-soft);
  line-height: 1.5;
  max-width: 62ch;
}

.fa-app-header-controls {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.fa-app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.fa-main-column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fa-status {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--fa-blue-dark);
  font-size: 0.94rem;
  line-height: 1.45;
}

.fa-status[data-kind="error"] {
  border-color: #fecaca;
  background: var(--fa-red-soft);
  color: #991b1b;
}

.fa-status[data-kind="success"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.fa-record-context {
  margin: 16px 24px 0;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
  border-radius: var(--fa-radius-md);
}

.fa-record-context-body {
  display: grid;
  gap: 4px;
}

.fa-record-context-label,
.fa-ticket-meta-label,
.fa-record-result-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fa-text-faint);
}

.fa-record-context-title,
.fa-record-detail-owner-name,
.fa-ticket-title,
.fa-record-owner-title,
.fa-record-result-title {
  margin: 0;
  font-weight: 800;
  color: var(--fa-text);
  overflow-wrap: anywhere;
}

.fa-record-context-title {
  font-size: 1.05rem;
}

.fa-record-context-meta,
.fa-record-detail-owner-ticket,
.fa-ticket-owner,
.fa-record-owner-meta,
.fa-record-result-meta,
.fa-record-result-summary,
.fa-summary-copy,
.fa-summary-help,
.fa-workflow-copy {
  margin: 0;
  color: var(--fa-text-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fa-conversation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--fa-border);
  border-bottom: 1px solid var(--fa-border);
  background: #fff;
}

.fa-mobile-ticket-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.fa-record-context-desktop-body {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: var(--fa-radius-md);
  box-shadow: var(--fa-shadow-sm);
}

.fa-mobile-ticket-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid #bfdbfe;
  border-radius: var(--fa-radius-md);
  background: #f8fbff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fa-mobile-ticket-toggle-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.fa-mobile-ticket-chevron {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--fa-text-soft);
}

.fa-mobile-ticket-panel-body {
  min-width: 0;
}

.fa-thread-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.75), rgba(248, 250, 252, 0)) 0 0 / 100% 88px no-repeat,
    #fff;
}

.fa-messages {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.fa-empty-state {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 24px;
  color: var(--fa-text-soft);
}

.fa-empty-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 36ch;
}

.fa-message {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.fa-message[data-role="user"] {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.fa-message[data-role="user"] .fa-message-avatar {
  order: 2;
}

.fa-message[data-role="user"] .fa-message-main {
  order: 1;
}

.fa-message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--fa-border);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff;
  color: var(--fa-text-soft);
}

.fa-message[data-role="assistant"] .fa-message-avatar {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: var(--fa-blue);
}

.fa-message[data-role="user"] .fa-message-avatar {
  background: var(--fa-green-soft);
  border-color: #bbf7d0;
  color: #166534;
}

.fa-message-main {
  min-width: 0;
}

.fa-message-meta {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--fa-text-soft);
}

.fa-message[data-role="user"] .fa-message-meta {
  text-align: right;
}

.fa-message-bubble {
  border: 1px solid var(--fa-border);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--fa-shadow-sm);
  padding: 16px 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.fa-message[data-role="user"] .fa-message-bubble {
  background: #f8fafc;
}

.fa-message-bubble > :first-child {
  margin-top: 0;
}

.fa-message-bubble > :last-child {
  margin-bottom: 0;
}

.fa-message-bubble p,
.fa-message-bubble ul,
.fa-message-bubble ol,
.fa-message-bubble pre,
.fa-message-bubble blockquote,
.fa-message-bubble h2,
.fa-message-bubble h3,
.fa-message-bubble h4 {
  margin: 0 0 14px;
}

.fa-message-bubble ul,
.fa-message-bubble ol {
  padding-left: 20px;
}

.fa-message-bubble blockquote {
  border-left: 4px solid #cbd5e1;
  padding-left: 12px;
  color: var(--fa-text-soft);
}

.fa-inline-code {
  background: #e2e8f0;
  border-radius: 6px;
  padding: 0.12em 0.35em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.fa-code-block {
  margin: 0 0 14px;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.fa-code-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.fa-code-block pre,
.fa-code-block code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.fa-code-block pre {
  overflow-x: auto;
  padding: 16px;
  color: #e2e8f0;
  line-height: 1.6;
}

.fa-copy-button,
.fa-primary-button,
.fa-secondary-button,
.fa-dark-button,
.fa-dark-outline-button,
.fa-summary-trigger,
.fa-icon-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.fa-copy-button:disabled,
.fa-primary-button:disabled,
.fa-secondary-button:disabled,
.fa-dark-button:disabled,
.fa-dark-outline-button:disabled,
.fa-summary-trigger:disabled,
.fa-icon-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.fa-copy-button,
.fa-dark-outline-button,
.fa-secondary-button {
  border-color: var(--fa-border-strong);
  background: #fff;
  color: #334155;
}

.fa-copy-button:hover,
.fa-dark-outline-button:hover,
.fa-secondary-button:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.fa-primary-button,
.fa-summary-trigger {
  background: var(--fa-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.18);
}

.fa-primary-button:hover,
.fa-summary-trigger:hover {
  background: #1e40af;
}

.fa-dark-button {
  background: #334155;
  color: #fff;
}

.fa-dark-button:hover {
  background: #1f2937;
}

.fa-danger-button {
  background: #991b1b;
  color: #fff;
}

.fa-copy-button,
.fa-primary-button,
.fa-secondary-button,
.fa-dark-button,
.fa-dark-outline-button,
.fa-summary-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
}

.fa-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: var(--fa-border-strong);
  background: #fff;
  color: #334155;
  font-size: 1.2rem;
}

.fa-icon-button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.fa-icon-button .fa-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.fa-composer {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding: 18px 24px 20px;
  border-top: 1px solid var(--fa-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #fff 28%);
}

.fa-drop-active .fa-composer {
  background: linear-gradient(180deg, #eef6ff, #fff 28%);
}

.fa-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fa-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--fa-border);
  background: #fff;
}

.fa-chip-preview {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--fa-surface-soft);
  border: 1px solid var(--fa-border);
}

.fa-chip-body,
.fa-chip-main {
  min-width: 0;
}

.fa-chip-title,
.fa-chip-subtitle {
  margin: 0;
  overflow-wrap: anywhere;
}

.fa-chip-title {
  font-weight: 700;
  color: var(--fa-text);
}

.fa-chip-subtitle {
  font-size: 0.85rem;
  color: var(--fa-text-soft);
}

.fa-chip-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--fa-border);
  background: #fff;
  cursor: pointer;
}

.fa-composer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}

.fa-composer-tools,
.fa-ticket-note-actions,
.fa-record-toolbar-actions,
.fa-summary-actions,
.fa-app-header-actions,
.fa-ticket-header-actions,
.fa-record-result-actions,
.fa-ticket-file-actions,
.fa-record-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fa-composer-tools {
  align-items: flex-end;
}

.fa-input-stack {
  min-width: 0;
  display: grid;
  gap: 10px;
}

#fa-input,
#fa-ticket-note-input,
.fa-summary-field input,
.fa-summary-field textarea,
#fa-record-search-input {
  width: 100%;
  border: 1px solid var(--fa-border-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--fa-text);
  font: inherit;
  line-height: 1.55;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

#fa-input,
#fa-ticket-note-input,
.fa-summary-field textarea {
  resize: vertical;
}

#fa-input {
  min-height: 52px;
  max-height: 220px;
}

#fa-ticket-note-input {
  min-height: 100px;
}

#fa-input:focus,
#fa-ticket-note-input:focus,
.fa-summary-field input:focus,
.fa-summary-field textarea:focus,
#fa-record-search-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.fa-composer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  font-size: 0.86rem;
  color: var(--fa-text-soft);
  line-height: 1.5;
}

.fa-mic-feedback {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
}

.fa-mic-feedback[hidden] {
  display: none !important;
}

.fa-mic-feedback-inline {
  margin-top: 10px;
}

.fa-mic-feedback-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fa-text-soft);
  font-size: 0.9rem;
}

.fa-mic-feedback-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.fa-mic-feedback.is-active .fa-mic-feedback-dot {
  background: #dc2626;
  animation: fa-mic-pulse 1.2s infinite;
}

.fa-mic-meter {
  display: block;
  width: 100%;
  height: 28px;
  border-radius: 10px;
  background: #0f172a;
}

.fa-message-attachments,
.fa-ticket-files,
.fa-ticket-history,
.fa-record-results {
  display: grid;
  gap: 12px;
}

.fa-message-attachments {
  margin-top: 14px;
}

.fa-ticket-file-item,
.fa-ticket-history-item,
.fa-record-result-card,
.fa-record-owner-card {
  border: 1px solid var(--fa-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--fa-shadow-sm);
}

.fa-ticket-file-item,
.fa-ticket-history-item {
  padding: 14px 16px;
}

.fa-ticket-file-main,
.fa-ticket-history-head,
.fa-record-result-head,
.fa-record-owner-main {
  min-width: 0;
}

.fa-ticket-history-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 8px;
}

.fa-ticket-history-item p,
.fa-ticket-file-item p {
  margin: 0;
  color: var(--fa-text-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fa-ticket-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.fa-ticket-section-header,
.fa-ticket-header,
.fa-record-toolbar,
.fa-record-editor-header,
.fa-records-header,
.fa-workflow-panel-head,
.fa-record-detail-header-top,
.fa-record-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.fa-ticket-section-header h5,
.fa-records-panel-title,
.fa-summary-title,
.fa-workflow-title {
  margin: 0;
  color: var(--fa-text);
}

.fa-records-panel-title,
.fa-summary-title {
  font-size: clamp(1.28rem, 1.5vw, 1.55rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0b1f44;
}

.fa-ticket-section-header h5,
.fa-workflow-title {
  font-size: 1rem;
  font-weight: 800;
}

.fa-workflow-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
  border-left: 1px solid var(--fa-border);
  background: var(--fa-surface-soft);
  overflow-y: auto;
}

.fa-app-header-actions {
  align-items: stretch;
}

.fa-app-header-actions > * {
  flex: 1 1 100%;
}

.fa-workflow-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: var(--fa-text-soft);
  line-height: 1.55;
}

.fa-workflow-list li {
  color: inherit;
}


.fa-attach-menu {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1115;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}

.fa-attach-menu[hidden] {
  display: none !important;
}

.fa-attach-menu-inner {
  width: min(100%, 520px);
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--fa-border);
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: var(--fa-shadow-lg);
  pointer-events: auto;
}

.fa-attach-menu-actions {
  display: grid;
  gap: 10px;
}

.fa-attach-menu-actions > button {
  width: 100%;
  justify-content: center;
}

.fa-summary-backdrop,
.fa-record-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1100;
}

.fa-summary-modal,
.fa-records-modal {
  position: fixed;
  inset: 0;
  z-index: 1110;
  display: grid;
  place-items: center;
  padding: 24px;
}

.fa-summary-modal[hidden],
.fa-records-modal[hidden],
.fa-summary-backdrop[hidden],
.fa-record-editor-backdrop[hidden] {
  display: none !important;
}

.fa-summary-modal-inner,
.fa-records-modal-inner,
.fa-record-editor-panel-inner {
  width: min(100%, 820px);
  max-height: min(88dvh, 100%);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--fa-border);
  box-shadow: var(--fa-shadow-lg);
}

.fa-summary-modal-inner {
  padding: 24px;
}

.fa-records-modal-inner {
  position: relative;
  width: min(100%, 1320px);
  padding: 28px;
}

.fa-summary-open {
  overflow: hidden;
}

.fa-summary-form,
.fa-ticket-note-composer {
  display: grid;
  gap: 16px;
}

.fa-summary-header,
.fa-record-browser-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.fa-summary-copy {
  margin-top: 8px;
}

.fa-summary-hidden-fields {
  display: none;
}

.fa-summary-form {
  margin-top: 20px;
}

.fa-summary-field {
  display: grid;
  gap: 8px;
}

.fa-summary-field label,
.fa-ticket-note-composer label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fa-text);
}

.fa-summary-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fa-text);
  font-weight: 600;
}

.fa-summary-check input {
  width: 18px;
  height: 18px;
}

.fa-records-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-height: min(68dvh, 820px);
}

.fa-records-grid.is-detail-open {
  align-items: start;
}

.fa-records-panel,
.fa-record-editor-panel-inner,
.fa-ticket-meta-card,
.fa-ticket-note-composer,
.fa-record-detail-selection,
.fa-record-detail-empty {
  border: 1px solid var(--fa-border);
  border-radius: 20px;
  background: #fff;
}

.fa-records-panel,
.fa-record-editor-panel-inner {
  padding: 20px;
}

.fa-record-browser-panel,
.fa-record-detail-panel {
  min-height: 0;
}

.fa-record-browser-panel {
  display: flex;
  flex-direction: column;
}

.fa-record-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 18px;
}

.fa-record-selected-owner {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--fa-blue-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.fa-record-owner-card,
.fa-record-result-card {
  padding: 18px 20px;
}

.fa-record-owner-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.fa-record-owner-arrow {
  font-size: 1.5rem;
  color: var(--fa-text-faint);
}

.fa-record-result-head,
.fa-record-owner-main {
  display: grid;
  gap: 6px;
}

.fa-record-detail-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.fa-record-detail-header {
  display: grid;
  gap: 12px;
}

.fa-record-detail-header-main {
  display: grid;
  gap: 8px;
}

.fa-record-detail-selection,
.fa-record-detail-empty {
  padding: 18px;
}

.fa-record-detail-selection {
  display: grid;
  gap: 6px;
  justify-items: start;
  text-align: left;
  background: #f8fbff;
}

.fa-record-detail-owner-name {
  font-size: 1.2rem;
}

.fa-record-detail-empty {
  color: var(--fa-text-soft);
}

.fa-record-detail-empty p {
  margin: 0;
  line-height: 1.6;
}

.fa-ticket-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fa-border);
}

.fa-ticket-title {
  font-size: 1.25rem;
}

.fa-ticket-header-actions {
  justify-content: flex-end;
  align-items: center;
}

.fa-ticket-meta-grid,
.fa-ticket-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fa-ticket-meta-card,
.fa-ticket-note-composer,
.fa-ticket-section {
  padding: 16px;
}

.fa-ticket-meta-value {
  margin: 6px 0 0;
  line-height: 1.5;
  color: var(--fa-text);
  overflow-wrap: anywhere;
}

.fa-ticket-detail-columns {
  align-items: start;
}

.fa-issue-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.fa-issue-status-pill[data-status="active"] {
  background: #dbeafe;
  color: var(--fa-blue-dark);
}

.fa-issue-status-pill[data-status="resolved"] {
  background: var(--fa-green-soft);
  color: #166534;
}

.fa-ticket-file-item,
.fa-ticket-history-item {
  display: grid;
  gap: 8px;
}

.fa-record-editor-panel {
  position: absolute;
  inset: 24px;
  z-index: 1120;
  display: grid;
  place-items: start center;
  pointer-events: none;
}

.fa-record-editor-panel[hidden] {
  display: none !important;
}

.fa-record-editor-panel-inner {
  width: min(100%, 720px);
  pointer-events: auto;
}

.fa-drop-active {
  outline: 3px dashed rgba(29, 78, 216, 0.32);
  outline-offset: -10px;
}

@keyframes fa-mic-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.75;
  }
}

@media (max-width: 1100px) {
  .fa-app-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 980px) {
  .fa-app-shell {
    min-height: clamp(620px, calc(100dvh - 210px), 980px);
  }

  .fa-app-layout,
  .fa-records-grid,
  .fa-ticket-detail-columns {
    grid-template-columns: 1fr;
  }

  .fa-workflow-panel {
    border-left: 0;
    border-top: 1px solid var(--fa-border);
  }

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

@media (max-width: 720px) {
  .fa-main {
    padding-top: 74px;
  }

  .fa-app-section {
    padding: 16px 12px 28px;
  }

  .fa-app-shell {
    min-height: 0;
    height: auto;
    max-height: none;
    border-radius: 20px;
    overflow: hidden;
  }

  .fa-app-header {
    padding: 18px 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .fa-app-header-controls {
    justify-content: flex-start;
  }

  .fa-app-layout {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .fa-main-column {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .fa-status,
  .fa-record-context {
    margin-left: 16px;
    margin-right: 16px;
  }

  .fa-conversation-actions,
  .fa-messages,
  .fa-composer,
  .fa-workflow-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fa-thread-shell {
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
  }

  .fa-messages {
    height: auto;
    min-height: 180px;
    max-height: min(42dvh, 380px);
  }

  .fa-composer {
    margin-top: 0;
    position: relative;
    z-index: 0;
    flex: 0 0 auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .fa-workflow-panel {
    display: none;
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .fa-workflow-panel.is-open {
    display: grid;
  }

  .fa-composer-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .fa-composer-tools {
    display: grid;
    align-content: start;
    gap: 10px;
  }

  .fa-composer-send-stack {
    display: grid;
    align-content: end;
    gap: 10px;
  }

  #fa-send,
  #fa-stop {
    min-width: 84px;
  }

  #fa-stop {
    grid-column: 1 / -1;
    width: 100%;
  }

  .fa-composer-meta,
  .fa-ticket-meta-grid,
  .fa-summary-actions,
  .fa-record-toolbar,
  .fa-record-toolbar-actions,
  .fa-record-search-form,
  .fa-ticket-header,
  .fa-ticket-header-actions,
  .fa-ticket-history-head,
  .fa-record-detail-header-top,
  .fa-records-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .fa-record-search-form {
    display: grid;
  }

  .fa-records-modal,
  .fa-summary-modal {
    padding: 12px;
  }

  .fa-attach-menu {
    padding: 12px;
  }

  .fa-attach-menu-inner {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 20px 20px 0 0;
  }

  .fa-summary-modal-inner,
  .fa-records-modal-inner {
    max-height: min(92dvh, 100%);
    border-radius: 20px;
  }

  .fa-summary-modal-inner,
  .fa-records-modal-inner,
  .fa-records-panel,
  .fa-record-editor-panel-inner {
    padding: 16px;
  }

  .fa-record-editor-panel {
    inset: 12px;
  }

  .fa-record-owner-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .fa-record-owner-arrow {
    display: none;
  }
}

@media (max-width: 560px) {
  .fa-notice-inner {
    padding: 12px 14px;
  }

  .fa-app-title {
    font-size: 1.55rem;
  }

  .fa-app-shell,
  .fa-main-column,
  .fa-thread-shell {
    overflow: visible;
  }

  .fa-message {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .fa-message[data-role="user"] {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .fa-message-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
  }

  .fa-messages,
  .fa-conversation-actions,
  .fa-composer,
  .fa-workflow-panel,
  .fa-status,
  .fa-record-context {
    padding-left: 14px;
    padding-right: 14px;
  }

  .fa-status,
  .fa-record-context {
    margin-left: 14px;
    margin-right: 14px;
  }

  .fa-composer-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fa-composer-tools {
    grid-auto-flow: column;
    justify-content: start;
  }

  .fa-composer-send-stack {
    display: grid;
    gap: 10px;
  }

  .fa-messages {
    max-height: min(34dvh, 280px);
  }

  #fa-send,
  #fa-stop,
  .fa-composer-row > .fa-primary-button,
  .fa-composer-row > .fa-dark-button {
    width: 100%;
  }

  .fa-composer-meta {
    grid-template-columns: 1fr;
  }

  .fa-app-section {
    padding-bottom: 20px;
  }

  .fa-attach-menu {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .fa-attach-menu-inner {
    gap: 14px;
    padding: 14px;
    border-radius: 18px 18px 0 0;
  }
}


.fa-save-flow-modal-inner {
  width: min(100%, 880px);
}

.fa-save-flow-header,
.fa-save-flow-toolbar,
.fa-save-flow-footer {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.fa-save-flow-toolbar {
  margin-top: 4px;
}

.fa-save-flow-toolbar input {
  flex: 1 1 auto;
}

.fa-save-flow-step {
  margin-top: 18px;
}

.fa-save-flow-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--fa-border);
}

.fa-save-flow-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fa-save-flow-selection-card {
  margin-bottom: 14px;
}

.fa-record-search-form {
  margin-top: 20px;
}

.fa-record-results {
  margin-top: 16px;
  overflow: auto;
}

.fa-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #7f1d1d;
  border-radius: 12px;
  box-shadow: none;
}

.fa-record-owner-open {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.fa-icon-button.is-recording {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
}

@media (min-width: 721px) {
  .fa-workflow-toggle {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .fa-save-flow-choice-grid {
    grid-template-columns: 1fr;
  }

  .fa-save-flow-toolbar,
  .fa-save-flow-header,
  .fa-save-flow-footer {
    flex-direction: column;
    align-items: stretch;
  }
}


.fa-record-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fa-record-browser-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fa-border);
}

.fa-record-browser-panel .fa-record-results {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 4px;
  display: grid;
  gap: 16px;
}

.fa-record-result-actions,
.fa-ticket-note-actions,
.fa-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.fa-summary-actions {
  margin-top: 8px;
}

.fa-record-result-actions > button,
.fa-ticket-note-actions > button,
.fa-summary-actions > button,
.fa-save-flow-choice-grid > button,
.fa-save-flow-footer > button {
  margin: 0;
}

.fa-ticket-detail-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .fa-records-modal-inner {
    width: min(100%, 1080px);
  }
}

@media (max-width: 720px) {
  .fa-summary-header,
  .fa-record-browser-head,
  .fa-record-toolbar-actions,
  .fa-record-result-actions,
  .fa-ticket-note-actions,
  .fa-summary-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fa-record-browser-head {
    padding-bottom: 14px;
  }

  .fa-record-browser-panel .fa-record-results {
    overflow: visible;
    padding-right: 0;
  }

  .fa-records-modal-inner {
    padding: 18px;
  }
}

.fa-record-owner-open {
  padding: 6px 0;
}

.fa-record-owner-title,
.fa-record-result-title {
  line-height: 1.3;
}

.fa-record-result-summary {
  margin-top: 14px;
}

.fa-record-selected-owner {
  margin-bottom: 4px;
}


.fa-record-browser-head {
  align-items: center;
}

.fa-record-toolbar-actions {
  align-items: center;
}

.fa-record-toolbar-actions > button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fa-summary-choice-modal-inner {
  width: min(100%, 640px);
}

.fa-summary-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 721px) {
  .fa-record-browser-head,
  .fa-record-toolbar-actions {
    flex-wrap: nowrap;
  }
}

@media (max-width: 560px) {
  .fa-summary-choice-actions {
    grid-template-columns: 1fr;
  }
}

/* layout refresh v20260328b */
.fa-workflow-toggle,
#fa-workflow-toggle,
.fa-workflow-panel,
#fa-workflow-panel {
  display: none !important;
}

.fa-app-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  align-items: stretch;
}

.fa-chat-column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fa-side-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px;
  border-left: 1px solid var(--fa-border);
  background: var(--fa-surface-soft);
}

.fa-status {
  margin: 16px 20px 0;
}

.fa-record-context {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fa-record-context-desktop-body {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: var(--fa-radius-md);
  box-shadow: var(--fa-shadow-sm);
}

.fa-conversation-actions {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.fa-conversation-actions-group {
  display: grid;
  gap: 12px;
}

.fa-conversation-actions button {
  width: 100%;
  justify-content: center;
}

.fa-thread-shell {
  min-height: 0;
  flex: 1 1 auto;
}

.fa-messages {
  min-height: 460px;
}

.fa-composer {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .fa-app-layout {
    grid-template-columns: minmax(0, 1fr) 288px;
  }
}

@media (max-width: 980px) {
  .fa-app-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .fa-side-column {
    order: 1;
    padding: 16px;
    border-left: 0;
    border-bottom: 1px solid var(--fa-border);
    background: #ffffff;
  }

  .fa-chat-column {
    order: 2;
  }

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

  .fa-conversation-actions-group {
    display: contents;
  }

  .fa-conversation-actions button {
    min-height: 46px;
  }

  .fa-record-context-desktop-body {
    background: #f8fbff;
  }

  .fa-messages {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .fa-app-header {
    padding-bottom: 12px;
  }

  .fa-side-column {
    padding: 14px;
    gap: 12px;
  }

  .fa-status {
    margin: 14px 14px 0;
  }

  .fa-record-context {
    padding: 0;
  }

  .fa-record-context-desktop-body {
    display: none;
  }

  .fa-mobile-ticket-toggle {
    display: flex;
  }

  .fa-mobile-ticket-panel-body {
    margin-top: 12px;
  }

  .fa-mobile-ticket-panel.is-collapsed .fa-mobile-ticket-panel-body {
    display: none;
  }

  .fa-mobile-ticket-panel.is-collapsed #fa-mobile-ticket-meta {
    display: none;
  }

  .fa-mobile-ticket-panel.is-expanded .fa-mobile-ticket-panel-body {
    display: block;
  }

  .fa-conversation-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fa-conversation-actions button {
    min-height: 44px;
    font-size: 0.9rem;
    padding: 10px 12px;
    white-space: normal;
  }

  .fa-messages,
  .fa-composer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .fa-messages {
    min-height: 260px;
    max-height: none;
  }

  .fa-composer-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
  }

  .fa-composer-tools {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
  }

  .fa-composer-send-stack {
    display: flex;
    align-items: flex-end;
  }

  #fa-send {
    width: auto;
    min-width: 74px;
  }
}

@media (max-width: 560px) {
  .fa-app-section {
    padding-bottom: 20px;
  }

  .fa-side-column {
    padding: 12px;
  }

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

  .fa-messages {
    min-height: 220px;
  }

  .fa-composer-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .fa-composer-meta {
    display: grid;
    gap: 4px;
  }
}


.fa-confirm-modal-inner {
  width: min(100%, 520px);
  padding: 24px;
}

.fa-confirm-header {
  display: grid;
  gap: 8px;
}

.fa-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.fa-ticket-file-main {
  display: grid;
  gap: 4px;
}

.fa-ticket-file-name,
.fa-ticket-file-meta,
.fa-ticket-file-detail {
  display: block;
}

.fa-ticket-file-name {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fa-ticket-file-meta {
  color: var(--fa-text-soft);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .fa-confirm-actions {
    flex-direction: column-reverse;
  }

  .fa-confirm-actions > button {
    width: 100%;
    justify-content: center;
  }
}


.fa-record-detail-selection {
  padding: 18px 20px;
  gap: 4px;
}

.fa-record-detail-owner-name,
.fa-record-detail-owner-ticket,
.fa-record-detail-ticket-number,
.fa-record-result-kicker,
.fa-ticket-file-meta,
.fa-ticket-file-detail,
.fa-ticket-history-meta,
.fa-record-detail-meta dt {
  margin: 0;
}

.fa-record-detail-owner-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0b1f44;
}

.fa-record-detail-owner-ticket,
.fa-record-detail-ticket-number,
.fa-record-result-kicker,
.fa-ticket-file-meta,
.fa-ticket-history-meta,
.fa-record-detail-meta dt {
  color: var(--fa-text-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.fa-record-detail {
  display: grid;
  gap: 20px;
}

.fa-record-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid #d7e2f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.fa-record-detail-head-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.fa-record-detail-head-main .fa-records-panel-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.fa-record-detail-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.fa-record-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fa-record-detail-meta-card {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--fa-border);
  border-radius: 18px;
  background: #fff;
}

.fa-record-detail-meta-card dd {
  margin: 8px 0 0;
  color: var(--fa-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.fa-record-detail-sections {
  display: grid;
  gap: 18px;
}

.fa-record-detail-section {
  padding: 20px;
  border: 1px solid var(--fa-border);
  border-radius: 20px;
  background: #fff;
}

.fa-record-detail-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--fa-border);
}

.fa-record-detail-section-head h4 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0b1f44;
}

.fa-ticket-history,
.fa-ticket-files {
  gap: 14px;
}

.fa-ticket-history-item,
.fa-ticket-file-item {
  padding: 18px 18px;
  border-radius: 18px;
}

.fa-ticket-history-item {
  display: grid;
  gap: 10px;
}

.fa-ticket-history-title,
.fa-ticket-file-name {
  display: block;
  color: var(--fa-text);
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fa-ticket-history-head {
  margin-bottom: 0;
}

.fa-ticket-history-body,
.fa-ticket-file-detail {
  color: var(--fa-text-soft);
  line-height: 1.6;
}

.fa-ticket-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.fa-ticket-file-main {
  display: grid;
  gap: 8px;
}

.fa-ticket-file-actions,
.fa-ticket-file-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.fa-record-result-card {
  display: grid;
  gap: 14px;
}

.fa-record-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.fa-record-result-title {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1f44;
}

.fa-record-result-meta,
.fa-record-result-summary {
  color: var(--fa-text-soft);
  line-height: 1.55;
}

.fa-record-result-meta {
  margin: 6px 0 0;
}

.fa-record-result-summary {
  margin: 0;
}

.fa-record-results-empty {
  padding: 18px;
  border: 1px dashed var(--fa-border);
  border-radius: 18px;
  background: #f8fbff;
}

@media (max-width: 900px) {
  .fa-record-detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .fa-record-detail-head,
  .fa-ticket-file-item,
  .fa-record-detail-section-head,
  .fa-record-result-head {
    grid-template-columns: 1fr;
  }

  .fa-record-detail-head,
  .fa-record-detail-section,
  .fa-ticket-history-item,
  .fa-ticket-file-item {
    padding: 16px;
  }

  .fa-record-detail-head-actions,
  .fa-ticket-file-actions,
  .fa-ticket-file-tools {
    justify-content: flex-start;
  }

  .fa-record-detail-section-head {
    align-items: start;
  }
}


/* internal workspace alignment reset v20260329f */
.fa-app-section {
  padding: 24px 24px 40px;
}

.fa-app-shell {
  width: min(100%, 1240px);
}

.fa-app-shell.iw-shell-view-leads,
.fa-app-shell.iw-shell-view-customers,
.fa-app-shell.iw-shell-view-appointments,
.fa-app-shell.iw-shell-view-billing,
.fa-app-shell.iw-shell-view-reporting {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.fa-app-shell.iw-shell-view-tickets {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
}

.fa-app-shell.iw-shell-view-reporting .iw-pane {
  padding-bottom: 1.5rem;
}

.fa-app-shell.iw-shell-view-leads .fa-app-header,
.fa-app-shell.iw-shell-view-customers .fa-app-header,
.fa-app-shell.iw-shell-view-appointments .fa-app-header,
.fa-app-shell.iw-shell-view-billing .fa-app-header,
.fa-app-shell.iw-shell-view-reporting .fa-app-header,
.fa-app-shell.iw-shell-view-tickets .fa-app-header {
  padding-left: 24px;
  padding-right: 24px;
}

.fa-app-shell.iw-shell-view-tickets .fa-app-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.fa-app-shell.iw-shell-view-tickets .fa-chat-column {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.fa-app-shell.iw-shell-view-tickets .fa-side-column {
  min-width: 0;
  padding: 14px 18px 16px;
  border-left: 1px solid var(--fa-border);
  background: var(--fa-surface-soft);
}

.fa-app-shell.iw-shell-view-tickets .fa-record-context-desktop-body {
  box-shadow: none;
}

.fa-app-shell.iw-shell-view-tickets .fa-thread-shell {
  min-height: 0;
  flex: 1 1 auto;
  background: #ffffff;
  overflow: hidden;
}

.fa-app-shell.iw-shell-view-tickets .fa-messages {
  height: auto;
  min-height: 300px;
  padding-bottom: 12px;
  overflow-y: auto;
  background: #ffffff;
}

.fa-app-shell.iw-shell-view-tickets .fa-empty-state {
  min-height: 300px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.fa-app-shell.iw-shell-view-tickets .fa-composer {
  margin-top: 0;
  padding-bottom: 16px;
  background: #ffffff;
}

.fa-ticket-history-accordion {
  border: 1px solid var(--fa-border);
  border-radius: 18px;
  background: #ffffff;
}

.fa-ticket-history-accordion + .fa-ticket-history-accordion {
  margin-top: 14px;
}

.fa-ticket-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.fa-ticket-history-summary::-webkit-details-marker {
  display: none;
}

.fa-ticket-history-summary::after {
  content: '+';
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--fa-border);
  color: var(--fa-blue-dark);
  font-size: 1rem;
  font-weight: 700;
  background: #f8fbff;
}

.fa-ticket-history-accordion[open] .fa-ticket-history-summary::after {
  content: '−';
}

.fa-ticket-history-summary-text {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.fa-ticket-history-accordion-body {
  padding: 0 18px 18px;
}

.fa-ticket-history-body {
  margin: 0;
}

@media (max-width: 1180px) {
  .fa-app-shell.iw-shell-view-tickets .fa-app-layout {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-side-column {
    order: 1;
    padding: 14px 18px 16px;
    border-left: 0;
    border-bottom: 1px solid var(--fa-border);
    background: #ffffff;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-chat-column {
    order: 2;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-conversation-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fa-app-shell.iw-shell-view-tickets .fa-messages,
  .fa-app-shell.iw-shell-view-tickets .fa-empty-state {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .fa-app-section {
    padding: 16px 14px 28px;
  }

  .fa-app-shell {
    width: 100%;
    border-radius: 20px;
  }

  .fa-app-shell.iw-shell-view-leads .fa-app-header,
  .fa-app-shell.iw-shell-view-customers .fa-app-header,
  .fa-app-shell.iw-shell-view-billing .fa-app-header,
  .fa-app-shell.iw-shell-view-reporting .fa-app-header,
  .fa-app-shell.iw-shell-view-tickets .fa-app-header {
    padding: 16px 14px 14px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-side-column {
    padding: 12px 14px 14px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-messages,
  .fa-app-shell.iw-shell-view-tickets .fa-composer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-messages,
  .fa-app-shell.iw-shell-view-tickets .fa-empty-state {
    min-height: 150px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-composer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .fa-ticket-history-summary,
  .fa-ticket-history-accordion-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fa-ticket-history-summary {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .fa-ticket-history-accordion-body {
    padding-bottom: 16px;
  }
}

@media (max-width: 560px) {
  .fa-app-section {
    padding: 14px 10px 24px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-side-column {
    padding: 10px 12px 12px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-messages,
  .fa-app-shell.iw-shell-view-tickets .fa-composer,
  .fa-app-shell.iw-shell-view-tickets .fa-status {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-status {
    margin-left: 12px;
    margin-right: 12px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-messages,
  .fa-app-shell.iw-shell-view-tickets .fa-empty-state {
    min-height: 120px;
  }
}


.fa-app-shell.iw-shell-view-tickets {
  min-height: 0 !important;
}

.fa-app-shell.iw-shell-view-tickets .fa-app-layout {
  align-items: start;
  min-height: 0;
}

.fa-app-shell.iw-shell-view-tickets .fa-thread-shell,
.fa-app-shell.iw-shell-view-tickets .fa-chat-column {
  background: #ffffff;
}

.fa-app-shell.iw-shell-view-tickets .fa-side-column {
  align-self: stretch;
  gap: 12px;
  padding: 12px 16px 10px;
  background: #ffffff;
}

.fa-app-shell.iw-shell-view-tickets .fa-record-context {
  display: grid;
  gap: 12px;
}

.fa-app-shell.iw-shell-view-tickets .fa-record-context-desktop-body {
  padding: 14px 16px;
  background: #eff6ff;
}

.fa-app-shell.iw-shell-view-tickets .fa-conversation-actions {
  gap: 10px;
}

.fa-app-shell.iw-shell-view-tickets .fa-thread-shell {
  flex: 0 0 auto;
}

.fa-app-shell.iw-shell-view-tickets .fa-messages {
  min-height: 0;
  height: 360px;
  padding-bottom: 0;
}

.fa-app-shell.iw-shell-view-tickets .fa-empty-state {
  min-height: 360px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.fa-app-shell.iw-shell-view-tickets .fa-composer {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #ffffff;
  border-top: 0;
}

.fa-app-shell.iw-shell-view-tickets .fa-composer::before {
  content: "";
  display: block;
  margin-bottom: 14px;
  border-top: 1px solid var(--fa-border);
}

.fa-app-shell.iw-shell-view-tickets .fa-side-column::before,
.fa-app-shell.iw-shell-view-tickets .fa-side-column::after {
  content: none !important;
}

@media (max-width: 1180px) {
  .fa-app-shell.iw-shell-view-tickets .fa-messages {
    height: 300px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-empty-state {
    min-height: 300px;
  }
}

@media (max-width: 980px) {
  .fa-app-shell.iw-shell-view-tickets .fa-side-column {
    padding: 12px 16px 0;
    border-bottom: 0;
    background: #ffffff;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-record-context {
    gap: 10px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-messages {
    height: 240px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-empty-state {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .fa-app-shell {
    min-height: 0;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-app-layout,
  .fa-app-shell.iw-shell-view-tickets .fa-chat-column,
  .fa-app-shell.iw-shell-view-tickets .fa-thread-shell {
    overflow: visible;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-side-column {
    padding: 10px 14px 10px;
    gap: 10px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-status {
    margin: 10px 14px 0;
    padding: 10px 12px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-record-context {
    margin-top: 0;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-messages {
    height: auto;
    min-height: 180px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-empty-state {
    min-height: 180px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-composer {
    padding-top: 12px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-composer::before {
    margin-bottom: 12px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-composer-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .fa-app-shell.iw-shell-view-tickets .fa-side-column {
    padding: 10px 12px 8px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-status {
    margin-left: 12px;
    margin-right: 12px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-messages {
    min-height: 160px;
  }

  .fa-app-shell.iw-shell-view-tickets .fa-empty-state {
    min-height: 160px;
  }
}


@media (max-width: 720px) {
  .fa-app-shell.iw-shell-view-reporting {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: clip !important;
  }
}
