/* ============================================================
   OW · 设备监控矩阵控制台
   独立主题：赛博 / 矩阵 HUD 风格 + 丰富动效
   ============================================================ */

:root {
  --ow-bg: #04070a;
  --ow-bg2: #060d10;
  --ow-panel: rgba(9, 20, 16, 0.62);
  --ow-panel-solid: #0a1512;
  --ow-line: rgba(34, 227, 122, 0.18);
  --ow-line-strong: rgba(34, 227, 122, 0.45);
  --ow-green: #22e37a;
  --ow-green-bright: #4dffa0;
  --ow-cyan: #00e0ff;
  --ow-danger: #ff4d6d;
  --ow-warn: #ffcc44;
  --ow-purple: #b98cff;
  --ow-text: #d6f5e6;
  --ow-text-muted: #94bfac;
  --ow-text-dim: #6f9c88;
  --ow-text-faint: #47695b;
  --ow-glow: 0 0 18px rgba(34, 227, 122, 0.35);
  --ow-font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --ow-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #090a0f;
  color: var(--ow-text);
  font-family: var(--ow-font);
  -webkit-font-smoothing: antialiased;
}

body.ow {
  position: relative;
  overflow-x: hidden;
}

/* ============ 登录 ============ */
.ow-login {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ow-login__card {
  position: relative;
  width: min(400px, 92vw);
  padding: 40px 34px 34px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(11, 24, 18, 0.96), rgba(6, 13, 10, 0.98));
  border: 1px solid var(--ow-line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: ow-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ow-login__inner { position: relative; z-index: 1; }

@keyframes ow-spin { to { transform: rotate(360deg); } }

.ow-login__logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #04140c;
  background: linear-gradient(135deg, var(--ow-green-bright), #00b894);
  box-shadow: 0 0 14px rgba(34, 227, 122, 0.25);
}

.ow-login__title {
  margin: 0 0 4px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--ow-green-bright);
}
.ow-login__sub {
  margin: 0 0 26px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ow-text-dim);
}

.ow-login__checking {
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ow-text-dim);
}
.ow-login__checking::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid rgba(34, 227, 122, 0.25);
  border-top-color: var(--ow-green);
  border-radius: 50%;
  vertical-align: -2px;
  animation: ow-spin 0.8s linear infinite;
}
.ow-login.is-checking .ow-login__form { display: none !important; }
.ow-login:not(.is-checking) #loginChecking { display: none; }

.ow-field {
  position: relative;
  margin-bottom: 18px;
}
.ow-field input {
  width: 100%;
  padding: 14px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  color: var(--ow-text);
  font-family: var(--ow-mono);
  font-size: 15px;
  letter-spacing: 2px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ow-field input:focus {
  border-color: var(--ow-green);
  box-shadow: 0 0 0 3px rgba(34, 227, 122, 0.15), var(--ow-glow);
}
.ow-field input::placeholder { color: var(--ow-text-faint); letter-spacing: 1px; }

.ow-login__error {
  display: none;
  margin: -6px 0 14px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #ffd7de;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.4);
  animation: ow-shake 0.4s;
}
@keyframes ow-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ============ 通用按钮 ============ */
.ow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--ow-line);
  border-radius: 9px;
  background: rgba(9, 22, 17, 0.7);
  color: var(--ow-text);
  font-family: var(--ow-font);
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.ow-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s;
}
.ow-btn:hover::before { left: 130%; }
.ow-btn:hover {
  border-color: var(--ow-line-strong);
  box-shadow: var(--ow-glow);
  transform: translateY(-2px);
}
.ow-btn:active { transform: translateY(0) scale(0.97); }

.ow-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ow-green), #00b894);
  color: #04140c;
  font-weight: 700;
}
.ow-btn--primary:hover { box-shadow: 0 0 24px rgba(34, 227, 122, 0.55); }

.ow-btn--danger {
  border-color: rgba(255, 77, 109, 0.4);
  color: #ffb3c1;
}
.ow-btn--danger:hover { box-shadow: 0 0 18px rgba(255, 77, 109, 0.4); border-color: var(--ow-danger); }

.ow-btn--block { width: 100%; padding: 14px; font-size: 15px; letter-spacing: 3px; }
.ow-btn--sm { padding: 6px 11px; font-size: 12px; }
.ow-btn--icon { padding: 8px 10px; }

/* ============ 控制台外壳 ============ */
.ow-console {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}
.ow-console.is-visible { opacity: 1; transform: none; }
[hidden] { display: none !important; }

/* 顶栏 */
.ow-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(5, 12, 9, 0.92), rgba(5, 12, 9, 0.6));
  border-bottom: 1px solid var(--ow-line);
  backdrop-filter: blur(10px);
}
.ow-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ow-brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #04140c;
  background: linear-gradient(135deg, var(--ow-green-bright), #00b894);
  box-shadow: var(--ow-glow);
}
.ow-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.ow-brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ow-green-bright);
}
.ow-brand__sub {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ow-text-dim);
}
.ow-clock {
  font-family: var(--ow-mono);
  font-size: 13px;
  color: var(--ow-cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}
.ow-topbar__spacer { flex: 1; }
.ow-topbar__actions { display: flex; align-items: center; gap: 10px; }

/* 搜索框 */
.ow-search {
  position: relative;
  display: flex;
  align-items: center;
}
.ow-search input {
  width: 230px;
  padding: 8px 12px 8px 32px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ow-line);
  border-radius: 9px;
  color: var(--ow-text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, width 0.3s;
}
.ow-search input:focus {
  border-color: var(--ow-green);
  box-shadow: 0 0 0 3px rgba(34, 227, 122, 0.12);
  width: 260px;
}
.ow-search__icon {
  position: absolute;
  left: 11px;
  color: var(--ow-text-dim);
  font-size: 13px;
  pointer-events: none;
}

/* 自动刷新开关 */
.ow-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ow-text-dim);
  cursor: pointer;
  user-select: none;
}
.ow-toggle input { display: none; }
.ow-toggle__track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--ow-line);
  transition: background 0.3s, border-color 0.3s;
}
.ow-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ow-text-dim);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.ow-toggle input:checked + .ow-toggle__track {
  background: rgba(34, 227, 122, 0.2);
  border-color: var(--ow-green);
}
.ow-toggle input:checked + .ow-toggle__track::after {
  transform: translateX(20px);
  background: var(--ow-green-bright);
  box-shadow: 0 0 10px var(--ow-green);
}

/* 刷新按钮旋转 */
.ow-btn.is-spinning .ow-refresh-icon { animation: ow-spin 0.7s ease; }

/* ============ 统计条 ============ */
.ow-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 22px 8px;
}
.ow-stat {
  position: relative;
  padding: 16px 18px;
  border-radius: 13px;
  background: var(--ow-panel);
  border: 1px solid var(--ow-line);
  overflow: hidden;
  animation: ow-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ow-stat:nth-child(1) { animation-delay: 0.02s; }
.ow-stat:nth-child(2) { animation-delay: 0.08s; }
.ow-stat:nth-child(3) { animation-delay: 0.14s; }
.ow-stat:nth-child(4) { animation-delay: 0.2s; }
.ow-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--stat-color, var(--ow-green));
}
.ow-stat__label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ow-text-dim);
}
.ow-stat__value {
  margin-top: 6px;
  font-family: var(--ow-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--stat-color, var(--ow-green-bright));
  line-height: 1;
}

/* ============ 设备网格 ============ */
.ow-main { flex: 1; padding: 14px 22px 40px; }
.ow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.ow-modal__dialog--wide { width: min(860px, calc(100vw - 32px)); }
/* 直播日志：上面选日期与场次，下面分「讲解文案」「弹幕互动」两栏 */
.ow-modal__dialog.ow-modal__dialog--livelog {
  width: min(1080px, 96vw);
  height: min(90vh, 940px);
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ow-modal__dialog--livelog .ow-modal__head { flex-shrink: 0; padding: 14px 20px; }
.ow-livelog { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ow-livelog__nav {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--ow-line);
  background: rgba(0, 0, 0, 0.16);
}
.ow-livelog__navrow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ow-livelog__navlabel { flex-shrink: 0; width: 30px; font-size: 12px; letter-spacing: 1px; color: var(--ow-text-dim); }
.ow-livelog__scroll {
  flex-shrink: 0;
  width: 26px;
  height: 58px;
  border: 1px solid var(--ow-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ow-text-muted);
  font-size: 18px;
  cursor: pointer;
}
.ow-livelog__scroll:hover { color: var(--ow-text); border-color: rgba(34, 227, 122, 0.45); }
.ow-livelog__dates {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ow-livelog__dates::-webkit-scrollbar { display: none; }
.ow-livelog__date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 66px;
  height: 58px;
  padding: 4px 10px;
  border: 1px solid var(--ow-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ow-text-muted);
  font: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.ow-livelog__date b { font-family: var(--ow-mono); font-size: 15px; color: var(--ow-text); }
.ow-livelog__date span { font-size: 11px; }
.ow-livelog__date em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 10.5px; color: var(--ow-text-dim); }
.ow-livelog__date:hover { border-color: rgba(34, 227, 122, 0.4); }
.ow-livelog__date.is-on { border-color: var(--ow-green); background: rgba(34, 227, 122, 0.12); box-shadow: 0 0 14px rgba(34, 227, 122, 0.18); }
.ow-livelog__date.is-on span, .ow-livelog__date.is-on em { color: var(--ow-text); }
.ow-livelog__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ow-danger);
  box-shadow: 0 0 6px var(--ow-danger);
  animation: ow-livelog-pulse 1.4s ease-in-out infinite;
}
.ow-livelog__sessions { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ow-livelog__session {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 156px;
  padding: 7px 12px;
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ow-text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.ow-livelog__session:hover { border-color: rgba(34, 227, 122, 0.4); }
.ow-livelog__session.is-on { border-color: var(--ow-green); background: rgba(34, 227, 122, 0.12); }
.ow-livelog__session-top { display: flex; align-items: center; gap: 8px; }
.ow-livelog__session-top b { font-size: 13.5px; color: var(--ow-text); }
.ow-livelog__session-top span { font-family: var(--ow-mono); font-size: 12px; }
.ow-livelog__session-meta { font-size: 11px; color: var(--ow-text-dim); }
.ow-livelog__live {
  flex-shrink: 0;
  white-space: nowrap;
  font-style: normal;
  font-size: 10.5px;
  padding: 1px 6px;
  border: 1px solid rgba(255, 77, 109, 0.4);
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.16);
  color: #ff8fa3;
}
.ow-livelog__summary {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "main btn" "sub btn";
  align-items: center;
  gap: 3px 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--ow-line);
}
.ow-livelog__summary:empty { display: none; }
.ow-livelog__summary-main { grid-area: main; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ow-text); }
.ow-livelog__summary-sub { grid-area: sub; font-size: 12px; color: var(--ow-text-muted); }
.ow-livelog__refresh { grid-area: btn; }
.ow-livelog__toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--ow-line);
}
.ow-livelog__tabs { display: inline-flex; padding: 3px; border: 1px solid var(--ow-line); border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.ow-livelog__tab {
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ow-text-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ow-livelog__tab b { margin-left: 4px; font-family: var(--ow-mono); font-size: 12px; color: var(--ow-text-dim); }
.ow-livelog__tab.is-on { background: rgba(34, 227, 122, 0.16); color: var(--ow-text); box-shadow: inset 0 0 0 1px rgba(34, 227, 122, 0.45); }
.ow-livelog__tab.is-on b { color: var(--ow-green); }
.ow-livelog__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ow-livelog__chip {
  padding: 5px 10px;
  border: 1px solid var(--ow-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ow-text-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ow-livelog__chip b { margin-left: 2px; font-family: var(--ow-mono); font-weight: 600; }
.ow-livelog__chip.is-on { border-color: var(--ow-green); background: rgba(34, 227, 122, 0.12); color: var(--ow-text); }
.ow-livelog__jumpto { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ow-text-muted); }
.ow-livelog__jumpto .ow-select { width: auto; padding: 5px 8px; font-size: 12px; }
.ow-livelog__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ow-livelog__search { width: 220px; padding: 7px 10px; font-size: 12.5px; }
.ow-livelog__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 227, 122, 0.35) transparent;
}
.ow-livelog__empty { padding: 48px 0; text-align: center; font-size: 13px; color: var(--ow-text-dim); }
.ow-livelog__found { margin: 10px 0 2px; font-size: 12px; color: var(--ow-text-muted); }
.ow-livelog__gap {
  margin: 14px 0 4px;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 204, 68, 0.4);
  border-radius: 10px;
  background: rgba(255, 204, 68, 0.06);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ow-warn);
}
.ow-livelog__group { margin-top: 4px; }
.ow-livelog__group-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 8px 0 6px;
  background: linear-gradient(180deg, #08120e 72%, rgba(8, 18, 14, 0));
  font-size: 12px;
  font-weight: 500;
  color: var(--ow-text-dim);
}
.ow-livelog__group-head b { font-family: var(--ow-mono); font-size: 12.5px; color: var(--ow-green); }
.ow-livelog__line {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  padding: 3px 8px;
  border-radius: 8px;
}
.ow-livelog__line:hover { background: rgba(255, 255, 255, 0.035); }
.ow-livelog__line time { padding-top: 2px; font-family: var(--ow-mono); font-size: 12px; color: var(--ow-text-dim); }
.ow-livelog__line p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ow-text); word-break: break-word; }
.ow-livelog__line.is-flash { animation: ow-livelog-flash 1.8s ease; }
@keyframes ow-livelog-flash { 0%, 45% { background: rgba(34, 227, 122, 0.24); } 100% { background: transparent; } }
@keyframes ow-livelog-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ow-livelog mark { padding: 0 1px; border-radius: 3px; background: rgba(255, 204, 68, 0.32); color: inherit; }
.ow-livelog__dm {
  margin-top: 10px;
  padding: 10px 14px 12px;
  border: 1px solid var(--ow-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.ow-livelog__dm.is-member { margin-top: 8px; padding: 8px 14px 10px; background: rgba(255, 255, 255, 0.015); }
.ow-livelog__dm header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ow-livelog__dm header time { font-family: var(--ow-mono); font-size: 12px; color: var(--ow-text-dim); }
.ow-livelog__badge { padding: 1px 7px; border: 1px solid; border-radius: 999px; font-size: 11px; }
.ow-livelog__badge.is-chat { border-color: rgba(34, 227, 122, 0.45); background: rgba(34, 227, 122, 0.1); color: var(--ow-green); }
.ow-livelog__badge.is-member { border-color: rgba(255, 255, 255, 0.14); color: var(--ow-text-muted); }
.ow-livelog__user { font-size: 13.5px; color: var(--ow-text); }
.ow-livelog__jump {
  margin-left: auto;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: var(--ow-cyan);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.8;
}
.ow-livelog__jump:hover { opacity: 1; text-decoration: underline; }
.ow-livelog__dm-text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ow-text); word-break: break-word; }
.ow-livelog__dm-enter { font-size: 12.5px; color: var(--ow-text-muted); }
.ow-livelog__answer { margin-top: 8px; padding: 6px 0 2px 12px; border-left: 2px solid rgba(34, 227, 122, 0.6); }
.ow-livelog__answer.is-reply { border-left-color: rgba(0, 224, 255, 0.6); }
.ow-livelog__answer.is-fail { border-left-color: rgba(255, 77, 109, 0.7); }
.ow-livelog__answer-tag { font-size: 11.5px; color: var(--ow-text-dim); }
.ow-livelog__answer p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ow-text-muted); word-break: break-word; }
.ow-livelog__noanswer { margin-top: 6px; font-size: 12px; color: var(--ow-warn); }
.ow-livelog__user.is-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--ow-text);
  cursor: pointer;
  border-bottom: 1px dashed rgba(34, 227, 122, 0.45);
}
.ow-livelog__user.is-link:hover { color: var(--ow-green); }
/* 直播日志 · 客资 */
.ow-viewer {
  margin-top: 10px;
  padding: 10px 14px 12px;
  border: 1px solid var(--ow-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.ow-viewer:hover { border-color: rgba(34, 227, 122, 0.45); }
.ow-viewer header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ow-viewer header b { font-size: 14px; color: var(--ow-text); }
.ow-viewer__lead { padding: 1px 8px; border-radius: 999px; font-size: 11px; border: 1px solid; }
.ow-viewer__lead.is-hot { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.5); background: rgba(255, 77, 109, 0.1); }
.ow-viewer__lead.is-warm { color: #ffd56a; border-color: rgba(255, 213, 106, 0.45); background: rgba(255, 213, 106, 0.08); }
.ow-viewer__lead.is-cold { color: var(--ow-text-dim); border-color: rgba(255, 255, 255, 0.14); }
.ow-viewer__status { font-size: 11.5px; color: var(--ow-cyan); }
.ow-viewer__kind { margin-left: auto; font-size: 11.5px; color: var(--ow-text-dim); }
.ow-viewer__dy { margin-left: 8px; padding: 1px 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px; font-size: 11.5px; color: var(--ow-text-muted); text-decoration: none; white-space: nowrap; }
.ow-viewer__dy.is-exact { color: #ff8fa6; border-color: rgba(254, 44, 85, 0.6); background: rgba(254, 44, 85, 0.08); }
.ow-viewer__dy:hover { color: #effff6; border-color: var(--ow-green-bright); }
.ow-viewer__facts { margin-top: 4px; font-size: 12px; color: var(--ow-text-muted); }
.ow-viewer__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ow-viewer__chip { padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--ow-text-muted); background: rgba(255, 255, 255, 0.05); }
.ow-viewer__chip.is-intent { color: #ffd56a; background: rgba(255, 213, 106, 0.08); }
.ow-viewer__chip.is-contact { color: #ff8a8a; background: rgba(255, 77, 109, 0.1); font-family: var(--ow-mono); }
.ow-viewer__none { font-size: 12px; color: var(--ow-text-dim); }
.ow-viewer__note { margin-top: 6px; font-size: 12.5px; color: var(--ow-cyan); }
.ow-viewer__more { margin: 12px auto 4px; display: block; }
.ow-viewer-detail { padding: 10px 0 6px; }
.ow-viewer-detail header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 8px; }
.ow-viewer-detail header h4 { margin: 0; font-size: 17px; color: var(--ow-text); }
.ow-viewer-detail__facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ow-viewer-detail__head { margin: 18px 0 0; font-size: 12.5px; color: var(--ow-text-muted); font-weight: 600; }
.ow-viewer-detail__facts div { padding: 8px 10px; border: 1px solid var(--ow-line); border-radius: 10px; }
.ow-viewer-detail__facts small { display: block; font-size: 11px; color: var(--ow-text-dim); }
.ow-viewer-detail__facts b { font-size: 13.5px; color: var(--ow-text); font-weight: 600; }
.ow-viewer-detail__follow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 12px; }
.ow-viewer-detail__follow label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ow-text-muted); }
.ow-viewer-detail__follow .ow-select { width: auto; padding: 5px 8px; font-size: 12.5px; }
.ow-viewer-detail__follow textarea { flex: 1; min-width: 220px; font-size: 13px; }
.ow-viewer-detail__hint { margin: 8px 0 0; font-size: 11.5px; color: var(--ow-text-dim); }
.ow-viewer-detail__session { margin-top: 16px; }
.ow-viewer-detail__session h5 { margin: 0 0 6px; font-size: 13px; color: var(--ow-green); }
.ow-viewer-detail__session h5 span { margin-left: 8px; font-weight: 400; font-size: 12px; color: var(--ow-text-dim); }
.ow-viewer-detail__msg { padding: 8px 0 8px 12px; border-left: 1px solid var(--ow-line); }
.ow-viewer-detail__msg time { font-family: var(--ow-mono); font-size: 11.5px; color: var(--ow-text-dim); }
.ow-viewer-detail__msg > p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--ow-text); word-break: break-word; }
@media (max-width: 760px) {
  .ow-viewer-detail__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ow-modal__dialog.ow-modal__dialog--livelog { height: 94vh; }
  .ow-livelog__nav, .ow-livelog__summary, .ow-livelog__toolbar { padding-left: 14px; padding-right: 14px; }
  .ow-livelog__body { padding: 4px 14px 16px; }
  .ow-livelog__scroll, .ow-livelog__navlabel { display: none; }
  .ow-livelog__session { flex: 1 1 140px; min-width: 0; }
  .ow-livelog__tools { width: 100%; margin-left: 0; }
  .ow-livelog__search { flex: 1; width: auto; }
  .ow-livelog__line { grid-template-columns: 58px minmax(0, 1fr); }
}
.ow-group {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 8px 2px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ow-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-group--stale { color: var(--ow-text-dim); }

.ow-node {
  position: relative;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(11, 24, 18, 0.85), rgba(6, 14, 11, 0.9));
  border: 1px solid var(--ow-line);
  overflow: hidden;
  animation: ow-card-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.25s, border-color 0.3s, box-shadow 0.3s;
  --accent: var(--ow-green);
}
.ow-node:hover {
  transform: translateY(-3px);
  border-color: var(--ow-line-strong);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.ow-node--board .ow-node__stage {
  height: 210px;
  cursor: zoom-in;
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #07110d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-node--board .ow-node__shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.ow-node--board .ow-node__stage-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
}
.ow-node--board .ow-node__screen-top {
  margin-bottom: 10px;
  padding: 8px 8px 6px;
  text-align: center;
  background: transparent;
}
.ow-node--board .ow-node__room-id { font-size: 22px; margin: 2px 0; }
.ow-node--board .ow-node__screen-status {
  margin-bottom: 10px;
  padding: 0;
  background: transparent;
}
.ow-node--board > .ow-node__chips {
  margin: 0 0 12px;
}
.ow-node--board .ow-node__loc { margin-bottom: 10px; }
.ow-node__shot-full {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: rgba(3, 8, 6, 0);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.35s ease, background 0.35s ease;
}
.ow-node__phone {
  position: relative;
  height: 94%;
  aspect-ratio: 9 / 19.5;
  max-width: calc(100% - 8px);
  box-sizing: border-box;
  border-radius: 34px;
  padding: 10px 8px 12px;
  background:
    linear-gradient(160deg, #4a4a50 0%, #161618 42%, #2c2c31 100%);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 3px #070708;
  transform: scale(0.42) translateY(-34%);
  transform-origin: center 16%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ow-node__phone-screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
}
.ow-node__phone-screen .ow-node__shot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}
.ow-node__phone-island {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: 30%;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #050506;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ow-node__phone-home {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 6px;
  width: 34%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
}
.ow-node__phone-key {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(#6a6a70, #2e2e32);
}
.ow-node__phone-key--silent { left: -2px; top: 16%; height: 16px; }
.ow-node__phone-key--vol { left: -2px; top: 26%; height: 46px; }
.ow-node__phone-key--power { right: -2px; top: 24%; height: 58px; }
.ow-node--board.is-shot-hover .ow-node__shot-full,
.ow-node--board.is-shot .ow-node__shot-full {
  opacity: 1;
  pointer-events: auto;
  background: rgba(3, 8, 6, 0.72);
}
.ow-node--board.is-shot-hover .ow-node__phone,
.ow-node--board.is-shot .ow-node__phone {
  transform: scale(1) translateY(0);
}
.ow-node__screen {
  display: flex;
  flex-direction: column;
  height: auto;
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-shot-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 48px;
  background: rgba(0, 0, 0, 0.78);
}
.ow-shot-lightbox.is-open { display: flex; }
.ow-shot-lightbox__img {
  max-width: min(420px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.ow-shot-lightbox__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.ow-shot-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 16, 12, 0.8);
  color: #e8fff2;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.ow-node__screen-top {
  position: static;
  padding: 10px 12px 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}
.ow-node__screen-top .ow-node__room-label {
  color: rgba(255, 255, 255, 0.62);
}
.ow-node__screen-top .ow-node__room-id {
  margin: 2px 0;
  font-size: 22px;
}
.ow-node__screen-top .ow-node__room-title {
  color: rgba(255, 255, 255, 0.72);
}
.ow-node__screen-status {
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px 10px;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
}
.ow-node__screen-status .ow-pill {
  flex: 0 1 auto;
  min-width: 0;
}
.ow-node__alert {
  margin: 0 0 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 77, 109, 0.12);
  color: #ff8fa3;
  font-size: 12px;
  line-height: 1.35;
}
.ow-node__alert-time {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffb3c0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.ow-root-spec {
  margin: 4px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ow-root-spec .ow-node__chips { margin-bottom: 0; }
/* 地域位置 */
.ow-node__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 12px;
  font-size: 12px;
  color: var(--ow-text-dim);
  flex-wrap: wrap;
}
.ow-node__loc-icon { color: var(--ow-cyan); font-size: 13px; flex-shrink: 0; }
.ow-node__loc-main { color: var(--ow-text); letter-spacing: 0.3px; }
.ow-node__loc-isp {
  font-size: 10.5px;
  color: var(--ow-text-faint);
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid var(--ow-line);
  background: rgba(255, 255, 255, 0.04);
}
.ow-node__loc-badge {
  font-size: 9.5px;
  letter-spacing: 0.5px;
  color: var(--ow-text-faint);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--ow-line);
}
.ow-node__loc-badge--gps {
  color: #04140c;
  background: var(--ow-green);
  border-color: var(--ow-green);
  font-weight: 700;
}
.ow-node__loc--unknown { color: var(--ow-text-faint); }
/* HUD 角标 */
.ow-node__corner {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  opacity: 0.5;
  transition: opacity 0.3s, width 0.3s, height 0.3s;
}
.ow-node:hover .ow-node__corner { opacity: 1; width: 18px; height: 18px; }
.ow-node__corner--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.ow-node__corner--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.ow-node__corner--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.ow-node__corner--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.ow-node--offline { opacity: 0.62; --accent: var(--ow-text-faint); }
.ow-node--offline:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* 头部：机型 + 在线状态 */
.ow-node__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ow-node__brand {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #04140c;
  letter-spacing: 0.5px;
}
.ow-node__model { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ow-node__model strong { font-size: 14px; color: var(--ow-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-node__model code { font-family: var(--ow-mono); font-size: 10.5px; color: var(--ow-text-faint); }
.ow-node__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ow-text-dim);
  flex-shrink: 0;
}
.ow-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ow-text-faint);
  flex-shrink: 0;
}
.ow-led--on {
  background: var(--ow-green);
  box-shadow: 0 0 7px var(--ow-green);
}

/* 直播间大号 */
.ow-node__room {
  position: relative;
  padding: 14px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--ow-line);
  margin-bottom: 14px;
  text-align: center;
  overflow: hidden;
}
.ow-node__room-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ow-text-dim);
}
.ow-node__room-id {
  margin: 5px 0 3px;
  font-family: var(--ow-mono);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ow-green-bright);
  word-break: break-all;
}
.ow-node__room-id.is-empty { font-size: 15px; color: var(--ow-text-faint); letter-spacing: 1px; }
a.ow-node__room-id {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 128, 0.35);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.ow-node__room-id:hover {
  color: #86efac;
  border-bottom-color: #86efac;
}
.ow-node__room-title {
  font-size: 12px;
  color: var(--ow-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ow-node__room-title a {
  color: inherit;
  text-decoration: none;
}
.ow-node__room-title a:hover { color: var(--ow-green-bright); }
.ow-room-preview { margin-top: -4px; }
.ow-room-preview a { color: var(--ow-green-bright); }

/* 状态药丸 */
.ow-node__pills { display: flex; gap: 8px; margin-bottom: 12px; }
.ow-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--ow-line);
  color: var(--ow-text-dim);
}
.ow-pill--on { color: var(--ow-cyan); border-color: rgba(0, 224, 255, 0.4); background: rgba(0, 224, 255, 0.08); }
.ow-pill--ai { color: var(--ow-green-bright); border-color: var(--ow-line-strong); background: rgba(34, 227, 122, 0.1); }
.ow-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* 监控行 */
.ow-node__monitor {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ow-text-dim);
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--ow-line);
}
.ow-node__monitor--on { color: var(--ow-warn); border-color: rgba(255, 204, 68, 0.35); border-style: solid; }
.ow-node__store {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 87, 0.22);
  background: rgba(28, 23, 12, 0.35);
}
.ow-node__store-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.ow-node__store-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #ffd27a;
}
.ow-node__store-now {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: #e8f7ee;
}
.ow-node__store-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.ow-node__store-row .ow-node__store-sel {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 7px;
}
.ow-node__store-row .ow-node__store-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 7px;
  white-space: nowrap;
  color: #ffd27a;
  border-color: rgba(255, 200, 87, 0.35);
}
.ow-node__store-row.is-changed .ow-node__store-btn {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ow-green), #00b894);
  color: #04140c;
  font-weight: 700;
}

/* 云端开播探测进度 */
.ow-probe {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ow-text-dim);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--ow-line);
}
.ow-probe--live {
  color: var(--ow-green-bright);
  border-color: rgba(34, 227, 122, 0.35);
  background: rgba(34, 227, 122, 0.08);
}
.ow-probe--idle {
  color: var(--ow-text-dim);
  border-color: rgba(255, 255, 255, 0.12);
}
.ow-probe--wait {
  color: var(--ow-warn);
  border-color: rgba(255, 204, 68, 0.28);
}
.ow-probe__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.ow-probe__k {
  opacity: 0.75;
  flex-shrink: 0;
}
.ow-probe__v,
.ow-probe__next,
.ow-probe__status {
  font-family: var(--ow-mono);
  text-align: right;
}
.ow-probe__action {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  opacity: 0.9;
}

/* 规格 chips */
.ow-node__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ow-chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-family: var(--ow-mono);
  color: var(--ow-text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ow-line);
}
.ow-chip--tts { color: var(--ow-purple); border-color: rgba(185, 140, 255, 0.35); background: rgba(185, 140, 255, 0.08); }
.ow-chip--dh { color: #7ee0c8; border-color: rgba(126, 224, 200, 0.35); background: rgba(126, 224, 200, 0.08); }

/* 底部 meta */
.ow-node__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--ow-text-dim);
}
.ow-node__fp { font-family: var(--ow-mono); font-size: 10px; color: var(--ow-text-faint); }
.ow-node__batt { display: inline-flex; align-items: center; gap: 4px; font-family: var(--ow-mono); }
.ow-node__batt-shell {
  position: relative;
  width: 26px;
  height: 12px;
  border: 1px solid var(--ow-text-dim);
  border-radius: 3px;
  padding: 1px;
}
.ow-node__batt-fill { display: block; height: 100%; border-radius: 1px; background: var(--ow-green); transition: width 0.5s; }
.ow-node__batt-fill--mid { background: var(--ow-warn); }
.ow-node__batt-fill--low { background: var(--ow-danger); }

/* 操作按钮组 */
.ow-node__actions { display: flex; flex-direction: column; gap: 8px; }
.ow-node__actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ow-node__actions .ow-btn { width: 100%; }

/* ============ 弹窗 ============ */
.ow-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 4, 0.7);
  backdrop-filter: blur(6px);
  animation: ow-fade 0.25s ease;
}
.ow-modal.is-open { display: flex; }
@keyframes ow-fade { from { opacity: 0; } to { opacity: 1; } }

.ow-modal__dialog {
  width: min(440px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(11, 24, 18, 0.98), rgba(6, 14, 11, 0.99));
  border: 1px solid var(--ow-line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 227, 122, 0.12);
  animation: ow-modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ow-modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.ow-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ow-line);
}
.ow-modal__head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--ow-green-bright);
}
.ow-modal__close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ow-line);
  border-radius: 8px;
  background: transparent;
  color: var(--ow-text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.ow-modal__close:hover { color: var(--ow-danger); border-color: var(--ow-danger); transform: rotate(90deg); }
.ow-modal__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ow-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }

.ow-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ow-text-dim);
  margin-bottom: -4px;
}
.ow-hint { font-size: 11.5px; color: var(--ow-text-faint); line-height: 1.5; margin: 0; }
.ow-input, .ow-select {
  width: 100%;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ow-line);
  border-radius: 9px;
  color: var(--ow-text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ow-input:focus, .ow-select:focus { border-color: var(--ow-green); box-shadow: 0 0 0 3px rgba(34, 227, 122, 0.12); }
.ow-select { cursor: pointer; }
.ow-select optgroup { background: var(--ow-panel-solid); color: var(--ow-text-dim); }
.ow-select option { background: var(--ow-panel-solid); color: var(--ow-text); }
.ow-input[type="file"] { padding: 8px; font-size: 12px; }

.ow-tts-prosody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .ow-tts-prosody { grid-template-columns: 1fr; }
}

.ow-modal__dialog--wide {
  width: min(860px, 96vw);
  max-height: 88vh;
}
.ow-modal__dialog--gpu {
  width: min(1360px, 98vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ow-modal__dialog--gpu .ow-modal__head {
  flex-shrink: 0;
}
.ow-modal__dialog--gpu .ow-modal__body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ow-modal__dialog--gpu .ow-gpu-grid {
  flex: none;
  max-height: none;
  min-height: 0;
  overflow: visible;
}
.ow-logs-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ow-logs-list {
  max-height: min(520px, 58vh);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 8px;
}
.ow-log-item {
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px 12px;
}
.ow-log-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: var(--ow-text-dim);
}
.ow-log-item__level {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ow-log-item__level--fatal,
.ow-log-item__level--error { color: #ff6b7a; }
.ow-log-item__level--warn { color: #ffcc66; }
.ow-log-item__level--info { color: var(--ow-cyan, #66e0ff); }
.ow-log-item__msg {
  font-size: 12.5px;
  color: var(--ow-text);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.ow-log-item__meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ow-text-faint);
  white-space: pre-wrap;
  word-break: break-word;
}

.ow-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ow-text);
  cursor: pointer;
}
.ow-check input { display: none; }
.ow-check__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--ow-line-strong);
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.ow-check__box::after {
  content: '✓';
  font-size: 13px;
  color: #04140c;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.2s;
}
.ow-check input:checked + .ow-check__box { background: var(--ow-green); border-color: var(--ow-green); }
.ow-check input:checked + .ow-check__box::after { opacity: 1; transform: scale(1); }

/* 克隆音色区 */
.ow-clone {
  border: 1px solid var(--ow-line);
  border-radius: 11px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
}
.ow-clone__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ow-clone__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ow-clone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ow-line);
  animation: ow-card-in 0.3s ease both;
}
.ow-clone-item__name { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ow-text); }
.ow-clone-item__tag {
  font-size: 10px;
  color: var(--ow-text-faint);
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ow-line);
  font-family: var(--ow-mono);
}
.ow-clone__new summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ow-cyan);
  padding: 6px 0;
  list-style: none;
}
.ow-clone__new summary::-webkit-details-marker { display: none; }
.ow-clone__new summary::before { content: '＋ '; }
.ow-clone__new[open] summary::before { content: '－ '; }
.ow-clone__new > *:not(summary) { margin-top: 8px; }

/* ============ 空 / 加载 / 错误 ============ */
.ow-empty, .ow-error {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--ow-text-dim);
  font-size: 14px;
  letter-spacing: 1px;
}
.ow-error { color: #ffb3c1; }
.ow-empty__icon { font-size: 46px; opacity: 0.3; margin-bottom: 12px; }

.ow-skeleton {
  grid-column: 1 / -1;
  height: 160px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255,255,255,0.02) 30%, rgba(34,227,122,0.06) 50%, rgba(255,255,255,0.02) 70%);
  background-size: 200% 100%;
  animation: ow-shimmer 1.4s infinite;
}
@keyframes ow-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ============ Toast ============ */
.ow-toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ow-toast {
  min-width: 220px;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 13px;
  color: var(--ow-text);
  background: linear-gradient(165deg, rgba(11, 24, 18, 0.96), rgba(6, 14, 11, 0.98));
  border: 1px solid var(--ow-line);
  border-left: 3px solid var(--ow-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.ow-toast.is-visible { transform: none; opacity: 1; }
.ow-toast--success { border-left-color: var(--ow-green); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 16px rgba(34,227,122,.2); }
.ow-toast--error { border-left-color: var(--ow-danger); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 16px rgba(255,77,109,.2); }
.ow-toast--info { border-left-color: var(--ow-cyan); }

@keyframes ow-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .ow-stats { grid-template-columns: repeat(2, 1fr); }
  .ow-search input { width: 150px; }
  .ow-search input:focus { width: 170px; }
  .ow-clock { display: none; }
}
@media (max-width: 560px) {
  .ow-grid { grid-template-columns: 1fr; }
  .ow-brand__text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.05s !important; }
}

.ow-platform-tabs {
  display: inline-flex;
  gap: 4px;
  margin-right: 10px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.ow-api-btn {
  margin-right: 2px;
  letter-spacing: 0.4px;
}
.ow-platform-tab {
  border: 0;
  background: transparent;
  color: var(--ow-text-muted);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.ow-platform-tab.is-active {
  background: rgba(34,227,122,.14);
  color: var(--ow-green);
}

.ow-chip--root,
.ow-btn--root {
  border-color: rgba(255, 196, 72, .35);
  color: #ffc448;
}
.ow-chip--ota {
  border-color: rgba(34, 227, 122, .45);
  color: #7dffa8;
  background: rgba(34, 227, 122, .08);
}
.ow-modal__dialog--root {
  width: min(1180px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ow-modal__dialog--root .ow-modal__head { flex-shrink: 0; padding: 14px 20px; }
.ow-root-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 20px;
}
.ow-root-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ow-line);
  background: rgba(0, 0, 0, 0.18);
  overflow-x: auto;
}
.ow-root-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ow-text-muted);
  padding: 11px 14px 9px;
  font-family: var(--ow-font);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.ow-root-tab__icon { font-size: 11px; opacity: .65; }
.ow-root-tab:hover { color: var(--ow-text); background: rgba(255, 255, 255, 0.03); }
.ow-root-tab.is-active {
  color: var(--ow-green-bright);
  border-bottom-color: var(--ow-green);
}
.ow-root-tab.is-active .ow-root-tab__icon { opacity: 1; }
.ow-root-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ow-root-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ow-root-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.ow-root-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ow-text);
}
.ow-root-card__title::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--ow-green);
  box-shadow: 0 0 8px rgba(34, 227, 122, 0.6);
}
.ow-root-card .ow-label { margin-bottom: -2px; }
.ow-root-card .ow-root-alias__row { margin-top: 0; }
.ow-root-card__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ow-root-btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.ow-root-note { margin-bottom: 12px; }
.ow-root-body a { color: var(--ow-cyan); }
.ow-root-body,
.ow-root-body .ow-logs-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 227, 122, 0.35) transparent;
}
.ow-root-body::-webkit-scrollbar,
.ow-root-body .ow-logs-list::-webkit-scrollbar { width: 8px; }
.ow-root-body::-webkit-scrollbar-thumb,
.ow-root-body .ow-logs-list::-webkit-scrollbar-thumb { background: rgba(34, 227, 122, 0.3); border-radius: 8px; }
.ow-root-body::-webkit-scrollbar-track,
.ow-root-body .ow-logs-list::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 820px) {
  .ow-root-grid { grid-template-columns: 1fr; }
}
.ow-root-remote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 16px;
  align-items: start;
}
/* 仿真机：左侧快捷滑动、右上音量与电源、画面下方导航键 */
.ow-root-phone {
  display: grid;
  grid-template-columns: 60px auto 60px;
  justify-content: center;
  align-items: start;
  gap: 12px;
  max-width: 100%;
}
.ow-root-phone__main { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.ow-root-phone__side { display: flex; flex-direction: column; gap: 8px; }
.ow-root-phone__side--left { align-self: center; }
.ow-root-phone__side--right { padding-top: 56px; gap: 14px; }
.ow-root-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 56px;
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  color: var(--ow-text-muted);
  font: inherit;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, opacity .2s ease, transform .08s ease;
}
.ow-root-key svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ow-root-key:hover { color: var(--ow-text); border-color: rgba(34, 227, 122, 0.45); background: rgba(34, 227, 122, 0.08); }
.ow-root-key:active { transform: scale(0.95); }
.ow-root-key:focus-visible { outline: 2px solid rgba(61, 139, 253, 0.6); outline-offset: 2px; }
.ow-root-key.is-sent {
  color: #fff;
  border-color: var(--ow-green);
  background: rgba(34, 227, 122, 0.22);
  box-shadow: 0 0 16px rgba(34, 227, 122, 0.35);
}
.ow-root-key.is-fail { color: #fff; border-color: var(--ow-danger); background: rgba(255, 77, 109, 0.18); }
.ow-root-phone:not(.is-live) .ow-root-key { opacity: 0.45; }
.ow-root-phone:not(.is-live) .ow-root-key:hover { border-color: rgba(255, 255, 255, 0.09); background: transparent; color: var(--ow-text-muted); }
.ow-root-rocker {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
}
.ow-root-rocker .ow-root-key { border: 0; border-radius: 0; }
.ow-root-rocker .ow-root-key + .ow-root-key { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ow-root-key--power svg { color: #ff8fa3; }
.ow-root-navbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--ow-line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
}
.ow-root-navbar .ow-root-key { min-height: 50px; border-color: transparent; background: transparent; }
.ow-root-navbar .ow-root-key:hover { border-color: rgba(34, 227, 122, 0.4); background: rgba(34, 227, 122, 0.08); }
.ow-root-navbar .ow-root-key.is-sent { border-color: var(--ow-green); background: rgba(34, 227, 122, 0.22); }
.ow-root-latbar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.ow-root-latbar i { flex: 0 1 0; min-width: 0; transition: flex-grow .4s ease; }
.ow-root-latbar i[data-k="up"], .ow-root-lat i[data-k="up"] { background: #3d8bfd; }
.ow-root-latbar i[data-k="srv"], .ow-root-lat i[data-k="srv"] { background: var(--ow-purple); }
.ow-root-latbar i[data-k="down"], .ow-root-lat i[data-k="down"] { background: var(--ow-cyan); }
.ow-root-latbar i[data-k="show"], .ow-root-lat i[data-k="show"] { background: var(--ow-green); }
.ow-root-lat { display: grid; gap: 6px; margin: 2px 0 0; font-size: 12px; }
.ow-root-lat > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ow-root-lat dt { display: inline-flex; align-items: center; gap: 8px; color: var(--ow-text-muted); }
.ow-root-lat dt i { width: 8px; height: 8px; border-radius: 2px; }
.ow-root-lat dd { margin: 0; font-family: var(--ow-mono); color: var(--ow-text); }
.ow-root-lat .is-total { padding-top: 6px; border-top: 1px dashed rgba(255, 255, 255, 0.1); font-weight: 600; }
.ow-root-lat .is-total dt { color: var(--ow-text); }
.ow-root-remote__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ow-root-livebar {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 8px 12px;
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  color: var(--ow-text-dim);
}
.ow-root-livebar__state { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ow-text-muted); }
.ow-root-livebar__state span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-root-livebar__stats { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--ow-mono); }
.ow-root-livebar__stat { white-space: nowrap; cursor: default; }
.ow-root-livebar__stat b { margin-left: 4px; color: var(--ow-text); font-weight: 600; }
.ow-root-livebar__stat.is-good b { color: var(--ow-green); }
.ow-root-livebar__stat.is-warn b { color: var(--ow-warn); }
.ow-root-livebar__stat.is-bad b { color: var(--ow-danger); }
/* 远程画面大小：自适应 / 标准 / 大 / 特大 */
.ow-root-size__opts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}
.ow-root-size__btn {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ow-text-dim);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 8px 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.ow-root-size__btn:hover { color: var(--ow-text); background: rgba(255, 255, 255, 0.06); }
.ow-root-size__btn:focus-visible { outline: 2px solid rgba(61, 139, 253, 0.6); outline-offset: 2px; }
.ow-root-size__btn.is-active {
  color: var(--ow-green-bright);
  background: rgba(34, 227, 122, 0.14);
  box-shadow: inset 0 0 0 1px rgba(34, 227, 122, 0.36);
}
/* 远程控制：全屏沉浸式操作（原生全屏；嵌在门户 iframe 里时用页面内全屏兜底） */
.ow-root-immersive-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ow-text-muted);
  font: inherit;
  font-size: 11.5px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.ow-root-immersive-btn:hover { color: var(--ow-text); border-color: rgba(34, 227, 122, 0.45); background: rgba(34, 227, 122, 0.08); }
.ow-root-immersive-btn:focus-visible { outline: 2px solid rgba(61, 139, 253, 0.6); outline-offset: 2px; }
.ow-root-immersive-btn.is-active { color: var(--ow-green-bright); border-color: rgba(34, 227, 122, 0.45); background: rgba(34, 227, 122, 0.12); }
.ow-root-immersive-btn svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 中等宽度窗口只留图标，避免和实时流统计挤成两行 */
@media (min-width: 861px) and (max-width: 1000px) {
  .ow-root-immersive-btn { padding: 5px 7px; }
  .ow-root-immersive-btn span { display: none; }
}
#rootModal:fullscreen,
#rootModal.is-immersive {
  padding: 0;
  background: #05080c;
  backdrop-filter: none;
}
#rootModal:fullscreen .ow-modal__dialog--root,
#rootModal.is-immersive .ow-modal__dialog--root {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border: 0;
  border-radius: 0;
}
#rootModal:fullscreen .ow-modal__head,
#rootModal:fullscreen .ow-root-tabs,
#rootModal.is-immersive .ow-modal__head,
#rootModal.is-immersive .ow-root-tabs { display: none; }
#rootModal:fullscreen .ow-root-body,
#rootModal.is-immersive .ow-root-body {
  padding: 8px 10px;
  overflow: hidden;
}
#rootModal:fullscreen .ow-root-remote,
#rootModal.is-immersive .ow-root-remote {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  height: 100%;
}
#rootModal:fullscreen .ow-root-remote__side,
#rootModal.is-immersive .ow-root-remote__side { display: none; }
#rootModal:fullscreen .ow-root-remote__screen,
#rootModal.is-immersive .ow-root-remote__screen { height: 100%; }
body.ow-immersive-lock { overflow: hidden; }
.ow-led--warn { background: var(--ow-warn); box-shadow: 0 0 7px var(--ow-warn); }
.ow-root-remote__tip { align-self: stretch; text-align: center; }
.ow-root-remote__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ow-root-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ow-root-keys--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ow-root-keys .ow-btn,
.ow-root-dpad .ow-btn,
.ow-root-adb .ow-btn { width: 100%; padding-left: 6px; padding-right: 6px; }
.ow-root-dpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: ". up ." "left down right";
  gap: 8px;
}
.ow-root-dpad__up { grid-area: up; }
.ow-root-dpad__left { grid-area: left; }
.ow-root-dpad__down { grid-area: down; }
.ow-root-dpad__right { grid-area: right; }
.ow-root-adb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ow-root-adb .ow-select { grid-column: 1 / -1; padding: 8px 10px; font-size: 12.5px; }
@media (max-width: 860px) {
  .ow-root-remote { grid-template-columns: 1fr; }
  .ow-root-phone { grid-template-columns: 52px auto 52px; gap: 8px; }
  .ow-root-key { min-height: 50px; font-size: 11px; }
}
.ow-root-pane {
  animation: none;
}
.ow-root-pane.is-enter {
  animation: ow-pane-in .32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ow-pane-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.ow-root-status__row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.ow-root-status__row:last-child { border-bottom: 0; }
.ow-root-status__k {
  width: 88px;
  flex-shrink: 0;
  color: var(--ow-text-muted);
}
.ow-root-status__v { color: var(--ow-text); word-break: break-word; }
.ow-root-slot {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.ow-root-slot__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ow-root-slot__times {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.ow-root-slot__times .ow-input {
  width: 64px;
  min-width: 64px;
}
.ow-root-slot__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.ow-root-slot__row .ow-input {
  width: 64px;
  min-width: 64px;
}
.ow-root-slot__hint {
  margin: 0;
  color: #ffc448;
}
.ow-root-section-title {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ow-text);
}
.ow-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
}
.ow-root-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 10px;
}
@media (max-width: 720px) {
  .ow-root-settings-grid { grid-template-columns: 1fr; }
}
.ow-root-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.ow-chip-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--ow-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.ow-chip-btn.is-on {
  border-color: rgba(34,227,122,.45);
  background: rgba(34,227,122,.16);
  color: var(--ow-green);
}
.ow-chip-x {
  border: 0;
  background: transparent;
  color: #ff6b6b;
  cursor: pointer;
  margin-left: 4px;
  font-size: 14px;
}
.ow-root-dates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ow-root-dates-add {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ow-root-login-qr-wrap {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  padding: 14px;
  text-align: center;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ow-root-login-qr-empty { padding: 20px 12px; font-size: 12.5px; }
.ow-root-login-qr {
  width: min(260px, 72vw);
  height: auto;
  image-rendering: pixelated;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}
.ow-root-shot-wrap {
  position: relative;
  height: min(calc(92vh - 300px), 720px);
  min-height: 320px;
  max-width: 100%;
  aspect-ratio: var(--ow-live-ar, 9 / 20);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  background: #05080c;
  text-align: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.025), 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ow-root-shot-wrap.is-live { border-color: rgba(34, 227, 122, 0.3); }
@media (max-width: 860px) {
  .ow-root-shot-wrap { height: min(54vh, 600px); }
}
.ow-root-shot-wrap.is-loading {
  border-color: rgba(34, 227, 122, 0.22);
  box-shadow: inset 0 0 0 1px rgba(34, 227, 122, 0.06), 0 0 28px rgba(34, 227, 122, 0.08);
}
.ow-root-shot-wrap.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(34, 227, 122, 0.06) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: ow-shimmer 1.6s ease-in-out infinite;
}
@keyframes ow-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.ow-root-shot-empty {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
}
.ow-root-live {
  width: 100%;
  height: 100%;
  background: #000;
  cursor: crosshair;
  display: block;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transition: opacity .42s ease;
}
.ow-root-live.is-ready {
  opacity: 1;
}
.ow-root-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  /* 必须不透底，避免下方 video 未就绪时露出黑屏 */
  background:
    radial-gradient(ellipse at center, rgba(14, 24, 36, 1), rgba(5, 8, 12, 1) 70%),
    #05080c;
  opacity: 0;
  pointer-events: none;
  transition: opacity .36s ease;
}
.ow-root-loading.is-on {
  opacity: 1;
  pointer-events: auto;
}
.ow-root-loading[hidden] {
  display: none !important;
}
.ow-root-loading__text {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245, 245, 245, 0.72);
  animation: ow-loading-pulse 1.4s ease-in-out infinite;
}
@keyframes ow-loading-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
/* From Uiverse.io by gagan-gv */
.ow-root-loading .spinner {
  height: 50px;
  width: max-content;
  max-width: 100%;
  font-size: clamp(14px, 3.2vw, 18px);
  font-weight: 600;
  font-family: monospace;
  letter-spacing: 0.55em;
  padding-right: 0.55em;
  color: #f5f5f5;
  filter: drop-shadow(0 0 10px rgba(34, 227, 122, 0.45));
  display: flex;
  justify-content: center;
  align-items: center;
}
.ow-root-loading .spinner span {
  animation: loading6454 1.75s ease infinite;
  display: inline-block;
}
.ow-root-loading .spinner span:nth-child(2) { animation-delay: 0.25s; }
.ow-root-loading .spinner span:nth-child(3) { animation-delay: 0.5s; }
.ow-root-loading .spinner span:nth-child(4) { animation-delay: 0.75s; }
.ow-root-loading .spinner span:nth-child(5) { animation-delay: 1s; }
.ow-root-loading .spinner span:nth-child(6) { animation-delay: 1.25s; }
.ow-root-loading .spinner span:nth-child(7) { animation-delay: 1.5s; }
@keyframes loading6454 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.ow-root-shot-wrap:focus {
  outline: 2px solid rgba(61, 139, 253, 0.55);
}
.ow-root-gesture {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  border: 2px solid rgba(34,227,122,.85);
  border-radius: 999px;
  background: rgba(34,227,122,.18);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Hook 更新 */
.ow-hook-form {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}
.ow-hook-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.ow-hook-list-head h4 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1px;
}
.ow-hook-table {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  background: rgba(0,0,0,.2);
}
.ow-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ow-data-table th,
.ow-data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  vertical-align: top;
}
.ow-data-table th {
  position: sticky;
  top: 0;
  background: rgba(8, 16, 24, .95);
  color: var(--ow-muted);
  font-weight: 600;
}
.ow-truncate {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ow-silent-ota-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.ow-silent-ota-pick {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}
.ow-silent-ota-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--ow-text);
  cursor: pointer;
}
.ow-silent-ota-progress {
  display: grid;
  gap: 10px;
}
.ow-silent-ota-row {
  padding: 10px 12px;
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  background: rgba(0,0,0,.2);
}
.ow-silent-ota-row.is-active {
  border-color: rgba(34, 227, 122, .55);
  box-shadow: 0 0 18px rgba(34, 227, 122, .12);
}
.ow-silent-ota-row.is-pending-consent {
  border-color: rgba(255, 204, 68, .55);
  box-shadow: 0 0 14px rgba(255, 204, 68, .12);
}
.ow-silent-ota-row.is-done {
  border-color: rgba(60, 180, 110, .45);
}
.ow-silent-ota-row.is-failed {
  border-color: rgba(220, 80, 80, .45);
}
.ow-silent-ota-row__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 8px;
}
.ow-silent-ota-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.ow-silent-ota-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00b894, var(--ow-green));
  transition: width .35s ease;
}
.ow-silent-ota-row__meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ow-muted);
}

.ow-root-alias__row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.ow-root-alias__row .ow-input { flex: 1; }
.ow-log-item--clickable { cursor: pointer; }
.ow-log-item--clickable:hover { border-color: rgba(0, 214, 143, .45); }
.ow-log-item__msg { white-space: pre-wrap; word-break: break-word; max-height: 280px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; }

.ow-gpu-state { letter-spacing: 0.4px; }
.ow-gpu-state--running { color: var(--ow-green-bright); }
.ow-gpu-state--stopped { color: var(--ow-text-dim); }
.ow-gpu-state--busy { color: var(--ow-cyan); }
.ow-gpu-state--stopping { color: var(--ow-warn); }
.ow-gpu-node .ow-node__model code {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ow-text-faint);
}
.ow-gpu-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ow-text-dim);
}
.ow-gpu-grid {
  max-height: min(62vh, 640px);
  overflow: auto;
  padding: 2px 2px 8px;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}
.ow-gpu-net {
  font-size: 12px;
  color: var(--ow-text-dim);
  line-height: 1.55;
  margin-top: 2px;
  word-break: break-all;
}
.ow-gpu-apps, .ow-gpu-sched, .ow-gpu-price {
  margin: 10px 0 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--ow-line);
  background: rgba(0, 0, 0, 0.22);
}
.ow-gpu-price__now {
  margin: 6px 0 8px;
  color: var(--ow-green-bright);
  font-size: 13.5px;
}
.ow-gpu-price__now strong { font-size: 18px; letter-spacing: 0.4px; }
.ow-gpu-price__now span { color: var(--ow-text-dim); font-size: 12px; }
.ow-gpu-apps .ow-node__chips { margin-top: 6px; }
.ow-gpu-sched__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.ow-gpu-sched__row > span {
  font-size: 12px;
  color: var(--ow-text-dim);
}
.ow-gpu-sched__time { padding: 7px 8px; font-size: 12px; }
.ow-gpu-sched__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ow-gpu-plan .ow-root-section-title { margin-top: 12px; }
.ow-gpu-plan .ow-root-chips { margin: 8px 0; }
.ow-gpu-plan__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ow-gpu-plan .ow-gpu-mode { margin: 10px 0 6px; }
.ow-gpu-plan .gs-lead, .ow-gpu-plan .gs-tail { width: 72px; min-width: 72px; }
.ow-gpu-power {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--ow-line);
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ow-text-dim);
}
.ow-gpu-power__row--ok { color: var(--ow-green); }
.ow-gpu-power__row--warn { color: var(--ow-warn); }
.ow-gpu-power__row--err { color: var(--ow-danger); }
.ow-gpu-warn { color: var(--ow-warn); }
.ow-gpu-link__days, .ow-gpu-link__devices { display: grid; gap: 6px; margin: 6px 0; }
.ow-gpu-link__day {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ow-text-dim);
}
.ow-gpu-link__day strong { color: var(--ow-text); font-weight: 600; }
.ow-gpu-link__dev {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  font-size: 12px;
}
.ow-gpu-link__dev.is-off { opacity: 0.6; }
.ow-gpu-link__name {
  color: var(--ow-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ow-gpu-link__name em { font-style: normal; color: var(--ow-text-faint); margin-left: 6px; }
.ow-gpu-link__sched { grid-column: 2; color: var(--ow-text-dim); }
.ow-gpu-keys {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--ow-line);
  background: rgba(0, 0, 0, 0.28);
}
.ow-gpu-keys__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
@media (max-width: 640px) {
  .ow-gpu-keys__row { grid-template-columns: 1fr; }
}

/* 仅 /ow?embed=1 嵌入门户时生效；直接打开 /ow 不受影响 */
html.ow-embed .ow-brand,
html.ow-embed .ow-clock,
html.ow-embed .ow-embed-hide { display: none !important; }
html.ow-embed #gpuApiBtn { display: none; }
html.ow-embed #gpuApiBtn.is-ready { display: inline-flex; }
.ow-gpu-balance {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(34, 227, 122, 0.08);
  color: var(--ow-text-dim);
  font-size: 12px;
  line-height: 1.5;
}
html.ow-embed .ow-node--locked {
  filter: grayscale(1);
  opacity: 0.5;
  pointer-events: none;
}
html.ow-embed .ow-node__lock {
  margin-left: 6px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #9aa3ad;
  border: 1px solid rgba(160, 170, 180, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============ 直播模式设置（LM） ============ */
.lm-dialog { width: min(760px, 96vw); max-height: 90vh; }
.lm-body { gap: 16px; }
.lm-kicker { display: flex; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: 1px; color: var(--ow-text-muted); }
.lm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lm-mode {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--ow-line);
  background: rgba(0, 0, 0, 0.25); color: var(--ow-text); cursor: pointer; text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.lm-mode:hover { border-color: var(--ow-line-strong); transform: translateY(-1px); }
.lm-mode.is-on {
  border-color: var(--ow-green);
  background: linear-gradient(160deg, rgba(34, 227, 122, 0.16), rgba(0, 0, 0, 0.2));
  box-shadow: 0 0 0 1px rgba(34, 227, 122, 0.35), 0 0 22px rgba(34, 227, 122, 0.18);
}
.lm-mode__ico {
  width: 26px; height: 26px; margin-bottom: 2px; color: var(--ow-text-dim);
  stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.lm-mode.is-on .lm-mode__ico { color: var(--ow-green-bright); }
.lm-mode__check {
  position: absolute; top: 12px; right: 12px; width: 18px; height: 18px;
  border-radius: 50%; border: 1px solid var(--ow-line-strong);
}
.lm-mode.is-on .lm-mode__check {
  border-color: var(--ow-green); background: rgba(34, 227, 122, 0.14);
}
.lm-mode.is-on .lm-mode__check::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid var(--ow-green-bright); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.lm-mode__t { font-size: 15px; font-weight: 600; color: var(--ow-green-bright); letter-spacing: 1px; }
.lm-mode__d { font-size: 12px; color: var(--ow-text-muted); line-height: 1.5; }
.lm-mode__badge {
  position: absolute; right: 10px; top: 10px; font-size: 10px; color: var(--ow-text-faint);
  border: 1px solid var(--ow-line); border-radius: 999px; padding: 1px 6px;
}
.lm-card {
  border: 1px solid var(--ow-line); border-radius: 14px; background: rgba(0, 0, 0, 0.18);
  padding: 13px 14px; display: flex; flex-direction: column; gap: 9px;
}
.lm-card__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--ow-green-bright); letter-spacing: 1px;
}
.lm-sum { font-size: 11px; color: var(--ow-text-dim); font-family: var(--ow-mono); }
.lm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lm-time { font-family: var(--ow-mono); min-width: 104px; width: auto; }
.lm-min { width: 86px; }
.lm-date { min-width: 150px; width: auto; }
.lm-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lm-arrow { color: var(--ow-text-faint); font-family: var(--ow-mono); }
.lm-slots { display: flex; flex-wrap: wrap; gap: 7px; }
.lm-slot {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 10px;
  border: 1px solid rgba(34, 227, 122, 0.32); background: rgba(34, 227, 122, 0.08);
  color: var(--ow-text); font-family: var(--ow-mono); font-size: 12px;
}
.lm-slot i { color: var(--ow-text-faint); font-style: normal; }
.lm-slot button {
  border: 0; background: transparent; color: var(--ow-text-faint); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 1px;
}
.lm-slot button:hover { color: var(--ow-danger); }
.lm-adv { border-top: 1px dashed var(--ow-line); padding-top: 8px; margin-top: 1px; }
.lm-adv > summary {
  cursor: pointer; font-size: 11.5px; color: var(--ow-text-dim); user-select: none; list-style: none;
}
.lm-adv > summary::-webkit-details-marker { display: none; }
.lm-adv > summary::before { content: '▸ '; color: var(--ow-green); }
.lm-adv[open] > summary::before { content: '▾ '; }
.lm-adv > *:not(summary) { margin-top: 8px; }
.lm-days { display: flex; flex-wrap: wrap; gap: 6px; }
.lm-day {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--ow-line);
  background: transparent; color: var(--ow-text-dim); font-size: 12px; cursor: pointer;
  transition: all 0.2s;
}
.lm-day:hover { border-color: var(--ow-line-strong); color: var(--ow-text); }
.lm-day.is-on { border-color: var(--ow-green); color: var(--ow-green-bright); background: rgba(34, 227, 122, 0.12); }
.lm-day__x { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 13px; padding: 0; }
.lm-host-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lm-foot { align-items: center; }
.lm-foot #lmFootHint { margin-right: auto; }
@media (max-width: 560px) {
  .lm-modes { grid-template-columns: 1fr; }
  .lm-grid2 { grid-template-columns: 1fr; }
}

.lm-add-toggle {
  width: 100%;
  padding: 9px 12px;
  border: 1px dashed var(--ow-line-strong);
  border-radius: 10px;
  background: rgba(34, 227, 122, 0.04);
  color: var(--ow-text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lm-add-toggle:hover {
  border-color: var(--ow-green);
  color: var(--ow-green-bright);
  background: rgba(34, 227, 122, 0.09);
}

/* /ow?embed=1&view=gpu：门户「API 配置」页里直接展开的 GPU 实例区，不要弹窗外壳 */
html.ow-gpu-view body { background: #070b0a; overflow: auto; }
html.ow-gpu-view .ow-topbar,
html.ow-gpu-view #owStats,
html.ow-gpu-view .ow-main,
html.ow-gpu-view #console,
html.ow-gpu-view #loginScreen { display: none !important; }
html.ow-gpu-view #gpuModal {
  position: static;
  inset: auto;
  display: block !important;
  padding: 0;
  background: transparent;
  z-index: auto;
  overflow: visible;
}
html.ow-gpu-view #gpuModal .ow-modal__dialog {
  position: static;
  width: auto;
  max-width: none;
  max-height: none;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}
html.ow-gpu-view #gpuModal .ow-modal__head { display: none !important; }
html.ow-gpu-view #gpuModal .ow-modal__body { max-height: none; overflow: visible; padding: 0; }
html.ow-gpu-view #gpuModalHint,
html.ow-gpu-view #gpuKeyPanel { display: none !important; }
html.ow-gpu-view #gpuModal .ow-logs-toolbar button[onclick="toggleGpuKeyPanel()"] { display: none !important; }
html.ow-gpu-view #gpuModal .ow-logs-toolbar { margin-bottom: 8px; }
.lm-tts-addr { display: grid; gap: 7px; }
.lm-addr-row { display: flex; align-items: center; gap: 8px; }
.lm-addr-row .ow-input { flex: 1; min-width: 0; }
