/* Tickets, suggestions, staff panel sidebar, Ctrl+K search */

/* ── staff panel shell ── */
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; max-width: 1440px; margin: 0 auto; padding-left: 16px; padding-right: 16px; align-items: start; }
.admin-side { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; scrollbar-width: thin; }
.admin-me { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; padding: 4px 6px 10px; }
.admin-me .tag.staff { margin-left: 0; }
.admin-side nav { display: flex; flex-direction: column; gap: 1px; }
.admin-side .grp { font: 700 11px Inter; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 8px 4px; }
.admin-side nav a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: #c4d2ea; font-weight: 600; font-size: 14px; }
.admin-side nav a .ic { width: 16px; height: 16px; color: var(--muted); }
.admin-side nav a:hover { background: var(--card); color: var(--ice); }
.admin-side nav a.on { background: var(--card2); color: var(--ice); box-shadow: inset 3px 0 0 var(--neon); }
.admin-side nav a.on .ic { color: var(--neon2); }
.admin-side .badge { margin-left: auto; background: var(--neon); color: #fff; font: 700 11px Inter; padding: 1px 7px; border-radius: 99px; }
.admin-main { min-width: 0; }
.admin-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.ksearch { width: 100%; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line2); color: var(--muted); border-radius: 10px; padding: 8px 10px; font: 500 13px Inter; cursor: pointer; }
.ksearch:hover { border-color: var(--neon); color: var(--text); }
.ksearch kbd { margin-left: auto; font-size: 10px; }
.dash-tile { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.dash-tile h3 { margin: 0; font-size: 15px; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; gap: 14px; }
  .admin-side { position: static; max-height: none; }
  .admin-side nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .admin-side .grp { display: none; }
  .admin-side nav a { white-space: nowrap; }
}

/* ── shared bits ── */
.sp { flex: 1; }
.dim td { opacity: .55; }
.err-t { color: var(--err); }
.late-t { color: var(--err) !important; }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); vertical-align: middle; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who img { border-radius: 50%; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.cfg-grid label { display: flex; flex-direction: column; gap: 4px; color: #c4d2ea; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 14px; }
.act-grid .card { padding: 14px; gap: 8px; margin: 0; }
.act-grid .card b { display: flex; align-items: center; gap: 8px; }
.act-grid .btn { align-self: flex-start; }
.filter-in { max-width: 320px; margin-bottom: 10px; }
table.t-list tr { cursor: pointer; }
table.t-list tr:hover td { background: rgba(47,140,240,.05); }

/* status / priority pills */
.pill.ts-open { color: var(--neon2); border-color: rgba(47,140,240,.4); }
.pill.ts-waiting { color: var(--warn); border-color: rgba(251,191,36,.4); }
.pill.ts-escalated { color: #c084fc; border-color: rgba(192,132,252,.45); }
.pill.ts-closed { color: var(--muted); }
.pill.pr-0 { color: var(--muted); }
.pill.pr-2 { color: var(--warn); border-color: rgba(251,191,36,.4); }
.pill.pr-3 { color: #fff; background: #b23b3b; border-color: #b23b3b; }
.pill.late { color: #fff; background: rgba(248,113,113,.25); border-color: var(--err); }
.pill.sug-review { color: var(--neon2); border-color: rgba(47,140,240,.4); }
.pill.sug-planned { color: #c4a5ff; border-color: rgba(196,165,255,.45); }
.pill.sug-progress { color: var(--warn); border-color: rgba(251,191,36,.4); }
.pill.sug-added { color: var(--ok); border-color: rgba(52,211,153,.4); }
.pill.sug-denied, .pill.sug-duplicate { color: var(--err); border-color: rgba(248,113,113,.35); }
.tag.t-feature { color: #c4a5ff; border-color: rgba(196,165,255,.4); }
.tag.t-balance { color: var(--warn); border-color: rgba(251,191,36,.4); }
.tag.t-store { color: #f472b6; border-color: rgba(244,114,182,.4); }
.tag.t-maintenance { color: #94a3b8; }

/* ── ticket view ── */
.t-head { margin-bottom: 14px; }
.t-head .page-h { margin-bottom: 6px; }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.t-fields { margin-bottom: 14px; }
.t-fields .qa:first-child { margin-top: 0; }
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; max-width: 92%; }
.msg.player { align-self: flex-start; }
.msg.staff { align-self: flex-end; border-color: rgba(47,140,240,.45); background: linear-gradient(180deg, rgba(47,140,240,.12), var(--card)); }
.msg.note { align-self: stretch; max-width: none; border-style: dashed; border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.05); }
.msg-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.msg-h .tag.staff { margin-left: 0; }
.msg-b { white-space: normal; overflow-wrap: anywhere; }
.msg-files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.msg-files img { width: 140px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); }
.t-sys { text-align: center; font-size: 12px; color: var(--muted); }
.t-sys .tiny { opacity: .7; }
.t-reply.is-note { border-color: rgba(251,191,36,.6); }
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.t-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 80px; }
.t-side .card { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.t-side .small-h { margin: 0 0 2px; font-size: 15px; }
.t-side p { margin: 0; }
.t-side .row-form select, .t-side .row-form input { min-width: 0 !important; flex: 1; }
@media (max-width: 1000px) { .t-grid { grid-template-columns: 1fr; } .t-side { position: static; } }

/* rating stars (right-to-left so CSS can light the ones before) */
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { display: none; }
.stars label { cursor: pointer; color: var(--line2); }
.stars label .ic { width: 28px; height: 28px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }

/* ── suggestions ── */
.sug-list { display: flex; flex-direction: column; gap: 10px; }
.sug { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.sug-b { display: flex; flex-direction: column; gap: 4px; color: var(--text); flex: 1; min-width: 0; }
.sug-b:hover { color: var(--text); }
.sug-b:hover b { color: var(--ice); }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; padding: 8px 6px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); color: var(--muted); cursor: pointer; font: 700 15px Inter; }
.vote:hover { border-color: var(--neon); color: var(--ice); }
.vote.on { color: #fff; background: var(--neon); border-color: var(--neon); box-shadow: 0 0 16px rgba(47,140,240,.5); }
.vote:disabled { opacity: .5; cursor: default; }
.vote-box { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 14px; }

/* ── Ctrl+K ── */
.kbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.kbox[hidden] { display: none; }
.kbox-in { width: min(620px, 100%); background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.kbox input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 18px; font-size: 16px; background: transparent; box-shadow: none !important; }
.kbox ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.kbox li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); }
.kbox li a small { color: var(--muted); margin-left: auto; font-size: 12px; white-space: nowrap; }
.kbox li a .k-kind { font: 700 10px Inter; text-transform: uppercase; letter-spacing: .06em; color: var(--neon2); min-width: 56px; }
.kbox li.on a, .kbox li a:hover { background: var(--card2); color: var(--ice); }
.kbox .k-empty { padding: 14px 18px; color: var(--muted); font-size: 14px; }
