:root {
  --bg: #f4f5fa;
  --panel: #ffffff;
  --ink: #1a2032;
  --muted: #6b7488;
  --line: #e6e9f2;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef0ff;
  --ok: #16a34a;
  --ok-soft: #e8f8ee;
  --warn: #d97706;
  --warn-soft: #fdf3e2;
  --bad: #e11d48;
  --bad-soft: #fdebf0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 26, 45, .04), 0 8px 24px rgba(20, 26, 45, .06);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .32);
}

.brand-icon svg { width: 22px; height: 22px; }
.brand h1 { font-size: 17px; font-weight: 650; letter-spacing: .2px; }
.brand p { font-size: 12.5px; color: var(--muted); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  max-width: 220px;
}

a.user-chip { text-decoration: none; }
a.user-chip:hover { border-color: #c7cbf4; text-decoration: none; }

.user-chip b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- 布局 ---------- */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px 56px;
}

.page-narrow { max-width: 860px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
}

.section-head h2 { font-size: 16px; font-weight: 650; }
.section-head p { font-size: 12.5px; color: var(--muted); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card + .card { margin-top: 16px; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-head h3 { font-size: 15px; font-weight: 650; }
.card-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .16s, border-color .16s, transform .06s, color .16s;
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #f7f8fc; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .22);
}

.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef0f7; color: var(--ink); }
.btn-danger { color: var(--bad); border-color: #f4d6de; background: #fff; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 12.5px; color: var(--muted); font-weight: 550; }

input[type="text"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfcff;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #b9bdf7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.field-hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--bad); }

/* ---------- 徽标 / 状态 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  background: #f1f3f9;
  color: var(--muted);
}

.chip-brand { background: var(--brand-soft); color: var(--brand-dark); }
.chip-ok { background: var(--ok-soft); color: #15803d; }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .5px; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot-pulse { animation: pulse 1.8s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- 设备网格 ---------- */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.device-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .16s, box-shadow .16s;
}

.device-card:hover { border-color: #d6d9f0; }

.device-top { display: flex; align-items: center; gap: 12px; }

.device-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.device-icon svg { width: 22px; height: 22px; }
.device-icon.camera { background: #e6f7f4; color: #0f766e; }
.device-icon.printer { background: #eef2ff; color: #4338ca; }
.device-icon.board { background: #fdf0e6; color: #b45309; }

.device-title { min-width: 0; flex: 1; }
.device-title strong { display: block; font-size: 14.5px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-title span { font-size: 12px; color: var(--muted); }

.device-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.device-actions { display: flex; gap: 8px; margin-top: auto; }
.device-actions .btn { flex: 1; }

/* ---------- 空状态 ---------- */
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: #fbfcff;
}

.empty strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }
.empty .empty-icon { font-size: 30px; line-height: 1; margin-bottom: 10px; opacity: .7; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  background: #1f2434;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 200;
  max-width: 80vw;
  box-shadow: 0 12px 32px rgba(15, 20, 35, .28);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: #15803d; }
.toast.error { background: #be123c; }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 40, .42);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 150;
}

.modal {
  background: var(--panel);
  border-radius: 18px;
  padding: 24px;
  width: min(460px, 100%);
  box-shadow: 0 24px 64px rgba(15, 20, 35, .28);
}

.modal h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.modal p { font-size: 13px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.code-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 30px;
  letter-spacing: 5px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin: 16px 0;
  user-select: all;
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; background: #eef0f7; padding: 4px; border-radius: 12px; }
.tabs button {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
}
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 26, 45, .12); }

/* ---------- 打印页 ---------- */
.dropzone {
  border: 1.6px dashed #cfd4e6;
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  background: #fbfcff;
  transition: border-color .16s, background .16s;
}

.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.dropzone span { font-size: 12.5px; }
.dropzone .dz-icon { font-size: 24px; margin-bottom: 8px; opacity: .8; }

.file-list, .job-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.file-type {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 3px 7px;
  border-radius: 6px;
}

.file-info { flex: 1; min-width: 0; }
.file-name { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 11.5px; color: var(--muted); }

.remove-file {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.remove-file:hover { background: var(--bad-soft); color: var(--bad); }

.job-item {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-name { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.job-error { font-size: 12px; color: var(--bad); margin-top: 6px; }

.job-status { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; flex: none; }
.job-status.queued { background: #f1f3f9; color: var(--muted); }
.job-status.printing { background: var(--warn-soft); color: var(--warn); }
.job-status.done { background: var(--ok-soft); color: #15803d; }
.job-status.error { background: var(--bad-soft); color: var(--bad); }

.notice {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  background: var(--warn-soft);
  color: #92400e;
  border: 1px solid #f7e2bd;
  margin-bottom: 14px;
}

.notice.error { background: var(--bad-soft); color: #9f1239; border-color: #f6cdd8; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.site-footer .sep { opacity: .4; }

/* ---------- 监控页 ---------- */
.video-shell {
  position: relative;
  background: #0b0f1a;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(11, 15, 26, .28);
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  /* 全屏时双指/滚轮缩放、拖动，见 camera.js */
  will-change: transform;
  transform-origin: center center;
}

.video-shell { touch-action: none; }

/* 全屏时控制条会被带进 .video-shell，浮在画面底部 */
.video-shell > .video-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(3, 7, 14, .78));
  z-index: 11;
  justify-content: flex-end;
}

.video-shell > .video-bar .btn {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(255, 255, 255, .16);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.video-shell > .video-bar .btn:hover { background: rgba(30, 41, 59, .92); color: #fff; }
.video-shell > .video-bar .grow { display: none; }
.btn.active { background: var(--brand-soft); border-color: #c7cbf4; color: var(--brand-dark); }

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: #cbd5e1;
  background: radial-gradient(circle at 50% 45%, rgba(30, 41, 59, .4), rgba(11, 15, 26, .95));
  padding: 24px;
  font-size: 13.5px;
}

.video-overlay .spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.6px solid rgba(148, 163, 184, .3);
  border-top-color: #a5b4fc;
  animation: spin .9s linear infinite;
}

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

.video-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.video-bar .grow { flex: 1; }


/* 全屏播放：整屏铺满 + 右上角退出按钮（浏览器里按 Esc 也能退出） */
.video-shell:fullscreen,
.video-shell:-webkit-full-screen {
  border-radius: 0;
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.video-shell:fullscreen video,
.video-shell:-webkit-full-screen video { object-fit: contain; }

.fullscreen-exit {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(15, 23, 42, .72);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fullscreen-exit:hover { background: rgba(30, 41, 59, .92); color: #fff; }

/* ---------- 展示板编辑 ---------- */
.board-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, #eef0ff, #f6f4ff);
  border: 1px solid #e2e4fb;
}

.board-code-row .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--brand-dark);
}

.preview-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0f1a;
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
}

.preview-box img { max-width: 100%; max-height: 320px; display: block; }
.preview-box .preview-text {
  color: #f8fafc;
  padding: 18px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  text-align: center;
  max-height: 320px;
  overflow: auto;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }


/* ---------- 首页工具栏 ---------- */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tool-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .16s, box-shadow .16s, transform .08s;
}

.tool-btn:hover { border-color: #c7cbf4; box-shadow: 0 6px 20px rgba(79, 70, 229, .12); }
.tool-btn:active { transform: translateY(1px); }

.tool-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.tool-icon svg { width: 20px; height: 20px; }
.tool-icon.board { background: #fdf0e6; color: #b45309; }

.tool-text { display: flex; flex-direction: column; gap: 1px; }
.tool-text strong { font-size: 13.5px; font-weight: 620; color: var(--ink); }
.tool-text em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ---------- 展示板设置：图片 / 文字 tab ---------- */
.show-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border-radius: 13px;
  background: #f2f5f9;
  margin-bottom: 18px;
}

.show-tab {
  appearance: none;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #697789;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}

.show-tab svg { width: 17px; height: 17px; }
.show-tab.active { background: #ffffff; color: var(--ink); box-shadow: 0 2px 8px rgba(23, 33, 48, .08); }
.show-tab:focus-visible { outline: 3px solid rgba(99, 102, 241, .24); outline-offset: 2px; }

.dropzone-lg {
  min-height: 190px;
  border: 1.5px dashed #c7d5e8;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbfe, #f4f8fd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.dropzone-lg:hover,
.dropzone-lg.dragover { border-color: #a5aaf5; background: #f4f4ff; }

.drop-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.drop-icon svg { width: 34px; height: 34px; }
.drop-title { font-size: 14px; font-weight: 600; color: #314052; }
.drop-sub { font-size: 11.5px; color: var(--muted); }

.show-preview {
  position: relative;
  display: grid;
  place-items: center;
  height: 250px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid #e6ecf4;
  border-radius: 14px;
  background: #0d1219;
}

.show-preview img { display: block; max-width: 100%; max-height: 250px; object-fit: contain; }

.show-preview-clear {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 15, 22, .72);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.show-preview-clear:hover { background: rgba(190, 45, 45, .92); }

.show-preview-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 14, .78));
  color: #eaf1f8;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; }
.char-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.option-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0; }
.option-hint { color: var(--muted); font-size: 11.5px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.show-text-input {
  min-height: 240px;
  font-family: "SFMono-Regular", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.show-current {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 12px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #f7f9fc;
}

.show-current-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.show-current-label { color: #8a97a8; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; }
.show-current-info strong { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-current-meta { color: var(--muted); font-size: 10.5px; }

.show-current-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e1e8f2;
  object-fit: cover;
  background: #0d1219;
}

.show-current-link {
  flex: none;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--brand);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #dfe8f5;
}

.show-current-link:hover { background: #f2f8ff; text-decoration: none; }

@media (max-width: 860px) {
  .toolbar { gap: 10px; }
  .tool-btn { flex: 1 1 200px; }
  .show-preview { height: 190px; }
  .show-preview img { max-height: 190px; }
  .show-text-input { min-height: 210px; }
}

@media (max-width: 860px) {
  .page { padding: 18px 16px 40px; }
  .topbar { padding: 12px 16px; }
  .two-col { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
  .brand p { display: none; }
}

/* ---------- 个人设置 ---------- */
.actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 4px;
}

.inline-row { display: flex; gap: 10px; }
.inline-row input { flex: 1; }
.inline-row .btn { flex: none; height: 42px; }

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

.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.member-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
}

.member-info { flex: 1; min-width: 0; }
.member-info strong { display: block; font-size: 13.5px; font-weight: 600; }
.member-info span { font-size: 11.5px; color: var(--muted); }

input[readonly],
input:disabled { background: #f4f6fb; color: var(--muted); }

.site-footer .btn { margin: 0 auto; }
