/* LIMA Musikbox – Verwaltung */
:root {
  --aubergine: #1d0b33; --aubergine-2: #2a1247; --aubergine-3: #3a1c5e;
  --red: #ff3b5c; --amber: #ffb020; --green: #2be38b; --blue: #3d7bff;
  --text: #fff4e6; --muted: #c4aee3; --line: rgba(196, 174, 227, 0.18);
  --display: Bahnschrift, "DIN Alternate", "Arial Narrow", "Roboto Condensed", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--aubergine); color: var(--text); font: 400 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1 { margin: 0; font: 500 40px/1 var(--display); font-stretch: 75%; }
h1 b { font-weight: 800; color: var(--amber); letter-spacing: .04em; }
h1 span { color: var(--muted); font-size: .7em; margin-left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; }
.card { width: min(420px, 100%); padding: 22px; border-radius: 18px; background: var(--aubergine-2); border: 1px solid var(--line); }
.card h2 { margin: 0 0 12px; font: 700 26px/1.1 var(--display); font-stretch: 75%; }
.card form { display: flex; gap: 10px; }
.card input { flex: 1; min-width: 0; }
.msg { min-height: 1.4em; margin: 10px 0 0; color: var(--amber); font-weight: 600; }
.back { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app { max-width: 1500px; margin: 0 auto; padding: 22px 18px 40px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.status { min-height: 1.4em; margin: 0 0 12px; color: var(--green); font-weight: 600; }
.status.bad { color: var(--amber); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.panel { background: var(--aubergine-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.panel h2 { margin: 0 0 12px; font: 700 24px/1.1 var(--display); font-stretch: 75%; display: flex; align-items: center; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 15px; }
.field.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); }
.field input[type="checkbox"] { width: 24px; height: 24px; flex: none; accent-color: var(--green); }
input[type="text"], input[type="password"], input[type="number"], input[type="time"] {
  height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--aubergine); color: var(--text); font: 500 17px system-ui, sans-serif;
}
input:focus { outline: none; border-color: var(--amber); }
input:disabled { opacity: .4; }
input[type="number"] { width: 130px; }
#clientId { font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: 0; }
.label { margin: 14px 0 6px; color: var(--muted); font-size: 15px; }
.copy code { display: block; padding: 12px 14px; border-radius: 10px; background: var(--aubergine); border: 1px dashed var(--amber); font-size: 17px; word-break: break-all; user-select: all; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 23px; border: 2px solid var(--line); background: var(--aubergine-3); color: var(--text); font: 700 16px system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-hot { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger { background: transparent; border-color: rgba(255, 59, 92, .6); color: #ffb3c0; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 15px; }

.seg { display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 14px; background: var(--aubergine); border: 2px solid var(--line); margin-bottom: 12px; }
.seg button { height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 16px system-ui, sans-serif; text-align: left; padding: 0 14px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--green); color: var(--aubergine); }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.good { color: var(--green); }
.warn { color: var(--amber); }

.count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--amber); color: var(--aubergine); font: 700 14px/1 system-ui, sans-serif; }
.count:empty { display: none; }
.list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 420px; overflow-y: auto; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .name { flex: 1 0 100%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { flex: 1 0 100%; color: var(--muted); font-size: 14px; margin-top: -4px; }
.empty { color: var(--muted); }
