/* 3D 特效面板（assets/features/effects）。只用设计令牌；薄荷色只给「放进画面」主按钮与焦点环；1px 细线、4/8 栅格。 */
.fx-overlay { z-index: var(--layer-stack-94); }
.fx-panel { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; }
.fx-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.fx-head h2 { margin: 0; font: 600 var(--text-lg)/1.2 var(--font-ui); letter-spacing: -.01em; outline: none; }
.fx-tabs-row { padding: var(--space-3) var(--space-6) 0; overflow-x: auto; }
.fx-tabs { flex-wrap: nowrap; width: max-content; min-width: 100%; }
.fx-tabs button { flex: 0 0 auto; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.fx-tabs > button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px var(--shadow-ink); }
.fx-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-4); padding: var(--space-4) var(--space-6); min-height: 0; overflow: hidden; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: max-content; gap: var(--space-2); align-content: start; overflow: auto; overscroll-behavior: contain; padding: 2px; }
.fx-card { min-height: 84px; align-content: start; padding: var(--space-3); }
.fx-card b { font: 600 var(--text-sm)/1.3 var(--font-ui); }
.fx-card small { color: var(--muted); font-size: var(--text-xs, 12px); line-height: 1.45; }
.fx-detail { display: grid; gap: var(--space-3); align-content: start; padding-left: var(--space-4); border-left: 1px solid var(--line); overflow: auto; }
.fx-detail h3 { margin: 0; font: 600 var(--text-md)/1.3 var(--font-ui); }
.fx-detail p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.fx-fields { display: grid; gap: var(--space-2); }
.fx-field { display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.fx-field--wide { grid-template-columns: 64px minmax(0, 1fr); }
.fx-field input[type="range"] { width: 100%; accent-color: var(--ink); }
.fx-field input[type="color"] { width: 40px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: none; }
.fx-field input[type="text"], .fx-field select { min-height: 32px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.fx-field output { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.fx-insert { justify-self: start; }
.fx-status { margin: 0; padding: 0 var(--space-6) var(--space-4); min-height: 20px; font-size: var(--text-sm); color: var(--muted); }
.fx-status[data-kind="error"] { color: var(--danger, #b42318); }
@media (max-width: 720px) {
  .fx-panel { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .fx-head, .fx-tabs-row, .fx-body { padding-left: var(--space-4); padding-right: var(--space-4); }
  .fx-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; overflow: auto; }
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .fx-detail { padding: var(--space-3) 0 0; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .fx-status { padding: 0 var(--space-4) var(--space-3); }
}
.fx-image { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.fx-file { min-width: 0; font-size: var(--text-xs, 12px); }
.fx-thumb { width: 56px; height: 32px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.fx-card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-2); background: #131922; }
.fx-card:has(.fx-card-thumb) small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-preview { min-width: 0; display: grid; gap: var(--space-2); }
.fx-preview-stage { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); background: #131922; }
.fx-preview-stage canvas { width: 100%; height: 100%; display: block; }
.fx-preview-controls { display: flex; align-items: center; gap: var(--space-2); }
.fx-preview-controls button { min-width: 48px; min-height: 40px; padding: var(--space-1) var(--space-2); font-size: var(--text-xs, 12px); }
.fx-preview-controls input { width: 100%; min-width: 0; min-height: 40px; accent-color: var(--ink); }
.fx-preview-message { color: var(--muted); font-size: var(--text-xs, 12px); line-height: 1.5; }
.fx-preview [hidden] { display: none; }
@media (max-width: 720px) {
  .fx-body { grid-template-rows: auto auto; }
  .fx-grid { max-height: 34dvh; overflow: auto; }
  .fx-card { min-height: 44px; }
  .fx-detail { overflow: visible; }
  .fx-card:has(.fx-card-thumb) small { display: none; }
  .fx-preview-stage { aspect-ratio: 16 / 9; }
}
