/* In-app support: floating Help button, report sheet, and My support requests. */
.tl-help{position:fixed;z-index:45;right:16px;bottom:calc(18px + var(--tabbar-pad, 0px) + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:8px;min-height:48px;padding:0 16px 0 14px;border:1px solid var(--border);border-radius:var(--r-pill);background:var(--card);color:var(--foreground);box-shadow:var(--sh-2);font:inherit;font-weight:680;font-size:14px;letter-spacing:-.01em;cursor:pointer;transition:transform var(--dur-1) var(--ease),box-shadow var(--dur-2) var(--ease),background var(--dur-1)}
.tl-help:hover{background:var(--surface-raised);box-shadow:var(--sh-3);color:var(--foreground)}
.tl-help:active{transform:scale(.98)}
.tl-help:focus-visible{outline:none;box-shadow:var(--ring-shadow),var(--sh-2)}
.tl-help .lc{width:18px;height:18px;color:var(--accent)}
.tl-help-label{white-space:nowrap}
@media(max-width:720px){
  .tl-help{right:14px;bottom:calc(76px + env(safe-area-inset-bottom,0px));padding:0;width:52px;height:52px;min-height:52px;justify-content:center}
  .tl-help-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
}
.tl-help-sheet{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.tl-help-sheet[hidden]{display:none}
.tl-help-scrim{position:absolute;inset:0;background:var(--scrim);pointer-events:auto;border:0;padding:0;margin:0;cursor:pointer}
.tl-help-panel{position:relative;z-index:1;pointer-events:auto;width:min(520px,100%);max-height:min(92dvh,900px);overflow:auto;background:var(--card);color:var(--card-foreground);border:1px solid var(--border);border-radius:var(--r-xl) var(--r-xl) 0 0;box-shadow:var(--sh-3);padding:18px 18px calc(20px + env(safe-area-inset-bottom,0px));animation:console-rise .22s var(--ease)}
@media(min-width:640px){
  .tl-help-sheet{align-items:center;padding:24px}
  .tl-help-panel{border-radius:var(--r-xl);max-height:min(86vh,820px)}
}
.tl-help-panel h2{margin:0 4px 4px;font-size:22px;letter-spacing:-.03em}
.tl-help-lede{margin:0 4px 14px;color:var(--muted-foreground);font-size:14px;line-height:1.45}
.tl-help-panel label{display:block;margin:12px 0 6px;font-weight:620;font-size:13.5px}
.tl-help-kinds{display:flex;flex-wrap:wrap;gap:8px}
.tl-help-kinds label{margin:0;display:flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--input);border-radius:var(--r-pill);background:var(--card);font-weight:620;font-size:13.5px;cursor:pointer}
.tl-help-kinds label:has(input:checked){border-color:var(--primary);background:var(--primary-soft);color:var(--accent-ink)}
.tl-help-kinds input{position:absolute;opacity:0;pointer-events:none}
.tl-help-panel textarea{min-height:110px;resize:vertical}
.tl-help-shot{display:flex;gap:10px;align-items:flex-start;margin:4px 0 8px;padding:10px;border:1px dashed var(--border-strong);border-radius:var(--r-md);background:var(--surface-inset)}
.tl-help-shot img,.tl-help-shot video{width:96px;height:72px;object-fit:cover;border-radius:8px;background:#111;flex:none}
.tl-help-shot p{margin:0;font-size:13px;color:var(--muted-foreground);flex:1}
.tl-help-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0}
.tl-help-check{display:flex;align-items:flex-start;gap:8px;margin:14px 0 6px;font-weight:560;font-size:14px}
.tl-help-check input{width:16px;height:16px;min-height:16px;margin-top:2px;flex:none;box-shadow:none;padding:0}
.tl-help-guest{margin-top:8px}
.tl-rec-dot{display:inline-flex;align-items:center;gap:6px;font-weight:680;color:var(--destructive);font-size:13px}
.tl-rec-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 0 currentColor;animation:tl-rec 1.2s ease-out infinite}
@keyframes tl-rec{50%{box-shadow:0 0 0 6px transparent}}
.tl-ticket{display:block;color:inherit;text-decoration:none}
.tl-ticket .card{margin:0 0 10px}
.tl-meta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:12px 0;font-size:13.5px}
.tl-meta dt{color:var(--muted-foreground)}
.tl-meta dd{margin:0;font-weight:620;word-break:break-word}
.tl-timeline{list-style:none;margin:0;padding:0}
.tl-timeline li{position:relative;padding:0 0 16px 18px;border-left:2px solid var(--border)}
.tl-timeline li:last-child{border-left-color:transparent}
.tl-timeline li::before{content:"";position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--primary)}
.tl-timeline .tiny{display:block;margin-top:2px}
.tl-attach{margin:10px 0;max-width:100%;border-radius:var(--r-md);border:1px solid var(--border)}
.tl-attach-video{width:100%;background:#111}
#tl-help-btn[hidden]{display:none}
@media(prefers-reduced-motion:reduce){
  .tl-help-panel,.tl-help,.tl-rec-dot::before{animation:none;transition:none}
}
