.support-page { height: auto; min-height: 100dvh; overflow: visible; }
.support-header { padding-top: calc(16px + env(safe-area-inset-top,0px)); padding-bottom: 12px; margin-bottom: 0; }
.support-header a { color: var(--ink); font-size: .85rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.support-header a:last-child { color: var(--muted); font-weight: 650; }
.support-shell { max-width: 760px; padding-bottom: calc(28px + env(safe-area-inset-bottom,0px)); -webkit-text-size-adjust: 100%; }
.page-shell.support-shell { padding-bottom: calc(112px + env(safe-area-inset-bottom,0px)); }
.support-intro h1 { font-size: clamp(1.7rem,5vw,2.4rem); }
.support-intro .lead { font-size: 1rem; }
.support-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; margin: 24px 0 0; list-style: none; gap: 8px; }
.support-progress li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; font-weight: 650; min-width: 0; }
.support-progress span { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.support-progress [aria-current] { color: var(--ink); font-weight: 800; }
.support-progress [aria-current] span { background: #e60012; border-color: #e60012; color: white; }
.support-progress .is-complete span { background: var(--surface-alt); color: var(--ink); }
.support-workspace { padding: clamp(18px,4vw,28px); }
.support-workspace h2 { font-size: 1.25rem; margin: 0 0 18px; scroll-margin-top: calc(100px + env(safe-area-inset-top,0px)); }
.support-workspace h2:focus { outline: none; }
.support-shell fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.support-shell label { display: grid; gap: 7px; margin-bottom: 16px; font-weight: 650; }
.support-shell input,.support-shell textarea,.support-shell select { width: 100%; min-width: 0; font: inherit; font-size: 16px; font-weight: 400; }
.support-shell textarea { min-height: 165px; resize: vertical; }
.support-shell small,.support-note,.support-privacy { font-weight: 400; color: var(--muted); line-height: 1.55; font-size: .875rem; }
.support-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.support-choice-actions { display: grid; gap: 10px; margin: 20px 0; }
.support-choice-actions a { text-align: center; }
.support-invitation { border-top: 1px solid var(--line); padding-top: 14px; margin: 4px 0 18px; }
.support-invitation summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.support-invitation label { margin: 14px 0 0; }
.support-identity { padding: 14px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; overflow-wrap: anywhere; }
.support-identity p { margin: 4px 0; color: var(--muted); font-size: .875rem; }
.support-writing-help { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .8rem; }
.support-writing-help p { flex: 1 1 220px; margin: 0; line-height: 1.5; }
.support-writing-help span { white-space: nowrap; }
.support-form-actions,.support-receipt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.support-form-actions .btn { flex: 1; }
.support-shell button,.support-shell .btn { min-height: 44px; white-space: normal; }
.support-review-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.support-review-head p { margin: 0 0 4px; }
.support-review-head button.text-link { background: transparent; border: 0; padding: 0; color: var(--ink); text-decoration: underline; }
.support-report-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
#support-review-body { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt); }
.support-receipt { overflow-wrap: anywhere; }
.support-receipt h3 { margin-top: 0; }
.support-receipt li { padding-left: 4px; margin: 10px 0; line-height: 1.55; }
.support-feedback { white-space: pre-line; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.6; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); }
.support-feedback:empty { display: none; }
.support-privacy { margin: 16px 0; }
#support-inbox[hidden],#support-inbox [hidden],.support-shell [hidden] { display: none !important; }
.support-inbox-head { flex-wrap: wrap; gap: 12px; }
.support-inbox-tools { display: grid; grid-template-columns: minmax(0,1fr) 180px; align-items: end; gap: 12px; margin: 12px 0 18px; }
.support-inbox-tools label { display: grid; gap: 6px; font-size: .85rem; font-weight: 650; min-width: 0; }
.support-inbox-tools input,.support-inbox-tools select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; line-height: 24px; }
.support-inbox-tools select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.support-inbox-status { position: relative; }
.support-inbox-status::after { content: ''; position: absolute; right: 18px; bottom: 20px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.support-inbox-list { display: grid; gap: 12px; }
.support-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; overflow: hidden; }
.support-card > summary { display: block; list-style: none; padding: 16px; cursor: pointer; }
.support-card > summary::-webkit-details-marker { display: none; }
.support-card > summary:focus-visible { outline: 2px solid #e60012; outline-offset: -3px; }
.support-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.support-card h3 { margin: 0; font-size: 1rem; }
.support-card .support-preview { margin: 10px 0 6px; overflow-wrap: anywhere; line-height: 1.5; }
.support-card .support-report-meta { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; margin: 0; line-height: 1.6; }
.support-card .support-expand-label { display: block; font-size: .8rem; font-weight: 650; margin-top: 10px; color: var(--muted); }
.support-card .support-expand-label::after { content: ' ↓'; }
.support-card[open] .support-expand-label::after { content: ' ↑'; }
.support-card-content { border-top: 1px solid var(--line); padding: 16px; }
.support-card-content .support-report-body { margin-top: 0; }
.support-report-contacts { display: grid; gap: 6px; margin: 16px 0; overflow-wrap: anywhere; }
.support-report-contacts a { max-width: 100%; overflow-wrap: anywhere; }
.support-report-contacts a { color: var(--ink); }
.support-report-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.support-report-actions > * { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: normal; }
.support-inbox-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; font-size: .85rem; }
.support-inbox-note { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-bottom: 0; }
.support-reply-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; scroll-margin-top: calc(100px + env(safe-area-inset-top,0px)); }
.support-reply-form fieldset { border: 0; min-width: 0; margin: 0 0 10px; padding: 0; }
.support-reply-form legend { font-weight: 800; margin-bottom: 8px; }
.support-reply-form label { display: grid; gap: 8px; margin-top: 14px; font-weight: 650; }
.support-reply-form textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; font-weight: 400; resize: vertical; min-height: 140px; }
.support-reply-count { display: block; color: var(--muted); font-size: .8rem; margin: 8px 0; }
.support-reply-actions { margin: 14px 0; }
.support-reply-actions .btn { width: 100%; min-height: 44px; }
.support-reply-form button.text-link { border: 0; background: transparent; color: var(--ink); text-decoration: underline; min-height: 44px; }
.support-reply-feedback { overflow-wrap: anywhere; line-height: 1.5; font-size: .875rem; }
.support-reply-history h4 { margin: 18px 0 10px; }
.support-reply-history article { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--surface-alt); }
@media(max-width:600px) {
  .support-inbox-tools { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:420px) {
  .support-contact-grid { grid-template-columns: minmax(0,1fr); }
  .support-shell { padding-left: 12px; padding-right: 12px; }
  .support-progress li { gap: 5px; font-size: .75rem; }
  .support-receipt-actions > .btn-outline { width: 100%; }
  .support-report-actions > * { flex: 1 1 150px; }
}
