:root{
  /* Calm, muted palette */
  --bg1:#0b1220;          /* deep slate */
  --bg2:#0a1020;          /* slightly darker */
  --card: rgba(255,255,255,.055);
  --card2: rgba(255,255,255,.07);
  --stroke: rgba(255,255,255,.10);

  --text: rgba(255,255,255,.90);
  --muted: rgba(255,255,255,.60);
  --muted2: rgba(255,255,255,.42);

  /* Softer status colors */
  --good:#7dd3fc;         /* sky-300 */
  --warn:#fbbf24;         /* amber-400 (still clear, not neon) */
  --bad:#fb7185;          /* rose-400 */

  --shadow: 0 18px 50px rgba(0,0,0,.50);
  --radius: 16px;
  --radius2: 22px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  /* much calmer background, subtle gradients */
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(125,211,252,.10), rgba(125,211,252,0) 60%),
    radial-gradient(900px 600px at 82% 18%, rgba(148,163,184,.10), rgba(148,163,184,0) 60%),
    radial-gradient(900px 600px at 50% 90%, rgba(99,102,241,.08), rgba(99,102,241,0) 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:-200px;
  background:
    radial-gradient(circle at 30% 20%, rgba(125,211,252,.08), transparent 55%),
    radial-gradient(circle at 70% 28%, rgba(148,163,184,.08), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(99,102,241,.06), transparent 55%);
  filter: blur(44px);
  opacity:.85;
  pointer-events:none;
  z-index:-1;
}

.topbar{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  background: rgba(8,12,22,.62);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand{ display:flex; align-items:center; gap:12px; }
.logoMark{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  /* calm gradient */
  background: linear-gradient(135deg, rgba(148,163,184,.85), rgba(125,211,252,.75));
  color:#0a1020;
  font-weight:800;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}
.brandText .title{ font-size:16px; font-weight:750; letter-spacing:.2px; }
.brandText .subtitle{ font-size:12px; color: var(--muted); margin-top:2px; }

.container{
  max-width: 1180px;
  margin: 18px auto 40px;
  padding: 0 14px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 14px;
}

.card.wide{ grid-column: span 12; }
.card.tuneCard{ grid-column: span 6; }

.cardHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}
.cardHead h2{
  margin:0;
  font-size:16px;
  letter-spacing:.2px;
}
.muted{ color: var(--muted); font-size:12px; }
.mutedSmall{ color: var(--muted2); font-size:12px; }

.kv{
  display:grid;
  grid-template-columns: 170px 1fr;
  gap:10px 12px;
  padding: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
}
.k{ color: var(--muted); font-size:12px; }
.v{ font-size:13px; line-height:1.3; }
.mono{ font-family: var(--mono); }

.tuneForm .row{
  display:flex; align-items:flex-end; gap: 12px;
}
.spacer{ flex:1; }

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 160px;
}
.field.full{ grid-column: 1 / -1; }
.field span{
  font-size:12px;
  color: var(--muted);
}

input, select{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
}
input::placeholder{ color: rgba(255,255,255,.33); }
input:focus, select:focus{
  border-color: rgba(125,211,252,.45);
  box-shadow: 0 0 0 3px rgba(125,211,252,.10);
}

.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.hidden{ display:none; }

.btn{
  position:relative;
  border: 0;
  padding: 10px 14px;
  border-radius: 14px;
  cursor:pointer;
  color:#0a1020;
  font-weight: 750;
  /* calm CTA */
  background: linear-gradient(135deg, rgba(125,211,252,.92), rgba(148,163,184,.88));
  box-shadow: 0 16px 48px rgba(0,0,0,.38);
  overflow:hidden;
}
.btnGlow{
  position:absolute; inset:-2px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.38), transparent 48%);
  opacity:.55;
  filter: blur(12px);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.hint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-size: 12px;
}
.pill .dot{
  width:10px;height:10px;border-radius:50%;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.pill.good .dot{ background: var(--good); box-shadow: 0 0 0 3px rgba(125,211,252,.14); }
.pill.warn .dot{ background: var(--warn); box-shadow: 0 0 0 3px rgba(251,191,36,.14); }
.pill.bad .dot{ background: var(--bad); box-shadow: 0 0 0 3px rgba(251,113,133,.14); }
.pill.soft{ background: rgba(255,255,255,.03); }

.srvGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.badge{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}
.srvItem{
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.srvTop{
  display:flex;
  justify-content:space-between;
  align-items: center;
  gap:10px;
  margin-bottom: 2px;
  min-height: 22px;
}

.srvTop .mutedSmall{
  max-width: 65%;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srvMain{
  font-family: var(--mono);
  color: rgba(255,255,255,.85);
}

.srvVis{
  font-family: var(--mono);
  color: rgba(255,255,255,.85);
}

.siMeta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.siMeta a{
  color: rgba(125,211,252,.92);
  text-decoration:none;
}
.siMeta a:hover{ text-decoration:underline; }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items:start;
}
.subhead{
  margin: 10px 0 8px;
  font-size: 13px;
  color: rgba(255,255,255,.83);
  letter-spacing:.2px;
}
.list{
  margin:0;
  padding-left: 18px;
}
.list a{
  /* calmer link tone */
  color: rgba(226,232,240,.92);
  text-decoration:none;
}
.list a:hover{ text-decoration:underline; }

.logos{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.logos a{
  display:block;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.logos img{
  width:100%;
  height:100%;
  object-fit: contain;
  padding: 10px;
}

.visWrap{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:start;
}
.subrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.box{
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  min-height: 46px;
  white-space: pre-wrap;
}

.imgCard{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  overflow:hidden;
}
.imgCard img{
  width:100%;
  display:block;
  background: rgba(0,0,0,.12);
}
.imgMeta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.imgMeta a{
  color: rgba(125,211,252,.92);
  text-decoration:none;
}
.imgMeta a:hover{ text-decoration:underline; }

.historyHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 10px;
}
.ghost{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.ghost:hover{ background: rgba(255,255,255,.055); }

.history{
  margin: 8px 0 0;
  padding-left: 0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: 280px;
  overflow:auto;
}
.history li{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.history li .tag{
  display:inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.84);
  font-size: 11px;
}
.history li .dest{
  display:block;
  margin-top: 6px;
  color: var(--muted2);
  font-family: var(--mono);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.errors{
  margin:0;
  padding-left:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.errors li{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(251,113,133,.22);
  background: rgba(251,113,133,.07);
  color: rgba(255,255,255,.88);
  font-size: 12px;
}

.footer{
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 0 14px;
  color: var(--muted2);
}

/* Player styles (if you added the audio player block) */
.playerCard{
  padding: 12px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  margin-bottom: 10px;
}
.playerTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.playerTitle{
  display:flex;
  align-items:center;
  gap:10px;
}
.playerRow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.playerRow select{
  flex: 1;
  min-width: 260px;
}
.audio{
  width: 100%;
  border-radius: 14px;
  background: rgba(0,0,0,.10);
}
.toggle{
  display:flex;
  align-items:center;
  gap:8px;
  user-select:none;
  cursor:pointer;
}
.toggle input{ display:none; }
.toggleUi{
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  position: relative;
}
.toggleUi::after{
  content:"";
  position:absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  transition: transform .18s ease;
}
.toggle input:checked + .toggleUi::after{
  transform: translateX(18px);
}

@media (max-width: 980px){
  .card{ grid-column: span 12; }
  .srvGrid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .visWrap{ grid-template-columns: 1fr; }
}

