:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --sidebar: #0f172a;
  --sidebar-muted: #94a3b8;
  --sidebar-hover: #1e293b;
  --sidebar-active: #312e81;
  --focus: #6366f1;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-card: 0 1px 3px rgb(15 23 42 / 0.08), 0 1px 2px rgb(15 23 42 / 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: #4338ca;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #3730a3;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(99 102 241 / 0.4);
  outline-offset: 2px;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.125rem;
}

h3 {
  font-size: 1rem;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.support-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 17rem;
  flex-direction: column;
  overflow-y: auto;
  background: var(--sidebar);
  color: #f8fafc;
}

.support-sidebar__brand {
  display: flex;
  min-height: 5rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.support-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.support-brand:hover {
  color: #ffffff;
}

.support-brand__mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: #6366f1;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.support-brand strong,
.support-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-brand strong {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.support-brand small {
  margin-top: 0.15rem;
  color: var(--sidebar-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.support-sidebar__navigation {
  flex: 1 1 auto;
  padding: 1.25rem 0.875rem;
}

.support-nav-list {
  display: grid;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.support-nav-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.55rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.support-nav-link:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.support-nav-link--active,
.support-nav-link[aria-current="page"] {
  background: var(--sidebar-active);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #818cf8;
}

.support-nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  color: var(--sidebar-muted);
}

.support-nav-link:hover .support-nav-icon,
.support-nav-link--active .support-nav-icon,
.support-nav-link[aria-current="page"] .support-nav-icon {
  color: #c7d2fe;
}

.support-nav-label {
  min-width: 0;
  flex: 1 1 auto;
}

.support-nav-badge {
  display: inline-flex;
  min-width: 1.65rem;
  height: 1.4rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 0.42rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.09);
  color: #e2e8f0;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
}

.support-nav-link--active .support-nav-badge,
.support-nav-link[aria-current="page"] .support-nav-badge {
  border-color: rgb(199 210 254 / 0.25);
  background: rgb(199 210 254 / 0.15);
  color: #ffffff;
}

.support-sidebar__operator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(2 6 23 / 0.2);
}

.support-operator-avatar {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #334155;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 750;
}

.support-operator-identity {
  min-width: 0;
}

.support-operator-identity strong,
.support-operator-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-operator-identity strong {
  color: #f8fafc;
  font-size: 0.78rem;
}

.support-operator-identity small {
  color: var(--sidebar-muted);
  font-size: 0.68rem;
}

.support-logout-form {
  line-height: 1;
}

.support-logout-button {
  min-height: auto;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 0.4rem;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 650;
}

.support-logout-button:hover {
  border-color: rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
}

.support-mobile-navigation {
  display: none;
}

.support-content {
  min-width: 0;
  min-height: 100vh;
  margin-left: 17rem;
}

.support-content--guest {
  display: grid;
  min-height: 100vh;
  margin-left: 0;
  place-items: start center;
}

.support-main {
  width: 100%;
  max-width: 92rem;
  padding: 2rem clamp(1.25rem, 3vw, 3rem) 4rem;
  margin: 0 auto;
}

.support-content--guest .support-main {
  max-width: 34rem;
  padding-top: clamp(3rem, 10vh, 8rem);
}

.toolbar,
.page-header,
.page-header__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolbar,
.page-header {
  justify-content: space-between;
}

.toolbar {
  margin-bottom: 1.125rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header__title {
  margin-bottom: 0.25rem;
}

.page-header__meta,
.text-muted {
  color: var(--text-muted);
}

.page-header__meta {
  max-width: 52rem;
  margin-bottom: 0;
}

.page-header__actions {
  justify-content: flex-end;
}

.panel,
.card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: 1.125rem;
}

.card.panel {
  overflow: hidden;
  padding: 0;
}

.card__header,
.card__body,
.card__footer {
  padding: 1.25rem;
}

.card__header {
  border-bottom: 1px solid var(--border);
}

.card__header h2,
.card__header h3,
.card__header p,
.card__footer p {
  margin-bottom: 0;
}

.card__header p {
  margin-top: 0.25rem;
}

.card__footer {
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack > * {
  margin-top: 0;
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 22.5rem);
  gap: 1rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(10rem, 1fr)) auto;
  align-items: end;
  gap: 0.8rem;
}

.filter-bar {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-subtle);
}

label {
  display: block;
  margin: 0 0 0.35rem;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.03);
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input[type="checkbox"],
input[type="radio"],
input[type="hidden"] {
  width: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
}

fieldset {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

legend {
  padding: 0 0.35rem;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

button,
.button,
input[type="submit"] {
  display: inline-flex;
  width: auto;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

button.secondary,
.button.secondary {
  border-color: var(--border-strong);
  background: #ffffff;
  color: #334155;
}

button.secondary:hover,
.button.secondary:hover {
  background: #f1f5f9;
  color: var(--text);
}

button.danger,
.button.danger {
  background: var(--danger);
}

form.inline {
  display: inline;
}

.notice,
.alert {
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
  border-radius: 0.6rem;
}

.notice {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.alert {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background 100ms ease;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.hash,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.state,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.status-badge--success,
.status-badge--approved,
.status-badge--artifact-ready,
.status-badge--closed,
.status-badge--completed,
.status-badge--currently-resolved,
.status-badge--manual-completed,
.status-badge--processed,
.status-badge--published,
.status-badge--sent {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.status-badge--warning,
.status-badge--awaiting-approval,
.status-badge--awaiting-review,
.status-badge--draft,
.status-badge--manual-action-required,
.status-badge--pending,
.status-badge--pending-approval,
.status-badge--pending-store-binding,
.status-badge--stale {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.status-badge--info,
.status-badge--analyzing,
.status-badge--captured,
.status-badge--capturing,
.status-badge--preflighting,
.status-badge--processing,
.status-badge--queued,
.status-badge--running,
.status-badge--sending {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.status-badge--danger,
.status-badge--failed,
.status-badge--manual-failed,
.status-badge--rejected,
.status-badge--unsupported {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.status-badge--neutral,
.status-badge--cancelled,
.status-badge--expired,
.status-badge--retired,
.status-badge--superseded {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.empty-state {
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--border-strong);
  border-radius: 0.7rem;
  background: var(--surface-subtle);
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 0.35rem;
}

.empty-state p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--text-muted);
}

details {
  border-radius: 0.5rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

pre {
  max-width: 100%;
  padding: 1rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: #f8fafc;
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.page-header__eyebrow,
.card__eyebrow {
  margin-bottom: 0.3rem;
  color: #6366f1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header__eyebrow a {
  color: inherit;
}

.card__header,
.section-heading,
.ticket-list__heading,
.conversation-card__header,
.response-section__heading,
.activity-feed__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card--subtle {
  background: var(--surface-subtle);
}

.card--sticky {
  position: sticky;
  top: 2rem;
}

.card__body.page-header {
  margin-bottom: 0;
}

.support-main > .card + .card {
  margin-top: 1rem;
}

.section-block {
  margin-top: 1.5rem;
}

.section-heading {
  margin-bottom: 0.85rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.count-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.button--secondary {
  border-color: var(--border-strong);
  background: #ffffff;
  color: #334155;
}

.button--secondary:hover {
  background: #f1f5f9;
  color: var(--text);
}

.button--danger {
  background: var(--danger);
}

button.danger:hover,
.button.danger:hover,
.button--danger:hover,
input[type="submit"].danger:hover,
input[type="submit"].button--danger:hover {
  background: #912018;
  color: #ffffff;
}

.alert p {
  margin: 0.2rem 0 0;
}

.alert--info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.alert--success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.alert--danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.status-badge__dot {
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.status-badge--available {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.status-badge--disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.disclosure-card {
  margin-top: 1rem;
}

.disclosure-card > summary {
  list-style: none;
}

.disclosure-card > summary::-webkit-details-marker {
  display: none;
}

.disclosure-card > summary::before {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  margin-top: 0.42rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  content: "";
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}

.disclosure-card[open] > summary::before {
  transform: rotate(45deg);
}

.disclosure-card > summary > span:first-of-type {
  min-width: 0;
  flex: 1 1 auto;
}

.disclosure-card > summary strong,
.disclosure-card > summary .text-muted {
  display: block;
}

.disclosure-card__action {
  flex: 0 0 auto;
  color: #4f46e5;
  font-size: 0.75rem;
  font-weight: 700;
}

.inline-disclosure {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
}

.inline-disclosure > summary {
  padding: 0.65rem 0.75rem;
  color: #334155;
  font-size: 0.8rem;
}

.inline-disclosure > :not(summary) {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}

.inline-disclosure > :last-child {
  margin-bottom: 0.75rem;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}

.inline-form--wide .form-field {
  min-width: min(30rem, 100%);
  flex: 1 1 auto;
}

.form-layout {
  display: grid;
  gap: 1rem;
}

.form-field {
  min-width: 0;
}

.form-hint {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stack--compact {
  gap: 0.65rem;
}

.description-list {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.description-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.75fr) minmax(0, 1.5fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.description-list > div:first-child {
  padding-top: 0;
}

.description-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.description-list dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.description-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #334155;
}

.description-list--two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}

.detail-list,
.bullet-list,
.check-list,
.transcript-list {
  padding: 0;
  margin: 0;
}

.detail-list,
.transcript-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.detail-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface-subtle);
}

.detail-list li > span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.bullet-list,
.check-list {
  padding-left: 1.25rem;
}

.bullet-list li + li,
.check-list li + li {
  margin-top: 0.35rem;
}

.prose {
  color: #334155;
  overflow-wrap: anywhere;
}

.prose > :last-child {
  margin-bottom: 0;
}

.ticket-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ticket-list__item + .ticket-list__item {
  border-top: 1px solid var(--border);
}

.ticket-list__link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: background 100ms ease;
}

.ticket-list__link:hover {
  background: #f8fafc;
  color: inherit;
}

.ticket-list__content {
  min-width: 0;
  flex: 1 1 auto;
}

.ticket-list__reference {
  min-width: 0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
}

.ticket-list__preview {
  display: -webkit-box;
  margin: 0.5rem 0 0;
  overflow: hidden;
  color: #334155;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ticket-list__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.65rem 0 0;
}

.ticket-list__meta > div {
  display: flex;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.ticket-list__meta dt {
  font-weight: 700;
}

.ticket-list__meta dd {
  margin: 0;
}

.ticket-list__time {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.ticket-header__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ticket-header__title-row .page-header__title {
  margin-bottom: 0;
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(19rem, 0.85fr);
  align-items: start;
  gap: 1.25rem;
}

.ticket-layout__conversation,
.ticket-layout__sidebar {
  min-width: 0;
}

.ticket-layout__sidebar {
  display: grid;
  gap: 1.25rem;
}

.conversation-feed {
  padding: 1.25rem;
  margin: 0;
  list-style: none;
}

.conversation-feed__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.8rem;
}

.conversation-feed__item:not(:last-child) {
  padding-bottom: 1.25rem;
}

.conversation-feed__rail {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.conversation-feed__item:not(:last-child) .conversation-feed__rail::after {
  position: absolute;
  z-index: -1;
  top: 2rem;
  bottom: -1.25rem;
  left: 50%;
  width: 1px;
  background: var(--border);
  content: "";
}

.conversation-feed__avatar {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: 0 0 0 1px var(--border);
  color: #475569;
  font-size: 0.7rem;
  font-weight: 800;
}

.conversation-feed__item--customer .conversation-feed__avatar {
  background: #dbeafe;
  color: #1d4ed8;
}

.conversation-feed__item--fin .conversation-feed__avatar {
  background: #ede9fe;
  color: #6d28d9;
}

.conversation-feed__item--support .conversation-feed__avatar {
  background: #d1fae5;
  color: #047857;
}

.conversation-feed__item--internal .conversation-feed__avatar {
  background: #fef3c7;
  color: #a16207;
}

.conversation-card {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.conversation-card--customer {
  border-left: 3px solid #60a5fa;
}

.conversation-card--fin {
  border-left: 3px solid #a78bfa;
  background: #faf9ff;
}

.conversation-card--support {
  border-left: 3px solid #34d399;
  background: #f8fffc;
}

.conversation-card--internal {
  border-left: 3px solid #fbbf24;
  background: #fffdf5;
}

.conversation-card__header {
  color: #334155;
  font-size: 0.78rem;
}

.conversation-card__header > div:first-child {
  display: grid;
  gap: 0.1rem;
}

.conversation-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.conversation-card__subject {
  margin: 0.65rem 0 0;
  font-weight: 700;
}

.conversation-card__body {
  margin-top: 0.55rem;
  color: #334155;
  overflow-wrap: anywhere;
}

.conversation-card__body > :last-child {
  margin-bottom: 0;
}

.conversation-card__annotation {
  margin: 0.55rem 0 0;
  color: #a16207;
  font-size: 0.72rem;
  font-weight: 650;
}

.conversation-card__attachments {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.conversation-card__alert {
  padding: 0.65rem 0.75rem;
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
}

.conversation-card__footer {
  padding-top: 0.65rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

.response-stages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.65rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.response-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.response-stage__dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #818cf8;
}

.response-section {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

.response-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.response-section + .response-section {
  margin-top: 0.75rem;
}

.response-section--customer {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.response-section--internal {
  border-color: #fde68a;
  background: #fffbeb;
}

.response-section__heading {
  margin-bottom: 0.5rem;
}

.response-section__heading h3,
.response-section > h3 {
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}

.response-section__heading span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.review-panel {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.review-panel h3 {
  margin-bottom: 0.55rem;
}

.review-reject-form {
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-strong);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.related-card {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.related-card h3 {
  margin-bottom: 0.15rem;
  font-size: 0.86rem;
}

.related-card p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.related-card__icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.7rem;
  font-weight: 800;
}

.related-card__icon--access {
  background: #eff6ff;
  color: #1d4ed8;
}

.related-card__icon--theme {
  background: #f5f3ff;
  color: #6d28d9;
}

.related-card__icon--follow-up {
  background: #fff7ed;
  color: #c2410c;
}

.related-card__icon--workflow {
  background: #ecfdf5;
  color: #047857;
}

.related-card__links {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.related-card__links li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.related-card__links a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-feed {
  position: relative;
  padding: 1.15rem 1.25rem;
  margin: 0;
  list-style: none;
}

.activity-feed__item {
  position: relative;
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.85rem;
}

.activity-feed__item:not(:last-child) {
  padding-bottom: 1rem;
}

.activity-feed__item:not(:last-child)::before {
  position: absolute;
  top: 0.9rem;
  bottom: 0;
  left: 0.32rem;
  width: 1px;
  background: var(--border);
  content: "";
}

.activity-feed__marker {
  z-index: 1;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.28rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #818cf8;
  box-shadow: 0 0 0 1px #818cf8;
}

.activity-feed__content {
  min-width: 0;
}

.activity-feed__content p {
  margin: 0.3rem 0 0;
  color: #475569;
}

.activity-feed__heading {
  font-size: 0.8rem;
}

.activity-feed__type {
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.activity-feed__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.activity-feed__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

.audit-timeline {
  margin-top: 1.5rem;
}

.empty-state--compact {
  padding: 1.25rem;
}

.empty-state__icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .ticket-layout {
    grid-template-columns: 1fr;
  }

  .card--sticky {
    position: static;
  }

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

@media (max-width: 900px) {
  .support-sidebar {
    display: none;
  }

  .support-mobile-navigation {
    position: sticky;
    z-index: 40;
    top: 0;
    display: block;
    border-bottom: 1px solid #1e293b;
    border-radius: 0;
    background: var(--sidebar);
    color: #ffffff;
  }

  .support-mobile-navigation > summary {
    list-style: none;
  }

  .support-mobile-navigation > summary::-webkit-details-marker {
    display: none;
  }

  .support-mobile-navigation__summary {
    display: grid;
    min-height: 3.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .support-mobile-navigation__menu-icon {
    display: grid;
    width: 1.25rem;
    gap: 0.25rem;
  }

  .support-mobile-navigation__menu-icon span {
    display: block;
    height: 1.5px;
    border-radius: 999px;
    background: #cbd5e1;
  }

  .support-mobile-navigation__brand {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .support-mobile-navigation__hint {
    color: #cbd5e1;
    font-size: 0.75rem;
  }

  .support-mobile-navigation__panel {
    padding: 0 0.75rem 0.75rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
  }

  .support-mobile-navigation__panel .support-nav-list {
    padding-top: 0.65rem;
  }

  .support-mobile-navigation__operator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.7rem 0.1rem;
    margin-top: 0.6rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    color: #94a3b8;
    font-size: 0.75rem;
  }

  .support-mobile-navigation__operator > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .support-content {
    margin-left: 0;
  }

  .support-main {
    padding: 1.25rem 1rem 3rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .description-list--two-column {
    grid-template-columns: 1fr;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form .button,
  .inline-form input[type="submit"] {
    align-self: flex-start;
  }

  .filter-grid .page-header__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-header {
    align-items: flex-start;
  }

  .page-header__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page-header__actions .button,
  .page-header__actions button,
  .page-header__actions input[type="submit"] {
    flex: 1 1 auto;
  }

  .description-list > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .ticket-list__link,
  .conversation-card__header,
  .activity-feed__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-list__time,
  .conversation-card__meta,
  .activity-feed__meta {
    justify-content: flex-start;
  }

  .ticket-list__time {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .conversation-feed,
  .activity-feed {
    padding: 1rem;
  }

  .conversation-feed__item {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .conversation-feed__avatar {
    width: 1.75rem;
    height: 1.75rem;
  }

  .card__header,
  .card__body,
  .card__footer,
  .panel {
    padding: 1rem;
  }

  th,
  td {
    padding: 0.65rem;
  }
}

@media print {
  .support-sidebar,
  .support-mobile-navigation,
  .skip-link,
  .page-header__actions,
  button,
  .button {
    display: none !important;
  }

  .support-content {
    margin: 0;
  }

  .support-main {
    max-width: none;
    padding: 0;
  }

  .panel,
  .card {
    box-shadow: none;
  }
}
