body { font-family: Segoe UI, Arial, sans-serif; margin: 0; background: #eef0f3; color: #222; }
header { background: #2d3e50; color: #fff; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
header h1 { font-size: 18px; margin: 0; }
.conn { font-size: 13px; }
.conn.bad { color: #ffb4b4; }
nav { display: flex; gap: 2px; background: #3c5068; padding: 0 12px; flex-wrap: wrap; }
nav button { background: none; border: 0; color: #dfe6ee; padding: 10px 14px; font-size: 14px; cursor: pointer; }
nav button.on { background: #eef0f3; color: #222; border-radius: 6px 6px 0 0; }
.badge { background: #d9534f; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.badge:empty { display: none; }
main { padding: 18px 22px; max-width: 1200px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.card { background: #fff; border: 1px solid #ccd3db; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; flex: 1; min-width: 220px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.big { font-size: 28px; font-weight: 600; }
.small { font-size: 12px; color: #666; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #e3e7ec; vertical-align: top; }
th { background: #f4f6f8; }
.ok { color: #2e7d32; font-weight: 600; }
.warn { color: #b26a00; font-weight: 600; }
.bad { color: #c62828; font-weight: 600; }
button.btn { background: #3c78b4; color: #fff; border: 0; padding: 7px 13px; border-radius: 5px; font-size: 13px; margin: 6px 6px 0 0; cursor: pointer; }
button.btn.grey { background: #8a96a3; }
button.btn.green { background: #2e7d32; font-size: 15px; padding: 9px 18px; }
button.btn:disabled { opacity: .5; cursor: default; }
.covers { display: flex; gap: 14px; flex-wrap: wrap; }
.cov { width: 150px; cursor: pointer; }
.cov img { width: 150px; height: 150px; object-fit: contain; background: #d5dbe2; border: 3px solid #ccd3db; border-radius: 4px; display: block; }
.cov.pick img { border-color: #2e7d32; }
.cov .lbl { font-size: 11px; margin-top: 3px; }
.cov.upload div.box { width: 144px; height: 144px; border: 3px dashed #aab4bf; border-radius: 4px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: #555; }
input[type=text], select { border: 1px solid #aab4bf; border-radius: 4px; padding: 4px 6px; font-size: 13px; width: 95%; box-sizing: border-box; }
input.changed { background: #fff3cd; }
.list a { display: block; padding: 7px 8px; border-bottom: 1px solid #e3e7ec; color: #222; text-decoration: none; font-size: 13px; cursor: pointer; }
.list a.on { background: #e3eefa; font-weight: 600; }
.list a:hover { background: #f2f6fb; }
pre { white-space: pre-wrap; font-size: 12px; background: #f7f8fa; padding: 8px; border-radius: 4px; max-height: 500px; overflow: auto; }
#toast { position: fixed; bottom: 18px; right: 18px; background: #2d3e50; color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px; display: none; max-width: 420px; }
#toast.bad { background: #c62828; }
details summary { cursor: pointer; font-size: 13px; color: #3c78b4; margin-top: 6px; }
.empty { color: #666; font-size: 14px; padding: 8px 0; }
.mbs-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; margin-top: 8px; }
.mbs-form label { font-size: 12px; color: #444; }
.mbs-form input { width: 100%; margin-top: 2px; }
.mbr { display: flex; gap: 12px; border: 1px solid #e3e7ec; border-radius: 6px; padding: 8px; margin-bottom: 8px; font-size: 13px; }
.mbr.fits { border-color: #2e7d32; background: #f3faf3; }
.mbr img { width: 90px; height: 90px; object-fit: contain; background: #eef0f3; flex: 0 0 90px; }
/* Listening to a track (play buttons on Review, Library and reported problems) */
#player { position: fixed; left: 0; right: 0; bottom: 0; background: #2d3e50; color: #fff; padding: 8px 18px; display: flex; gap: 14px; align-items: center; z-index: 5; }
#player[hidden] { display: none; }
#player #pl-what { font-size: 13px; flex: 0 1 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#player audio { flex: 1; min-width: 260px; }
#player button.btn { margin: 0; }
body.playing main { padding-bottom: 80px; }
body.playing #toast { bottom: 78px; }
button.play { background: #3c78b4; color: #fff; border: 0; border-radius: 50%; width: 26px; height: 26px; font-size: 11px; cursor: pointer; padding: 0; }
button.play.badtrack { background: #c62828; }
button.play.on { outline: 3px solid #f0ad4e; }
.gate { background: #fdecea; border: 2px solid #d9534f; }
.gate label { cursor: pointer; }
.gate > div { margin: 6px 0; }
.signout { margin-left: 12px; font-size: 13px; color: inherit; }
.fresh { background: #fff3cd; border: 1px solid #f0ad4e; border-radius: 6px; padding: 8px 10px; margin: 6px 0; font-size: 14px; }
td.newer { background: #f3faf3; }
.sib { margin-top: 10px; padding: 8px 10px; background: #f4f6f8; border-radius: 6px; font-size: 13px; }
