.tq-public { margin: 0; color: #f0f1e5; background: repeating-linear-gradient(135deg, transparent 0 22px, #ffffff02 22px 23px), #12170f; font-family: 'Trebuchet MS', sans-serif; }
.tq-public-shell { max-width: 1120px; margin: auto; padding: 24px 16px 60px; }
.tq-public-head { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: .8rem; letter-spacing: .12em; color: #c8b66b; }
.tq-public-head a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; font-weight: bold; }
.tq-public-head { align-items: center; }
.tq-public-head a:focus-visible { outline: 3px solid #d2bd70; outline-offset: 4px; }
.tq-public h1 { font-size: clamp(1.8rem, 5vw, 3.7rem); text-transform: uppercase; line-height: 1.05; }
.tq { --tq-bg: #242a1e; --tq-line: #495039; --tq-gold: #d2bd70; --tq-muted: #bbc2ad; color: #f0f1e5; min-width: 0; font-size: 1rem; }
.tq *, .tq *::before, .tq *::after { box-sizing: border-box; }
.tq [hidden] { display: none !important; }
.tq h2, .tq h3, .tq p { margin: 0 0 14px; overflow-wrap: anywhere; }
.tq h2 { font-size: 1.35rem; }
.tq h3 { font-size: 1.1rem; }
.tq .tq-card { background: var(--tq-bg); border: 1px solid var(--tq-line); border-radius: 8px; padding: 18px; margin-bottom: 18px; min-width: 0; }
.tq .tq-muted, .tq small { color: var(--tq-muted); }
.tq .tq-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.tq button, .tq input, .tq select, .tq textarea { font: inherit; }
.tq button { border: 1px solid var(--tq-line); border-radius: 4px; padding: 10px 15px; min-height: 44px; color: #f0f1e5; background: #151b11; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.tq button:hover:not(:disabled) { border-color: var(--tq-gold); }
.tq button:disabled { opacity: .45; cursor: not-allowed; }
.tq button.tq-primary { background: var(--tq-gold); border-color: var(--tq-gold); color: #171c10; font-weight: bold; }
.tq button.tq-danger { color: #ffc3b5; }
.tq :focus-visible { outline: 3px solid var(--tq-gold); outline-offset: 3px; }
.tq label { display: grid; gap: 6px; margin-bottom: 12px; min-width: 0; }
.tq input:not([type=checkbox]):not([type=radio]), .tq select, .tq textarea { display: block; width: 100%; min-width: 0; padding: 10px; background: #141a10; border: 1px solid var(--tq-line); border-radius: 4px; color: #f0f1e5; }
.tq textarea { resize: vertical; min-height: 110px; }
.tq input[type=checkbox], .tq input[type=radio] { width: 19px; height: 19px; margin: 0; flex-shrink: 0; accent-color: var(--tq-gold); }
.tq .tq-check { display: flex; align-items: center; gap: 10px; }
.tq .tq-categories { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 18px 0; }
.tq .tq-categories label { margin: 0; padding: 12px; background: #171d12; border: 1px solid var(--tq-line); border-radius: 4px; }
.tq .tq-categories small { display: block; margin-top: 4px; }
.tq .tq-issue { color: #ffccbc; border-left: 3px solid #d77a5b; padding: 12px; margin: 12px 0; white-space: pre-line; overflow-wrap: anywhere; }
.tq .tq-notice { border-left: 3px solid var(--tq-gold); padding: 12px; margin-bottom: 18px; white-space: pre-line; }
.tq .tq-progress { height: 5px; background: #11170d; margin: 16px 0; overflow: hidden; }
.tq .tq-progress span { display: block; height: 100%; background: var(--tq-gold); }
.tq .tq-question-image { display: block; width: 100%; max-height: 480px; object-fit: contain; background: #0b1008; border-radius: 5px; margin: 12px 0 20px; }
.tq .tq-options { display: grid; gap: 8px; }
.tq .tq-option { display: flex; align-items: center; gap: 12px; padding: 14px; background: #151b11; border: 1px solid var(--tq-line); border-radius: 4px; margin: 0; overflow-wrap: anywhere; }
.tq label.tq-option { cursor: pointer; }
.tq .tq-option:has(input:checked) { border-color: var(--tq-gold); background: #373c23; }
.tq .tq-correct { border-color: #7fc087 !important; background: #25422a !important; color: #d0f4d3; }
.tq .tq-wrong { border-color: #e39a89 !important; background: #4d2c25 !important; color: #ffddd5; }
.tq .tq-score { font-size: clamp(2rem, 7vw, 4rem); color: var(--tq-gold); font-weight: bold; }
.tq .tq-photo-credit { font-size: .78rem; color: var(--tq-muted); margin: -8px 0 18px; line-height: 1.5; }
.tq .tq-photo-credit a { color: var(--tq-gold); }
.tq .tq-review-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tq .tq-review-nav button { min-width: 44px; padding: 8px; }
.tq .tq-review-nav [aria-current=true] { outline: 3px solid var(--tq-gold); outline-offset: 1px; }
.tq .tq-description { margin-top: 18px; padding: 16px; border-left: 3px solid var(--tq-gold); background: #191f13; white-space: pre-line; overflow-wrap: anywhere; }
.tq .tq-admin-layout { display: grid; gap: 18px; align-items: start; }
.tq .tq-folder-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.tq .tq-folder-list button { text-align: left; }
.tq .tq-folder-list button[aria-pressed=true] { border-color: var(--tq-gold); background: #343b24; }
.tq .tq-photo-grid { display: grid; gap: 16px; }
.tq .tq-photo { border: 1px solid var(--tq-line); padding: 12px; border-radius: 5px; min-width: 0; }
.tq .tq-photo img { width: 100%; height: 180px; object-fit: contain; background: #0b1008; margin-bottom: 12px; }
.tq .tq-upload { border: 1px dashed var(--tq-gold); padding: 16px; margin: 18px 0; }
.tq [aria-busy=true] { opacity: .7; }
@media (min-width: 640px) {
  .tq .tq-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tq .tq-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tq .tq-card { padding: 24px; }
}
@media (min-width: 1100px) {
  .tq .tq-admin-layout { grid-template-columns: 260px minmax(0, 1fr); }
}
