/* Support tickets (support.html, Tickets tab of admin.html, js/tickets-ui.js) */
.tk-st{display:inline-block;padding:2px 8px;border-radius:7px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:var(--blue-dim);color:var(--blue)}
.tk-st.answered{background:rgba(53,208,127,.15);color:var(--green)}
.tk-st.closed{background:#1a212d;color:var(--muted)}
.tk-cat{font-size:12px;color:var(--muted)}
.tk-list{display:flex;flex-direction:column;gap:8px}
.tk-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid var(--line-soft);border-radius:12px;background:var(--bg2);cursor:pointer;text-align:left;color:inherit;font:inherit;width:100%}
.tk-item:hover{border-color:var(--blue)}
.tk-item.unread{border-color:rgba(242,196,0,.55);box-shadow:0 0 16px rgba(242,196,0,.1)}
.tk-item .av{width:30px;height:30px;border-radius:50%;flex:0 0 auto}
.tk-item .t{flex:1;min-width:0}
.tk-item .t b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-item .t small{color:var(--muted);font-size:12px}
.tk-new{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px rgba(242,196,0,.6)}
.tk-msg{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.tk-msg .av{width:32px;height:32px;border-radius:50%;flex:0 0 auto}
.tk-msg .body{flex:1;min-width:0}
.tk-msg .h{font-size:12.5px;color:var(--muted)}
.tk-msg .h b{color:var(--text)}
.tk-msg p{margin:4px 0 0;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.tk-msg.staff .body{padding:8px 12px;border-radius:12px;background:rgba(110,168,255,.07);border:1px solid rgba(110,168,255,.2)}
.tk-staff{display:inline-block;padding:1px 6px;border-radius:5px;background:rgba(242,196,0,.16);color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.06em}
.tk-imgs{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.tk-imgs img{max-width:220px;max-height:150px;border-radius:9px;border:1px solid var(--line);display:block;object-fit:cover}
.tk-compose{display:flex;flex-direction:column;gap:8px;border:1px dashed transparent;border-radius:12px}
.tk-compose.drop{border-color:var(--neon)}
.tk-compose textarea,.tk-form input,.tk-form select{box-sizing:border-box;width:100%;padding:9px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg2);color:var(--text);font:inherit;font-size:14px}
.tk-compose textarea{height:120px;min-height:80px;max-height:400px;resize:vertical}
.tk-compose textarea:focus,.tk-form input:focus,.tk-form select:focus{outline:none;border-color:var(--blue)}
.tk-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tk-file{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:9px;border:1px solid var(--line);background:var(--panel2);font-size:13px;font-weight:700;cursor:pointer}
.tk-file:hover{border-color:var(--blue)}
.tk-hint{font-size:12px;color:var(--muted)}
.tk-thumbs{display:flex;gap:6px;flex-wrap:wrap}
.tk-thumb{position:relative}
.tk-thumb img{width:64px;height:44px;object-fit:cover;border-radius:7px;border:1px solid var(--line);display:block}
.tk-thumb button{position:absolute;top:-6px;right:-6px;width:18px;height:18px;padding:0;border-radius:50%;border:0;background:var(--red);color:#fff;font-size:12px;line-height:18px;cursor:pointer}
.tk-form{display:flex;flex-direction:column;gap:12px}
.tk-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted);font-weight:600}
.tk-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}
.tk-cats button{padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:var(--bg2);color:var(--text);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;text-align:left}
.tk-cats button small{display:block;font-weight:500;color:var(--muted);font-size:12px;margin-top:2px}
.tk-cats button[aria-pressed="true"]{border-color:var(--blue);background:#17304d}
.tk-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.tk-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap}
.tk-head h3{margin:0;font-family:var(--font-display);font-size:22px;letter-spacing:.02em;word-break:break-word}
.tk-head small{display:block;color:var(--muted);font-size:12.5px;margin-top:3px}
.tk-back{background:none;border:0;color:var(--blue);font:inherit;font-weight:700;cursor:pointer;padding:0;margin-bottom:10px}
.tk-msgline{min-height:18px;font-size:13px;margin:6px 0 0}
.tk-msgline.err{color:var(--red)}.tk-msgline.ok{color:var(--green)}
