/* Fonleader AI 创作工作室 · 网页版「素材制作」新模块样式
 *
 * 覆盖四块新功能：图片编辑 / 视频编辑 / 无限画布 / 爆款参考改编。
 * 口径：
 *  - 只新增本文件，不改 studio.css 既有规则（避免影响登录页与三件套）；
 *  - 令牌全部沿用 studio.css 的 :root（--bg-panel / --accent / --border...）；
 *  - 视觉与桌面版不必一致，但每个功能位都要有可点、可读、可回退的呈现。
 */

/* ------------------------------------------------------------------ *
 * 通用块与弹窗（studio-common.js 的 section() / openDialog() 在用）
 * ------------------------------------------------------------------ */

.studio-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.studio-block-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.studio-block-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.studio-block-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
}

.studio-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.studio-dialog {
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  max-height: min(80vh, 720px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.studio-dialog.is-wide {
  width: min(880px, 100%);
}

.studio-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.studio-dialog-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.studio-dialog-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.studio-dialog-close:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

.studio-dialog-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.studio-dialog-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------------ *
 * 素材模块外壳：左侧工具轨 + 中间画布 + 右侧参数
 * ------------------------------------------------------------------ */

.asset-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 0;
}

.asset-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.asset-topbar .grow {
  flex: 1;
}

.asset-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.asset-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.asset-main {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 0;
}

.asset-rail {
  width: 236px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-right: 1px solid var(--border);
  background: var(--bg-panel);
  overflow-y: auto;
}

.asset-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
}

.asset-side {
  width: 300px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-left: 1px solid var(--border);
  background: var(--bg-panel);
  overflow-y: auto;
}

.asset-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* 工具按钮（左轨） */
.asset-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.asset-tool:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

.asset-tool.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.asset-tool-icon {
  width: 20px;
  flex: none;
  text-align: center;
  font-size: 14px;
  opacity: 0.92;
}

.asset-tool-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.asset-tool-label {
  font-size: 12px;
  font-weight: 500;
}

.asset-tool-desc {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 通用小按钮排 */
.asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-chip {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
}

.asset-chip:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

.asset-chip.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-row.is-wrap {
  flex-wrap: wrap;
}

.asset-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
}

.asset-note.is-warn {
  color: var(--warn);
}

.asset-note.is-error {
  color: var(--danger);
}

.asset-slider {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.asset-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.asset-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.asset-check input {
  accent-color: var(--accent);
}

.asset-color {
  width: 34px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

/* 色块 */
.asset-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.asset-swatch {
  height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.asset-swatch.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ------------------------------------------------------------------ *
 * 图片编辑
 * ------------------------------------------------------------------ */

.image-stage-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%) 0 0 / 24px 24px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%) 12px 12px / 24px 24px,
    var(--bg-app);
}

.image-canvas-host {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.image-canvas-host .tui-image-editor-canvas-container,
.image-canvas-host .lower-canvas,
.image-canvas-host .upper-canvas {
  border-radius: var(--radius-sm);
}

.image-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
  padding: 30px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.image-empty:hover {
  border-color: var(--accent-border);
  color: var(--text-secondary);
}

.image-empty strong {
  font-size: 14px;
  color: var(--text-secondary);
}

.image-source-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}

.image-source-item {
  position: relative;
  flex: none;
  width: 68px;
  height: 68px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  overflow: hidden;
  cursor: pointer;
}

.image-source-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-source-item.is-active {
  border-color: var(--accent);
}

.image-source-item .remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.image-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.image-progress-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  overflow: hidden;
}

.image-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 0.18s ease;
}

/* 新建画布 / 导出换算表单 */
.asset-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.asset-size-summary {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------------ *
 * 视频编辑
 * ------------------------------------------------------------------ */

.video-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.video-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.video-library {
  width: 214px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid var(--border);
  background: var(--bg-panel);
  overflow-y: auto;
}

.video-library-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.video-library-tab {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}

.video-library-tab.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.video-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
}

.video-asset:hover {
  border-color: var(--accent-border);
}

.video-asset-thumb {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
}

.video-asset-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-asset-name {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-asset-kind {
  font-size: 10px;
  color: var(--text-muted);
}

.video-center {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}

.video-player-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #000;
  position: relative;
}

.video-player {
  max-width: 100%;
  max-height: 100%;
  background: #000;
  border-radius: var(--radius-sm);
}

.video-player-empty {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}

.video-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}

.video-timecode {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 108px;
  text-align: center;
}

.video-params {
  width: 274px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-left: 1px solid var(--border);
  background: var(--bg-panel);
  overflow-y: auto;
}

.video-timeline {
  flex: none;
  max-height: 232px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  overflow: hidden;
}

.video-timeline-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
}

.video-tracks {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.video-track {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.video-track-head {
  width: 76px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
}

.video-track-lane {
  flex: 1;
  position: relative;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  overflow: hidden;
}

.video-clip {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.28), rgba(34, 211, 238, 0.12));
  color: var(--text);
  font-size: 10px;
  padding: 2px 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.video-clip.is-audio {
  border-color: rgba(244, 114, 182, 0.5);
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.26), rgba(244, 114, 182, 0.1));
}

.video-clip.is-text {
  border-color: rgba(250, 204, 21, 0.5);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.24), rgba(250, 204, 21, 0.1));
}

.video-clip.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.video-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--danger);
  pointer-events: none;
  z-index: 3;
}

.video-ruler {
  position: relative;
  height: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  color: var(--text-muted);
}

.video-ruler span {
  position: absolute;
  transform: translateX(-50%);
  bottom: 2px;
}

/* ------------------------------------------------------------------ *
 * 无限画布
 * ------------------------------------------------------------------ */

.canvas-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.canvas-toolbar .grow {
  flex: 1;
}

.canvas-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0f172a;
  cursor: grab;
  touch-action: none;
}

.canvas-stage.is-panning {
  cursor: grabbing;
}

.canvas-stage.is-linking {
  cursor: crosshair;
}

.canvas-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-empty-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}

.canvas-node-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 268px;
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.94);
  overflow-y: auto;
  backdrop-filter: blur(6px);
}

.canvas-node-panel.is-hidden {
  display: none;
}

.canvas-minimap {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 180px;
  height: 118px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 10, 0.9);
  cursor: pointer;
}

.canvas-zoombar {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 10, 0.9);
  font-size: 11px;
  color: var(--text-secondary);
}

.canvas-zoombar input[type="number"] {
  width: 62px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-input);
  color: var(--text);
  font-size: 11px;
}

.canvas-menu {
  position: absolute;
  z-index: 20;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.canvas-menu.is-hidden {
  display: none;
}

.canvas-menu button {
  padding: 7px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.canvas-menu button:hover {
  background: var(--bg-input);
  color: var(--text);
}

.canvas-status {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: 60%;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(10, 10, 10, 0.86);
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.canvas-status.is-visible {
  opacity: 1;
}

.canvas-status.is-error {
  color: #fca5a5;
}

.canvas-status.is-success {
  color: #86efac;
}

/* ------------------------------------------------------------------ *
 * 爆款参考改编
 * ------------------------------------------------------------------ */

.trend-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  gap: 14px;
}

.trend-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
}

.trend-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.trend-step.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.trend-step.is-done {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--ok);
}

.trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.trend-frame-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.trend-frame {
  position: relative;
  flex: none;
  width: 132px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-input);
}

.trend-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.trend-frame-meta {
  padding: 4px 6px;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.trend-keywords {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.trend-keyword-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--bg-input);
}

.trend-keyword-group h5 {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.trend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trend-chip {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-secondary);
}

.trend-directions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.trend-direction {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  text-align: left;
  cursor: pointer;
}

.trend-direction:hover {
  border-color: var(--accent-border);
}

.trend-direction.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.trend-direction strong {
  font-size: 12px;
  color: var(--text);
}

.trend-direction span {
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-muted);
}

.trend-task {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.7;
}

/* ------------------------------------------------------------------ *
 * 响应式：窄屏把三栏压成单栏（只新增媒体查询，不动 studio.css）
 * ------------------------------------------------------------------ */

@media (max-width: 1024px) {
  .asset-main {
    flex-direction: column;
  }

  .asset-rail,
  .asset-side {
    width: 100%;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--border);
    max-height: 240px;
  }

  .video-body {
    flex-direction: column;
  }

  .video-library,
  .video-params {
    width: 100%;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--border);
    max-height: 220px;
  }

  .trend-grid {
    grid-template-columns: 1fr;
  }

  .canvas-node-panel {
    width: 240px;
  }
}

@media (max-width: 767px) {
  .asset-form-grid {
    grid-template-columns: 1fr;
  }

  .canvas-minimap {
    width: 132px;
    height: 88px;
  }

  .image-source-item {
    width: 56px;
    height: 56px;
  }

  /* iOS 上输入框字号小于 16px 会触发自动放大 */
  .canvas-zoombar input[type="number"],
  .asset-slider input[type="range"] {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .asset-swatches {
    grid-template-columns: repeat(4, 1fr);
  }

  .trend-keywords,
  .trend-directions {
    grid-template-columns: 1fr;
  }
}
