:root { color-scheme: dark; font: 16px system-ui, sans-serif; background: #1b211a; color: #f3ead7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, .row, nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
header { justify-content: space-between; padding: .9rem max(1rem, calc((100vw - 70rem) / 2)); background: #22291f; border-bottom: 1px solid #605840; }
.brand { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
strong, a { color: #ffdc94; }
main { max-width: 72rem; margin: auto; padding: 1rem; }
h1 { margin: .45rem 0; }
h2 { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
#workspace { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr); align-items: start; gap: 1rem; }
.panel { background: #252c21; border: 1px solid #625942; border-radius: .7rem; padding: 1rem; min-width: 0; }
.row { justify-content: space-between; }
button, input, textarea, select { font: inherit; }
button { border: 1px solid #bb9954; border-radius: .35rem; padding: .48rem .7rem; background: #f0c36c; color: #211b10; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
input, textarea, select { width: 100%; min-width: 0; padding: .55rem; border: 1px solid #837b62; border-radius: .35rem; background: #181e17; color: inherit; }
textarea { resize: vertical; }
label { display: grid; gap: .35rem; margin-top: .9rem; }
.muted { color: #cec3a9; font-size: .88rem; }
#tickets { display: grid; gap: .45rem; margin: .8rem 0; }
.ticket { text-align: left; background: #30392b; color: #fff1d5; border-color: #706750; overflow-wrap: anywhere; }
.ticket[aria-current=true] { border-color: #ffdc94; background: #3c432e; }
.ticket small { display: block; margin-top: .25rem; }
article { border-top: 1px solid #605840; margin-top: .85rem; padding-top: .75rem; }
article p { white-space: pre-wrap; overflow-wrap: anywhere; }
article a { display: inline-block; margin: 0 .5rem .35rem 0; }
article img { display: block; width: 112px; height: 84px; object-fit: contain; background: #181e17; border-radius: .3rem; }
:focus-visible { outline: 2px solid #ffdc94; outline-offset: 3px; }
@media (max-width: 640px) { #workspace { grid-template-columns: 1fr; } }

#pending-images { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
#pending-images li { display: grid; justify-items: start; gap: .25rem; }
#pending-images img { width: 112px; height: 84px; object-fit: contain; background: #181e17; border-radius: .3rem; }
