:root {
  --accent: #1976D2;
  --accent-ink: #FFFFFF;
  --dark: #0D1B2A;
  --tint: color-mix(in srgb, var(--accent) 12%, #fff);
  --bg: #F3F5F7;
  --card: #FFFFFF;
  --ink: #1F2933;
  --muted: #5B6670;
  --line: #D5DCE1;
  --line-soft: #E3E8EC;
  --side: #FBFCFC;
  --group: #E9EEF0;
  --link: #1565C0;
  --ok: #1E8A43;
  --ok-btn: #1E9E4A;
  --bad: #C53030;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Nunito Sans', system-ui, sans-serif; font-size: 15px; }
a { color: var(--link); }
a:hover { color: color-mix(in srgb, var(--link) 75%, #000); }
button, input, select { font-family: inherit; font-size: 15px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barra superior */
.top { background: var(--dark); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(14px, 2vw, 24px); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-name { font-size: 20px; font-weight: 800; line-height: 1.1; }
.brand-tag { font-size: 11px; color: #B8C7D9; font-style: italic; }
.top-right { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: #D5E0EC; gap: 2px; }

/* Estructura */
.shell { display: flex; flex-wrap: wrap; min-height: calc(100vh - 58px); }
.side { flex: 1 1 260px; max-width: 100%; background: var(--side); border-right: 1px solid #DDE3E7; }
.side-search { padding: 10px; border-bottom: 1px solid #DDE3E7; display: flex; gap: 6px; }
.side-search input { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid #CBD3D9; border-radius: 6px; }
.group-btn { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border: 0; border-bottom: 1px solid #DDE3E7; background: var(--group); color: var(--dark); font-weight: 800; font-size: 14px; text-align: left; cursor: pointer; }
.group-items { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid #DDE3E7; }
.item { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 16px; color: var(--ink); font-size: 14px; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.item.active { background: var(--tint); font-weight: 800; }
.item.soon { color: #8A949C; cursor: default; }
.item.soon::before { background: #C4CCD2; }
.item .tag { margin-left: auto; font-size: 11px; color: #8A949C; border: 1px solid #D5DCE1; border-radius: 999px; padding: 1px 7px; }
.main { flex: 999 1 640px; min-width: 0; padding: 16px clamp(12px, 2vw, 24px) 32px; display: flex; flex-direction: column; gap: 16px; }
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid #DDE3E7; }
.crumbs strong { font-size: 16px; color: var(--link); }
.linkbtn { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; padding: 8px 0; min-height: 40px; }
.linkbtn:hover { color: var(--ink); }

/* Paneles */
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); border: 1px solid var(--line); background: var(--card); }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }
.panel { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.panel h2 { margin: 0; background: var(--dark); color: #fff; font-size: 16px; font-weight: 800; padding: 14px 18px; border-bottom: 4px solid var(--accent); }
.panel h2 small { color: #9FB6CF; font-weight: 700; font-size: 15px; }
.panel-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card h2 { margin: 0; font-size: 18px; }

.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab { min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; margin-bottom: -1px; background: transparent; color: var(--link); font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: #fff; border-color: var(--line); }
.fields { border: 1px solid #C7CFD5; border-radius: 6px; box-shadow: 0 2px 6px rgba(15, 30, 40, .12); padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-v { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: #EEF1F3; border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
.field-v.strong { font-weight: 800; }
.mini { margin-left: auto; min-height: 30px; padding: 0 10px; border: 1px solid #B9C3CA; border-radius: 4px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; flex: none; }

.bar { background: #EEF1F3; border: 1px solid var(--line); border-radius: 4px; padding: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; color: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-go { background: var(--ok-btn); }
.btn-stop { background: #5B6670; }
.btn-bad { background: var(--bad); }
.btn-main { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid #B9C3CA; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }

.player { display: flex; border: 1px solid #9FB4C2; }
.player-art { color: #9CC6F2; width: 100px; min-height: 100px; background: var(--dark); display: flex; align-items: center; justify-content: center; flex: none; }
.player-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #EEF3F6; }
.player-row { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.pbtn { width: 44px; height: 44px; border: 1px solid #9FB4C2; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ptrack { flex: 1 1 auto; height: 10px; background: #D5DCE1; border-radius: 2px; overflow: hidden; }
.ptrack span { display: block; height: 100%; background: var(--accent); }
.player input[type=range] { width: 80px; accent-color: var(--accent); }
.player-now { background: #D9E2E8; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #33414C; overflow-wrap: anywhere; }

.stats-head { padding: 12px 18px; background: #F7F9FA; border-bottom: 1px solid var(--line-soft); }
.chart { padding: 16px 18px 12px; display: flex; gap: 8px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; height: 240px; font-size: 11px; color: var(--muted); text-align: right; width: 34px; flex: none; }
.chart-area { height: 240px; display: flex; align-items: flex-end; border-left: 1px solid #C7CFD5; border-bottom: 1px solid #C7CFD5; background-image: linear-gradient(#E9EDF0 1px, transparent 1px); background-size: 100% 60px; }
.chart-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-right: 1px solid #EEF1F3; }
.chart-col div { width: 72%; background: var(--accent); min-height: 2px; }
.chart-col div.peak { background: var(--dark); }
.chart-x { display: flex; }
.chart-x span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 13px; color: #33414C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

.gauges { padding: 24px 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
@media (max-width: 520px) { .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.gauge-pct { align-self: flex-end; margin-right: 12%; font-size: 18px; color: var(--muted); border-bottom: 1px solid #C7CFD5; padding: 0 2px; }
.gauge-ring { position: relative; width: 112px; height: 112px; }
.gauge-ring span { color: var(--link); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gauge-label { font-size: 12px; color: var(--muted); }

.list { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.row span:first-child { color: var(--muted); }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--line); }
td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Formularios */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.form input, .form select, .login input { min-height: 44px; padding: 0 12px; border: 1px solid #B9C3CA; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 400; }
.msg { font-size: 14px; font-weight: 700; }

/* Inicio admin */
.notice { display: flex; border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff); background: var(--tint); }
.notice-icon { color: var(--accent-ink); width: 46px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.notice-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.sec-title { margin: 0; font-size: 17px; font-weight: 800; color: #33414C; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 24px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 6px; text-decoration: none; color: var(--ink); background: none; border: 1px solid transparent; text-align: left; cursor: pointer; }
.tile:hover { border-color: var(--line); box-shadow: 0 2px 8px rgba(15, 30, 40, .08); color: var(--ink); }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-icon { color: var(--link); width: 40px; height: 40px; border-radius: 8px; background: var(--tint); display: flex; align-items: center; justify-content: center; flex: none; }
.tile-name { font-size: 21px; color: var(--link); }
.tile.soon .tile-name { color: #8A949C; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-size: 26px; }
.kpi span { font-size: 13px; color: var(--muted); }
.meter { height: 10px; background: #E3E8EC; border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--dark); }
.login { width: 100%; max-width: 400px; background: #fff; border-top: 5px solid var(--accent); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.login .brand { color: var(--dark); }
.login .brand-tag { color: var(--muted); }
.login label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.login .btn { width: 100%; justify-content: center; }

footer { background: var(--group); padding: 16px; text-align: center; font-size: 13px; color: var(--muted); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); z-index: 10; }
#toast.err { background: var(--bad); }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* Música */
.drop { border: 2px dashed #9FB4C2; border-radius: 8px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #F7F9FA; cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--tint); }
.drop input { font-size: 14px; }
.upl { display: flex; flex-direction: column; gap: 6px; }
.upl-row { display: grid; grid-template-columns: 1fr 160px; gap: 10px; align-items: center; font-size: 13px; }
.upl-row .meter { height: 8px; }
textarea { font-family: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #B9C3CA; border-radius: 6px; min-height: 80px; resize: vertical; }

/* ===== Estilo clásico de panel de radio (tema claro, cabeceras azul marino) ===== */
:root { --top: #2E3134; --accent: #1E88E5; --dark: #0B1A2B; --link: #1565C0; --bg: #F1F1F1; --side: #F8F8F8; --group: #E6E6E6; }
html, body { background: var(--bg); }
.top { background: var(--top); padding: 0; min-height: 62px; }
.top .brand { background: #222426; align-self: stretch; padding: 10px 18px; min-width: 260px; }
.top-right { padding: 10px 18px; color: #E4E4E4; }
.side { background: var(--side); border-right: 1px solid #DCDCDC; }
.side-search { background: #fff; }
.group-btn { background: var(--group); color: #1A1A1A; font-size: 15px; border-bottom: 1px solid #D4D4D4; }
.group-btn i { color: var(--link); margin-right: 4px; }
.item { font-size: 14.5px; color: #1A1A1A; min-height: 40px; }
.item::before { display: none; }
.item i { font-size: 13px; color: #1A1A1A; }
.item.active { background: #E9F2FC; color: var(--link); }
.item.active i { color: var(--link); }
.item.soon i { color: #A9A9A9; }
.crumbs strong { color: var(--link); font-size: 16px; }
.crumbs strong i { color: #1A1A1A; margin-right: 2px; }
.linkbtn { font-size: 16px; color: #8A8A8A; }
.grid4 { border: 0; background: transparent; gap: 0; }
.panel { background: #fff; border: 1px solid #DCDCDC; margin: 0 -1px -1px 0; }
.panel h2 { background: var(--dark); border-bottom: 4px solid #1C8ADB; font-size: 17px; padding: 15px 20px; box-shadow: inset 0 -1px 0 #0E5A99; }
.panel h2 i { margin-right: 4px; }
.panel h2 small { color: #8D9BA8; font-weight: 700; }
.tab { font-size: 16px; color: var(--link); font-weight: 600; }
.tab i { margin-right: 2px; }
.fields { border: 1px solid #222; border-radius: 4px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.field > span:first-child { font-size: 15px; }
.field-v { background: #E9ECEF; border: 1px solid #CED4DA; border-radius: 3px; font-size: 15px; }
.bar { background: #E9E9E9; border: 1px solid #DCDCDC; border-radius: 3px; }
.btn { border-radius: 3px; font-size: 16px; font-weight: 600; }
.btn i { font-size: 17px; }
.btn-go { background: #28A745; }
.btn-stop { background: #6C757D; }
.btn-main { background: var(--accent); color: #fff; }
.player { border: 1px solid #7FB0DE; }
.player-art { background: #1B2733; }
.player-body { background: #ECEFF2; }
.player-now { background: #D3D9DF; color: #3B4650; }
.stats-head { background: #F7F7F7; font-size: 16px; }
.chart-col div { background: #3D8FD1; }
.chart-col div.peak { background: #263544; }
.gauges { gap: 28px 12px; }
.gauge-pct { color: #9A9A9A; font-size: 19px; border-bottom: 1px solid #BDBDBD; min-width: 60px; text-align: right; }
.gauge-ring span { color: #1A6FC4; font-size: 30px; }
.gauge-label { font-size: 11.5px; color: #555; }
.card { border: 1px solid #DCDCDC; }
.tile-icon { background: transparent; width: auto; height: auto; color: #1A6FC4; font-size: 34px; }
.tile-name { color: #1A8AD8; font-size: 23px; }
.tile.soon .tile-icon { color: #A9A9A9; }
.notice { border: 1px solid #A3D9A5; background: #F4FBF4; }
.notice-icon { background: #3FA34D; color: #fff; }
.sec-title { color: #2B3A47; }
footer { background: #E6E6E6; }

.grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid4 { grid-template-columns: 1fr; } }
.adminbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; background: #FFF4D6; border: 1px solid #E8C96A; padding: 10px 14px; font-size: 14px; }
.adminbar a { font-weight: 700; }

/* Barra superior del administrador */
.top { flex-wrap: wrap; }
.top-links { display: flex; gap: 22px; align-items: center; margin-right: auto; padding: 0 18px; }
.top-links a, .top-links button { color: #DADADA; font-size: 16px; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; min-height: 40px; }
.top-links a:hover, .top-links button:hover { color: #fff; }

/* Carátula */
.player-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini.pen { margin-left: 0; color: var(--link); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.field-v .mini + .mini, .field-v .pen + .mini { margin-left: 4px; }
.field-v .pen { margin-left: auto; }

/* Lista de radios (administrador) */
.rl { padding: 0; gap: 0; }
.rl-title { margin: 0; padding: 16px 20px; font-size: 17px; font-weight: 600; color: #333; border-bottom: 1px solid #E3E3E3; background: #FAFAFA; }
.rl-title i { color: #555; }
.rl-info { margin: 20px; border-left: 4px solid #17A2B8; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px #EEE; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.rl-info p { margin: 0; font-size: 16px; color: #444; }
.rl-search { display: flex; align-items: center; border: 1px solid #CED4DA; border-radius: 4px; overflow: hidden; }
.rl-search i { padding: 0 14px; color: #444; background: #E9ECEF; align-self: stretch; display: flex; align-items: center; }
.rl-search input { flex: 1 1 auto; border: 0; min-height: 40px; padding: 0 12px; font-family: inherit; font-size: 15px; min-width: 0; }
.rl-multi { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 0 20px 16px; font-size: 16px; }
.rl-multi select { min-height: 38px; border: 1px solid #CED4DA; border-radius: 4px; padding: 0 8px; background: #F1F1F1; }
.rl .table-wrap { padding: 0 20px 20px; }
.rl-table { min-width: 1150px; font-size: 15px; }
.rl-table th { background: #17A2B8; color: #fff; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; border-bottom: 0; padding: 12px 10px; vertical-align: bottom; }
.rl-table td { background: #2B2F33; color: #F1F1F1; border-bottom: 1px solid #3A3F44; padding: 14px 10px; vertical-align: top; }
.rl-table tbody tr:nth-child(odd) td { background: #3A3F45; }
.rl-table input[type=checkbox] { width: 18px; height: 18px; }
.rl-user { color: #fff; font-weight: 800; text-decoration: none; font-size: 16px; }
.rl-user:hover { color: #9FD3FF; }
.rl-sub { color: #AEB6BD; font-size: 12px; }
.rl-on { color: #3DDC61; font-weight: 800; }
.rl-off { color: #FF7B7B; font-weight: 800; }
.rl-ver { color: #5BB8FF; font-weight: 800; }
.rl-ctrl { display: flex; flex-direction: column; gap: 4px; width: 60px; }
.rl-btn { height: 30px; border: 0; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; cursor: pointer; text-decoration: none; }
.rl-btn.go { background: #28A745; }
.rl-btn.stop { background: #6C757D; }
.rl-btn.gear { background: #FFC107; color: #1A1A1A; }
.rl-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Crear radio */
.cr-h { margin: 18px 20px 12px; font-size: 16px; color: #3A4652; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid #E3E3E3; }
.cr-box { margin: 0 20px 8px; border: 1px solid #1F2A36; border-radius: 4px; box-shadow: 0 4px 10px rgba(0, 0, 0, .22); padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 16px; max-width: 800px; }
.cr-box label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #444; }
.cr-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.cr-check input { width: 18px; height: 18px; }
.ig { display: flex; border: 1px solid #CED4DA; border-radius: 4px; overflow: hidden; }
.ig-ico { width: 40px; background: #E9ECEF; display: flex; align-items: center; justify-content: center; border-right: 1px solid #CED4DA; flex: none; }
.ig input, .ig select, .cr-sel, .cr-manual input, .cr-manual select { flex: 1 1 auto; min-width: 0; min-height: 40px; border: 0; padding: 0 12px; font-family: inherit; font-size: 15px; background: #fff; color: #333; }
.ig input[readonly] { background: #E9ECEF; }
.cr-sel, .cr-manual input, .cr-manual select { border: 1px solid #CED4DA; border-radius: 4px; }
.cr-manual { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cr-btn { font-size: 18px; padding: 0 22px; margin-top: 12px; }

/* Pestañas de la radio */
.rtabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 12px 0; border: 1px solid #DCDCDC; border-bottom-color: var(--line); }
.rtabs a { padding: 10px 14px; color: #17A2B8; text-decoration: none; font-weight: 600; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; margin-bottom: -1px; }
.rtabs a.on { background: #fff; border-color: var(--line); color: #2B3A47; }
.hint { margin: 0; color: #444; font-size: 14px; }
.pl-tools { display: flex; flex-wrap: wrap; gap: 6px; background: #EEF1F3; border: 1px solid var(--line); padding: 8px; border-radius: 4px; }
.pl-tools .btn { min-height: 38px; font-size: 14px; background: #5A6268; }
.pl-tools .btn-go { background: var(--ok-btn); }
.pl-tools .btn-bad { background: var(--bad); }
.tag-on { align-self: center; background: #E6F6EA; color: var(--ok); font-weight: 800; padding: 6px 10px; border-radius: 4px; }
.trks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 640px; overflow: auto; }
.trk { display: flex; align-items: center; gap: 10px; background: #F1F3F5; border: 1px solid #E3E6E8; border-radius: 3px; padding: 6px 10px; cursor: grab; }
.trk.drag { opacity: .5; }
.trk-h { color: #9AA3AA; }
.trk-n { flex: 1 1 auto; min-width: 0; color: #1A8AD8; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.trk-s { color: var(--muted); font-size: 12px; }
.trk .mini { margin-left: 0; }
.sch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.sw { min-width: 52px; min-height: 30px; border-radius: 4px; border: 1px solid #B9C3CA; background: #fff; font-weight: 800; cursor: pointer; }
.sw.on { background: #28A745; color: #fff; border-color: #28A745; }
button.item { font-family: inherit; }
.cr-box select, .cr-box input[type=date], .cr-box input[type=number], .cr-box input[type=text], .cr-box input:not([type]), .cr-box input[type=email] { min-height: 40px; padding: 0 10px; border: 1px solid #CED4DA; border-radius: 4px; background: #fff; font-family: inherit; font-size: 15px; color: #333; }
.cr-box .ig input, .cr-box .ig select { border: 0; }
.cr-box input[readonly] { background: #E9ECEF; }
