:root {
  color-scheme: light;
  --bg: #f5f7fa; --bg-soft: #f8fafc; --panel: #fff; --panel-2: #f0f4f8;
  --border: #e5eaf0; --text: #202d40; --muted: #708096;
  --accent: #167d91; --accent-2: #127286; --ok: #208469; --warn: #b77a16; --bad: #cc4c50;
  --mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #55aabb; outline-offset: 3px; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: 27px; line-height: 1.4; letter-spacing: -.7px; font-weight: 700; }
h2 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
h3 { font-size: 14px; margin: 20px 0 10px; }
p { margin: 8px 0; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 234px; flex: 0 0 234px; background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; padding: 27px 24px 24px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #147d90; color: #fff; box-shadow: 0 5px 12px #147d9020; }
.brand-text { font-size: 21px; font-weight: 750; line-height: 1.2; letter-spacing: 1px; }
.brand-text > span { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 5px; letter-spacing: 1.3px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; padding: 0 14px 15px; overflow-y: auto; }
.nav-label { font-size: 10px; letter-spacing: 1.7px; color: #8794a5; margin: 20px 14px 7px; }
.sidebar nav a { display: flex; align-items: center; gap: 13px; color: #67758a; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.sidebar nav a:hover { background: #f4f7fa; color: var(--text); text-decoration: none; }
.sidebar nav a.active { color: var(--accent-2); background: #eaf5f5; font-weight: 650; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.sidebar-note { display: flex; gap: 10px; align-items: center; margin: auto 20px 18px; padding: 14px 9px 0; color: var(--accent); font-size: 10px; }
.sidebar-note strong, .sidebar-note span { display: block; }
.sidebar-note strong { color: #5e7185; font-weight: 500; }
.sidebar-note span { color: #94a1af; margin-top: 2px; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 17px 21px; border-top: 1px solid var(--border); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: #657f99; background: #eaf0f6; font-weight: 700; }
.sidebar-foot strong, .sidebar-foot div > span { display: block; }
.sidebar-foot div > span { font-size: 10px; color: var(--muted); }
.sidebar-foot form { margin-left: auto; }
.workspace { flex: 1; min-width: 0; }
.topbar { display: flex; gap: 24px; align-items: center; height: 76px; padding: 0 36px; background: #ffffffee; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 13px; font-size: 12px; color: #8a96a6; white-space: nowrap; }
.breadcrumb strong { font-weight: 500; color: #4c5d73; }
.global-search { display: flex; align-items: center; gap: 8px; width: 240px; margin: 0 0 0 auto; background: #f6f8fa; border: 1px solid #eef1f5; border-radius: 8px; color: #98a4b3; padding: 0 11px; }
.global-search input { width: 100%; margin: 0; padding: 8px 0; background: transparent; border: 0; outline: none; box-shadow: none; font-size: 12px; }
kbd { font: 10px var(--mono); border: 1px solid #dfe5eb; border-radius: 3px; padding: 0 4px; }
.search-trigger { display: inline-flex; border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; }
.top-play { display: flex; gap: 7px; align-items: center; font-size: 12px; white-space: nowrap; color: #53677c; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 7px; background: transparent; border: 0; color: #7f8b9a; cursor: pointer; border-radius: 6px; }
.icon-btn:hover { color: var(--accent); background: #edf5f6; }
.mobile-menu { display: none; }
.main { max-width: 1660px; margin: 0 auto; padding: 32px 36px 40px; min-width: 0; }
.main.solo { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.workspace-foot { display: flex; justify-content: space-between; gap: 15px; color: #99a5b4; font-size: 10px; padding: 6px 36px 24px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head > .small { max-width: 450px; }
.page-description { color: var(--muted); font-size: 13px; margin: 7px 0 0; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 2px; color: #8799ac; margin-bottom: 6px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 22px; box-shadow: 0 3px 9px #14243a02; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-head p { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 18px 20px; position: relative; }
.card .num { display: block; font-size: 29px; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.card .label { color: #7b899c; font-size: 11px; }
.card.warn .num { color: var(--warn); }
.stat-head { display: flex; justify-content: space-between; align-items: center; color: #7895a4; margin-bottom: 12px; }
.stat-icon { display: grid; place-items: center; background: #eff6f7; border-radius: 8px; width: 32px; height: 32px; }
.stat-note { color: #8c99a9; font-size: 10px; margin-top: 5px; }
.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; margin-bottom: 24px; border-radius: 14px; color: #fff; background: #1a3446; overflow: hidden; }
.hero > div { position: relative; z-index: 1; }
.hero .eyebrow { color: #8fc2ca; }
.hero h2 { font-size: 25px; letter-spacing: -.6px; }
.hero p { color: #aec1cf; font-size: 12px; margin: 10px 0 19px; }
.hero .btn { border-color: #4a6678; background: #ffffff0a; color: #e4edf3; }
.hero .btn.primary { background: #fff; border-color: #fff; color: #20485b; }
.hero-art { width: 235px; height: 135px; flex: 0 0 235px; color: #79acb9; opacity: .9; }
.dashboard-secondary { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.mini-metrics { display: flex; align-items: center; gap: 24px; font-size: 11px; color: var(--muted); padding: 1px 0 22px; flex-wrap: wrap; }
.mini-metrics strong { font-size: 13px; color: #4b6076; margin-right: 4px; }
.mini-metrics a { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
th { color: #8592a3; font-weight: 500; font-size: 11px; white-space: nowrap; background: #fafbfd; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfc; }
td:first-child, th:first-child { padding-left: 10px; }
td.mono, .mono { font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
td.mono { max-width: 360px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.bulk-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #f7fafc; border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; margin-bottom: 12px; font-size: 12px; }
.bulk-actions { display: flex; gap: 8px; margin-left: auto; }
.batch-check { width: 38px; text-align: center; }
.batch-check input { margin: 0; }
tbody tr.selected { background: #edf7f7; }
.chno-form { display: flex; align-items: center; gap: 6px; }
.chno-form input[type=number] { width: 65px; margin: 0; padding: 5px; text-align: center; }
.chno-form .btn { font-size: 10px; padding: 5px 7px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 5px; background: #f1f4f8; border: 1px solid transparent; color: #7d8999; font-size: 10px; line-height: 1.7; white-space: nowrap; }
.badge.ok { color: #218467; background: #ecf8f1; }
.badge.bad { color: #c35055; background: #fdefef; }
.badge.warn { color: #aa7c21; background: #fff6e4; }
.badge.accent { color: #227f92; background: #eaf6f7; }
.badge.off { color: #95a0ad; background: #f2f4f7; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: #54667b; border: 1px solid #dfe5ec; border-radius: 7px; padding: 10px 15px; font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1.25; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: #a5bcc5; background: #f9fbfc; text-decoration: none; box-shadow: 0 2px 4px #14364a08; }
.btn.primary { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.primary:hover { background: #0a6376; border-color: #0a6376; }
.btn.danger { color: var(--bad); border-color: #f1d8da; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.small { padding: 6px 10px; font-size: 11px; }
.btn.block { width: 100%; }
.btn.link { border: 0; background: transparent; color: var(--muted); padding: 0; }
form.inline { display: inline; margin: 0; }
label { display: block; color: #62748a; font-size: 12px; }
input, select, textarea { width: 100%; background: #fff; border: 1px solid #dfe5ec; border-radius: 7px; color: var(--text); padding: 9px 11px; font-size: 12px; margin-top: 6px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a1acb9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #65a6b4; box-shadow: 0 0 0 3px #157d9010; }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); margin: 0 5px 0 0; flex: none; vertical-align: middle; }
textarea { min-height: 95px; resize: vertical; font-family: var(--mono); line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 5px; color: #5d6d80; font-size: 12px; margin-top: 8px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 12px; border: 1px solid; }
.flash.ok { color: #277c65; background: #eef8f3; border-color: #d7ede2; }
.flash.err { color: #bb4e54; background: #fdf0f1; border-color: #f3dbdd; }
.flash.warn { color: #a78039; background: #fff9ed; border-color: #f4e7cb; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
pre.code { background: #f6f8fb; border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow: auto; max-height: 380px; font: 11px/1.7 var(--mono); color: #5a6d83; white-space: pre; }
details summary { cursor: pointer; color: #7a8a9c; font-size: 12px; }
details[open] summary { margin-bottom: 14px; color: var(--accent); }
.empty { color: #91a0af; padding: 30px 12px; text-align: center; }
.network-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.network-summary > div { display: grid; grid-template-columns: 40px 1fr; align-items: center; background: #fff; padding: 20px 24px; border: 1px solid var(--border); border-radius: 11px; }
.network-summary svg { grid-row: span 2; color: #3993a3; }
.network-summary strong { font-size: 13px; }
.network-summary span { font-size: 11px; color: var(--muted); }
.network-form label { flex: 1; min-width: min(100%, 210px); }
.diagnostic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.diagnostic-grid span, .diagnostic-grid strong, .diagnostic-grid small { display: block; }
.diagnostic-grid span { font-size: 11px; color: var(--muted); }
.diagnostic-grid strong { font-size: 18px; margin: 5px 0; }
.diagnostic-grid small { font-size: 10px; color: #8997a7; overflow-wrap: anywhere; }
.notice { color: #7b8b9e; font-size: 11px; background: #f7f9fc; padding: 12px 16px; border-radius: 6px; margin: 22px 0 0; }
.diagnostic-idle { display: flex; justify-content: center; align-items: center; gap: 18px; color: #93a5b5; background: #fafcfd; border: 1px dashed #e3eaf0; border-radius: 9px; padding: 30px 20px; margin-top: 24px; }
.diagnostic-idle strong { color: #6f8499; font-size: 13px; font-weight: 500; }
.diagnostic-idle p { font-size: 11px; margin: 4px 0 0; }
.preview-summary { display: flex; gap: 25px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.preview-summary strong { font-size: 25px; color: var(--accent); }
.preview-summary strong span { font-size: 11px; font-weight: 400; }
.switch-row { align-items: flex-start; padding: 16px; background: #f7fafb; border-radius: 8px; }
.switch-row input { margin-top: 3px; }
.switch-row small { display: block; color: #8b98a7; font-size: 11px; margin-top: 4px; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 16px 34px; counter-increment: step; }
.steps li:before { content: counter(step); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; background: #edf5f7; border-radius: 7px; color: #458494; font: 11px var(--mono); }
.steps strong { font-size: 12px; font-weight: 600; }
.steps p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 1100; background: #253b4c; color: #fff; padding: 12px 24px; border-radius: 9px; box-shadow: 0 10px 40px #192c4630; font-size: 12px; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 2000; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.login-body { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100dvh; background: #fff; }
.login-story { display: flex; flex-direction: column; justify-content: center; padding: 12%; min-height: 100dvh; background: #1a3446; color: #fff; position: relative; overflow: hidden; }
.login-story .brand { position: absolute; top: 16px; left: 20px; color: #fff; }
.login-story .brand-text > span { color: #a0b7c5; }
.login-story h2 { font-size: clamp(32px, 3.3vw, 50px); font-weight: 500; line-height: 1.5; letter-spacing: -1px; margin: 28px 0 16px; }
.login-story p { color: #9db4c5; font-size: 13px; max-width: 350px; }
.login-story .hero-art { width: 300px; margin: 40px 0; opacity: .7; }
.login-side { display: grid; place-items: center; padding: 35px; }
.login-card { width: min(350px, 100%); display: flex; flex-direction: column; gap: 20px; }
.login-card h1 { font-size: 27px; margin-bottom: 5px; }
.login-card .muted { margin: 0; font-size: 12px; }
.login-card input { padding: 12px 13px; }
.login-card .btn { padding: 13px; }
.hint { font-size: 10px; color: #a0aab7; line-height: 1.8; text-align: center; }

.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  font-size: 12.5px;
}
.chip-x {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.chip-x:hover { color: var(--bad); background: rgba(248,81,73,.12); }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(84vh, 760px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  overflow: hidden;
}
.modal-head, .modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}
.modal-head { border-bottom: 1px solid var(--border); }
.modal-foot { border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-tools input { flex: 1; margin: 0; }
.modal-list { flex: 1; overflow: auto; padding: 6px 10px; min-height: 160px; }
.channel-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.channel-option:last-child { border-bottom: 0; }
.channel-option[hidden] { display: none; }
.channel-option:hover { background: rgba(255,255,255,.025); }
.channel-option .channel-name { flex: 1; min-width: 0; }
.channel-option .channel-meta { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
body.modal-open { overflow: hidden; }

.play-page-head { margin-bottom: 16px; }
.play-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  height: calc(100vh - 150px);
  min-height: 560px;
}
.play-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.play-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 2px 10px;
}
.play-now-text { min-width: 0; flex: 1; }
.play-now h2 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-now .muted { margin-top: 2px; }
.play-now .badge { flex: none; }
.play-now .badge[hidden] { display: none; }
.play-video-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 9px;
  overflow: hidden;
}
.play-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: #000;
  object-fit: contain;
}
.play-idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: radial-gradient(circle at 50% 40%, rgba(79,156,249,.08), transparent 55%), #000;
}
.play-idle[hidden] { display: none; }
.play-idle-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  font-size: 22px;
}
.play-idle-title { color: var(--text); font-size: 15px; font-weight: 600; }
.play-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}
.play-controls select { width: auto; min-width: 260px; margin: 0; }
.play-controls .btn[hidden] { display: none; }
.play-player-note { min-height: 18px; margin: 7px 0 0; }
.play-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.play-switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.play-switch label { font-size: 12px; }
.play-switch select { margin-top: 3px; }
.play-switch .btn { align-self: flex-end; }
.play-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px 5px;
}
.play-sidebar-head h2 { font-size: 15px; }
.play-sidebar-head .muted { margin-top: 2px; }
.play-stats { padding: 0 14px 8px; font-size: 11.5px; line-height: 1.45; }
.play-channel-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 7px 10px;
}
.play-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.play-channel:hover, .play-channel:focus-visible {
  background: var(--panel-2);
  border-color: var(--border);
  outline: none;
}
.play-channel.active { background: rgba(79,156,249,.12); border-color: rgba(79,156,249,.55); }
.play-channel-no { display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; min-height: 57px; padding: 6px 9px 8px; border: 1px solid #29495c; border-radius: 9px; background: #182f40; color: #31d5a0; box-shadow: inset 0 1px 0 #ffffff0a; }
.channel-number-label { color: #9db7c7; font: 9px/1.4 "Microsoft YaHei", system-ui, sans-serif; letter-spacing: 2px; padding-left: 2px; }
.channel-number-value { font: 700 30px/1.05 "Cascadia Code", "Consolas", "SFMono-Regular", monospace; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -1px; }
.play-channel.active .play-channel-no { border-color: #34ce9e; background: #123c39; box-shadow: 0 0 0 2px #31d5a01a; }
.play-current-number { min-width: 66px; }
.play-channel .play-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.play-channel .play-meta { color: var(--muted); font-size: 11.5px; }
.play-channel-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.play-channel-text .play-name, .play-channel-text .play-meta { overflow-wrap: anywhere; }
.channel-logo { display: grid; place-items: center; position: relative; flex: 0 0 60px; width: 60px; height: 46px; border-radius: 8px; background: #eaf0f5; border: 1px solid #e0e8ef; overflow: hidden; }
.channel-logo img, .logo-fallback { grid-area: 1 / 1; }
.channel-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 5px; opacity: 0; filter: drop-shadow(0 0 1px #23395070); }
.logo-fallback { display: flex; color: #8ca5b5; }
.channel-logo.logo-ready img { opacity: 1; }
.channel-logo.logo-ready .logo-fallback { visibility: hidden; }
.play-current-logo { flex-basis: 66px; width: 66px; height: 44px; }



/* Shared refinements for the channel picker and player. */
.modal-box { box-shadow: 0 24px 80px #172c4630; border-radius: 14px; }
.modal-backdrop { background: #14273870; backdrop-filter: blur(3px); }
.chip { font-size: 11px; background: #f3f7f9; }
.chip-x { background: #e5edf2; }
.play-screen { grid-template-columns: minmax(0, 1fr) 320px; height: calc(100dvh - 235px); min-height: 540px; }
.play-stage, .play-sidebar { border-radius: 12px; }
.play-idle { background: radial-gradient(ellipse at 50% 40%, #153746, #0c1823 70%); color: #6b8a9e; }
.play-idle-title { color: #c8dce6; }
.play-idle-icon { border-color: #3d6579; color: #8cbdca; }
.play-channel.active { background: #eaf5f5; border-color: #abd1d6; }
.play-channel .play-name { font-size: 13px; }
.play-channel { padding: 11px 12px; }
.play-stats { font-size: 10px; }
.play-channel-search { padding: 4px 14px 12px; }
.play-channel-search input { font-size: 11px; padding: 8px 10px; }
.nav-backdrop { position: fixed; inset: 0; z-index: 25; border: 0; background: #20324760; backdrop-filter: blur(2px); }
@media (min-width: 1600px) { .main { padding-top: 40px; } .dashboard-stats .card { padding: 22px 25px; } }
@media (max-width: 1180px) {
  .sidebar { width: 210px; flex-basis: 210px; }
  .topbar { padding: 0 25px; gap: 15px; }
  .main { padding: 26px 25px 35px; }
  .hero-art { width: 180px; flex-basis: 180px; }
  .dashboard-secondary { grid-template-columns: 1fr; gap: 0; }
  .play-screen { grid-template-columns: minmax(0, 1fr) 275px; }
  .diagnostic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; width: 234px; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 65px; padding: 0 20px; }
  .global-search { width: 190px; }
  .main { padding: 25px 20px 30px; }
  .grid-2, .split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .play-screen { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .play-stage { min-height: 430px; }
  .play-sidebar { max-height: 65vh; }
  .play-controls select { flex: 1; min-width: 0; }
  .workspace-foot { padding-inline: 20px; }
  .network-summary > div { padding: 16px; grid-template-columns: 33px 1fr; }
}
@media (max-width: 600px) {
  table { min-width: 640px; }
  td, th { white-space: nowrap; }
  h1 { font-size: 23px; }
  .topbar { gap: 12px; }
  .breadcrumb { font-size: 11px; gap: 8px; }
  .breadcrumb > strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .global-search { width: 36px; padding: 8px; margin-left: auto; }
  .global-search:focus-within { position: absolute; left: 60px; right: 60px; width: auto; z-index: 5; background: #fff; }
  .global-search input { width: 0; padding: 0; }
  .global-search:focus-within input { width: 100%; padding: 0 5px; }
  .global-search kbd, .top-play span { display: none; }
  .main { padding: 22px 16px; }
  .page-head { flex-wrap: wrap; gap: 13px; margin-bottom: 20px; }
  .page-head > .small { font-size: 11px; }
  .page-description { font-size: 11px; }
  .panel { padding: 18px 16px; margin-bottom: 16px; }
  .panel-head { gap: 10px; flex-wrap: wrap; }
  .panel-head > .small { font-size: 10px; }
  .hero { padding: 25px 22px; }
  .hero h2 { font-size: 22px; }
  .hero-art { display: none; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 15px 16px; }
  .card .num { font-size: 27px; }
  .mini-metrics { gap: 12px; font-size: 10px; }
  .mini-metrics a { margin-left: 0; }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .network-summary { gap: 8px; }
  .network-summary > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 15px 12px; }
  .network-summary strong { font-size: 11px; }
  .network-summary span { font-size: 9px; }
  .network-form label { flex-basis: 100%; }
  .diagnostic-grid { gap: 20px 12px; }
  .diagnostic-grid strong { font-size: 16px; }
  .workspace-foot { font-size: 9px; flex-wrap: wrap; }
  .login-body { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-side { min-height: 100dvh; padding: 30px; background: #f5f8fb; }
  .login-card { padding: 28px 22px; border: 1px solid var(--border); background: #fff; border-radius: 15px; }
  .modal { padding: 12px; }
  .modal-tools, .modal-foot { gap: 8px; }
  .channel-option .channel-meta { white-space: normal; font-size: 10px; max-width: 35%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
