/* 控制台 · ☁️ 首尔服务器（2026-11-21 重排：统一控件高度 32px、标签列 220px、区块间距 18px、空状态左对齐） */
:root { --se-h: 32px; --se-gap: 8px; }

/* ---------- KPI：4 列两排，结构一致 ---------- */
.se-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.se-k { display: flex; flex-direction: column; gap: 6px; min-height: 118px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.se-k::after { display: none !important; }
.se-k:hover { border-color: var(--a-brand); }
.se-k.on { border-color: var(--a-brand); box-shadow: 0 0 0 2px var(--a-brand-soft, rgba(80, 70, 200, .15)); }
.se-k-h { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--a-muted); }
.se-k-more { font-size: 11.5px; font-weight: 600; color: var(--a-faint, #b0aaa2); }
.se-k-more::after { content: ' ›'; }
.se-k.on .se-k-more { color: var(--a-brand); }
.se-k.on .se-k-more::after { content: ' ⌄'; }
.se-k-v { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--a-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-k-v small { font-size: 13px; font-weight: 600; color: var(--a-muted); margin-left: 2px; }
.se-k-s { margin-top: auto; font-size: 12px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-k-gap { height: 6px; }
.se-bar { height: 6px; border-radius: 99px; background: var(--a-line2); overflow: hidden; }
.se-bar i { display: block; height: 100%; border-radius: 99px; background: var(--a-green); transition: width .4s; }
.se-bar.warn i { background: var(--a-gold, #d9a21b); }
.se-bar.bad i { background: var(--a-red); }

/* ---------- 通用：文字、空状态、区块 ---------- */
.se-hint { font-size: 12.5px; color: var(--a-muted); line-height: 1.6; }
.se-lead { margin: 0 0 12px; }
.se-lab { font-size: 13px; color: var(--a-ink2); white-space: nowrap; }
.se-ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-empty { padding: 10px 12px; border-radius: 10px; background: var(--a-line2); color: var(--a-muted); font-size: 13px; }
.se-sec { margin-top: 18px; }
.se-sec:first-child { margin-top: 0; }
.se-sec-h, .se-cap { font-size: 13px; font-weight: 700; color: var(--a-ink2); margin: 0 0 8px; }
.se-cap { margin-top: 14px; }
.se-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; align-items: start; }
.se-two > .se-sec { margin-top: 0; }
.se-list { list-style: none; margin: 0; padding: 0; }
.se-list li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--a-line2); font-size: 13px; line-height: 1.6; }
.se-list li:last-child { border-bottom: 0; }
.se-list li > b { font-weight: 600; color: var(--a-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.se-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 12px 14px; border-radius: 12px; background: var(--a-line2); margin-bottom: 18px; }
.se-stats > div { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.se-stats .se-lab { color: var(--a-muted); }
.se-foot { font-size: 12px; margin-top: 4px; }

/* ---------- 控件：同一高度 ---------- */
.se-in { height: var(--se-h); box-sizing: border-box; padding: 0 10px; border: 1px solid var(--a-line); border-radius: 9px; background: var(--a-panel); color: var(--a-ink); font: inherit; font-size: 13.5px; outline: none; }
.se-in:focus { border-color: var(--a-brand); box-shadow: 0 0 0 2px var(--a-brand-soft, rgba(80, 70, 200, .12)); }
.se-num { width: 76px; text-align: center; }
.se-time { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.se-grow { flex: 1 1 240px; min-width: 0; }
.adm-seg { align-items: center; }
.se-form .adm-seg button, .se-toolbar .adm-seg button, .se-tabs .adm-seg button { height: calc(var(--se-h) - 6px); }
.se-toolbar, .se-ctl { display: flex; align-items: center; gap: var(--se-gap); flex-wrap: wrap; }
.se-toolbar { margin-bottom: 12px; }
.se-toolbar .adm-btn, .se-ctl .adm-btn { height: var(--se-h); }
.se-go { padding: 0 18px; }
.se-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--a-ink2); }
.se-check input { margin: 0; width: 15px; height: 15px; accent-color: var(--a-brand); }
.se-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 12px; border-radius: 99px; background: var(--a-brand-soft, #eef0ff); color: var(--a-brand); font-size: 12.5px; font-weight: 600; }
.se-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.se-chip button:hover { background: rgba(0, 0, 0, .08); }
.se-reserved { margin-top: 4px; }

/* ---------- 设置：标签列 + 控件列 ---------- */
.se-form { display: flex; flex-direction: column; }
.se-set-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px 28px; padding: 16px 0; border-bottom: 1px solid var(--a-line2); align-items: start; }
.se-set-row:first-child { padding-top: 4px; }
.se-set-label { font-weight: 700; font-size: 14px; color: var(--a-ink); line-height: 1.5; }
.se-set-label small { display: block; font-weight: 400; font-size: 12px; color: var(--a-muted); margin-top: 4px; line-height: 1.6; }
.se-set-ctl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.se-ths { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.se-th { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--a-ink2); }
.se-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; padding: 12px 14px; border-radius: 12px; background: var(--a-line2); }
.se-rules .se-check { white-space: normal; align-items: flex-start; line-height: 1.45; }
.se-rules .se-check input { margin-top: 2px; flex: none; }
.se-log { margin-top: 12px; font-size: 12.5px; color: var(--a-muted); }
.se-log summary { cursor: pointer; padding: 6px 0; }
.se-log ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.8; }

/* ---------- 线路 ---------- */
.se-via { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--a-line2); color: var(--a-ink2); }
.se-via small { font-weight: 500; opacity: .75; }
.se-via-opt { background: #e8f1ff; color: #1d5fd1; }
.se-via-cf { background: #fff2e0; color: #b8650a; }
.se-via-direct { background: #e6f6ee; color: #12804f; }
.se-mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--a-line2); }
.se-mine-l { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 320px; }
.se-mine-r { display: flex; align-items: center; gap: var(--se-gap); flex-wrap: wrap; }
.se-mine-r .adm-btn { height: var(--se-h); }
.se-mine + .se-sec { margin-top: 18px; }
.se-dist { display: grid; grid-template-columns: 128px minmax(60px, 1fr); gap: 4px 12px; align-items: center; margin: 8px 0; }
.se-dist-v { grid-column: 2; font-size: 12px; color: var(--a-muted); }
.se-me { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin-right: 8px; border: 0; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; background: var(--a-line2); color: var(--a-ink2); white-space: nowrap; }
.se-me.se-via-opt { background: #e8f1ff; color: #1d5fd1; }
.se-me.se-via-cf { background: #fff2e0; color: #b8650a; }
.se-me.se-via-direct { background: #e6f6ee; color: #12804f; }
.se-linemenu { position: fixed; z-index: 10050; width: 300px; padding: 6px; border-radius: 14px; background: var(--a-panel, #fff); border: 1px solid var(--a-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.se-linemenu-h { padding: 8px 10px 6px; font-size: 12px; font-weight: 700; color: var(--a-muted); }
.se-linemenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--a-ink); }
.se-linemenu button:hover:not([disabled]) { background: var(--a-line2); }
.se-linemenu button[disabled] { cursor: default; }
.se-linemenu-host { flex: 1; font-size: 12px; color: var(--a-muted); }
.se-linemenu-cur { font-size: 11.5px; font-weight: 700; color: var(--a-brand); }
.se-linemenu-tip { padding: 6px 10px 6px; font-size: 11.5px; line-height: 1.6; color: var(--a-muted); border-top: 1px solid var(--a-line2); margin-top: 4px; }

/* ---------- 表格 ---------- */
.se-wrap { max-height: 520px; }
.se-wrap .adm-table td, .se-wrap .adm-table th { vertical-align: middle; }
.se-people { white-space: normal !important; min-width: 200px; line-height: 1.6; }
.se-wrap-txt { white-space: normal !important; min-width: 220px; }
.se-tag { margin-left: 6px; height: 20px; font-size: 11px; }
a.se-game { color: inherit; text-decoration: none; font-weight: 600; border-bottom: 1px dashed var(--a-line); }
a.se-game:hover { color: var(--a-brand); border-bottom-color: var(--a-brand); }
.se-user { color: var(--a-brand); text-decoration: none; font-weight: 600; }
.se-user:hover { text-decoration: underline; }
.se-room { white-space: normal; line-height: 1.6; }
.se-room b { font-variant-numeric: tabular-nums; margin-right: 2px; }
.se-sub { font-size: 12px; color: var(--a-muted); }
.se-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.se-tabs { margin-bottom: 14px; overflow-x: auto; }
.se-game { font-weight: 600; }

/* ---------- 曲线、柱状 ---------- */
.se-spark { width: 100%; height: 70px; display: block; background: linear-gradient(var(--a-line2) 1px, transparent 1px) 0 0 / 100% 25%; border-radius: 8px; }
.se-spark-meta { font-size: 12px; color: var(--a-muted); margin-top: 6px; }
.se-days { display: flex; align-items: flex-end; gap: 3px; height: 96px; padding: 6px 0 20px; margin: 0 0 12px; }
.se-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.se-day i { width: 100%; max-width: 16px; background: var(--a-brand); border-radius: 4px 4px 0 0; opacity: .8; }
.se-day span { position: absolute; bottom: -18px; font-size: 10px; color: var(--a-muted); }
.se-day:nth-child(odd) span { visibility: hidden; }
.se-best { font-weight: 700; color: var(--a-green); margin: 10px 0 0; font-size: 13px; }
.se-problems { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }

/* ---------- 手机 ---------- */
@media (max-width: 900px) {
  .se-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .se-k { min-height: 104px; }
  .se-k-v { font-size: 18px; }
  .se-set-row { grid-template-columns: 1fr; gap: 10px; }
  .se-two { grid-template-columns: 1fr; }
  .se-list li { grid-template-columns: 1fr; gap: 2px; }
  .se-toolbar .se-grow { flex-basis: 100%; }
  .se-go { flex: 1 1 100%; }
  .se-me { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
  .se-mine-r { width: 100%; }
}
.se-two:first-child, .se-three:first-child { margin-top: 0; }
.se-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.se-two > div > .se-cap:first-child, .se-three > div > .se-cap:first-child { margin-top: 0; }
@media (max-width: 900px) { .se-three { grid-template-columns: 1fr; } }
.se-idle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; color: var(--a-ink2); }
.se-idle .se-num { width: 64px; }
.se-ops { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.se-ops .adm-btn { height: 28px; }
.se-run td { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 640px) {
  .adm-top-actions .se-me { padding: 0 9px; margin-right: 4px; font-size: 11.5px; height: 28px; max-width: none; }
  .se-me-l, .se-me-c { display: none; }
}
@media (max-width: 640px) {
  .adm-top { flex-wrap: wrap; row-gap: 8px; height: auto !important; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
  .adm-top .adm-title { white-space: nowrap; flex: 1 1 auto; min-width: 0; }
  .adm-top .adm-top-actions { flex: 1 1 100%; justify-content: flex-end; flex-wrap: wrap; row-gap: 6px; }
}
