/* ============================================================
   Lanerc 归档控制台 · 深色控制台主题
   设计要点：左侧导航 + 内容区、统一 8px 间距体系、克制的描边与阴影
   ============================================================ */
:root {
  --bg:        #0d1117;
  --bg-soft:   #12171f;
  --panel:     #161b23;
  --panel-2:   #1b2230;
  --line:      #232b38;
  --line-soft: #1c232e;
  --text:      #e6edf3;
  --text-dim:  #9aa7b6;
  --muted:     #6b7889;
  --accent:    #4f8cff;
  --accent-2:  #7aa9ff;
  --ok:        #3fb950;
  --warn:      #d29922;
  --danger:    #f85149;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 8px 28px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }


/* ---------------- 基础重置 ---------------- */
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 system-ui, -apple-system, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 12.5px; }
.hint { color: var(--text-dim); font-size: 12.5px; margin: 0 0 12px; line-height: 1.7; }


/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { background: #232c3b; border-color: #2f3a4c; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn.primary {
  background: linear-gradient(180deg, var(--accent), #3d78e8);
  border-color: #3d78e8; color: #fff;
}
.btn.primary:hover { background: linear-gradient(180deg, var(--accent-2), #4a83f0); }

.btn.ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }

.btn.tiny { padding: 5px 10px; font-size: 12px; }
.btn.block { width: 100%; justify-content: center; }
.btn.danger { color: var(--danger); border-color: #4a2026; }
.btn.danger:hover { background: #2a161a; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--text-dim); font-weight: 500; }

input[type="text"], input[type="password"], input[type="email"],


/* ---------------- 表单 ---------------- */
input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  padding: 9px 12px;
  font: inherit; font-size: 13px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, .15);
}
input::placeholder { color: #4c5867; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7889' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
}

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.check, .switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim); cursor: pointer; user-select: none;
}
.check input, .switch input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

input[type="range"] {
  width: 100%; height: 4px; padding: 0;
  accent-color: var(--accent); background: var(--line);
  border: 0; border-radius: 2px; cursor: pointer;
}


/* ---------------- 登录页 ---------------- */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 50% -10%, #1a2740 0%, var(--bg) 60%);
}
.auth-card {
  width: 100%; max-width: 380px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.brand-mark {
  width: 44px; height: 44px; margin-bottom: 18px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), #9a6cff);
  border-radius: 12px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: .3px; }
.auth-sub { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-msg { margin-top: 14px; font-size: 13px; color: var(--danger); min-height: 18px; }

/* ---------------- 布局：侧栏 + 内容 ---------------- */
#app-view { display: flex; min-height: 100vh; }

.sidebar {
  width: 208px; flex: 0 0 208px;
  display: flex; flex-direction: column;
  padding: 18px 14px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px 20px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .2px;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, .15);
}

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  font-size: 13.5px; color: var(--text-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .14s, color .14s;
}
.nav-item svg {
  width: 17px; height: 17px; flex: 0 0 17px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active { background: var(--panel-2); color: var(--text); font-weight: 500; }
.nav-item.active svg { stroke: var(--accent); }

.badge {
  margin-left: auto; min-width: 18px; padding: 1px 6px;
  font-size: 11px; text-align: center; color: #fff;
  background: var(--accent); border-radius: 9px;
}
.badge:empty { display: none; }

.sidebar-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.who { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content {
  flex: 1; min-width: 0;
  padding: 24px 32px 64px;
  max-width: 1240px;
}


/* ---------------- 页面头 ---------------- */
.page-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; min-height: 34px;
}
.page-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.page-head .row { margin: 0 0 0 auto; }
.page-head > .muted { margin-left: auto; }


/* ---------------- 面板 ---------------- */
.panel {
  padding: 18px 20px;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.panel-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.panel-head h3 { margin: 0; }
.panel-head > :last-child { margin-left: auto; }
.panel > .hint:last-child { margin-bottom: 0; }

.pill {
  padding: 3px 10px; font-size: 11.5px; font-weight: 500;
  color: var(--text-dim); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 20px;
}
.pill.ok { color: var(--ok); border-color: #1d3a24; background: #122417; }
.pill.warn { color: var(--warn); border-color: #3d3117; background: #241f10; }
.pill.bad { color: var(--danger); border-color: #4a2026; background: #2a161a; }

.grid2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}


/* ---------------- 卡片（搜索 / 收藏） ---------------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.card:hover {
  border-color: #33405a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.card-poster {
  position: relative; aspect-ratio: 3 / 4;
  background: var(--bg-soft); overflow: hidden;
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-poster .rem {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 9px 7px;
  font-size: 11.5px; color: #dbe4ee;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body { padding: 9px 10px 11px; }
.card-title {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-sub { margin-top: 4px; font-size: 11.5px; color: var(--muted); }


/* ---------------- 详情 hero ---------------- */
.hero {
  display: flex; gap: 22px;
  padding: 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #182031 0%, var(--panel) 55%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-poster {
  width: 132px; flex: 0 0 132px; aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-soft);
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hero-meta .pill { color: var(--text-dim); }
.hero-rem { margin: 0 0 4px; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }


/* ---------------- 线路 chips ---------------- */
.chip {
  padding: 7px 13px;
  font-size: 12.5px; color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: all .14s;
}
.chip:hover { color: var(--text); border-color: #33405a; }
.chip.active {
  color: #fff; background: rgba(79, 140, 255, .16);
  border-color: var(--accent);
}
.chip .tag {
  margin-left: 6px; font-size: 11px;
  padding: 1px 6px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); color: var(--text-dim);
}


/* ---------------- 剧集网格 ---------------- */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.ep {
  position: relative;
  padding: 11px 4px;
  font-size: 13px; text-align: center;
  color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .14s;
  user-select: none;
}
.ep:hover { color: var(--text); border-color: #33405a; }
.ep.sel {
  color: #fff; background: rgba(79, 140, 255, .18);
  border-color: var(--accent);
}
.ep.locked {
  color: #5b6675; text-decoration: line-through;
  border-style: dashed;
}
.ep::after {
  content: ""; position: absolute; inset: auto 6px 5px;
  height: 2px; border-radius: 1px; background: transparent;
}
.ep.sel::after { background: var(--accent); }

.list { display: flex; flex-direction: column; gap: 8px; }


/* ---------------- 列表（历史） ---------------- */
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.list-item:hover { border-color: #33405a; background: var(--panel-2); }
.list-item .thumb {
  width: 40px; height: 54px; flex: 0 0 40px;
  border-radius: 6px; object-fit: cover; background: var(--bg-soft);
}
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t1 { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }


/* ---------------- 表格 ---------------- */
th {
  padding: 9px 10px; text-align: left; font-weight: 500;
  color: var(--muted); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 10px; border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim); vertical-align: middle;
}
td:first-child { color: var(--muted); }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
tbody tr:last-child td { border-bottom: 0; }
td .key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--muted); }

.bar { height: 6px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.bar.done > i { background: var(--ok); }
.bar.fail > i { background: var(--danger); }


/* ---------------- 统计卡 ---------------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.stat {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat .n { font-size: 22px; font-weight: 600; line-height: 1.2; }
.stat .l { font-size: 11.5px; color: var(--muted); margin-top: 3px; }


/* ---------------- 空状态 ---------------- */
.empty {
  padding: 40px 20px;
  text-align: center; font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .01);
}

.searchbar { display: flex; gap: 10px; margin-bottom: 20px; }
.searchbar input { flex: 1; }


/* ---------------- 弹幕设置（播放器 / 下载 / 设置共用） ---------------- */
.dm-inline {
  padding: 14px 16px; margin: 12px 0;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.dm-row {
  display: grid; grid-template-columns: 96px 1fr 54px;
  align-items: center; gap: 12px;
  margin-bottom: 11px;
}
.dm-row:last-child { margin-bottom: 0; }
.dm-row > label { font-size: 12.5px; color: var(--text-dim); }
.dm-row .val { font-size: 12px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.dm-row.wide { grid-template-columns: 96px 1fr; }
.dm-checks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }


/* ---------------- 播放器 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(3, 6, 11, .88);
  backdrop-filter: blur(6px);
}
.player-shell {
  position: relative;
  width: min(1180px, 100%);
  display: flex; flex-direction: column;
  background: #05080d;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.player-head {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.player-title { display: flex; flex-direction: column; min-width: 0; }
.player-title strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-title .muted { font-size: 11.5px; }
.player-head-actions { margin-left: auto; display: flex; gap: 8px; }

.player-stage {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.player-stage video {
  width: 100%; height: 100%; display: block;
  background: #000;
}
#p-dm {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.player-msg {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px; max-width: 80%;
  font-size: 13px; text-align: center; line-height: 1.7;
  color: var(--text);
  background: rgba(0, 0, 0, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dm-panel {
  padding: 14px 18px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}


/* ---------------- 轻提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%);
  z-index: 300;
  max-width: min(560px, 90vw);
  padding: 11px 18px;
  font-size: 13px; line-height: 1.5;
  color: var(--text);
  background: #1e2836;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  animation: toast-in .18s ease-out;
}
.toast.err { border-color: #4a2026; background: #2a161a; }
.toast.ok { border-color: #1d3a24; background: #122417; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 900px) {
  #app-view { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 12px;
    padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .brand { padding: 0; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav-item { white-space: nowrap; }
  .sidebar-foot { border: 0; padding: 0; }
  .who { display: none; }
  .content { padding: 16px; }
  .hero { flex-direction: column; }
  .hero-poster { width: 100%; flex: none; max-width: 160px; }
  .player-shell { border-radius: 0; }
  .modal { padding: 0; }
  .dm-row { grid-template-columns: 80px 1fr 44px; }
}


/* ---------------- 上传渠道切换（分段控件） ---------------- */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.seg-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.seg-item:hover { color: var(--text); }

.seg-item.on {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.ok-text { color: var(--ok); }
.err-text { color: var(--danger); }
.tiny-pill { font-size: 11px; padding: 1px 7px; }

@media (max-width: 900px) {
  .seg { width: 100%; }
  .seg-item { flex: 1; text-align: center; padding: 8px 6px; }
}


/* ---------------- 按番剧指定渠道 ---------------- */
.channel-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

.channel-pick select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.channel-pick select:focus { outline: none; border-color: var(--accent); }

.rule-add {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.rule-add input[type="number"] {
  width: 220px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
}
.rule-add input[type="number"]:focus { outline: none; border-color: var(--accent); }

.rule-add select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.list-row:hover { border-color: #33405a; }

.list-main {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
}
.list-main b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .rule-add input[type="number"] { width: 100%; }
  .list-row { flex-wrap: wrap; }
  .list-side { width: 100%; justify-content: flex-end; }
}


/* ---------------- 运行日志 ---------------- */
.log-box {
  height: 300px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #090d13;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
}

.log-line { display: flex; gap: 8px; align-items: baseline; padding: 1px 0; }
.log-line:hover { background: rgba(255, 255, 255, .03); }

.log-t { color: var(--muted); flex: 0 0 auto; }
.log-lv {
  flex: 0 0 52px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--muted);
}
.log-msg { flex: 1; min-width: 0; word-break: break-all; color: var(--text-dim); }

.lv-info .log-lv { color: var(--accent-2); }
.lv-warning .log-lv { color: var(--warn); }
.lv-warning .log-msg { color: var(--warn); }
.lv-error .log-lv { color: var(--danger); }
.lv-error .log-msg { color: #ffb3ae; }
.lv-debug .log-lv { color: var(--muted); }

.log-exc {
  white-space: pre-wrap;
  color: #c98d8d;
  font-size: 11.5px;
  padding: 2px 0 4px 60px;
}

.log-empty { color: var(--muted); padding: 8px 2px; }

.small { font-size: 11.5px; }

.chk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}

.panel-head select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 12.5px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .log-box { height: 220px; }
  .log-exc { padding-left: 8px; }
}
