:root {
  font-family: Inter, system-ui, sans-serif;
  background: #111517;
  color: #e9edec;
  color-scheme: dark;
  --surface: #1b2022;
  --border: #3a4547;
  --muted: #aebcbb;
  --accent: #d3ee78;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, select, input, textarea {
  color: inherit;
  background: #161c1e;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: .66rem .78rem;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .dropzone:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled { opacity: .5; cursor: default; }
button.primary { color: #1b250a; background: var(--accent); border-color: var(--accent); font-weight: 700; }
button.quiet { background: transparent; }
button:hover:not(:disabled), .download:hover { filter: brightness(1.14); }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.8rem); font-weight: 740; letter-spacing: -.05em; line-height: 1.05; }
h2 { font-size: 1.32rem; overflow-wrap: anywhere; }
p, small { color: var(--muted); }
.masthead { border-bottom: 1px solid var(--border); background: #141a1b; }
.masthead-inner, .workspace { max-width: 1440px; margin: auto; padding-inline: clamp(1rem, 4vw, 4.5rem); }
.masthead-inner { min-height: 4.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.28rem; font-weight: 760; letter-spacing: -.035em; }
.monogram { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #9bb746; color: var(--accent); border-radius: 6px; }
.division { margin-left: .3rem; border-left: 1px solid var(--border); padding-left: .78rem; font-size: .8rem; letter-spacing: .01em; color: var(--muted); }
.account { display: flex; align-items: center; gap: .75rem; font-size: .8rem; }
.account span { color: var(--muted); }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 3rem 0 2.2rem; }
.intro p { margin-top: .7rem; }
.intro button { flex: none; }
.toolbar, .filters, .tabs { display: flex; gap: .55rem; flex-wrap: wrap; }
.toolbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .8rem 0; align-items: center; justify-content: space-between; }
.tabs button { border-color: transparent; background: transparent; color: var(--muted); }
.tabs [aria-pressed="true"] { background: #263117; border-color: #5b702a; color: var(--accent); }
.catalog-message { min-height: 2.75rem; padding: .85rem 0 .55rem; font-size: .87rem; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.asset-card { text-align: left; padding: 0; overflow: hidden; background: var(--surface); }
.asset-card:hover { border-color: #82973e; }
.thumb, .detail-preview { display: grid; place-items: center; background: #252e30; color: var(--muted); }
.thumb { aspect-ratio: 4/3; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-meta { display: grid; padding: .85rem; gap: .44rem; }
.card-meta strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.badge { width: fit-content; padding: .23rem .45rem; border: 1px solid var(--border); border-radius: 4px; font-size: .73rem; color: #c4cecc; }
.badge[data-status="approved"] { color: #b5ddc1; border-color: #466854; }
.badge[data-status="sponsor"] { color: var(--accent); border-color: #667b33; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--border); padding: 4rem 1.2rem; border-radius: 8px; text-align: center; }
.more { margin: 1.25rem auto; display: block; }
.sign-in { display: grid; place-items: start center; padding: 12vh 1rem 1rem; }
.sign-card { width: min(100%, 420px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.sign-card h1 { font-size: 2rem; margin-bottom: 1.2rem; }
form { display: grid; gap: .9rem; }
label:not(.checkbox) { display: grid; gap: .35rem; font-weight: 600; }
label small { font-size: .77rem; font-weight: 400; }
label input, label select, label textarea { width: 100%; }
dialog { width: min(94vw, 640px); max-height: 91vh; overflow: auto; color: inherit; background: var(--surface); border: 1px solid #4b5b59; border-radius: 13px; padding: 1.35rem; }
dialog::backdrop { background: #070a0bd9; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.dialog-head p { margin-top: .3rem; }
.two-fields { display: grid; grid-template-columns: 1.3fr 1fr; gap: .75rem; }
.dropzone { padding: 1.5rem .6rem; border: 1px dashed #718254; border-radius: 8px; text-align: center; cursor: pointer; }
.dropzone strong { color: var(--accent); }
.dropzone.dragging { background: #33401e; }
.dropzone[aria-disabled="true"] { opacity: .45; cursor: default; }
.queue { margin: 0; padding: 0; list-style: none; max-height: 12rem; overflow-y: auto; }
.queue li { padding: .5rem .25rem; border-bottom: 1px solid var(--border); display: grid; gap: .25rem; overflow-wrap: anywhere; }
.queue progress { width: 100%; accent-color: var(--accent); }
.message { font-size: .87rem; color: #e7cf96; }
.message:empty { display: none; }
.dialog-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: .55rem; }
.asset-dialog { width: min(95vw, 980px); }
.asset-detail { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 1fr); gap: 1.1rem; align-items: start; }
.detail-preview { min-height: 13rem; border-radius: 8px; overflow: hidden; }
.detail-preview img { width: 100%; max-height: 66vh; object-fit: contain; }
.download { display: inline-block; margin: .85rem 0; color: var(--accent); }
.checkbox { display: flex; align-items: center; gap: .5rem; margin: .25rem 0; }
.checkbox input { width: 1rem; height: 1rem; accent-color: var(--accent); }
fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 7px; margin: 0; padding: .55rem .7rem; overflow-wrap: anywhere; }
fieldset legend { padding: 0 .3rem; font-weight: 650; }
#readonly-tags p { margin: 0 0 .65rem; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .intro { align-items: start; flex-direction: column; padding-top: 1.7rem; }
  .asset-detail, .two-fields { grid-template-columns: 1fr; }
  .filters > *:not(.sr-only) { width: 100%; }
  .filters { width: 100%; }
  .account span, .division { display: none; }
}
