/* Sistema del canal TVGT: oscuro como la sala de máster, con el azul del logo. */
:root {
  --fondo: #0b1220; --superficie: #121c2e; --borde: #22314a; --texto: #e8eef8; --tenue: #8ea0bd;
  --acento: #3b62c4; --ok: #2fb66b; --aviso: #e0a52b; --error: #e5484d;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-size: 15px; }
a { color: #8fb0ff; }
h1 { font-size: 22px; margin: 0 0 16px; font-weight: 600; }
h2 { font-size: 16px; margin: 24px 0 10px; color: var(--tenue); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: var(--superficie); border-right: 1px solid var(--borde); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.side .brand { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--tenue); font-size: 12px; margin: 0 8px 18px; }
.side .brand img { width: 110px; }
.side .group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--tenue); margin: 14px 8px 4px; }
.side a:not(.brand) { color: var(--texto); text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.side a.active { background: var(--acento); }
.side a:not(.brand):hover:not(.active) { background: #1a2740; }
.side .me { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--borde); font-size: 13px; color: var(--tenue); display: flex; justify-content: space-between; align-items: center; gap: 8px; overflow: hidden; }
.content { padding: 24px 28px; max-width: 1300px; }

.card { background: var(--superficie); border: 1px solid var(--borde); border-radius: 10px; padding: 16px 18px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.onair { border-left: 5px solid var(--error); }
.onair .label { color: var(--error); font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.big { font-size: 24px; font-weight: 600; margin: 6px 0; }
.muted { color: var(--tenue); font-size: 13px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pill.ok { background: #143d2a; color: #5fe39a; } .pill.warn { background: #463510; color: #ffd27a; } .pill.bad { background: #4a1517; color: #ff9a9d; } .pill.off { background: #283246; color: var(--tenue); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--tenue); font-weight: 600; font-size: 12px; text-transform: uppercase; padding: 8px; border-bottom: 1px solid var(--borde); }
td { padding: 7px 8px; border-bottom: 1px solid #1a263b; vertical-align: top; }
tr.bad td { color: #ff9a9d; } tr.warn td { color: #ffd27a; }

input, select, button { font: inherit; }
input, select { background: #0e1626; color: var(--texto); border: 1px solid var(--borde); border-radius: 6px; padding: 7px 9px; }
button, .button { background: var(--acento); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary { background: #24324c; } button.danger { background: #8c2a2e; }
button.link { background: none; color: #8fb0ff; padding: 0; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tenue); }
.notice { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: #16284a; }
.notice.error { background: #4a1517; } .notice.ok { background: #143d2a; }
.secret { font-family: Consolas, monospace; background: #0e1626; padding: 10px; border-radius: 6px; word-break: break-all; user-select: all; }

.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #1c3a63 0%, #0b1220 70%); }
.login form { width: min(360px, 92vw); display: flex; flex-direction: column; gap: 12px; }
.login img { width: 180px; margin: 0 auto 10px; display: block; }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } .side { flex-direction: row; flex-wrap: wrap; } .side .brand, .side .group { display: none; } .side .me { margin: 0; border: 0; } .content { padding: 16px; } }
