/* ============================================================
   TICKETS — shared staff + installer support form
   Uses the portal token vocabulary so the staff shell follows its
   light/dark theme while the standalone installer portal stays branded.
   ============================================================ */

/* Sales normally sees a focused, Sales-only main nav. Tickets is the one
   shared support destination and must remain visible to both sales roles. */
body[data-portal-role="sales_agent"] .lh-nav .lh-nav-item[data-nav="tickets"],
body[data-portal-role="sales_manager"] .lh-nav .lh-nav-item[data-nav="tickets"] {
  display: flex;
}

/* The additional shared destination must not push the sign-out/user block below
   short laptop viewports. The nav owns the remaining sidebar height and scrolls. */
.lh-nav {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

.lh-nav .lh-nav-item {
  flex: 0 0 auto;
}

.lh-nav .lh-nav-item[data-nav="tickets"] svg {
  order: -1;
}

.ticket-page {
  width: min(960px, 100%);
  margin: 0 auto;
  font-family: var(--font-sans);
  color: var(--text-strong, var(--lh-gray-800));
}

.ticket-heading {
  width: min(800px, 100%);
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
}

.ticket-heading h1 {
  margin: 0;
  color: var(--text-head, var(--lh-navy-deep));
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.12;
}

.ticket-heading p {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 14px;
  line-height: 1.55;
}

.ticket-form-shell {
  width: min(800px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding: 28px;
  border: 1px solid var(--hairline, var(--lh-gray-200));
  border-radius: 10px;
  background: var(--surface, var(--lh-white));
}

.ticket-fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.ticket-fieldset legend,
.ticket-field > label {
  display: block;
  margin: 0 0 8px;
  color: var(--text-strong, var(--lh-gray-800));
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.ticket-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--rule-strong, var(--lh-gray-300));
  border-radius: 8px;
  background: var(--surface, var(--lh-white));
}

.ticket-category-option {
  display: flex;
  min-width: 0;
  min-height: 82px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  color: var(--text-body, var(--lh-gray-600));
  cursor: pointer;
}

.ticket-category-option + .ticket-category-option {
  border-left: 1px solid var(--rule-strong, var(--lh-gray-300));
}

.ticket-category-option:hover {
  background: var(--hover, var(--lh-gold-faint));
}

.ticket-category-option:has(input:checked) {
  background: var(--gold-faint, var(--lh-gold-faint));
  color: var(--text-strong, var(--lh-gray-800));
}

.ticket-category-option:focus-within {
  outline: 2px solid var(--gold, var(--lh-gold));
  outline-offset: -2px;
}

.ticket-category-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--gold-dark, var(--lh-gold-dark));
}

.ticket-category-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.ticket-category-title {
  color: var(--text-head, var(--lh-navy-deep));
  font-size: 13.5px;
  font-weight: 700;
}

.ticket-category-hint {
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 12px;
  line-height: 1.4;
}

.ticket-field {
  margin-top: 22px;
}

.ticket-required {
  color: var(--red, var(--lh-red));
}

.ticket-optional {
  margin-left: 5px;
  color: var(--text-muted, var(--lh-gray-500));
  font-size: 11.5px;
  font-weight: 500;
}

.ticket-input,
.ticket-file-input {
  width: 100%;
  border: 1px solid var(--rule-strong, var(--lh-gray-300));
  border-radius: 6px;
  background: var(--surface, var(--lh-white));
  color: var(--text-strong, var(--lh-gray-800));
  font-family: var(--font-sans);
  font-size: 16px;
}

.ticket-input {
  min-height: 44px;
  padding: 10px 12px;
}

.ticket-input::placeholder {
  color: var(--text-muted, var(--lh-gray-600));
  opacity: 1;
}

.ticket-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.ticket-input:focus-visible,
.ticket-file-input:focus-visible {
  outline: 2px solid var(--gold, var(--lh-gold));
  outline-offset: 2px;
  border-color: var(--gold-dark, var(--lh-gold-dark));
}

.ticket-input[aria-invalid="true"],
.ticket-file-input[aria-invalid="true"] {
  border-color: var(--red, var(--lh-red));
  background: color-mix(in srgb, var(--red, var(--lh-red)) 5%, var(--surface, var(--lh-white)));
}

.ticket-input:disabled,
.ticket-file-input:disabled {
  opacity: .65;
  cursor: wait;
}

.ticket-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted, var(--lh-gray-500));
  font-size: 12px;
  line-height: 1.45;
}

.ticket-file-input {
  min-height: 48px;
  padding: 7px;
  font-size: 13px;
}

.ticket-file-input::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 7px 12px;
  border: 1px solid var(--border-btn, var(--lh-gray-300));
  border-radius: 5px;
  background: var(--surface-2, var(--lh-gray-50));
  color: var(--text-head, var(--lh-navy-deep));
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ticket-screenshot-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ticket-screenshot-list:empty {
  display: none;
}

.ticket-screenshot-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--rule, var(--lh-gray-200));
  border-radius: 7px;
  background: var(--surface-2, var(--lh-gray-50));
}

.ticket-screenshot-thumb,
.ticket-screenshot-fallback {
  width: 56px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--rule-strong, var(--lh-gray-300));
  border-radius: 5px;
  background: var(--surface, var(--lh-white));
}

.ticket-screenshot-thumb {
  display: block;
  object-fit: cover;
}

.ticket-screenshot-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, var(--lh-gray-500));
  font-size: 10px;
  font-weight: 700;
}

.ticket-screenshot-meta {
  min-width: 0;
  flex: 1;
}

.ticket-screenshot-name {
  overflow: hidden;
  color: var(--text-strong, var(--lh-gray-800));
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-screenshot-size {
  margin-top: 2px;
  color: var(--text-muted, var(--lh-gray-500));
  font-size: 11.5px;
}

.ticket-remove-file {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--red, var(--lh-red));
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ticket-remove-file:hover {
  background: color-mix(in srgb, var(--red, var(--lh-red)) 8%, transparent);
}

.ticket-remove-file:focus-visible,
.ticket-submit:focus-visible {
  outline: 2px solid var(--gold, var(--lh-gold));
  outline-offset: 2px;
}

.ticket-status {
  margin-top: 22px;
  padding: 11px 13px;
  border: 1px solid var(--rule-strong, var(--lh-gray-300));
  border-radius: 6px;
  color: var(--text-strong, var(--lh-gray-800));
  background: var(--surface-2, var(--lh-gray-50));
  font-size: 13px;
  line-height: 1.45;
}

.ticket-status[hidden] {
  display: none;
}

.ticket-status--info {
  border-color: var(--gold, var(--lh-gold));
  background: var(--gold-faint, var(--lh-gold-faint));
}

.ticket-status--error {
  border-color: var(--red, var(--lh-red));
  background: color-mix(in srgb, var(--red, var(--lh-red)) 8%, var(--surface, var(--lh-white)));
  color: var(--red, var(--lh-red));
}

.ticket-status--success {
  border-color: var(--green, var(--lh-green));
  background: color-mix(in srgb, var(--green, var(--lh-green)) 9%, var(--surface, var(--lh-white)));
  color: var(--green, var(--lh-green));
}

.ticket-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule, var(--lh-gray-200));
}

.ticket-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--lh-navy-deep);
  border-radius: 6px;
  background: var(--lh-navy-deep);
  color: var(--lh-gold);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
}

.ticket-submit:hover:not(:disabled) {
  background: var(--lh-navy);
}

.ticket-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.ticket-form-shell[aria-busy="true"] .ticket-category-option {
  cursor: wait;
}

/* Private owner workspace. The server remains the authorization boundary;
   these tabs are hidden until the signed-in email matches the owner account. */
.ticket-workspace-tabs {
  width: min(800px, 100%);
  display: flex;
  gap: 24px;
  margin: 0 auto 22px;
  border-bottom: 1px solid var(--rule-strong, var(--lh-gray-300));
}

.ticket-workspace-tabs[hidden] {
  display: none;
}

.ticket-workspace-tab[hidden] {
  display: none;
}

.ticket-workspace-tab {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 2px 1px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted, var(--lh-gray-600));
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ticket-workspace-tab:hover {
  color: var(--text-head, var(--lh-navy-deep));
}

.ticket-workspace-tab.active {
  border-bottom-color: var(--gold, var(--lh-gold));
  color: var(--text-head, var(--lh-navy-deep));
}

.ticket-workspace-tab:focus-visible,
.ticket-inbox-refresh:focus-visible,
.ticket-inbox-load-more:focus-visible,
.ticket-inbox-status-select:focus-visible,
.ticket-inbox-response:focus-visible,
.ticket-inbox-update:focus-visible,
.ticket-inbox-filter select:focus-visible,
.ticket-inbox-scope-btn:focus-visible,
.ticket-inbox-details summary:focus-visible,
.ticket-inbox-attachment:focus-visible {
  outline: 2px solid var(--gold, var(--lh-gold));
  outline-offset: 2px;
}

.ticket-inbox {
  border-top: 1px solid var(--rule-strong, var(--lh-gray-300));
}

.ticket-inbox[hidden] {
  display: none;
}

.ticket-inbox-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}

.ticket-inbox-toolbar h2 {
  margin: 0;
  color: var(--text-head, var(--lh-navy-deep));
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
}

.ticket-inbox-toolbar p {
  margin: 6px 0 0;
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 13px;
  line-height: 1.5;
}

.ticket-inbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-inbox-viewbar {
  display: flex;
  min-height: 60px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule-strong, var(--lh-gray-300));
}

.ticket-inbox-scope {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.ticket-inbox-scope-btn {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 10px 1px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted, var(--lh-gray-600));
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ticket-inbox-scope-btn:hover {
  color: var(--text-head, var(--lh-navy-deep));
}

.ticket-inbox-scope-btn.active {
  border-bottom-color: var(--gold, var(--lh-gold));
  color: var(--text-head, var(--lh-navy-deep));
}

.ticket-inbox-scope-btn:disabled {
  opacity: .6;
  cursor: wait;
}

.ticket-inbox-filter {
  display: grid;
  gap: 5px;
  padding-bottom: 8px;
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 11.5px;
  font-weight: 600;
}

.ticket-inbox-filter select,
.ticket-inbox-status-select,
.ticket-inbox-refresh,
.ticket-inbox-load-more {
  min-height: 44px;
  border: 1px solid var(--border-btn, var(--lh-gray-300));
  border-radius: 7px;
  background: var(--surface, var(--lh-white));
  color: var(--text-strong, var(--lh-gray-800));
  font-family: var(--font-sans);
  font-size: 13px;
}

.ticket-inbox-filter select {
  min-width: 138px;
  padding: 9px 34px 9px 11px;
}

.ticket-inbox-refresh,
.ticket-inbox-load-more {
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
}

.ticket-inbox-refresh:hover,
.ticket-inbox-load-more:hover {
  border-color: var(--gold, var(--lh-gold));
  color: var(--gold-dark, var(--lh-gold-dark));
}

.ticket-inbox-refresh:disabled,
.ticket-inbox-load-more:disabled,
.ticket-inbox-status-select:disabled {
  opacity: .6;
  cursor: wait;
}

.ticket-inbox-status {
  min-height: 32px;
  padding-top: 10px;
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 12px;
}

.ticket-inbox-status[data-state="error"] {
  color: var(--red, var(--lh-red));
}

.ticket-inbox-list {
  display: grid;
  gap: 26px;
}

.ticket-inbox-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule-strong, var(--lh-gray-300));
}

.ticket-inbox-group-head h3 {
  margin: 0;
  color: var(--text-head, var(--lh-navy-deep));
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
}

.ticket-inbox-group-head span {
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 11.5px;
}

.ticket-inbox-group-rows {
  border-bottom: 1px solid var(--rule, var(--lh-gray-200));
}

.ticket-inbox-item {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--rule, var(--lh-gray-200));
  transition: background-color 160ms ease-out;
}

.ticket-inbox-item:last-child {
  border-bottom: 0;
}

.ticket-inbox-item[data-ticket-state="closed"] {
  background: color-mix(in srgb, var(--surface-2, var(--lh-gray-50)) 58%, transparent);
}

.ticket-inbox-item[data-ticket-state="closed"] .ticket-inbox-title {
  color: var(--text-body, var(--lh-gray-700));
}

.ticket-inbox-item-head {
  padding: 0 10px;
}

.ticket-inbox-title-group {
  min-width: 0;
}

.ticket-inbox-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.ticket-inbox-title {
  margin: 0;
  color: var(--text-head, var(--lh-navy-deep));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ticket-state-label {
  display: inline-flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--rule-strong, var(--lh-gray-300));
  border-radius: 5px;
  background: var(--surface-2, var(--lh-gray-50));
  color: var(--text-body, var(--lh-gray-700));
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.ticket-state-label--new {
  border-color: var(--gold, var(--lh-gold));
  background: var(--gold-faint, var(--lh-gold-faint));
  color: var(--text-head, var(--lh-navy-deep));
}

.ticket-state-label--in_review {
  border-color: color-mix(in srgb, var(--text-head, var(--lh-navy-deep)) 28%, transparent);
  background: color-mix(in srgb, var(--text-head, var(--lh-navy-deep)) 7%, var(--surface, var(--lh-white)));
  color: var(--text-head, var(--lh-navy-deep));
}

.ticket-state-label--resolved,
.ticket-state-label--fixed,
.ticket-state-label--answered {
  border-color: color-mix(in srgb, var(--green, var(--lh-green)) 45%, transparent);
  background: color-mix(in srgb, var(--green, var(--lh-green)) 9%, var(--surface, var(--lh-white)));
  color: color-mix(in srgb, var(--green, var(--lh-green)) 72%, var(--text-head, var(--lh-navy-deep)) 28%);
}

.ticket-state-label--declined,
.ticket-state-label--unable_to_reproduce {
  background: var(--surface-2, var(--lh-gray-100));
  color: var(--text-body, var(--lh-gray-700));
}

.ticket-inbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 12px;
  line-height: 1.45;
}

.ticket-inbox-meta strong {
  color: var(--text-body, var(--lh-gray-700));
  font-weight: 600;
}

.ticket-inbox-status-field {
  display: grid;
  gap: 5px;
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 11.5px;
  font-weight: 600;
}

.ticket-inbox-status-select {
  width: 100%;
  padding: 8px 28px 8px 10px;
}

.ticket-inbox-response {
  width: 100%;
  min-height: 84px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--border-btn, var(--lh-gray-300));
  border-radius: 7px;
  background: var(--surface, var(--lh-white));
  color: var(--text-strong, var(--lh-gray-800));
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
}

.ticket-inbox-response::placeholder {
  color: var(--text-muted, var(--lh-gray-600));
  opacity: 1;
}

.ticket-inbox-response[aria-invalid="true"] {
  border-color: var(--red, var(--lh-red));
}

.ticket-inbox-field-hint {
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.ticket-inbox-update {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--lh-navy-deep);
  border-radius: 7px;
  background: var(--lh-navy-deep);
  color: var(--lh-gold);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ticket-inbox-update:hover:not(:disabled) {
  background: var(--lh-navy);
}

.ticket-inbox-update:disabled,
.ticket-inbox-response:disabled {
  opacity: .6;
  cursor: wait;
}

.ticket-inbox-details {
  margin-top: 6px;
}

.ticket-inbox-details summary {
  width: fit-content;
  min-height: 36px;
  margin-left: 10px;
  color: var(--gold-dark, var(--lh-gold-dark));
  font-size: 12.5px;
  font-weight: 700;
  line-height: 36px;
  cursor: pointer;
}

.ticket-inbox-disclosure[open] > summary {
  color: var(--text-head, var(--lh-navy-deep));
}

.ticket-inbox-expanded {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  margin-top: 5px;
  padding: 18px 10px 8px;
  border-top: 1px solid var(--rule, var(--lh-gray-200));
}

.ticket-inbox-copy {
  min-width: 0;
}

.ticket-inbox-description {
  max-width: 75ch;
  margin: 0;
  color: var(--text-body, var(--lh-gray-700));
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ticket-inbox-route {
  margin: 10px 0 0;
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ticket-my-response {
  max-width: 75ch;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule, var(--lh-gray-200));
}

.ticket-my-response strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-head, var(--lh-navy-deep));
  font-size: 12.5px;
}

.ticket-my-response p {
  margin: 0;
  color: var(--text-body, var(--lh-gray-700));
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ticket-inbox-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ticket-inbox-attachment {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--rule-strong, var(--lh-gray-300));
  border-radius: 6px;
  background: var(--surface-2, var(--lh-gray-50));
  color: var(--text-strong, var(--lh-gray-800));
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.ticket-inbox-attachment:hover {
  border-color: var(--gold, var(--lh-gold));
  color: var(--gold-dark, var(--lh-gold-dark));
}

.ticket-inbox-empty {
  padding: 52px 16px;
  border-bottom: 1px solid var(--rule, var(--lh-gray-200));
  text-align: center;
}

.ticket-inbox-empty h3 {
  margin: 0;
  color: var(--text-head, var(--lh-navy-deep));
  font-size: 15px;
}

.ticket-inbox-empty p {
  margin: 7px auto 0;
  color: var(--text-muted, var(--lh-gray-600));
  font-size: 12.5px;
  line-height: 1.5;
}

.ticket-inbox-more {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.ticket-inbox-skeleton {
  display: grid;
  gap: 9px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule, var(--lh-gray-200));
}

.ticket-inbox-skeleton span {
  height: 11px;
  border-radius: 4px;
  background: var(--surface-2, var(--lh-gray-100));
}

.ticket-inbox-skeleton span:first-child { width: 42%; height: 14px; }
.ticket-inbox-skeleton span:nth-child(2) { width: 67%; }
.ticket-inbox-skeleton span:last-child { width: 24%; }

/* The standalone installer portal uses the same form on its navy header area. */
.installer-shell .ticket-heading h1 {
  color: var(--text-on-dark);
}

.installer-shell .ticket-heading p {
  color: var(--text-on-dark-dim);
}

@media (max-width: 680px) {
  .ticket-form-shell {
    padding: 20px 16px;
  }

  .ticket-heading h1 {
    font-size: 29px;
  }

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

  .ticket-category-option {
    min-height: 0;
  }

  .ticket-category-option + .ticket-category-option {
    border-top: 1px solid var(--rule-strong, var(--lh-gray-300));
    border-left: 0;
  }

  .ticket-actions,
  .ticket-submit {
    width: 100%;
  }

  .ticket-submit {
    justify-content: center;
  }

  .ticket-inbox-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-inbox-controls,
  .ticket-inbox-refresh,
  .ticket-inbox-status-field {
    width: 100%;
  }

  .ticket-inbox-controls .ticket-inbox-refresh {
    flex: 1 1 0;
  }

  .ticket-inbox-viewbar {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
  }

  .ticket-inbox-scope {
    width: 100%;
  }

  .ticket-inbox-scope-btn {
    flex: 1 1 0;
  }

  .ticket-inbox-filter,
  .ticket-inbox-filter select {
    width: 100%;
  }

  .ticket-inbox-filter {
    padding-bottom: 12px;
  }

  .ticket-inbox-expanded {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ticket-inbox-status-field {
    flex-basis: auto;
  }

  .ticket-inbox-attachment {
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .ticket-screenshot-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ticket-remove-file {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--red, var(--lh-red)) 35%, transparent);
  }

  .ticket-inbox-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket-category-option,
  .ticket-submit,
  .ticket-remove-file,
  .ticket-inbox-item {
    transition: none;
  }
}
