/* MCV 网页屏幕音频 — 暗色主题 */
:root {
  --bg: #050508;
  --panel: #101018;
  --panel-2: #16161f;
  --border: #26263a;
  --text: #e8e8f0;
  --text-dim: #9a9ab0;
  --primary: #22d3ee;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --rendering: #fbbf24;
  --playing: #4ade80;
  --paused: #fb923c;
  --ready: #38bdf8;
  --idle: #64748b;
  --back: #c084fc;
  --far: #f87171;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ==================== 激活覆盖层 ==================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, 0.92);
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}
.overlay-box {
  text-align: center;
  padding: 40px 56px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.overlay-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.overlay h2 { font-size: 24px; margin-bottom: 10px; color: var(--primary); }
.overlay p { color: var(--text-dim); line-height: 1.7; }

/* ==================== MC 物品图标(像素风) ==================== */
.mi {
  image-rendering: pixelated;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
/* 物品框:MC 物品栏槽位质感(深底 + 内高光 + 外描边) */
.mi-icon-slot,
.brand-block,
.status-icon,
.fab-icon,
.btn-play-icon,
.file-icon,
.title-icon,
.overlay-icon,
.empty-icon {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.08), inset -1px -1px 0 rgba(0, 0, 0, 0.5);
  padding: 3px;
}
.brand-block { width: 30px; height: 30px; border-radius: 6px; }
.status-icon { width: 16px; height: 16px; }
.title-icon { width: 18px; height: 18px; margin-right: 6px; }
.fab-icon { width: 20px; height: 20px; }
.btn-play-icon { width: 26px; height: 26px; }
.btn-icon .mi { width: 22px; height: 22px; }
.btn-icon .mi.is-muted { filter: grayscale(1) brightness(0.7); }
.file-icon { width: 30px; height: 30px; margin-right: 10px; flex: none; }
.empty-icon { width: 64px; height: 64px; margin-bottom: 12px; }

/* ==================== 应用主体 ==================== */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 16, 24, 0.85);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(34, 211, 238, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}
.brand-tag { color: var(--text-dim); font-size: 13px; }


.connection-status { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--idle); }
.status-dot.connecting { background: var(--warning); animation: pulse 1s infinite; }
.status-dot.connected { background: var(--success); }
.status-dot.disconnected { background: var(--danger); }
.status-dot.error { background: var(--danger); }
.status-text { color: var(--text-dim); }
/* 页面资源版本标签(页头,小号灰字):新旧一眼可查 */
.web-ver {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* ==================== 屏幕列表 ==================== */
.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.screen-list { display: flex; flex-direction: column; gap: 12px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty-state p { font-size: 16px; margin-bottom: 6px; }
.empty-state small { font-size: 13px; opacity: 0.7; }

/* ==================== 屏幕卡片 ==================== */
.screen-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  animation: slideIn 0.25s ease;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-playing { background: rgba(74, 222, 128, 0.15); color: var(--playing); }
.badge-paused { background: rgba(251, 146, 60, 0.15); color: var(--paused); }
.badge-rendering { background: rgba(251, 191, 36, 0.15); color: var(--rendering); animation: pulse 1.2s infinite; }
.badge-ready { background: rgba(56, 189, 248, 0.15); color: var(--ready); }
.badge-idle { background: rgba(100, 116, 139, 0.2); color: var(--idle); }
.badge-back { background: rgba(192, 132, 252, 0.15); color: var(--back); }
.badge-far { background: rgba(248, 113, 113, 0.15); color: var(--far); }
.badge-link-ok { background: rgba(74, 222, 128, 0.15); color: var(--playing); }
.badge-link-bad { background: rgba(248, 113, 113, 0.15); color: var(--far); }
.badge-link-unknown { background: rgba(100, 116, 139, 0.2); color: var(--idle); }

/* ==================== 页脚 ==================== */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  background: rgba(16, 16, 24, 0.85);
}
.master-controls { display: flex; align-items: center; gap: 14px; }
.btn-icon {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
}
.btn-icon:hover { background: rgba(34, 211, 238, 0.12); }

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== 动画 ==================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ==================== 右下角:自定义上传入口(FAB) ==================== */
.fab-upload {
  position: fixed;
  right: 22px;
  bottom: 84px; /* 抬到主音量条上方,不遮挡底部控件 */
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0.1));
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(34, 211, 238, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.fab-upload:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.34), rgba(34, 211, 238, 0.16));
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 18px rgba(34, 211, 238, 0.35);
}
.fab-upload:active { transform: translateY(0); }
.fab-icon { font-size: 17px; line-height: 1; }
.fab-text { letter-spacing: 0.5px; }

@media (max-width: 520px) {
  .fab-upload { right: 14px; bottom: 92px; padding: 10px 14px; font-size: 13px; }
  .fab-text { display: none; }
}

/* ==================== 自定义上传弹窗 ==================== */
.upload-modal { width: 480px; max-width: 92vw; padding: 0; overflow: hidden; }

.upload-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.07);
}
.upload-modal-title { font-size: 15px; font-weight: 700; color: var(--primary); }
.upload-modal-head .btn-icon { font-size: 16px; line-height: 1; }

.upload-modal-body {
  padding: 16px 18px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.form-row { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-hint {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 5px;
  line-height: 1.5;
}

/* 分段选择器(上传方式 / 媒体类型) */
.seg-group { display: flex; gap: 6px; }
.seg {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.seg:hover { border-color: rgba(34, 211, 238, 0.4); color: var(--text); }
.seg.active {
  border-color: var(--primary);
  background: rgba(34, 211, 238, 0.16);
  color: var(--primary);
  font-weight: 700;
}

.text-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.text-input:focus { border-color: var(--primary); }
.text-input::placeholder { color: var(--text-dim); opacity: 0.55; }

.upload-file {
  width: 100%;
  font-size: 12px;
  color: var(--text-dim);
}
.upload-file::-webkit-file-upload-button {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  margin-right: 10px;
}

.link-row { display: flex; gap: 8px; }
.link-row .text-input { flex: 1; }
.btn-mini {
  flex-shrink: 0;
  padding: 0 14px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.12);
  color: var(--primary);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-mini:hover { background: rgba(34, 211, 238, 0.24); }
.btn-mini:disabled { opacity: 0.5; cursor: not-allowed; }

.upload-progress { position: relative; height: 14px; background: var(--panel-2); border-radius: 7px; overflow: hidden; margin: 10px 0; }
.upload-progress .progress-fill { width: 0%; }
.upload-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; text-shadow: 0 0 4px rgba(0,0,0,0.8); }
.upload-info { font-size: 11px; color: var(--text-dim); margin-top: 4px; font-variant-numeric: tabular-nums; }

.upload-modal .modal-actions {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(16, 16, 24, 0.6);
}

/* ==================== 确认对话框 ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, 0.7);
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  max-width: 78vw;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.12);
}
.modal-text { font-size: 14px; margin-bottom: 18px; word-break: break-all; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-modal {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-modal:hover { background: rgba(34, 211, 238, 0.15); }
.btn-modal-ok {
  background: rgba(34, 211, 238, 0.15);
  color: var(--primary);
  border-color: rgba(34, 211, 238, 0.4);
}
.btn-modal-ok:hover { background: rgba(34, 211, 238, 0.28); }
.upload-info { font-size: 11px; color: var(--text-dim); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ==================== 网页在线玩家(顶部头颅) ==================== */
.online-players {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 16, 24, 0.5);
  overflow-x: auto;
  flex-shrink: 0;
}
.player-head {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  image-rendering: pixelated;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--panel-2);
}

/* ==================== 我的文件(查看/字幕管理/重拿头颅) ==================== */
#fabFiles { bottom: 150px; }
@media (max-width: 520px) { #fabFiles { bottom: 158px; } }
#confirmModal { z-index: 400; } /* 确认框须盖在所有业务弹窗(上传/我的文件)之上 */

.files-modal { width: 620px; max-width: 92vw; padding: 0; overflow: hidden; }
.files-modal-body {
  padding: 14px 16px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}
.files-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(16, 16, 24, 0.6);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}
.files-loading { text-align: center; color: var(--text-dim); padding: 26px 0; font-size: 13px; }
.files-empty { text-align: center; color: var(--text-dim); padding: 32px 10px; font-size: 13px; line-height: 2; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  margin-bottom: 8px;
}
.file-kind {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.file-kind.k-video { background: rgba(34, 211, 238, 0.16); color: #7dd3fc; }
.file-main { flex: 1; min-width: 0; }
.file-title { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-title .file-ext { color: var(--text-dim); font-weight: 400; }
.file-meta { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.file-srt-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.file-srt-tag.on { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; }
.file-srt-tag.off { background: rgba(148, 163, 184, 0.15); color: var(--text-dim); }
.file-ops { flex-shrink: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-mini.danger { border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.12); color: #fda4af; }
.btn-mini.danger:hover { background: rgba(251, 113, 133, 0.24); }
@media (max-width: 520px) {
  .file-row { flex-wrap: wrap; }
  .file-ops { width: 100%; justify-content: flex-start; }
}


/* MCV MeowCraft: file manager tabs + search */
.files-toolbar { padding: 12px 14px 8px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.files-tabs { display: flex; gap: 6px; flex: none; }
.files-tab { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim); border-radius: 6px; padding: 7px 12px; cursor: pointer; font-size: 12px; }
.files-tab.active { color: var(--text); border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.12); }
.files-search { flex: 1; min-width: 0; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 6px; padding: 8px 10px; outline: none; font-size: 12px; }
.files-search:focus { border-color: rgba(34,211,238,.65); }
.file-owner { color: #7dd3fc; font-weight: 600; }
.file-path { color: var(--text-dim); font-size: 10px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .files-toolbar { align-items: stretch; flex-direction: column; } .files-tabs { width: 100%; } .files-tab { flex: 1; } }

/* ==================== 20260917 Cloudreve-style file shell ==================== */
.upload-destination {
  margin: -2px 0 14px;
  padding: 9px 11px;
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 8px;
  background: rgba(34, 211, 238, .07);
  color: var(--text-dim);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.files-modal {
  width: min(1040px, 96vw);
  height: min(720px, 90vh);
  max-width: 96vw;
  display: flex;
  flex-direction: column;
}
.files-shell { display: flex; flex: 1; min-height: 0; }
.files-sidebar {
  width: 180px;
  flex: none;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  background: rgba(10, 10, 16, .48);
}
.files-side-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.files-side-item .mi { width: 22px; height: 22px; }
.files-side-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.files-side-item.active { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.12); color: var(--primary); }
.files-side-note { margin: 18px 8px 0; color: var(--text-dim); font-size: 10px; line-height: 1.65; }
.files-workspace { display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; }
.files-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.file-tool {
  flex: none;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text-dim);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.file-tool:hover:not(:disabled) { color: var(--text); border-color: rgba(34,211,238,.45); }
.file-tool.primary { color: var(--primary); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.11); }
.file-tool:disabled { opacity: .38; cursor: default; }
.files-search { margin-left: auto; max-width: 220px; background: var(--panel-2); }
.files-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 41px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
}
.crumb { border: 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 12px; cursor: pointer; padding: 5px 4px; }
.crumb:last-child { color: var(--text); font-weight: 700; }
.crumb:hover { color: var(--primary); }
.crumb-sep { color: rgba(148,163,184,.45); }
.files-modal-body { flex: 1; max-height: none; min-height: 0; padding: 12px; }
.files-modal-body.list-view .file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  margin-bottom: 6px;
}
.file-open {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
}
.is-directory .file-open { cursor: pointer; }
.is-directory .file-open:hover .file-title { color: var(--primary); }
.file-open .file-main { display: flex; min-width: 0; flex-direction: column; }
.file-open .file-icon { width: 34px; height: 34px; margin: 0; }
.file-open .file-meta { display: block; }
.file-select {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--primary);
  cursor: pointer;
}
.file-row { border: 1px solid transparent; user-select: none; }
.file-row.selected { border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.10); }
.file-row.cut-pending { opacity: .52; }
.file-row.drag-source { opacity: .45; }
.file-row.drag-target, .crumb.drag-target, #filesBody.drag-target {
  outline: 2px solid rgba(34,211,238,.65);
  outline-offset: -2px;
  background: rgba(34,211,238,.10);
}
.file-row.is-directory .file-open { cursor: default; }
.files-foot { flex: none; }


@media (max-width: 760px) {
  .files-modal { width: 100vw; height: 100dvh; max-width: 100vw; border-radius: 0; }
  .files-shell { flex-direction: column; }
  .files-sidebar { width: auto; display: flex; gap: 7px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--border); }
  .files-side-item { width: auto; flex: 1; justify-content: center; margin: 0; padding: 8px; }
  .files-side-note { display: none; }
  .files-toolbar { flex-wrap: wrap; align-items: stretch; }
  .files-search { order: 2; width: 100%; max-width: none; margin: 0; }
  .file-tool { flex: 1; min-width: 72px; }
  .files-breadcrumbs { min-height: 38px; }
  .files-modal-body.list-view .file-row { flex-wrap: wrap; }
  .files-modal-body.list-view .file-ops { width: 100%; padding-left: 46px; justify-content: flex-start; }
  .btn-mini { min-height: 34px; padding: 5px 10px; }
}


/* MeowCraft addon integration */
.meow-addon-panel{margin:16px 0;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:10px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.meow-addon-panel>div{display:flex;flex-direction:column;gap:4px;flex:1 1 360px}.meow-addon-panel small{opacity:.75}
.meow-addon-panel.installed{border-color:rgba(120,220,140,.5)}
.addon-download-primary{display:inline-flex;padding:9px 13px;border-radius:8px;text-decoration:none;font-weight:700;background:#3d7d3d;color:white}


/* MeowCraft file-manager layering: upload is a child workflow of files modal. */
#filesModal { z-index: 300; }
#uploadModal { z-index: 360; }
#confirmModal { z-index: 400; }

/* Chest icon shared by every web folder. */
.chest-icon {position:relative;display:inline-block;width:34px;height:34px;flex:0 0 34px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.34));}
.chest-icon::before {content:"";position:absolute;left:3px;right:3px;top:5px;height:9px;background:#bc8338;border:2px solid #4f331b;box-shadow:inset 0 2px #e2b165;}
.chest-icon::after {content:"";position:absolute;left:3px;right:3px;bottom:3px;height:16px;background:#936022;border:2px solid #4f331b;box-shadow:inset 0 -3px #704515;}
.chest-icon > i {position:absolute;z-index:2;left:14px;top:13px;width:6px;height:9px;background:#d3d1c7;border:1px solid #464846;}

/* MCV Studio 20261021：新布局与所有原功能共用原控件，后置样式替代旧视觉。 */
:root { color-scheme:dark; --bg:#101714; --panel:#19221d; --panel-2:#202b24; --surface-2:#121b16; --border:#344137; --text:#edf2e9; --text-dim:#a8b4a9; --primary:#c4ec9b; --success:#a8dfb2; --warning:#f3cd8c; --danger:#f5a59c; --playing:#b8e6a4; --paused:#edc790; --rendering:#f3cd8c; --ready:#a4d9d0; --idle:#a8b4a9; --back:#d3c1e0; --far:#f5a59c; --radius:18px; --ease:cubic-bezier(.2,.75,.25,1); }
html { min-height:100%; height:auto; overflow-x:hidden; overflow-y:auto; scroll-behavior:smooth; scroll-padding-top:30px; }
body { min-width:280px; height:auto; min-height:100vh; overflow:visible; font:14px/1.6 "Noto Sans CJK SC","Microsoft YaHei",system-ui,sans-serif; -webkit-text-size-adjust:100%; }
button,input,a { -webkit-tap-highlight-color:transparent; }
button,input { font:inherit; }
button,a { touch-action:manipulation; }
button:disabled { opacity:.45; cursor:not-allowed; }
button,a,input { transition:background .18s var(--ease),color .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease),transform .18s var(--ease); }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--primary); outline-offset:4px; }
[hidden] { display:none!important; }
::selection { background:var(--primary); color:#142018; }
.grid-bg { z-index:0; background:radial-gradient(ellipse at 80% 0,#36523624,transparent 50%); }
.app { min-height:100vh; min-height:100dvh; height:auto; }
.app-header { padding:22px max(24px,calc((100vw - 1180px)/2)); gap:20px; background:#101714; border-color:#c4ec9b12; backdrop-filter:none; }
.brand { gap:12px; min-width:0; }.brand-block { width:30px; height:30px; padding:3px; border-radius:7px; background:#29372b; border:0; box-shadow:none; }
.brand-logo { padding:0; border-radius:0; color:var(--text); background:transparent; font:850 28px/1 system-ui,sans-serif; letter-spacing:-1.8px; }.brand-mark { color:var(--primary); }
.brand-tag { font-size:12px; padding-left:14px; border-left:1px solid var(--border); letter-spacing:.04em; }
.connection-status { min-width:0; font-size:12px; }.status-icon { display:none; }.status-dot { flex:none; width:7px; height:7px; }.status-dot.connected { background:var(--primary); box-shadow:0 0 0 4px #c4ec9b0c; }
.web-ver { max-width:130px; overflow-wrap:anywhere; padding:0 0 0 5px; color:#839286; background:none; border:0; font:10px/1.4 ui-monospace,monospace; }
.app-main { flex:1 0 auto; width:min(1180px,calc(100% - 48px)); max-width:none; margin:0 auto; padding:28px 0 50px; overflow:visible; }
.eyebrow { display:block; color:var(--primary); font:10px/1.5 ui-monospace,monospace; letter-spacing:.16em; }
.meow-addon-panel { display:flex; align-items:center; flex-wrap:nowrap; gap:20px; padding:20px 24px; margin:0 0 30px; border:1px solid #749460; border-radius:18px; background:#283422; }
.meow-addon-panel>.addon-symbol { flex:0 0 46px; display:grid; place-items:center; width:46px; height:46px; border:1px solid #c4ec9b3d; border-radius:14px; color:var(--primary); font-size:25px; }
.meow-addon-panel>.addon-copy { display:block; flex:1; min-width:0; }.addon-copy b { display:block; margin:3px 0 4px; font-size:18px; font-weight:650; }.addon-copy small { display:block; color:#b7c7ad; font-size:12px; opacity:1; }
.meow-addon-panel>.addon-action { flex:none; display:flex; flex-direction:column; align-items:center; gap:6px; }.addon-action small { opacity:1; color:#aebea4; font-size:10px; }
.button-primary,.button-secondary,.addon-download-primary { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; padding:11px 20px; border:1px solid transparent; border-radius:11px; text-decoration:none; font-size:13px; font-weight:650; white-space:nowrap; cursor:pointer; }
.button-primary,.addon-download-primary { background:var(--primary); border-color:var(--primary); color:#1b2a16; box-shadow:0 3px 0 #00000012; }.button-primary>span:first-child { font-size:19px; font-weight:400; }
.button-secondary { background:#202a23; border-color:#45563e; color:var(--text); }.fab-icon { width:21px; height:21px; padding:0; border:0; box-shadow:none; background:transparent; }
.studio-heading { display:flex; align-items:center; justify-content:space-between; gap:28px; padding:12px 0 36px; }.studio-heading .eyebrow { margin-bottom:12px; color:#94aa8a; }.studio-heading h1 { font-size:clamp(27px,3.4vw,40px); font-weight:630; letter-spacing:-.055em; line-height:1.3; }.studio-heading p { margin-top:12px; color:var(--text-dim); font-size:13px; }
.studio-actions { display:flex; gap:10px; flex:none; }.watch-section { margin-bottom:38px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }.section-heading>div { display:flex; align-items:center; gap:12px; }.section-index { color:#8ba27f; font:11px ui-monospace,monospace; }.section-heading h2 { font-size:18px; font-weight:600; }.screen-count { color:var(--text-dim); font-size:11px; }.playback-mode { color:#aec6ba; border:1px solid var(--border); border-radius:30px; padding:4px 10px; font-size:10px; }
.screen-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; outline:none; }.screen-card { min-width:0; padding:24px; border:1px solid var(--border); background:var(--panel); border-radius:18px; box-shadow:0 4px 20px #00000008; animation:slideIn .35s var(--ease) both; }.screen-card[data-state=playing] { border-color:#628c4d; }
.card-head { margin-bottom:24px; align-items:flex-start; gap:12px; }.card-title { font-size:17px; line-height:1.5; font-weight:600; overflow-wrap:anywhere; min-width:0; white-space:normal; }.card-badge { flex:none; border-radius:6px; padding:4px 8px; font-size:10px; max-width:52%; white-space:normal; text-align:right; }
.badge-playing { background:#35572b75; }.badge-paused { background:#5c46243d; }.badge-rendering { background:#58482a4d; animation:none; }.badge-ready { background:#284b454d; }.badge-idle { background:#ffffff08; }.badge-back { background:#4936504d; }.badge-far { background:#58332e4d; }
.card-progress { position:relative; height:5px; overflow:hidden; border-radius:5px; background:#0e1712; }.progress-fill,.progress-buffer { position:absolute; left:0; top:0; height:100%; border-radius:inherit; transition:width .25s linear; pointer-events:none; }.progress-fill { background:var(--primary); }.progress-buffer { width:0; background:#69885b; }
.card-row { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:20px; }.btn-play { display:flex; align-items:center; justify-content:center; gap:9px; min-height:46px; min-width:120px; padding:10px 16px; color:#1e2e1b; background:var(--primary); border:1px solid var(--primary); border-radius:10px; font-size:13px; font-weight:650; cursor:pointer; }.btn-play.is-playing { color:var(--primary); background:#2b3a25; border-color:#657c52; }.btn-play-icon { width:19px; height:19px; background:none; border:0; padding:0; box-shadow:none; }.card-time { color:var(--text-dim); font:11px ui-monospace,monospace; white-space:nowrap; }
.card-volume-row { display:flex; gap:12px; margin-top:22px; padding-top:17px; border-top:1px solid #ffffff08; }.slider-label { flex:none; font-size:11px; }.slider-value { flex:none; width:42px; text-align:right; color:var(--text); font:11px ui-monospace,monospace; }
input[type=range] { flex:1; width:100%; min-width:45px; min-height:32px; accent-color:var(--primary); cursor:pointer; }
.empty-state { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:220px; padding:30px 20px; border:1px dashed #45533e; border-radius:18px; background:#172019; }.empty-orbit { display:grid; place-items:center; width:68px; height:68px; border:1px solid #c4ec9b26; border-radius:50%; background:#293627; margin-bottom:18px; }.empty-icon { width:32px; height:32px; padding:0; border:0; box-shadow:none; background:transparent; margin:0; }.empty-state p { font-size:16px; font-weight:550; }.empty-state small { display:block; max-width:340px; margin-top:8px; font-size:12px; color:var(--text-dim); line-height:1.9; opacity:1; }
.online-players { width:min(1180px,calc(100% - 48px)); margin:14px auto -10px; padding:0; justify-content:flex-end; background:none; border:0; }.player-head { width:25px; height:25px; border:2px solid var(--border); border-radius:7px; }
.app-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; width:min(1180px,calc(100% - 48px)); margin:auto auto 0; padding:20px 0 max(22px,env(safe-area-inset-bottom)); border-color:var(--border); background:var(--bg); }
.master-controls { flex:1; max-width:520px; gap:16px; }.master-controls .slider-group { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }.footer-caption { font-size:12px; white-space:nowrap; }.footer-brand { margin-left:auto; color:#8d9e8c; font-size:11px; letter-spacing:.04em; }
.btn-icon { width:44px; height:44px; display:inline-grid; place-items:center; flex:none; padding:8px; border:1px solid var(--border); border-radius:11px; background:#202b24; }.btn-icon .mi { width:23px; height:23px; }
.overlay,.modal { padding:20px max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); background:#070e0ae8; }
.overlay { z-index:200; }.overlay-box { width:min(460px,100%); padding:44px 32px 32px; border:1px solid #526347; border-radius:24px; background:var(--panel); box-shadow:0 20px 64px #050b0738; }.overlay .eyebrow { color:#93ac82; }.overlay-icon { display:block; width:58px; height:58px; padding:10px; margin:24px auto; border:1px solid #c4ec9b26; background:#2c3c25; border-radius:18px; box-shadow:none; }.overlay h2 { color:var(--text); font-size:29px; font-weight:600; letter-spacing:-.04em; }.overlay p { margin:14px 0 26px; font-size:13px; line-height:1.9; }.overlay .button-primary { width:100%; }.overlay small { display:block; margin-top:17px; font-size:10px; color:#91a08c; }
.modal-box { width:min(460px,100%); max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); background:var(--panel); border:1px solid #526347; border-radius:20px; overflow:auto; box-shadow:0 20px 64px #050b0738; }.modal-text { font-size:15px; line-height:1.8; overflow-wrap:anywhere; word-break:normal; white-space:pre-line; margin-bottom:24px; }.modal-actions { gap:10px; }
.btn-modal,.file-tool,.btn-mini,.files-side-item,.crumb { border-radius:9px; min-height:44px; }.btn-modal { padding:10px 18px; font-size:12px; }.btn-modal-ok,.file-tool.primary { color:#1c2b17; background:var(--primary); border-color:var(--primary); font-weight:650; }
.upload-modal { width:min(580px,100%); padding:0; }.upload-modal-head { padding:20px 24px; }.upload-modal-title { font-size:17px; color:var(--text); font-weight:600; }.title-icon { width:22px; height:22px; margin-right:8px; padding:0; background:none; border:0; box-shadow:none; }.upload-modal-body { padding:22px 24px; }.upload-modal .modal-actions { padding:18px 24px 24px; }
.upload-destination { padding:12px 14px; margin-bottom:24px; font-size:12px; background:#101a13; border:1px solid #3a4933; border-radius:10px; color:#bbd3b0; overflow-wrap:anywhere; }.form-row { margin-bottom:22px; }.form-label { font-size:12px; font-weight:600; margin-bottom:9px; }.form-hint { margin-top:8px; font-size:11px; line-height:1.8; }.text-input,.files-search { min-height:44px; padding:10px 13px; border:1px solid #41503b; border-radius:9px; background:#101a14; color:var(--text); font-size:14px; }.upload-file { font-size:12px; }.upload-file::file-selector-button { min-height:44px; padding:10px 15px; margin:0 12px 5px 0; background:#2d3c26; color:var(--primary); border:1px solid #516b40; border-radius:9px; font:inherit; cursor:pointer; }
.upload-progress { height:25px; border-radius:7px; }.upload-pct { color:#172311; text-shadow:0 0 3px #ffffff77; font-size:11px; }.upload-info { margin-top:8px; font-size:12px; overflow-wrap:anywhere; }
.files-modal { width:min(1160px,100%); height:min(780px,88vh); height:min(780px,88dvh); max-width:100%; padding:0; overflow:hidden; }.files-sidebar { width:164px; padding:18px 12px; background:#151f18; }.files-side-item { font-size:12px; padding:12px; margin-bottom:8px; }.files-side-item.active { color:var(--primary); border-color:#526442; background:#2d3b26; }.files-side-note { margin:24px 10px; line-height:1.8; }
.files-toolbar { padding:14px 18px; gap:7px; flex-wrap:wrap; flex-direction:row; align-items:center; }.file-tool { min-height:40px; padding:8px 11px; font-size:11px; }.files-search { flex:1 1 180px; width:auto; max-width:none; min-height:40px; font-size:13px; margin:0; }.files-breadcrumbs { min-height:54px; padding:6px 18px; }.crumb { min-height:40px; padding:8px 9px; }.crumb:last-child { color:var(--primary); }
.files-modal-body { padding:12px 16px; overscroll-behavior:contain; }.file-row,.files-modal-body.list-view .file-row { padding:11px 10px; border-radius:11px; background:#202a23; flex-wrap:wrap; }.file-row.selected { border-color:#87ad68; background:#31412b; }.file-open { min-width:120px; min-height:44px; }.file-title { font-weight:550; }.file-meta,.file-path { font-size:10px; }.btn-mini { min-height:36px; padding:7px 10px; font-size:10px; }.danger,.btn-mini.danger { color:#f5b4ab; background:#462a2526; border-color:#7d4c435c; }.file-ops { gap:6px; }.files-foot { padding:13px 20px; background:#151f18; font-size:11px; }
.toast { bottom:max(26px,env(safe-area-inset-bottom)); max-width:min(540px,calc(100% - 32px)); padding:13px 20px; background:#d5efb9; color:#20301b; border:1px solid #a4c88a; border-radius:12px; box-shadow:0 20px 64px #050b0738; font-size:13px; }
#dragOverlay { inset:12px; background:#132010ed; border:2px dashed var(--primary); border-radius:24px; }
.skip-link { position:fixed; left:16px; top:12px; z-index:1500; padding:12px 20px; transform:translateY(-160%); color:#172413; background:var(--primary); border-radius:9px; }.skip-link:focus { transform:none; }
@media(hover:hover) and (pointer:fine) {
 .button-primary:hover,.addon-download-primary:hover,.btn-modal-ok:hover,.file-tool.primary:hover,.btn-play:hover:not(:disabled) { background:#d5f7b0; border-color:#d5f7b0; transform:translateY(-2px); box-shadow:0 6px 20px #c4ec9b15; }
 .button-secondary:hover,.btn-icon:hover,.file-tool:hover:not(:disabled),.btn-mini:hover,.crumb:hover { border-color:#809769; color:var(--primary); background:#30402a; }
 .screen-card:hover { border-color:#647a55; box-shadow:0 8px 26px #00000020; }.file-row:hover { background:#2c382e; }.player-head:hover { transform:translateY(-3px); border-color:var(--primary); }
}
button:active:not(:disabled),.addon-download-primary:active { transform:translateY(1px) scale(.985); }
@media(max-width:900px) {
 .meow-addon-panel { flex-wrap:wrap; gap:14px; }.meow-addon-panel>.addon-copy { flex:1 1 250px; }.meow-addon-panel>.addon-action { flex:1 1 100%; align-items:stretch; margin-left:60px; }.addon-action small { text-align:center; }
 .studio-heading { align-items:flex-start; flex-direction:column; gap:22px; }.files-sidebar { width:138px; }.file-ops { flex:1 1 100%; padding-left:28px; justify-content:flex-start; }
}
@media(max-width:620px) {
 .app-header { padding:19px 18px; gap:12px; align-items:flex-start; flex-wrap:wrap; }.brand-logo { font-size:25px; }.brand-block { width:26px; height:26px; }.brand-tag { font-size:10px; padding-left:10px; }
 .connection-status { width:100%; padding-left:2px; font-size:10px; }.web-ver { max-width:none; font-size:9px; margin-left:auto; }
 .app-main { width:calc(100% - 32px); padding-top:20px; }.meow-addon-panel { padding:18px; margin-bottom:24px; border-radius:15px; gap:12px; }.meow-addon-panel>.addon-symbol { display:none; }.meow-addon-panel>.addon-copy { flex-basis:100%; }.addon-copy b { font-size:17px; }.meow-addon-panel>.addon-action { margin-left:0; }
 .studio-heading { padding:8px 0 30px; }.studio-heading h1 { font-size:27px; letter-spacing:-.065em; }.studio-heading p { font-size:12px; margin-top:10px; }.studio-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; gap:10px; }.button-primary,.button-secondary { min-height:48px; padding:11px 14px; }
 .section-heading { flex-wrap:wrap; gap:10px; }.section-heading h2 { font-size:17px; }.section-heading>div { gap:8px; }.playback-mode { font-size:9px; }
 .screen-list { grid-template-columns:minmax(0,1fr); gap:12px; }.screen-card { padding:20px; }.card-head { margin-bottom:21px; }.card-title { font-size:16px; }
 .app-footer { width:calc(100% - 32px); gap:12px; padding-top:16px; flex-wrap:wrap; }.footer-caption { display:none; }.master-controls { flex-basis:100%; max-width:none; gap:12px; }.footer-brand { text-align:center; width:100%; font-size:10px; }.online-players { width:calc(100% - 32px); }
 .modal { padding:8px; padding-bottom:max(8px,env(safe-area-inset-bottom)); }.modal-box { max-height:calc(100vh - 16px); max-height:calc(100dvh - 16px); border-radius:16px; }
 .files-modal { height:calc(100vh - 16px); height:calc(100dvh - 16px); }.files-shell { flex-direction:column; }.files-sidebar { display:flex; align-items:center; width:auto; gap:6px; padding:8px 12px; border-right:0; border-bottom:1px solid var(--border); }.files-side-item { width:auto; flex:1; margin:0; justify-content:center; padding:8px; min-height:44px; }.files-side-note { display:none; }
 .files-toolbar { padding:10px; gap:6px; }.file-tool { flex:1 1 22%; min-height:44px; padding:8px 5px; font-size:10px; }.files-search { flex:1 1 100%; min-height:44px; font-size:16px; order:2; }
 .files-breadcrumbs { padding-inline:8px; }.files-modal-body { padding:9px; }.file-row,.files-modal-body.list-view .file-row { padding:11px 9px; }.file-open { gap:8px; }.file-ops { padding-left:28px; }.btn-mini { min-height:40px; padding:9px 10px; font-size:11px; }
 .upload-modal-head { padding:15px 18px; }.upload-modal-title { font-size:16px; }.upload-modal-body { padding:18px; }.upload-modal .modal-actions { padding:16px 18px 18px; }.text-input { font-size:16px; }
 .overlay-box { padding:32px 23px 25px; }.overlay h2 { font-size:26px; }
}
@media(max-width:340px) { .brand-tag { display:none; }.studio-heading h1 { font-size:24px; }.card-head { flex-direction:column; gap:8px; }.card-badge { max-width:100%; text-align:left; }.card-time { font-size:10px; }.file-tool { flex-basis:30%; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* 联机信息保留原真实统计、缓存来源色和详情交互，只统一排版与视觉。 */
html { scrollbar-gutter:stable; } body.modal-open { overflow:hidden; }
.connection-graph { background:var(--panel); border:1px solid var(--border); border-radius:18px; }
.graph-heading { padding:26px 26px 22px; }.graph-heading h2 { color:var(--text); font-size:23px; font-weight:600; letter-spacing:-.04em; }.graph-heading p { color:var(--text-dim); font-size:12px; margin-top:7px; }.graph-eyebrow { color:#8da67f; font:10px ui-monospace,monospace; letter-spacing:.15em; margin-bottom:10px; }
.graph-live { color:var(--text-dim); border-color:#46573c; background:#253020; }.graph-live.live { color:var(--primary); background:#304126; border-color:#637f4c; }
.graph-summary { background:var(--border); border-color:var(--border); grid-template-columns:repeat(6,minmax(0,1fr)); }.graph-summary>span { background:#202a22; color:var(--text-dim); padding:17px 20px; font-size:10px; }.graph-summary b { color:var(--text); font-size:22px; margin-bottom:2px; }.graph-saving b { color:var(--primary); }
.graph-controls { padding:22px 24px 16px; gap:8px; }.graph-search input { min-height:44px; font:13px inherit; background:#121c16; border-color:#415039; color:var(--text); border-radius:9px; padding:10px 13px; }.graph-search input::placeholder { color:#8a9c85; }
.graph-controls button,.graph-pagination button { min-height:44px; border-radius:9px; background:#2b3825; color:var(--text); border-color:#4e6241; font-size:12px; padding:10px 13px; }.graph-controls button[aria-pressed=true] { color:#1b2a16; background:var(--primary); border-color:var(--primary); }
.graph-stage { margin:0 24px 20px; min-height:210px; }.graph-nodes { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }.graph-node { border:1px solid #3d4d36; background:#202c22; border-radius:13px; min-height:210px; padding:16px 12px; box-shadow:none; color:var(--text); }.graph-node.server { background:#283522; border-color:#6c8652; }.graph-node.selected { border-color:var(--primary); box-shadow:0 0 0 2px #c4ec9b18; }.graph-avatar { background:#172113; border-color:#526b41; border-radius:10px; }.graph-node-name { font-weight:600; }.graph-node-mode,.graph-cache-text,.graph-note,.graph-legend { color:var(--text-dim); }.graph-node-transport { background:#101b14; color:#b4d5b1; }.graph-node-transport.status-p2p { color:#e2cb8d; background:#413b25; }.graph-node-transport.status-direct { color:#bad8d4; background:#2a4039; }.graph-cache-label { color:#c6d8bf; }.graph-empty { background:var(--panel); color:var(--text-dim); border-radius:10px; }
.graph-bottom { padding:0 24px 12px; }.graph-note { padding:0 24px 22px; font-size:10px; }.graph-selection { background:#19251c; color:var(--text-dim); border-color:var(--border); }.graph-selection>strong,.graph-selection h3 { color:var(--text); }.graph-selection>small,.detail-scale { color:var(--text-dim); }
#graphDetailsDialog { background:#19251c; border:1px solid #5c754b; border-radius:18px; max-height:85vh; max-height:85dvh; color:var(--text); }#graphDetailsDialog::backdrop { background:#070e0ad9; backdrop-filter:none; }#graphDetailsClose { background:#304026; color:var(--primary); border-color:#597147; min-height:44px; }.diagnostic-grid dt { color:#9fb496; }.diagnostic-grid dd { color:var(--text); }.media-diagnostic,.detail-route { border-color:var(--border); }
.card-audio { min-height:18px; color:var(--text-dim); font-size:11px; margin:-12px 0 20px; }
@media(hover:hover) and (pointer:fine) { .graph-controls button:hover:not(:disabled),.graph-pagination button:hover:not(:disabled),#graphDetailsClose:hover { background:#3c4e30; border-color:#8eac70; transform:translateY(-1px); }.graph-node:hover { border-color:#89a46d; transform:translateY(-2px); box-shadow:0 6px 18px #0002; } }
@media(max-width:900px) { .graph-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }.graph-nodes { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:620px) { .graph-heading { padding:21px 18px; }.graph-heading h2 { font-size:21px; }.graph-summary>span { padding:14px 13px; font-size:9px; }.graph-summary b { font-size:19px; }.graph-controls { padding:18px 14px 14px; }.graph-search { flex-basis:100%; }.graph-search input { font-size:16px; }.graph-controls button { flex:1; }.graph-stage { margin:0 14px 18px; min-height:210px; }.graph-nodes { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.graph-node { padding:15px 9px; }.graph-bottom { padding-inline:15px; }.graph-note { padding:0 15px 18px; }.graph-pagination { margin-left:auto; }.graph-legend { font-size:9px; } }
@media(max-width:330px) { .graph-nodes { grid-template-columns:minmax(0,1fr); } }
