:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #eef2e9; background: #101c1a; line-height: 1.7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.support-shell { max-width: 760px; margin: auto; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.admin-shell { max-width: 1180px; }
a { color: #e2ca84; text-underline-offset: 4px; }
.back-link { display: inline-block; padding: 8px 0; }
.eyebrow { color: #d6bf7d; margin: 22px 0 4px; letter-spacing: .08em; }
h1 { font-size: clamp(24px, 5vw, 32px); margin: 0 0 16px; font-family: serif; }
h2 { font-size: 21px; margin-top: 0; }
p { overflow-wrap: anywhere; }
.support-card { padding: clamp(18px, 4vw, 30px); background: #192a26; border: 1px solid #56604a; border-radius: 12px; margin: 24px 0; min-width: 0; }
label { display: block; font-weight: 600; margin: 20px 0 8px; }
label:first-child { margin-top: 0; }
label span, .field-help, .report-meta { font-size: 14px; color: #c2cbbf; font-weight: 400; }
label span { margin-left: 8px; }
.field-help { margin: 4px 0 12px; }
input, textarea, select, button { font: inherit; }
input, textarea, select { display: block; width: 100%; padding: 11px 12px; background: #101e1b; color: #f5f5ec; border: 1px solid #778474; border-radius: 6px; min-width: 0; }
textarea { resize: vertical; }
button, .button-link { display: inline-block; min-height: 44px; padding: 10px 20px; border: 1px solid #d0b665; border-radius: 6px; background: #d8bd73; color: #14231d; font-weight: 600; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
.secondary { background: #203b30; color: #efe7d1; border-color: #72836b; }
:focus-visible { outline: 3px solid #f0d383; outline-offset: 3px; }
#send, #login button, #detail button { margin-top: 18px; }
#challenge { margin-top: 20px; min-height: 65px; }
#message, #admin-message { color: #f0d99b; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.report-row { display: block; width: 100%; text-align: left; margin-bottom: 12px; overflow-wrap: anywhere; font-weight: 400; }
.report-row span { display: block; }
.report-body { white-space: pre-wrap; border-top: 1px solid #56604a; padding-top: 16px; }
@media (max-width: 720px) { .admin-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.admin-toolbar { align-items: center; }
.admin-toolbar p { margin: 0; }
.admin-actions, .admin-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-filters { margin-top: 22px; }
.admin-filters button { flex: 1; }
.admin-filters [aria-pressed="true"] { background: #d8bd73; color: #14231d; border-color: #e8d69a; }
.admin-grid .support-card { margin: 18px 0; padding: clamp(16px, 2vw, 24px); }
.admin-grid h2 { margin-bottom: 8px; }
.report-list-panel { position: sticky; top: 16px; }
#reports { max-height: 65vh; max-height: 65dvh; overflow-y: auto; scrollbar-gutter: stable; padding: 4px; }
.report-row { padding: 14px; border-color: #4f655b; background: #152720; }
.report-row:hover { background: #253e31; }
.report-row[aria-pressed="true"] { border-color: #e2ca84; box-shadow: inset 3px 0 #e2ca84; background: #304233; }
.report-row .report-row-heading, .detail-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.report-row .status-badge, .status-badge { display: inline-block; font-size: 13px; font-weight: 700; border: 1px solid; border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.status-unread { color: #f1d597; background: #44391f; border-color: #8f7947; }
.status-new { color: #e0d9bf; background: #383b2e; border-color: #7b8065; }
.status-working { color: #b9e2f5; background: #203f4e; border-color: #52869c; }
.status-done { color: #b7d0c1; background: #293d32; border-color: #597564; }
.status-dismissed { color: #c9c8d2; background: #33323d; border-color: #74717e; }
.report-preview { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 0; line-height: 1.6; }
.detail-heading { justify-content: space-between; }
.detail-heading h2 { margin: 0; }
.report-body { font-size: 16px; line-height: 1.85; }
#detail .report-body { max-height: 45dvh; overflow-y: auto; padding-right: 8px; scrollbar-gutter: stable; }
.report-device { color: #bbc8bd; font-size: 14px; border-top: 1px solid #3d5548; padding-top: 10px; }
.report-device p { margin: 4px 0; }
.status-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.status-controls select { flex: 1 1 130px; }
#detail .status-controls button, #detail .delete-area button { margin-top: 0; }
.delete-area { border-top: 1px solid #3d5548; margin-top: 26px; padding-top: 18px; }
.danger { background: #663d37; color: #ffe2d8; border-color: #b47e70; }
.danger.secondary { background: transparent; color: #e1afa1; }
.empty-reports { color: #c2cbbf; padding: 24px 4px; }
#delete-dialog { width: min(560px, calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; color: #eef2e9; background: #192a26; border: 1px solid #8f7961; border-radius: 12px; padding: clamp(18px, 4vw, 28px); }
#delete-dialog::backdrop { background: #000a; }
#delete-preview { max-height: 30dvh; overflow-y: auto; }
#delete-message { color: #ffbcb0; }
@media (max-width: 720px) {
  .report-list-panel { position: static; }
  #reports { max-height: 45dvh; }
  .admin-filters { gap: 6px; }
  .admin-filters button { padding: 10px 6px; font-size: 14px; }
  .admin-filters button { flex-basis: calc(50% - 6px); }
  .admin-toolbar .admin-actions { width: 100%; }
  .admin-toolbar button { flex: 1; padding-inline: 10px; }
}
