/* ═══════════════════════════════════════════
   智能创作 — 首页 / 智能生成 / 详细生成
   ═══════════════════════════════════════════ */

/* ── 积分胶囊 ── */
.cr-points {
  position: absolute; top: calc(var(--nav-h) + 20px); right: 32px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 500; color: var(--fg);
  z-index: 20;
}
.cr-points--gray { background: rgba(0,0,0,0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cr-points--white { background: var(--bg-card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
/* 智能生成页：积分胶囊斜向对齐（左下偏移，不贴右边缘） */
#page-create-smart .cr-points { top: calc(var(--nav-h) + 40px); right: 40px; }
.cr-points__label { color: var(--fg-muted); font-weight: 400; }
.cr-points__val { font-family: var(--font-display); }

/* ── 通用图标按钮 ── */
.cr-iconbtn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  font-size: 0.78rem; color: var(--fg);
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.cr-iconbtn:hover { border-color: var(--fg); }
.cr-iconbtn .icon-svg { width: 16px; height: 16px; color: var(--fg); }
.cr-iconcircle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--fg); background: transparent;
  border: 1px solid var(--border-strong);
  transition: all 0.15s;
}
.cr-iconcircle:hover { background: var(--bg-hover); border-color: var(--fg); }
.cr-iconcircle .icon-svg { width: 16px; height: 16px; color: var(--fg); }
/* 发送按钮：黑底白图标，悬停彝红点睛 */
.cr-send {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  transition: transform 0.15s, background 0.2s;
  flex-shrink: 0;
}
.cr-send:hover { background: var(--pop); transform: translateY(-1px); }
.cr-send .icon-svg { width: 20px; height: 20px; color: var(--bg); }
.cr-send:disabled { opacity: 0.4; pointer-events: none; }
/* 智能生成页：发送按钮与旁边的模式选择圆按钮同尺寸 */
.cr-chat__bar-right .cr-send { width: 32px; height: 32px; }
.cr-chat__bar-right .cr-send .icon-svg { width: 16px; height: 16px; }

/* ════════════ 首页 ════════════ */
#page-create { background: var(--bg); }
.cr-home {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + 80px) 32px 60px;
}
.cr-home__hero { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.cr-home__titlerow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.cr-home__logo { height: 40px; width: auto; filter: brightness(0); } /* 浅色模式：白 logo 转黑 */
[data-theme="dark"] .cr-home__logo { filter: none; } /* 深色模式：白 logo 直接可见 */
.cr-home__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 500; color: var(--fg); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* 模式切换下拉 */
.cr-switch { position: relative; display: inline-flex; align-items: center; }
.cr-switch__btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 2px;
  font-size: inherit; font-family: var(--font-display); font-weight: 500;
  color: var(--pop); background: none; border: none;
  cursor: pointer; transition: opacity 0.15s;
}
.cr-switch__btn:hover { opacity: 0.7; }
.cr-switch__btn .icon-svg { width: 0.7em; height: 0.7em; color: var(--pop); }
.cr-switch__panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 180px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px;
  display: none; z-index: 50;
}
.cr-switch__panel.open { display: block; }
.cr-switch__opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; font-size: 0.85rem; color: var(--fg-muted); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; }
.cr-switch__opt:hover { background: var(--bg-hover); color: var(--fg); }
.cr-switch__opt.active { color: var(--fg); font-weight: 500; }
.cr-switch__opt .icon-svg { width: 16px; height: 16px; color: var(--fg-muted); }

/* ── 输入框组件 (首页/detail 复用) ── */
.cr-input {
  width: 100%; background: var(--bg-soft);
  border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 16px 16px 10px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.25s;
}
.cr-input:focus-within {
  border-color: var(--fg); background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(20,18,15,0.08);
}
.cr-input__field {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--fg); font-size: 0.92rem; line-height: 1.6;
  resize: none; min-height: 28px; max-height: 160px;
  font-family: var(--font); scrollbar-width: none;
}
.cr-input__field::-webkit-scrollbar { display: none; }
.cr-input__field::placeholder { color: var(--fg-dim); }
.cr-input__bar { display: flex; align-items: center; gap: 8px; }
.cr-input__bar-left { display: flex; align-items: center; gap: 8px; }
.cr-input__bar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ── 附件预览条（参考图 chip：缩略图 + 文件名 + 移除） ── */
.cr-attachrow { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-attachchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-pill); font-size: 0.74rem; color: var(--fg-muted);
  animation: attachIn 0.25s var(--ease-emph);
}
@keyframes attachIn { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
.cr-attachchip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cr-attachchip__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-attachchip__x {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-size: 0.85rem; line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.cr-attachchip__x:hover { background: var(--bg-hover); color: var(--fg); }
.cr-attachchip.uploading { opacity: 0.55; }
.cr-attachchip.uploading img { animation: attachPulse 1.1s ease-in-out infinite; }
@keyframes attachPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* 灵感大厅（分享大厅合并于首页） */
.cr-inspire-hall { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }

/* ── 最近对话 ── */
.cr-recent { width: 100%; margin-top: 56px; }
.cr-recent__title { font-size: 1.2rem; font-weight: 500; color: var(--fg); margin-bottom: 14px; }
.cr-recent__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cr-newchat { display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: 0.82rem; font-weight: 500; color: var(--fg); background: none; border: none; cursor: pointer; transition: opacity 0.15s; }
.cr-newchat:hover { opacity: 0.6; }
.cr-recent__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cr-recent__card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); cursor: pointer; transition: all 0.2s; }
.cr-recent__card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.cr-recent__thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); display: block; }
.cr-recent__ph { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--bg-hover), var(--border)); display: flex; align-items: center; justify-content: center; color: var(--fg-dim); font-size: 0.8rem; }
.cr-recent__meta { padding: 10px 12px; }
.cr-recent__name { font-size: 0.82rem; font-weight: 500; color: var(--fg); }
.cr-recent__time { font-size: 0.72rem; color: var(--fg-muted); margin-top: 2px; }
.cr-recent__all { font-size: 0.82rem; color: var(--fg-muted); cursor: pointer; }
.cr-recent__all:hover { color: var(--fg); }
@media (max-width: 1100px) { .cr-recent__row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .cr-recent__row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cr-recent__row { grid-template-columns: 1fr; } }

/* ════════════ 智能生成 ════════════ */
#page-create-smart, #page-create-detail { padding-bottom: 0; }
#page-create-smart { background: var(--bg-soft); }
.cr-smart {
  display: grid; grid-template-columns: 380px 1fr; gap: 20px;
  height: calc(100vh - var(--nav-h)); padding: 16px 16px 16px;
}
/* 左侧竖状对话框 */
.cr-chat {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  height: 100%;
}
.cr-chat__msgs { flex: 1; overflow-y: auto; padding: 20px 18px; scrollbar-width: none; }
.cr-chat__msgs::-webkit-scrollbar { display: none; }
.cr-chat__empty { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 6px; }
.cr-chat__empty img { height: 36px; width: auto; margin-bottom: 18px; filter: brightness(0); }
[data-theme="dark"] .cr-chat__empty img { filter: none; }
.cr-chat__empty h3 { font-size: 1.5rem; font-weight: 500; color: var(--fg); margin-bottom: 6px; }
.cr-chat__empty p { font-size: 0.86rem; color: var(--fg-muted); }
.cr-msg { display: flex; margin-bottom: 14px; }
.cr-msg.user { justify-content: flex-end; }
.cr-msg .bubble { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 0.86rem; line-height: 1.6; }
.cr-msg.user .bubble { background: var(--fg); color: var(--bg); border-bottom-right-radius: 4px; }
.cr-msg.ai .bubble { background: var(--bg-soft); color: var(--fg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.cr-msg.ai .bubble img { max-width: 100%; border-radius: 8px; margin-top: 6px; }
/* 生成中：针线穿梭动画（Remotion 透明循环，白线 → 浅色底反转为深色） */
.gen-wait { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-muted); font-size: 0.84rem; }
.gen-wait__video { width: 34px; height: 34px; object-fit: contain; filter: invert(0.88); }
[data-theme="dark"] .gen-wait__video { filter: none; }
/* 底部输入栏（被外矩形包裹） */
.cr-chat__inputwrap { padding: 10px 12px 12px; background: var(--bg-card); }
.cr-chat__input {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 10px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.cr-chat__field { width: 100%; background: transparent; border: none; outline: none; color: var(--fg); font-size: 0.88rem; resize: none; min-height: 24px; max-height: 120px; font-family: var(--font); line-height: 1.5; scrollbar-width: none; }
.cr-chat__field::-webkit-scrollbar { display: none; }
.cr-chat__field::placeholder { color: var(--fg-dim); }
.cr-chat__bar { display: flex; align-items: center; gap: 6px; }
.cr-chat__bar-left { display: flex; gap: 6px; }
.cr-chat__bar-right { display: flex; gap: 6px; margin-left: auto; align-items: center; }

/* 右侧画布/结果区 */
.cr-canvas { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: auto; padding: 20px; }
.cr-canvas__empty { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--fg-dim); font-size: 0.88rem; }
.cr-canvas__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cr-canvas__card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-card); }
.cr-canvas__card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cr-canvas__card-cap { padding: 8px 10px; font-size: 0.76rem; color: var(--fg-muted); }
@media (max-width: 900px) { .cr-smart { grid-template-columns: 1fr; height: auto; } .cr-chat { height: 70vh; } .cr-canvas { height: auto; min-height: 200px; } }
@media (max-width: 768px) {
  .cr-home { padding: calc(var(--nav-h) + 40px) 16px 40px; }
  .mode-chip { min-width: 90px; padding: 10px 6px; }
  .mode-chip__name { font-size: 0.78rem; }
}
@media (max-width: 500px) {
  .cr-home { padding: calc(var(--nav-h) + 24px) 12px 32px; }
  .mode-chip { min-width: 70px; padding: 8px 4px; }
  .mode-chip__name { font-size: 0.72rem; }
  .cr-points { top: calc(var(--nav-h) + 8px); right: 12px; font-size: 0.72rem; padding: 5px 10px; }
  .cr-input { padding: 12px 10px 8px; }
  .cr-chat__inputwrap { padding: 8px; }
  .cr-canvas__grid { grid-template-columns: 1fr; }
  .cr-iconbtn { font-size: 0.7rem; padding: 0 8px; }
  .cr-iconbtn span { display: none; }
  #page-create-smart .cr-points { top: calc(var(--nav-h) + 16px); right: 16px; }
}

/* ════════════ 详细生成 ════════════ */
#page-create-detail { background: var(--bg-soft); }
.cr-detail { display: flex; height: calc(100vh - var(--nav-h)); overflow: hidden; }

/* 侧栏容器（左/右）+ 折叠箭头 */
.cr-side { display: flex; flex-shrink: 0; align-items: stretch; position: relative; }
.cr-side--left { flex-direction: row; }
.cr-side--right { flex-direction: row; }
.cr-side > .cr-panel { transition: width 0.32s var(--ease), opacity 0.28s; overflow: hidden; min-width: 0; }
.cr-side--left .cr-panel { width: 240px; border-right: 1px solid var(--border); }
.cr-side--right .cr-panel { width: 280px; border-left: 1px solid var(--border); }
.cr-side[data-open="false"] > .cr-panel { width: 0; opacity: 0; border: none; }

/* 折叠按钮：默认隐藏，侧栏 hover 时显示 + 被动示意动画 */
.cr-toggle {
  width: 22px; flex-shrink: 0; position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  opacity: 0; transition: opacity 0.2s; z-index: 5;
}
.cr-side:hover .cr-toggle { opacity: 1; }
.cr-toggle__btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted); transition: color 0.15s, transform 0.15s;
}
.cr-toggle__btn .icon-svg { width: 13px; height: 13px; color: var(--fg-muted); }
.cr-toggle__btn:hover { color: var(--fg); }
.cr-toggle__btn:hover .icon-svg { color: var(--fg); }
.cr-side:hover .cr-toggle__btn { animation: cr-nudge 1.4s ease-in-out infinite; }
.cr-side--left:hover .cr-toggle__btn { animation-name: cr-nudge-l; }
.cr-side--right:hover .cr-toggle__btn { animation-name: cr-nudge-r; }
@keyframes cr-nudge-l { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }
@keyframes cr-nudge-r { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
/* 折叠后箭头常驻（便于展开） */
.cr-side[data-open="false"] .cr-toggle { opacity: 1; }
.cr-side[data-open="false"] .cr-toggle__btn { animation: none; }
/* 两个方向图标只显示当前态一个 */
.cr-toggle__icon { display: none; }
.cr-side[data-open="true"] .cr-toggle__icon--collapse { display: block; }
.cr-side[data-open="false"] .cr-toggle__icon--expand { display: block; }

/* 左侧历史 */
.cr-history { background: var(--bg-card); padding: 14px 10px; overflow-y: auto; height: 100%; scrollbar-width: none; }
.cr-history::-webkit-scrollbar { display: none; }
.cr-history__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; }
.cr-history__title { font-size: 0.85rem; font-weight: 500; color: var(--fg); }
.cr-history__add { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cr-history__add:hover { background: var(--bg-hover); }
.cr-history__item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius); cursor: pointer; transition: background 0.15s; position: relative; }
.cr-history__item:hover { background: var(--bg-hover); }
.cr-history__item.active { background: var(--bg-hover); border-radius: var(--radius); }
.cr-history__item.pinned { order: -1; }
.cr-history__thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); flex-shrink: 0; }
.cr-history__info { flex: 1; min-width: 0; }
.cr-history__name { font-size: 0.8rem; color: var(--fg); outline: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-history__name[contenteditable="true"] { background: var(--bg); border: 1px solid var(--border-strong); border-radius: 3px; padding: 1px 4px; white-space: normal; overflow: visible; }
.cr-history__time { font-size: 0.66rem; color: var(--fg-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-history__menu { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); opacity: 0; transition: opacity 0.15s, background 0.15s; }
.cr-history__item:hover .cr-history__menu { opacity: 1; }
.cr-history__menu:hover { background: rgba(128,128,128,0.18); color: var(--fg); }
.cr-history__menu .icon-svg { width: 14px; height: 14px; color: inherit; }

/* 主区 */
.cr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.cr-main__list { flex: 1; overflow-y: auto; padding: 20px 24px; scrollbar-width: none; }
.cr-main__list::-webkit-scrollbar { display: none; }
.cr-gen { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.cr-gen__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cr-gen__prompt {
  flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 0.88rem; color: var(--fg); line-height: 1.5;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}
.cr-gen__chips { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr-gen__chip { font-size: 0.7rem; color: var(--fg-muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 8px; border-radius: var(--radius-sm); white-space: nowrap; }
.cr-gen__img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: var(--bg-soft); }
.cr-gen__img-ph { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #e0e0e0, #c8c8c8); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--fg-dim); font-size: 0.8rem; }
.cr-gen__actions { margin-top: 10px; display: flex; gap: 8px; }
/* 底部输入（全宽，参数已移至右侧栏） */
.cr-detail__inputwrap { padding: 12px 24px 18px; border-top: 1px solid var(--border); background: var(--bg-soft); }

/* 右侧参数侧栏 */
.cr-params { background: var(--bg-card); padding: 16px 14px; overflow-y: auto; height: 100%; scrollbar-width: none; }
.cr-params::-webkit-scrollbar { display: none; }
.cr-params__head { font-size: 0.85rem; font-weight: 500; color: var(--fg); margin-bottom: 12px; }
.cr-params__group { margin-bottom: 12px; }
.cr-params__label { font-size: 0.72rem; color: var(--fg-muted); margin-bottom: 4px; }
.cr-params select, .cr-params input { width: 100%; padding: 7px 10px; font-size: 0.78rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; color: var(--fg); transition: border-color 0.15s, background 0.15s; }
.cr-params select:focus, .cr-params input:focus { outline: none; border-color: var(--fg); background: var(--bg-card); }

/* 自定义下拉（替代原生 select 的方框选项列表） */
.cr-cselect { position: relative; }
.cr-cselect__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; font-size: 0.78rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; color: var(--fg); cursor: pointer; transition: border-color 0.15s; }
.cr-cselect__btn:hover { border-color: var(--border-strong); }
.cr-cselect__caret { font-size: 0.68rem; color: var(--fg-muted); margin-left: 6px; }
.cr-cselect__panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); padding: 4px; z-index: 60;
  display: none; max-height: 220px; overflow-y: auto; scrollbar-width: none;
}
.cr-cselect__panel::-webkit-scrollbar { display: none; }
.cr-cselect__panel.open { display: block; }
.cr-cselect__opt { padding: 7px 10px; font-size: 0.78rem; color: var(--fg); border-radius: 6px; cursor: pointer; transition: background 0.12s; }
.cr-cselect__opt:hover { background: var(--bg-hover); }
.cr-cselect__opt.active { background: var(--bg-hover); font-weight: 500; }

/* 模式列表选中标记：黑色圆角矩形 + √ */
.cr-check { width: 18px; height: 18px; border-radius: 6px; background: var(--fg); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; flex-shrink: 0; margin-left: 4px; }
.cr-check::after { content: '✓'; }
.cr-switch__opt--checked { color: var(--fg) !important; font-weight: 500; }
.cr-params__cost { font-size: 0.72rem; color: var(--fg-dim); margin-top: 6px; }
@media (max-width: 900px) { .cr-side--left .cr-panel, .cr-side--right .cr-panel { display: none; } .cr-toggle { display: none; } }

