#panel-support {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  color: var(--ink);
}
#panel-support h3, #panel-support h4 { margin: 0; font-family: var(--display); line-height: 1.16; }
.ticket-header, .ticket-thread-head, .ticket-sheet, .ticket-empty, #ticket-list:not(:empty) {
  border: var(--outline);
  border-radius: 5px 5px 10px 5px;
  background: var(--paper);
  box-shadow: var(--paper-depth);
}
.ticket-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: clamp(18px, 3vw, 27px);
  background: var(--yellow);
}
.ticket-header-copy { position: relative; min-width: 0; }
.ticket-header-copy h2 { font-size: clamp(1.75rem, 3.5vw, 2.45rem); line-height: 1.05; }
.ticket-header-copy p { margin: 6px 0 0; max-width: 52ch; font-size: .9rem; line-height: 1.45; }
.ticket-header button { flex: none; }
.ticket-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 23px 0 12px; }
.ticket-section-head :is(h3,h4) { font-size: 1.25rem; letter-spacing: -.02em; }
.ticket-feedback:has(:not([hidden])) { margin-top: 16px; }
#ticket-notice { margin: 0; line-height: 1.5; }
#ticket-retry { margin-top: 7px; }
#ticket-list, #ticket-messages { list-style: none; padding: 0; margin: 0; }
#ticket-list > li + li { border-top: 1px dashed var(--line); }
.ticket-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 14px;
  min-height: 66px;
  padding: 14px 17px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
}
.ticket-row:hover, .ticket-row:focus-visible { background: #f4efdd; }
.ticket-row:focus-visible { outline-offset: -4px; }
.ticket-row-text { min-width: 0; }
.ticket-row-title { display: block; font-size: .99rem; overflow-wrap: anywhere; }
.ticket-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 11px; margin-top: 5px; font-size: .76rem; color: var(--muted); }
.ticket-status { white-space: nowrap; }
.ticket-status.open { background: var(--mint); }
.ticket-status.closed { background: #e5deee; }
.ticket-empty { padding: clamp(18px, 4vw, 28px); border-style: dashed; }
.ticket-empty strong { display: block; font: 800 1.18rem/1.2 var(--display); }
.ticket-empty p { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.ticket-sheet, .ticket-thread-head { margin-top: 22px; }
.ticket-sheet-title { padding: 13px 17px; background: var(--lavender); border-bottom: var(--outline); border-radius: 3px 3px 0 0; font-size: 1.25rem; }
.ticket-fields { min-width: 0; margin: 0; padding: 4px clamp(14px, 2.2vw, 20px) 20px; border: 0; }
.ticket-fields select { max-width: 100%; min-width: min(100%, 13rem); }
.ticket-fields textarea { resize: vertical; min-height: 74px; line-height: 1.5; }
.ticket-fields input, .ticket-fields textarea { background: white; }
.ticket-actions { display: flex; justify-content: flex-end; padding-top: 10px; }
.ticket-thread-head { padding: 17px clamp(14px, 2.2vw, 20px); }
.ticket-reference { color: var(--muted); font-size: .77rem; font-weight: 650; }
#ticket-thread-title { margin-top: 4px; overflow-wrap: anywhere; font-size: clamp(1.27rem, 2.4vw, 1.65rem); }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 10px; color: var(--muted); font-size: .79rem; }
.ticket-expiry { margin-top: 9px; font-size: .83rem; color: var(--muted); }
#ticket-older { margin-bottom: 12px; }
#ticket-messages { display: grid; gap: 12px; }
.ticket-message {
  width: fit-content;
  min-width: min(12rem, 100%);
  max-width: min(90%, 72ch);
  padding: 11px 14px;
  border: var(--outline);
  border-radius: 3px 9px 9px 9px;
  background: var(--lavender);
  box-shadow: 2px 2px 0 var(--ink-edge);
}
.ticket-message.customer { justify-self: end; border-radius: 9px 3px 9px 9px; background: var(--paper); }
.ticket-byline { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 15px; }
.ticket-byline strong { font-size: .84rem; }
.ticket-byline time { font-size: .71rem; color: var(--muted); }
.ticket-message p { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.5; }
.ticket-reply { margin-top: 22px; border-top: 2px dashed var(--line); }
.ticket-reply .ticket-fields { padding: 0; }
#ticket-closed { margin: 18px 0 0; }
@media (max-width: 450px) {
  .ticket-header { padding: 16px 14px; }
  .ticket-row { gap: 6px; padding: 12px; }
  .ticket-section-head { margin-top: 20px; }
  .ticket-message { max-width: 96%; }
  .ticket-row-meta { gap: 3px 8px; }
}
