:root {
  --bg: #0b0d12;
  --bg-soft: #10141c;
  --panel: #141821;
  --panel-2: #1a1f29;
  --panel-3: #212836;
  --border: #262d3b;
  --border-soft: #1e2431;
  --text: #e9edf5;
  --text-dim: #aab4c5;
  --muted: #7c879b;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --success: #2ecc8f;
  --warn: #ffb020;
  --danger: #ff5f6d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --grad: linear-gradient(135deg, #4f8cff 0%, #7c5cff 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1000px 600px at 12% -10%, rgba(79, 140, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 92% 0%, rgba(124, 92, 255, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  height: 62px;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(79, 140, 255, 0.35);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 10px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 13.5px;
  transition: background 0.16s, color 0.16s;
}
.nav-links a:hover { background: var(--panel-2); color: var(--text); }
.nav-links a.active { background: var(--accent-soft); color: #cfe0ff; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: 13px;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.badge-admin {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 176, 32, 0.16);
  color: var(--warn);
  border: 1px solid rgba(255, 176, 32, 0.3);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  transition: transform 0.12s, background 0.16s, border-color 0.16s, opacity 0.16s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--panel-3); border-color: #333c4d; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(79, 140, 255, 0.28);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--grad); }

.btn-ghost { background: transparent; }
.btn-danger { color: #ffd5d8; border-color: rgba(255, 95, 109, 0.35); background: rgba(255, 95, 109, 0.1); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 95, 109, 0.18); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- 布局 ---------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 26px 70px;
}

.page-wide { max-width: 1400px; }

.page-head { margin-bottom: 22px; }
.page-head h1 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: 0.2px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad { padding: 20px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}
.section-title .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- 上传区 ---------- */
.upload-zone {
  border: 1.5px dashed #2f394b;
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  transition: border-color 0.18s, background 0.18s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-zone .icon { font-size: 34px; margin-bottom: 8px; }
.upload-zone h3 { margin: 0 0 5px; font-size: 15.5px; }
.upload-zone p { margin: 0; color: var(--muted); font-size: 12.5px; }

.preview-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.preview-thumb {
  width: 92px; height: 92px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-3);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.preview-meta { flex: 1; min-width: 0; }
.preview-meta .name {
  font-weight: 600;
  margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.preview-meta .sub { color: var(--muted); font-size: 12.5px; }

.field { margin-top: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder { color: #5f6a7d; }

/* ---------- 任务卡片 ---------- */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}

.task-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.task-card:hover {
  transform: translateY(-2px);
  border-color: #333c4d;
  box-shadow: var(--shadow-lg);
}

.task-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--panel-3);
  overflow: hidden;
}
.task-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.task-thumb .no-img {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: #4c566b;
  font-size: 30px;
}

.task-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.task-title {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.task-meta {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  color: var(--muted); font-size: 12px;
}
.task-meta b { color: var(--text-dim); font-weight: 600; }

.task-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

/* 进度条 */
.progress-wrap { margin-top: 2px; }
.progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; margin-bottom: 6px;
}
.progress-head .stage { color: var(--text-dim); }
.progress-head .pct { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar {
  height: 7px;
  border-radius: 999px;
  background: var(--panel-3);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.bar > i::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 状态标签 */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
}
.tag-running { background: rgba(79,140,255,0.13); color: #8fb8ff; border-color: rgba(79,140,255,0.28); }
.tag-queued  { background: rgba(255,176,32,0.12); color: var(--warn); border-color: rgba(255,176,32,0.26); }
.tag-succeeded { background: rgba(46,204,143,0.13); color: var(--success); border-color: rgba(46,204,143,0.28); }
.tag-failed { background: rgba(255,95,109,0.13); color: #ff8b95; border-color: rgba(255,95,109,0.28); }

.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* ---------- 空状态 ---------- */
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .icon { font-size: 38px; margin-bottom: 10px; opacity: 0.55; }
.empty p { margin: 0 0 4px; font-size: 13.5px; }
.empty small { font-size: 12px; opacity: 0.75; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
thead th {
  text-align: left;
  padding: 11px 14px;
  background: var(--panel-2);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.018); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 展厅网格 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.gal-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.gal-card:hover {
  transform: translateY(-3px);
  border-color: #333c4d;
  box-shadow: var(--shadow-lg);
}
.gal-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(79,140,255,0.10), rgba(124,92,255,0.10)),
    var(--panel-3);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gal-cover img { width: 100%; height: 100%; object-fit: cover; }
.gal-cover .ph { font-size: 34px; color: #46506a; }
.gal-body { padding: 12px 14px 14px; }
.gal-title {
  font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gal-sub {
  color: var(--muted); font-size: 12px; margin-top: 3px;
  display: flex; justify-content: space-between; gap: 8px;
}

/* ---------- 模态框 ---------- */
.mask {
  position: fixed; inset: 0;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.mask.show { display: flex; }
.modal {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: pop 0.18s ease-out;
}
@keyframes pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal h2 { margin: 0 0 4px; font-size: 18px; }
.modal .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.modal .switch {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.modal .switch a { color: var(--accent); cursor: pointer; }

/* 绑定/编辑打印机弹窗：头部固定 + 中间滚动 + 底部按钮常驻，
   避免选「拓竹」时字段过多把「绑定」按钮顶出可视区 */
.bind-modal {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}
.bind-modal .modal-head { flex: 0 0 auto; }
.bind-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
}
.bind-modal .modal-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.bind-modal .modal-body::-webkit-scrollbar { width: 8px; }
.bind-modal .modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  top: 74px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.toast {
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  max-width: 320px;
  animation: slideIn 0.2s ease-out;
}
.toast.ok { border-color: rgba(46,204,143,0.4); background: rgba(46,204,143,0.13); }
.toast.err { border-color: rgba(255,95,109,0.4); background: rgba(255,95,109,0.13); }
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- 预览页 ---------- */
.viewer-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.viewer-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 58px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(11,13,18,0.9);
  flex-shrink: 0;
}
.viewer-top h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 340px;
}
.viewer-top .spacer { flex: 1; }

.viewer-main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.canvas-wrap {
  flex: 1;
  position: relative;
  background:
    radial-gradient(700px 500px at 50% 45%, #1a2030 0%, #0b0d12 75%);
  min-width: 0;
}
#canvas { display: block; width: 100%; height: 100%; }

.viewer-side {
  width: 320px;
  flex-shrink: 0;
  border-left: 1px solid var(--border-soft);
  background: var(--panel);
  padding: 18px;
  overflow-y: auto;
}
.viewer-side h3 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.stat {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 11px 12px;
}
.stat .k { color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.stat .v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 11px; font-weight: 500; color: var(--muted); }

.dl-group { display: flex; flex-direction: column; gap: 8px; }

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 11px 13px;
  margin-top: 16px;
}

.loading-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background: rgba(11,13,18,0.75);
  color: var(--text-dim);
  font-size: 13px;
  z-index: 5;
}
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--panel-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.canvas-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 7px;
  z-index: 6;
}
.tool-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(20,24,33,0.85);
  color: var(--text-dim);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 15px;
  backdrop-filter: blur(6px);
  transition: color 0.15s, border-color 0.15s;
}
.tool-btn:hover { color: var(--text); border-color: #3a4457; }

/* ---------- 管理员工具条 ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar .spacer { flex: 1; }

.admin-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 1080px) {
  .admin-cols.two { grid-template-columns: 320px 1fr; align-items: start; }
}

.mock-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: rgba(255,176,32,0.09);
  border: 1px solid rgba(255,176,32,0.26);
  color: #ffd894;
  font-size: 12.5px;
  margin-bottom: 18px;
  line-height: 1.65;
}

.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .viewer-main { flex-direction: column; }
  .viewer-side {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-soft);
    max-height: 42vh;
  }
  .canvas-wrap { min-height: 46vh; }
}

@media (max-width: 640px) {
  .nav { padding: 0 14px; gap: 10px; }
  .nav-links { display: none; }
  .page { padding: 20px 14px 60px; }
}

/* ---------- 打印机管理页 ---------- */
.page { max-width: 940px; margin: 0 auto; padding: 32px 22px 80px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; }
.page-sub { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; max-width: 720px; }
.page-head .btn { margin-top: 4px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.panel-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.printer-card { padding: 16px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-name { font-weight: 600; font-size: 15px; }
.pc-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.pc-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; font-family: ui-monospace, Menlo, Consolas, monospace; }

.state-badge {
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.st-idle { background: rgba(122,135,155,0.14); color: #b9c2d2; border-color: rgba(122,135,155,0.3); }
.st-run { background: rgba(79,140,255,0.14); color: #aac4ff; border-color: rgba(79,140,255,0.32); }
.st-ok { background: rgba(46,204,143,0.14); color: #8ff0c7; border-color: rgba(46,204,143,0.3); }
.st-err { background: rgba(255,95,109,0.14); color: #ffb3ba; border-color: rgba(255,95,109,0.32); }
.st-off { background: rgba(255,176,32,0.12); color: #ffd894; border-color: rgba(255,176,32,0.28); }

.st-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.st-bar { flex: 1; height: 6px; background: rgba(122,135,155,0.18); border-radius: 4px; overflow: hidden; min-width: 80px; }
.st-bar > span { display: block; height: 100%; background: #4f8cff; }
.st-meta { font-size: 12px; color: #9aa6b8; margin-top: 4px; }
.pc-status { margin-top: 8px; }

.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-row {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 14px 16px; background: var(--bg-soft);
}
.job-main { flex: 1; min-width: 0; }
.job-title { font-weight: 600; font-size: 14px; }
.job-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.job-err { color: var(--danger); font-size: 12px; margin-top: 6px; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 92px; }
.job-time { color: var(--muted); font-size: 11.5px; }

.progress { height: 7px; border-radius: 6px; background: var(--border); margin-top: 9px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 6px; background: var(--grad); transition: width 0.4s; }
.progress-bar.st-ok { background: var(--success); }
.progress-bar.st-err { background: var(--danger); }
.progress-bar.st-off { background: var(--warn); }

/* 发送打印弹窗里的打印机选择 */
.picker-list { display: flex; flex-direction: column; gap: 9px; max-height: 280px; overflow: auto; }
.picker-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.picker-item:hover { border-color: #36425a; }
.picker-item.sel { border-color: var(--accent); background: var(--accent-soft); }
.pi-name { font-weight: 600; font-size: 14px; }
.pi-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pi-state { font-size: 12px; color: var(--text-dim); }

.empty-hint { color: var(--muted); font-size: 13.5px; padding: 10px 2px; text-align: center; }
.empty-hint a { color: var(--accent); }
.loading-inline { color: var(--muted); font-size: 13px; padding: 8px 2px; }
.loading-inline.err { color: var(--danger); }

/* 绑定打印机弹窗内品牌专属提示（如拓竹获取 Access Code 说明） */
.brand-hint { margin: 0 0 12px; padding: 10px 12px; background: rgba(88,166,255,.10); border: 1px solid rgba(88,166,255,.35); border-radius: 8px; font-size: 12.5px; line-height: 1.65; color: var(--text); }
.brand-hint b { color: #58a6ff; }

