:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-subtle: #f1f3f6;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #111827;
  --primary-hover: #1f2937;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 10px;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

/* ---------------- Topbar ---------------- */
.topbar {
  min-height: 56px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  flex-shrink: 0;
  z-index: 20;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 220px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.deck-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 240px;
  flex: 0 1 auto;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 26px 5px 8px;
  font-size: 14px;
  font-weight: 600;
  height: 32px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.select-wrap select:hover {
  background: var(--surface-subtle);
  border-color: var(--border);
}

.select-chevron {
  position: absolute;
  right: 7px;
  color: var(--text-muted);
  pointer-events: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------------- Buttons ---------------- */
button, label.btn-secondary, label.mini-ghost-btn, label.btn-ghost-dark {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 7px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-0.5px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary.small { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-primary.large { padding: 10px 18px; font-size: 14px; border-radius: 10px; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  padding: 7px 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-subtle); }
.btn-secondary.large { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.btn-ghost:hover { background: var(--surface-subtle); color: var(--text); }
.btn-ghost.small { padding: 5px 9px; font-size: 12px; }

.btn-danger {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.btn-danger:hover { background: rgba(220, 38, 38, 0.14); }

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-subtle); color: var(--text); border-color: var(--border); }
.icon-btn.small { width: 26px; height: 26px; }

.status-pill {
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.status-pill:hover { background: #e8ecf1; color: var(--text); }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  flex-shrink: 0;
}
.status-pill.online .status-dot { background: var(--success); }

.count-chip {
  background: rgba(255, 255, 255, 0.18);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* ---------------- Workspace ---------------- */
.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

.workspace.is-empty .filmstrip-panel {
  display: none;
}

.workspace.drag-over::after {
  content: "松开即可批量导入 PPT 大屏照片";
  position: absolute;
  inset: 14px;
  border: 2px dashed var(--accent);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  z-index: 50;
  pointer-events: none;
}

/* ---------------- Filmstrip ---------------- */
.filmstrip-panel {
  width: 244px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.filmstrip-top {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.filmstrip-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.muted-count {
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
}

.filmstrip-quick-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-primary-btn {
  background: var(--primary);
  color: #fff;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.mini-primary-btn:hover { background: var(--primary-hover); }

.mini-ghost-btn {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.mini-ghost-btn:hover { background: #e5e8ee; color: var(--text); }

.filmstrip-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-thumb-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.slide-thumb-card:hover { border-color: var(--border-strong); }
.slide-thumb-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.thumb-img-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}
.thumb-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-num {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
}
.thumb-status {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 600;
}
.thumb-status.ready { background: rgba(16, 185, 129, 0.92); color: #fff; }
.thumb-status.processing, .thumb-status.queued { background: rgba(245, 158, 11, 0.92); color: #fff; }
.thumb-status.error { background: rgba(220, 38, 38, 0.92); color: #fff; }

.thumb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface);
}
.thumb-btns {
  display: flex;
  gap: 3px;
}
.thumb-btns button {
  background: transparent;
  color: var(--text-muted);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 11px;
}
.thumb-btns button:hover { background: var(--surface-subtle); color: var(--text); }

/* ---------------- Center Stage ---------------- */
.stage-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

.stage-toolbar {
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  background: var(--surface-subtle);
  padding: 3px;
  border-radius: 9px;
}
.segmented button {
  background: transparent;
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}
.segmented button.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  position: relative;
}

/* ---------------- Hero Empty State ---------------- */
.hero-card {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hero-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-frame {
  position: relative;
  width: 148px;
  height: 86px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
}
.hero-corner.tl { top: -2px; left: -2px; border-width: 2.5px 0 0 2.5px; border-radius: 4px 0 0 0; }
.hero-corner.tr { top: -2px; right: -2px; border-width: 2.5px 2.5px 0 0; border-radius: 0 4px 0 0; }
.hero-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 4px; }
.hero-corner.br { bottom: -2px; right: -2px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 4px 0; }

.hero-slide-mock {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.mock-bar {
  width: 46%;
  height: 7px;
  border-radius: 4px;
  background: var(--primary);
}
.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mock-lines span {
  height: 4px;
  border-radius: 3px;
  background: #cbd5e1;
}
.mock-lines span:nth-child(1) { width: 88%; }
.mock-lines span:nth-child(2) { width: 72%; }
.mock-lines span:nth-child(3) { width: 54%; background: #93c5fd; }

.hero-card h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 24px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-steps {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.hero-steps strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 2px;
}
.hero-steps .sep { color: #cbd5e1; }

/* ---------------- 16:9 Slide Canvas ---------------- */
.slide-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.slide-base-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.blocks-overlay {
  position: absolute;
  inset: 0;
}

.text-block-box {
  position: absolute;
  border: 1.5px dashed rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.04);
  cursor: move;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.25;
  padding: 2px 4px;
  border-radius: 3px;
}
.text-block-box:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.09);
}
.text-block-box.selected {
  border: 2px solid var(--accent);
  background: rgba(37, 99, 235, 0.11);
  z-index: 10;
}

.processing-banner {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  z-index: 20;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(15, 23, 42, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Corner Editor ---------------- */
.corner-editor-wrap {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.corner-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 66vh;
  user-select: none;
  touch-action: none;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.corner-stage img {
  display: block;
  max-width: 100%;
  max-height: 66vh;
  border-radius: 10px;
}

.corner-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.corner-handle {
  position: absolute;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
  touch-action: none;
}
.corner-handle:active { cursor: grabbing; transform: scale(1.15); }

.corner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.corner-footer-btns { display: flex; gap: 8px; }

.stage-statusbar {
  padding: 7px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------------- Right Inspector ---------------- */
.inspector-panel {
  width: 276px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.inspector-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inspector-header h3 { font-size: 13px; font-weight: 600; }
.inspector-head-actions { display: flex; align-items: center; gap: 6px; }

.inspector-form {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field select,
.field textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.field textarea { resize: vertical; line-height: 1.5; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.color-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}
.color-wrap input[type="color"] {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  height: 34px;
  cursor: pointer;
}

/* ---------------- Modals ---------------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preset-btn {
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.modal-desc { line-height: 1.6; color: var(--text-secondary); font-size: 13.5px; }
.modal-tip { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.lan-url-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
}
.lan-url-box code { color: var(--accent); font-size: 13.5px; font-weight: 600; word-break: break-all; }

/* ---------------- Live Camera Modal ---------------- */
.camera-shell {
  width: 100%;
  max-width: 880px;
  height: min(92dvh, 700px);
  background: #090d16;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.camera-topbar {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.camera-title { font-weight: 500; color: #e2e8f0; }
.camera-count {
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
}
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.18); }
.btn-ghost-dark.small { padding: 5px 10px; font-size: 12px; }

.camera-view {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-guide-frame {
  position: absolute;
  width: 86%;
  aspect-ratio: 16 / 9;
  max-height: 82%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  pointer-events: none;
}
.camera-guide-frame span {
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
}
.camera-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s;
}
.camera-flash.active { opacity: 0.7; }

.camera-controls {
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shutter-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.35);
}
.shutter-btn:active { transform: scale(0.92); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--primary);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .topbar {
    padding: 8px 12px;
  }
  .workspace {
    flex-direction: column;
    overflow-y: auto;
  }
  .filmstrip-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .filmstrip-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px 10px;
  }
  .slide-thumb-card {
    min-width: 148px;
    max-width: 148px;
    flex-shrink: 0;
  }
  .stage-viewport {
    padding: 16px;
  }
  .hero-card {
    padding: 26px 18px 22px;
    border-radius: 16px;
  }
  .hero-card h1 { font-size: 18px; }
  .inspector-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 320px;
  }
}
