.ticket-page {
    --ticket-accent-soft:#fff5c7;
    --ticket-accent-border:#c89d22;
    --ticket-accent-ink:#584103;
    --ticket-focus:#866500;
    --ticket-icon-back:#f6d778;
    --ticket-icon-middle:#dca922;
}
.ticket-page :focus-visible { outline-color:var(--ticket-focus); }
.ticket-shell { box-sizing:border-box; max-width:680px; margin:auto; padding:16px clamp(10px,3vw,22px) 40px; }
.ticket-header { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:52px; margin-bottom:12px; padding-inline:8px; background:#fff; border:1px solid var(--town-line); border-radius:14px; }
.ticket-header h1 { grid-column:2; margin:0; font-size:1.16rem; }
.ticket-header a { display:inline-flex; align-items:center; min-height:44px; color:var(--town-ink); font-size:.83rem; font-weight:700; }
#ticket-back { justify-self:start; justify-content:center; width:44px; }
#ticket-jump { justify-self:end; padding-inline:5px; }
.ticket-header svg, .ticket-upload svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ticket-card { display:grid; gap:18px; padding:clamp(14px,4vw,24px); margin-bottom:12px; background:#fff; border:1px solid var(--town-line); border-radius:14px; }
.ticket-card fieldset { min-width:0; padding:0; margin:0; border:0; }
.ticket-card legend, .ticket-area, .ticket-feedback > label { margin:0 0 8px; font-size:.91rem; font-weight:750; }
.ticket-types, .ticket-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.ticket-option, .ticket-upload { position:relative; min-width:0; cursor:pointer; }
.ticket-option input, .ticket-upload input { position:absolute; width:1px; height:1px; opacity:0; }
.ticket-option span, .ticket-upload span { box-sizing:border-box; display:grid; place-items:center; min-height:44px; text-align:center; padding:5px 4px; border:1px solid transparent; border-radius:999px; background:#f3f4f6; color:#434b58; font-size:.84rem; }
.ticket-option input:checked + span { background:var(--ticket-accent-soft); color:var(--ticket-accent-ink); border-color:var(--ticket-accent-border); font-weight:750; }
.ticket-option input:focus-visible + span, .ticket-upload input:focus-visible + span { outline:2px solid var(--ticket-focus); outline-offset:2px; }
.ticket-type span { min-height:92px; align-content:center; gap:4px; border-radius:9px; }
.ticket-type svg { width:43px; height:43px; max-width:100%; color:var(--ticket-accent-ink); }
.ticket-icon-back { fill:var(--ticket-icon-back); }
.ticket-icon-middle { fill:var(--ticket-icon-middle); }
.ticket-icon-front { fill:var(--town-yellow); }
.ticket-area { display:grid; grid-template-columns:1fr minmax(0,1.25fr); gap:8px; align-items:center; margin:0; }
.ticket-area select, .ticket-feedback textarea { box-sizing:border-box; width:100%; padding:9px; border:1px solid #d4d6dd; border-radius:8px; background:#fff; color:var(--town-ink); font:inherit; font-size:1rem; }
.ticket-area select { min-height:44px; }
.ticket-feedback > label { display:block; }
.ticket-feedback textarea { display:block; resize:vertical; }
.ticket-images, .ticket-previews { display:flex; flex-wrap:wrap; gap:8px; }
.ticket-images { margin-top:10px; }
.ticket-upload span, .ticket-preview { width:70px; height:70px; border-radius:9px; }
.ticket-upload span { align-content:center; gap:4px; font-size:.75rem; }
.ticket-preview { position:relative; background:#f3f4f6; }
.ticket-preview img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.ticket-preview button { position:absolute; top:0; right:0; width:30px; height:30px; padding:0; border:0; border-radius:0 9px; background:#20232a; color:white; font:inherit; cursor:pointer; }
.ticket-status { margin:0 0 12px; color:#434b58; font-size:.87rem; overflow-wrap:anywhere; }
.ticket-card .ticket-status { margin:0; }
.ticket-submit { min-height:46px; font-size:.94rem; }
.ticket-history { gap:10px; scroll-margin-top:12px; }
.ticket-history details { border-top:1px solid var(--town-line); padding:10px 0; overflow-wrap:anywhere; }
.ticket-history summary { cursor:pointer; line-height:1.6; }
.ticket-history summary strong { margin-right:6px; }
.ticket-history .ticket-copy { white-space:pre-wrap; }
.ticket-history .town-button { justify-self:start; min-height:44px; }
.ticket-history ul { padding-left:20px; }
.ticket-history a { color:var(--ticket-accent-ink); }
