/* Console-only styles. */

.auth-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #1b2030 0%, var(--bg) 60%);
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
}
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 4px; }

.navtabs {
  padding: 12px 20px; margin: 0; border-bottom: 1px solid var(--line);
  background: var(--panel); position: sticky; top: 0; z-index: 10;
}

.live-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }

.video-shell {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
}
.video-shell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: var(--panel-2);
}
.rec-dot {
  position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .65);
  font-size: 12px; font-weight: 700; color: #fff;
}
.rec-dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--err); animation: pulse 1.4s infinite;
}
.rec-dot::after { content: "LIVE"; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.meter-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.meter-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.meter {
  position: relative; flex: 1; height: 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); overflow: hidden;
}
.meter-bar {
  position: absolute; inset: 0;
  /* Full-width gradient revealed by clip-path, so a colour always means the same level. */
  background: linear-gradient(90deg, var(--ok) 0%, var(--ok) 55%, var(--warn) 78%, var(--err) 100%);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .06s linear;
}
.meter-peak {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text);
  opacity: .8; transition: left .1s linear;
}
.meter-row .mono { min-width: 92px; text-align: right; font-size: 12px; }
.meter-row .mono.warn { color: var(--warn); }
.meter-row .mono.err { color: var(--err); }
.meter-row .mono.ok { color: var(--ok); }

.feed { max-height: 340px; overflow-y: auto; }
.feed .c {
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
  display: flex; gap: 9px; align-items: baseline;
}
.feed .c .author { font-weight: 600; white-space: nowrap; }
.feed .c .body { flex: 1; min-width: 0; word-break: break-word; }

.target {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.target .grow { flex: 1; min-width: 0; }
.target .name { font-weight: 600; }

.variant-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.variant-row input { flex: 1; }
.variant-row input.qty { flex: 0 0 90px; }

.prod { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prod .head { display: flex; gap: 10px; align-items: baseline; }
.prod .head .name { font-weight: 650; flex: 1; }
.prod .vlist { margin-top: 8px; display: grid; gap: 6px; }
.prod .v {
  display: flex; gap: 10px; align-items: center; font-size: 14px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px;
}
.prod .v .cmd { flex: 1; }
.prod .v input { width: 74px; padding: 5px 8px; }

.order { padding: 14px 0; border-bottom: 1px solid var(--line); }
.order .head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.order .head .num { font-weight: 650; }
.order .head .spacer { flex: 1; }
.order .detail { margin-top: 10px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .order .detail { grid-template-columns: 1fr; } }

.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px;
}
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; }
