/* ====================== 📱 手机监控面板 ====================== */

/* ── 顶部：同步状态 ────────────────────────────────────────── */
.mon-sync {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-light); line-height: 1.5;
}
.mon-sync b { color: var(--text); font-weight: 600; }
.mon-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #66bb6a; flex: none;
}
.mon-dot.warn { background: #ffb74d; }
.mon-dot.stale { background: #e57373; }
.mon-sync .mon-refresh {
  margin-left: auto; flex: none;
  background: none; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px;
  font-size: 11px; color: var(--text-light);
  font-family: inherit; cursor: pointer;
}
.mon-sync .mon-refresh:active { background: var(--pink-light); }
.mon-sync .mon-refresh:disabled { opacity: .5; }

/* ── 分组标题 ──────────────────────────────────────────────── */
.mon-group-title {
  font-size: 11px; color: var(--text-light);
  margin: 14px 0 6px; letter-spacing: .5px;
}
.mon-group-title:first-of-type { margin-top: 0; }

/* ── 单个 APP ──────────────────────────────────────────────── */
.mon-app {
  padding: 10px 12px; margin-bottom: 7px;
  border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
}
.mon-app-top {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; color: var(--text);
}
.mon-app-name { font-weight: 600; }
.mon-app-time { margin-left: auto; font-size: 12px; color: var(--text-light); }
.mon-app-time b { color: var(--text); font-size: 13px; font-weight: 600; }

/* 进度条 */
.mon-bar {
  height: 5px; border-radius: 999px; overflow: hidden;
  background: var(--pink-light); margin: 7px 0 5px;
}
.mon-bar > i {
  display: block; height: 100%; width: 0;
  border-radius: 999px; background: #66bb6a;
  transition: width .35s ease;
}
.mon-bar.near > i { background: #ffb74d; }
.mon-bar.over > i { background: #e57373; }

.mon-app-sub { font-size: 11px; color: var(--text-light); line-height: 1.5; }
.mon-app-sub.warm { color: #b98b4a; }
.mon-app-sub.over { color: #c65a5a; font-weight: 600; }

/* 不管的 APP：只显示时长，不带进度条 */
.mon-app.free { padding: 8px 12px; }
.mon-app.free .mon-app-top { font-size: 12px; }
.mon-app.free .mon-app-name { font-weight: 400; color: var(--text-light); }

/* ── 空状态 / 错误 ─────────────────────────────────────────── */
.mon-empty {
  padding: 20px 14px; text-align: center;
  font-size: 12px; color: var(--text-light); line-height: 1.7;
  border-radius: var(--radius-sm);
  background: var(--bg); border: 1px dashed var(--border);
}

/* ── 底部：额度概览 + 想调整 ───────────────────────────────── */
.mon-limits {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px;
}
.mon-chip {
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
  background: var(--pink-light); color: var(--text);
}
.mon-release {
  font-size: 11px; color: var(--text-light); line-height: 1.6;
  margin-bottom: 10px;
}
.mon-ask {
  width: 100%; padding: 9px;
  border: 1px solid var(--pink); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.mon-ask:active { background: var(--pink-light); }

.mon-hist {
  font-size: 11px; color: var(--text-light); line-height: 1.7;
  margin-top: 10px;
}
.mon-hist .mon-hist-item { display: flex; gap: 6px; }
.mon-hist .mon-hist-item span:first-child { flex: none; opacity: .7; }

/* ── 「看一眼」：看屏幕（2026-09-29） ──────────────────────────
   只有 APK 里有（网页版没有那个原生插件，整块不显示）。
   ⚠️ 这块**不依赖云端账本** —— 它是纯本地能力（系统投屏权限），
      所以云端连不上时它照样在。 */
.mon-screen {
  padding: 10px 12px; margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
}
.mon-screen-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.mon-screen-sub {
  font-size: 11px; color: var(--text-light); line-height: 1.5; margin-top: 5px;
}
.mon-screen-sub.on { color: #c65a5a; }
.mon-screen-btn {
  margin-top: 9px; width: 100%; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: none; color: var(--text);
  font-family: inherit; font-size: 12px; cursor: pointer;
}
.mon-screen-btn:active { background: var(--pink-light); }
.mon-screen-btn:disabled { opacity: .45; cursor: default; }
.mon-screen-btn.ghost { border-style: dashed; }
/* 「一天最多看几次」（2026-09-30）：她自己填，0 = 今天不许看 */
.mon-screen-limit {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 12px; color: var(--text);
}
.mon-screen-limit input {
  width: 52px; padding: 5px 8px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card, var(--bg)); color: var(--text);
  font-family: inherit; font-size: 12px;
}
.mon-screen-save {
  margin-left: auto; flex: none; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: none; color: var(--text);
  font-family: inherit; font-size: 12px; cursor: pointer;
}
.mon-screen-save:active { background: var(--pink-light); }
.mon-screen-save:disabled { opacity: .45; cursor: default; }
.mon-screen-prev {
  margin-top: 9px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border);
}
.mon-screen-prev img { display: block; width: 100%; height: auto; }

/* 开关 */
.mon-sw {
  margin-left: auto; flex: none;
  position: relative; width: 42px; height: 24px;
}
.mon-sw input {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.mon-sw span {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--border); transition: background .2s ease;
}
.mon-sw span::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.mon-sw input:checked + span { background: #e57373; }
.mon-sw input:checked + span::after { transform: translateX(18px); }
