/* FuryTickets — one stylesheet, no build step, no web fonts. */
:root {
  --bg: #07080b; --panel: #11141b; --panel-2: #181c25; --line: rgba(255, 255, 255, 0.1);
  --ink: #eef1f6; --soft: #c3c9d4; --muted: #8a93a6; --sting: #ff3b4e; --sting-2: #ff6b7a;
  --ok: #4ade80; --warn: #fbbf24; --bad: #ff5468;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--sting-2); }
h1, h2 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 0 0 12px; }
h1 small { display: block; font-size: 0.95rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
h2 { font-size: 1.1rem; margin: 28px 0 8px; color: var(--soft); }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }

.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.1rem; }
.brand b { color: var(--sting); }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a, .tabs a { color: var(--soft); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.top nav a[aria-current], .tabs a[aria-current] { background: var(--panel-2); color: var(--ink); }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; }

main { max-width: 52rem; margin: 0 auto; padding: 28px 16px 56px; }
footer { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
footer a { color: var(--soft); }
.lede { color: var(--soft); max-width: 40rem; margin: 0 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.inline { display: inline; }
.linkish { background: none; border: 0; padding: 0; color: var(--sting-2); font: inherit; text-decoration: underline; cursor: pointer; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 700 0.95rem system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--sting); border-color: var(--sting); color: #fff; }
.btn.primary:hover { background: var(--sting-2); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; align-content: start; }
.form label > span { font-weight: 700; font-size: 0.95rem; }
.form em, .form i { font-style: normal; font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.form em { color: var(--sting-2); }
.form small { color: var(--muted); font-size: 0.85rem; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row.two { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #0b0d12; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--sting); outline-offset: 1px; }
.check { display: flex !important; align-items: center; gap: 10px; align-self: end; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--sting); }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 600px) { .inline-form { grid-template-columns: 1fr; } }
.inline-form .cf-turnstile { grid-column: 1 / -1; }

/* The honeypot: off-screen, not display:none, which some fillers skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 16px; margin: 0; }
.drop.over { border-color: var(--sting); background: rgba(255, 59, 78, 0.06); }
.drop legend { font-weight: 700; font-size: 0.95rem; padding: 0 6px; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-label { cursor: pointer; text-align: center; padding: 12px; }
.drop-label b { color: var(--sting-2); }
.drop input[type=file]:focus-visible + .drop-label { outline: 2px solid var(--sting); border-radius: 10px; }
.picked { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.picked:empty { display: none; }
.picked li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: var(--panel-2); }
.picked img, .picked video { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; background: #000; flex: none; }
.picked .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked .bad { color: var(--bad); font-size: 0.85rem; }
.picked button { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; min-width: 44px; min-height: 44px; }

.progress { position: relative; height: 28px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.progress div { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sting); transition: width 0.2s; }
.progress span { position: relative; display: block; text-align: center; font-size: 0.85rem; line-height: 28px; }

.errors { border: 1px solid var(--bad); background: rgba(255, 84, 104, 0.08); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; }
.errors p { margin: 0; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.notice { border: 1px solid rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.08); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; }
.notice a { display: inline-block; margin-left: 4px; }

/* A ticket */
.ticket { border-left: 4px solid var(--accent); }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 0.9rem; }
.ref { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--soft); }
.facts { display: grid; gap: 4px; margin: 0; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }
.reply { border-left: 3px solid var(--sting); padding-left: 12px; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.media figure { margin: 0; }
.media img, .media video { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #000; border-radius: 10px; }
.media figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.danger { text-align: right; margin-top: -8px; }

.status { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--panel-2); color: var(--soft); white-space: nowrap; }
.status-new { background: rgba(255, 59, 78, 0.18); color: var(--sting-2); }
.status-confirmed, .status-in_progress { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.status-fixed { background: rgba(74, 222, 128, 0.16); color: var(--ok); }
.sev-crash, .sev-blocker { color: var(--bad); font-weight: 700; }
.sev-major { color: var(--warn); }

/* Lists */
.tickets { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.tickets a { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ref title status" "ref meta status"; gap: 2px 14px; align-items: center;
  padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); color: var(--ink); text-decoration: none; }
.tickets a:hover { border-color: var(--sting); border-left-color: var(--accent); }
.tickets .ref { grid-area: ref; }
.tickets b { grid-area: title; overflow-wrap: anywhere; }
.tickets .meta { grid-area: meta; color: var(--muted); font-size: 0.85rem; }
.tickets .status { grid-area: status; }
@media (max-width: 600px) {
  .tickets a { grid-template-columns: 1fr auto; grid-template-areas: "ref status" "title title" "meta meta"; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filters select, .filters input { width: auto; flex: 1 1 160px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 12px; }
