:root {
  color-scheme: dark;
  color: #e7edf1;
  background: #11171b;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
main { max-width: 68rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
header { margin-bottom: 1.6rem; }
.eyebrow { color: #a9b8bf; font-size: .77rem; letter-spacing: .14em; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 7vw, 4rem); line-height: 1.12; }
h2 { font-size: 1.15rem; }
#summary, #details { color: #b7c3c9; margin-top: .3rem; }
.deck, .catalog { background: #182226; border: 1px solid #394a51; border-radius: .7rem; padding: 1rem; margin-bottom: 1rem; }
.deck { border-left: .3rem solid #77e6b4; }
audio { display: block; width: min(100%, 36rem); margin-top: .85rem; }
#playback:not(:empty) { color: #ffd291; margin-top: .45rem; }
#count { color: #77e6b4; font: .9rem ui-monospace, monospace; margin-left: .4rem; }
.filters { display: flex; gap: .75rem; flex-wrap: wrap; margin: .9rem 0; }
label { display: grid; gap: .24rem; color: #bdcbd0; font-size: .82rem; }
input, select, button { font: inherit; }
input, select { border: 1px solid #52646c; color: #edf4f5; border-radius: .3rem; background: #11191d; padding: .42rem .6rem; }
input { width: 10rem; }
.media-picker:not([hidden]) { display: block; margin: .75rem 0 .35rem; color: inherit; font-size: 1rem; }
#local-files { width: min(100%, 27rem); min-height: 3rem; padding: .4rem; }
#local-files::file-selector-button {
  margin-inline-end: .6rem;
  border: 1px solid #52646c;
  border-radius: .3rem;
  padding: .45rem .65rem;
  background: #24343a;
  color: #edf4f5;
  font: inherit;
}
#local-files:enabled::file-selector-button { cursor: pointer; }
.project-links { margin-top: 1rem; }
.project-links a { color: #b0f1d0; text-underline-offset: .2em; }
.scroll { max-height: min(54vh, 34rem); overflow: auto; border: 1px solid #374a51; border-radius: .4rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .4rem .65rem; white-space: nowrap; }
thead { position: sticky; top: 0; background: #24343a; }
tr + tr { border-top: 1px solid #304148; }
tr.selected { background: #24473d; }
button { border: 0; background: transparent; color: #b0f1d0; padding: .27rem .1rem; cursor: pointer; }
button:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #9cf5ca; outline-offset: 2px; }
#empty { padding: .75rem; }

.program-controls { align-items: end; }
.program-controls button { border: 1px solid #52646c; border-radius: .3rem; padding: .42rem .65rem; }
button:disabled { opacity: .45; cursor: default; text-decoration: none; }
#program-info { color: #b7c3c9; margin-top: .3rem; }

audio[hidden] { display: none; }

.folder-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.folder-actions button { border: 1px solid #52646c; border-radius: .3rem; padding: .5rem .65rem; margin-top: .75rem; }
#forget-files { display: block; margin-bottom: .45rem; }
#forget-files[hidden] { display: none; }
#media-notice:not(:empty) { color: #ffd291; margin-bottom: .45rem; }
