/* robot.showring.app dashboard — dark theme, no build step (matches the
   internal admin SPAs). Phase 0: schedule view only. */
:root {
  --bg: #0e1116;
  --panel: #171b22;
  --panel-2: #1e242d;
  --line: #2a313c;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #5b9dff;
  --live: #3fb950;
  --m3u8: #6e7bff;
  --relay: #d29922;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}
.hidden { display: none !important; }

.robot-header {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 20px; background: var(--panel);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.robot-brand { font-weight: 700; letter-spacing: .2px; }
.robot-brand span { color: var(--accent); }
.robot-nav { display: flex; gap: 6px; flex: 1; }
.robot-nav-item {
  padding: 6px 12px; border-radius: 8px; color: var(--muted);
  text-decoration: none; font-size: 14px;
}
.robot-nav-item.is-active { background: var(--panel-2); color: var(--text); }
.robot-nav-item.is-disabled { opacity: .4; cursor: not-allowed; }
.robot-id { color: var(--muted); font-size: 13px; }

.robot-main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
.robot-view-head { display: flex; align-items: center; justify-content: space-between; }
.robot-view-head h1 { font-size: 22px; margin: 0; }
.robot-sub { color: var(--muted); font-size: 13px; margin: 6px 0 20px; }
.robot-btn {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 14px; cursor: pointer; font-size: 14px;
}
.robot-btn:hover { border-color: var(--accent); }

.robot-banner { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; background: var(--panel-2); }
.robot-banner-error { background: #3a1d22; border: 1px solid #6e2b34; color: #ffb3bd; }
.robot-loading, .robot-empty { color: var(--muted); padding: 28px 0; text-align: center; }

.show-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 16px;
}
.show-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.show-name { font-weight: 600; font-size: 16px; }
.show-live { color: var(--live); font-size: 12px; margin-left: 8px; }
.show-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.show-meta code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; }
.show-status { color: var(--muted); font-size: 12px; white-space: nowrap; }

.ring-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ring-table th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  padding: 6px 10px; border-bottom: 1px solid var(--line);
}
.ring-table td { padding: 8px 10px; border-bottom: 1px solid var(--panel-2); vertical-align: middle; }
.ring-table tr:last-child td { border-bottom: none; }
.ring-name { font-weight: 500; }
.ring-status { color: var(--muted); font-size: 13px; }
.no-rings { color: var(--muted); font-size: 13px; padding: 8px 2px; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
}
.badge-m3u8 { background: rgba(110,123,255,.15); color: #aeb6ff; border-color: rgba(110,123,255,.4); }
.badge-relay { background: rgba(210,153,34,.15); color: #f0c160; border-color: rgba(210,153,34,.4); }

.live-dot, .idle-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.live-dot { background: var(--live); box-shadow: 0 0 0 3px rgba(63,185,80,.18); }
.idle-dot { background: #44505f; }
.ring-live { font-size: 13px; }
.ring-console { text-align: right; }
.console-link { color: var(--accent); text-decoration: none; font-size: 13px; white-space: nowrap; }
.console-link:hover { text-decoration: underline; }

/* ---- per-ring console page ---- */
.console-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.console-head h1 { margin: 0; font-size: 22px; }
.console-status { font-size: 13px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.console-status.live { color: var(--live); border-color: rgba(63,185,80,.4); }
.console-status.idle { color: var(--relay); border-color: rgba(210,153,34,.4); }
.console-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .console-grid { grid-template-columns: 1fr; } }
.console-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.console-card h2 { font-size: 14px; margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.elev-note { color: var(--relay); font-weight: 400; font-size: 12px; }
.kv div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--panel-2); font-size: 14px; }
.kv div:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
.control-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.control-row label { width: 56px; color: var(--muted); font-size: 13px; }
.control-row select { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
.ctl-result { font-size: 13px; margin-top: 8px; min-height: 18px; }
.ctl-result.ok { color: var(--live); }
.ctl-result.err { color: #ffb3bd; }
.pending-head { display: flex; justify-content: space-between; align-items: center; }
.pending-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--panel-2); }
.pending-row:last-child { border-bottom: none; }
.pending-text { font-size: 14px; }
.pending-actions { display: flex; gap: 6px; }
.robot-btn.sm { padding: 4px 10px; font-size: 13px; }
.robot-btn.danger { border-color: #6e2b34; color: #ffb3bd; }
