/* Styles propres à TiinyComics. La base commune avec TiinyPaint est dans styles.css. */

.grow-btn { flex: 1; }
.row.wrap { flex-wrap: wrap; gap: 5px; }
.field.num.tiny { width: 58px; min-height: 30px; padding: 3px 7px; }
.title-field { width: 190px; min-height: 34px; font-weight: 600; }
.project-box { position: relative; }

/* Menus déroulants (projets, export, gabarits, références) */
.menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 25, 30, .92);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.menu-item { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--hover); }
.menu-item:disabled { opacity: .45; cursor: not-allowed; }
.menu-item svg.icon { width: 15px; height: 15px; }
.menu-item .muted { margin-left: auto; padding-left: 12px; font-size: 11px; }
.menu-item.current { font-weight: 600; }
.menu-sep { margin: 4px 2px; border-top: 1px solid var(--line); }
.menu-title { margin: 4px 8px 2px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.template-menu { left: 0; right: auto; display: grid; grid-template-columns: repeat(4, 68px); gap: 6px; padding: 10px; min-width: 0; }
.template-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 4px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: 10px/1.2 system-ui, sans-serif; cursor: pointer; }
.template-btn:hover { background: var(--hover); color: var(--text); border-color: var(--line); }
.template-btn svg { display: block; width: 46px; height: 62px; }
.template-btn rect { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.ref-menu { position: fixed; top: 0; right: auto; width: 300px; max-height: 60vh; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ref-menu .menu-title, .ref-menu .hint { grid-column: 1 / -1; }
.ref-pick { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .05); cursor: pointer; }
.ref-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ref-pick.on { border-color: var(--active); }
.ref-pick span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 4px; background: rgba(0, 0, 0, .6); color: var(--text); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Barre de page */
.page-bar { position: sticky; top: var(--top-h); z-index: 10; flex: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 6px 8px; white-space: nowrap; }
.page-bar .field.num { width: 84px; }
.bar-sep { width: 1px; height: 22px; background: var(--line); }
.page-nav { display: flex; align-items: center; gap: 2px; }
.page-bar .picker.field { min-height: 30px; }

/* Vue de page */
.viewport { position: relative; flex: 1; width: 100%; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 8px 0 22px; }
.viewport.fit { justify-content: center; overflow: hidden; padding: 4px 0; }
.spread { display: flex; gap: 0; }
.page {
  position: relative;
  flex: none;
  background: #fdfcf8;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  border-radius: 2px;
  user-select: none;
}
.viewport.webtoon .page { border-radius: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 24px 70px rgba(0, 0, 0, .45); }
.viewport.webtoon .page + .page { margin-top: 22px; }
.cell {
  position: absolute;
  overflow: hidden;
  background: #ecebe6;
  cursor: pointer;
}
.cell::before { content: ""; position: absolute; inset: 0; z-index: 1; border: var(--bw, 2px) solid #111; pointer-events: none; }
.cell.no-border::before { border-color: transparent; }
.cell.has-image { background: #fff; }
.cell img { position: absolute; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.cell.selected { box-shadow: 0 0 0 3px var(--active), 0 0 26px rgba(74, 222, 128, .55); z-index: 2; }
.cell.drop-target { box-shadow: 0 0 0 3px #facc15; z-index: 2; }
.cell.dragging { opacity: .55; }
.cell-num { position: absolute; left: 7px; top: 7px; z-index: 2; min-width: 20px; padding: 1px 6px; border-radius: 6px; background: rgba(17, 17, 17, .78); color: #fff; font-size: 11px; font-weight: 600; text-align: center; pointer-events: none; }
.cell-text { position: absolute; inset: 32px 12px 12px; overflow: hidden; color: #55585c; font-size: 12px; line-height: 1.35; pointer-events: none; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.cell-text.empty { color: #8a8d91; font-style: italic; }
.cell.previewing img { filter: blur(2px); opacity: .9; }
.cell.rendering::after { content: ""; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 3px var(--active); animation: glow-line 1.3s ease-in-out infinite; pointer-events: none; }
.cell-badge { position: absolute; right: 7px; bottom: 7px; z-index: 2; padding: 1px 6px; border-radius: 6px; background: rgba(17, 17, 17, .72); color: #fff; font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.cell.has-image.uncovered { background: repeating-linear-gradient(45deg, rgba(255, 0, 255, .3) 0 8px, #f6e9f6 8px 16px); }
.cell-uncovered { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(255, 0, 255, .22) 0 8px, transparent 8px 16px); }
.cell-img-frame { position: absolute; z-index: 1; border: 1px dashed rgba(74, 222, 128, .9); pointer-events: none; }
.mode-frame .cell.selected.has-image { cursor: grab; }
.mode-frame .cell.selected.has-image.panning { cursor: grabbing; }
.divider { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; }
.divider.row { cursor: col-resize; }
.divider.col { cursor: row-resize; }
.divider::after { content: ""; border-radius: 3px; background: var(--active); opacity: 0; transition: opacity .15s; }
.divider.row::after { width: 4px; height: min(60px, 40%); }
.divider.col::after { height: 4px; width: min(60px, 40%); }
.divider:hover::after, .divider.active::after { opacity: .9; }
.mode-frame .divider { pointer-events: none; }
.strip-handle { position: absolute; left: 0; right: 0; bottom: -16px; z-index: 4; height: 16px; cursor: ns-resize; display: flex; justify-content: center; align-items: center; }
.strip-handle::after { content: ""; width: 80px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.strip-handle:hover::after, .strip-handle.active::after { background: var(--active); }

/* Pages et bibliothèque */
.page-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; align-content: start; }
.page-list.rtl { direction: rtl; }
.page-list.webtoon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-thumb { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 0; border: 0; background: none; color: var(--muted); font: 11px system-ui, sans-serif; cursor: pointer; direction: ltr; }
.page-thumb .mini { position: relative; width: 100%; background: #fdfcf8; border-radius: 2px; outline: 2px solid transparent; outline-offset: 2px; overflow: hidden; }
.page-thumb.current .mini { outline-color: var(--active); }
.page-thumb:hover .mini { outline-color: var(--line-strong); }
.page-thumb.current:hover .mini { outline-color: var(--active); }
.page-thumb.drop-target .mini { outline-color: #facc15; }
.page-thumb.current { color: var(--text); font-weight: 600; }
.mini-cell { position: absolute; background: #d9d8d2; overflow: hidden; }
.mini-cell img { position: absolute; max-width: none; }
#storyPanel textarea { resize: vertical; }
.thumb-name { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; padding: 3px 6px; border: 0; background: rgba(0, 0, 0, .66); color: var(--text); font: 11px system-ui, sans-serif; outline: none; }
.thumb-name:focus { background: rgba(0, 0, 0, .85); }
.thumb-name::placeholder { color: var(--muted); }
.gallery.library { flex: none; }

/* Éditeur de case */
.controls .section.grow { min-height: 120px; }
.controls .section.grow textarea { min-height: 96px; }
.enhanced { min-height: 120px; resize: vertical; font-size: 12px; }
.context-strip .ref, .context-strip .ref-open { width: 46px; }
.context-strip .ref-open { height: 46px; }
.ref-open.text-only { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 10px; }
.ref-add { width: 58px; height: 58px; padding: 0; border: 1px dashed var(--line-strong); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ref-add:hover { background: var(--hover); color: var(--text); }
.versions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.version { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .05); cursor: pointer; }
.version img { display: block; width: 100%; height: 100%; object-fit: cover; }
.version.current { border-color: var(--active); }
.version span { position: absolute; left: 2px; bottom: 2px; padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .72); color: var(--text); font-size: 9px; }
.pill:disabled { opacity: .38; cursor: not-allowed; }
.pill:disabled:hover { background: transparent; }
#panelTitle { font-size: 14px; }

/* Chaîne de modèles, à la place du graphe de TiinyPaint : trois blocs, sans flèches */
.chain { z-index: 30; display: flex; align-items: stretch; gap: 10px; padding: 0; }
.chain .node { position: relative; flex: 1; min-width: 0; min-height: 0; margin: 0; padding: 4px 10px; }
.chain .node-row { min-height: 48px; }
.chain .node-body { position: absolute; left: 0; bottom: calc(100% + 8px); width: 330px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22, 25, 30, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); max-height: 62vh; }
.chain .node-model .node-body { left: auto; right: 0; }
.chain .node:has(.node-body:not([hidden])) { background: var(--node); box-shadow: none; }
.chain .node-model { flex: 1.35; }
.node-tag { flex: none; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.node.off { border-style: dashed; }
.node.off .node-row > .icon-slot { opacity: .5; }

/* Mise en page : la barre du haut, la chaîne et les colonnes latérales sont fixes ; la zone centrale défile
   avec le document, et c'est la barre de défilement de la fenêtre, à droite, qui sert. */
:root { --gap: 10px; --top-h: 84px; --bottom-h: 80px; --right-w: 340px; }
html, body { height: auto; min-height: 100%; }
body { display: block; padding: 0; overflow: auto; }
.topbar { position: fixed; top: var(--gap); left: var(--gap); right: var(--gap); z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.topbar-side, .topbar-center { display: flex; align-items: center; gap: 8px 14px; min-width: 0; }
.topbar-center { gap: 8px; }
.topbar-side.end { justify-content: flex-end; }
.chain { position: fixed; left: var(--gap); right: var(--gap); bottom: var(--gap); }
.side { position: fixed; top: var(--top-h); bottom: var(--bottom-h); z-index: 20; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }
.side-left { left: var(--gap); width: var(--left-w); }
.side-right { right: var(--gap); width: var(--right-w); }
.stage {
  min-height: 100vh;
  padding: var(--top-h) calc(var(--right-w) + 2 * var(--gap)) var(--bottom-h) calc(var(--left-w) + 2 * var(--gap));
  gap: var(--gap);
}
/* Page ajustée : elle tient dans la fenêtre, rien ne défile. Zoomée ou webtoon : la fenêtre défile. */
.stage:has(.viewport.fit) { height: 100vh; overflow: clip; }
.viewport.webtoon, .viewport.zoomed { flex: none; overflow: visible; align-items: safe center; padding-bottom: 40px; }
.viewport.webtoon .page { scroll-margin-top: calc(var(--top-h) + 64px); }
.status { position: sticky; bottom: var(--bottom-h); flex: none; }
.stage:not(:has(.viewport.fit)) .status { z-index: 5; padding: 2px 12px; border-radius: 8px; background: rgba(12, 14, 18, .72); }
/* Colonne repliée : la page s'étend jusqu'au bord ; la barre de page reste à côté des en-têtes repliés. */
body.left-collapsed .stage { padding-left: var(--gap); }
body.right-collapsed .stage { padding-right: var(--gap); }
body.left-collapsed .side-left, body.right-collapsed .side-right { bottom: auto; }
.zoom-label { min-width: 58px; justify-content: center; font-variant-numeric: tabular-nums; }

/* Blocs repliables. Repliés, leurs en-têtes se rangent côte à côte en haut de la colonne. */
.block-head h2 { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.block-head h2 > span[data-i18n], #panelTitle { overflow: hidden; text-overflow: ellipsis; }
.block-head .section-actions { flex: none; }
.block-body { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.block.collapsed .block-body { display: none; }
.side-inline { flex: none; display: flex; gap: var(--gap); min-width: 0; }
.side-inline:empty { display: none; }
.side-inline > .block { flex: 1 1 auto; min-width: 0; }
.side > .block { min-height: 0; }
.side > #libraryPanel, .side > #panelEditor { flex: 1 1 0; }
.side > #pagesPanel { flex: 0 1 auto; max-height: 44%; }
.side > #storyPanel { flex: 0 1 auto; max-height: 50%; }
.side:not(:has(> #libraryPanel)) > #storyPanel, .side:not(:has(> #panelEditor)) > #pagesPanel { flex: 1 1 auto; max-height: none; }
.section-actions .muted { font-size: 12px; }

/* Grand écran : en-têtes à la hauteur de la barre de page, filet en dessous ; seul le contenu défile. */
@media (min-width: 1101px) {
  .side .block { overflow: hidden; padding: 0; gap: 0; }
  .side .block > .block-head { flex: none; min-height: 42px; margin: 0; padding: 5px 7px 5px 14px; border-bottom: 1px solid var(--line); }
  .side .block.collapsed > .block-head { border-bottom-color: transparent; }
  .side .block > .block-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0; padding: 14px 4px 14px 14px; scrollbar-gutter: stable; }
}


/* Barres de défilement assorties à l'interface */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, .2); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .36); }
::-webkit-scrollbar-thumb:active { background-color: rgba(74, 222, 128, .7); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .24) transparent; }
}

@media (max-width: 1450px) {
  .topbar .meter { display: none; }
}
.topbar .meter-track { width: 60px; }
.topbar .meter-value { min-width: 54px; }

/* Écran étroit : tout s'empile et la page défile normalement. */
@media (max-width: 1100px) {
  body { display: flex; flex-direction: column; gap: var(--gap); padding: var(--gap); }
  .topbar, .chain, .side { position: static; width: auto; }
  .topbar { display: flex; flex-wrap: wrap; }
  .stage { order: 1; min-height: 0; padding: 0; }
  .stage:has(.viewport.fit) { height: auto; overflow: visible; }
  .viewport.fit { height: 72vh; flex: none; }
  .page-bar-wrap { position: static; margin: 0 !important; }
  .status { position: static; }
  .side-right { order: 2; }
  .side-left { order: 3; }
  .chain { order: 4; flex-wrap: wrap; }
  .chain .node { flex: 1 1 260px; }
  #pagesPanel, #panelEditor, #libraryPanel, #storyPanel { max-height: none; flex: none; }
  .panel { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .cell.rendering::after { animation: none; }
}

/* Rendu en cours : balayage lumineux et anneau sur la case, barre de progression en bas. */
.cell-loading { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%); background-size: 260% 100%; animation: cell-sweep 1.6s linear infinite; }
.cell-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(17, 17, 17, .18); border-top-color: var(--active); border-radius: 50%; animation: cell-spin .9s linear infinite; }
.cell.previewing .cell-loading { opacity: .55; }
.cell.previewing .cell-loading::after { display: none; }
.cell-progress { position: absolute; left: 0; bottom: 0; z-index: 3; height: 4px; width: 0; background: var(--active); box-shadow: 0 0 8px var(--active); transition: width .3s linear; pointer-events: none; }
@keyframes cell-sweep { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes cell-spin { to { transform: rotate(360deg); } }

/* Bloc Image pendant un rendu : la liste laisse place aux infos de génération. */
.node-model.generating .node-row > :not(.node-tag):not(.icon-slot):not(.gen-info) { display: none; }
.gen-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gen-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; white-space: nowrap; }
.gen-line > span { overflow: hidden; text-overflow: ellipsis; }
.gen-line.muted { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.gen-title { font-weight: 600; }
.gen-pct { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--active); }
.gen-bar { height: 5px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.gen-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--active); transition: width .3s linear; }
@media (prefers-reduced-motion: reduce) {
  .cell-loading, .cell-loading::after { animation: none; }
}

/* Barre de page : sa propre largeur décide du passage en icônes ; elle ne passe jamais sur deux lignes. */
.page-bar-wrap { position: fixed; top: var(--top-h); left: calc(var(--left-w) + 2 * var(--gap)); right: calc(var(--right-w) + 2 * var(--gap)); z-index: 10; min-width: 0; }
/* La barre est fixe : la zone de page commence sous elle. */
/* --bar-h : hauteur mesurée de la barre (et, en mode Retouche, de la ligne de réglages dessous). */
@media (min-width: 1101px) { .stage { padding-top: calc(var(--top-h) + var(--bar-h, 44px) + var(--gap)); } }
.page-bar-wrap .page-bar { position: static; width: 100%; }
.page-bar > *, .page-bar .tools, .bar-group { flex: none; }
.page-bar .spacer { flex: 1 1 0; min-width: 0; }
.page-bar .tools, .bar-group { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.page-bar.bar-icons #modes button span, .page-bar.bar-icons #templateBtn span, .page-bar.bar-icons .bar-label { display: none; }
.page-bar.bar-tight .bar-sep:not(.keep) { display: none; }
.page-bar.bar-tight #stripHeight { width: 70px; }
/* Le zoom reste toujours accessible : on retire d'abord la navigation entre pages (aussi dans le bloc Pages). */
.page-bar.bar-tiny #pageNav { display: none; }
.page-bar.bar-min #zoomLabel { min-width: 0; padding: 0 6px; font-size: 11px; }

/* Colonne de gauche plus étroite ; repliés, ses blocs n'affichent que leur icône. */
:root { --left-w: max(200px, 15vw); }
.side-left .side-inline .block-head h2 span[data-i18n], .side-left .side-inline #libraryCount { display: none; }
.side-left .side-inline .block-head { padding-left: 10px; gap: 4px; }

/* Croquis */
.sketch-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sketch-layer svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cell:not(.sketching) .sketch-layer { opacity: .55; }
.cell.sketching { cursor: crosshair; }
.cell.sketching img { opacity: .3; }
.cell.sketching .cell-text { display: none; }
.mode-sketch .divider { pointer-events: none; }
.sk-sel { fill: none; stroke: var(--active); stroke-width: 1.5; stroke-dasharray: 5 4; }
.sk-handle { fill: var(--active); stroke: #0b0d10; stroke-width: 1.5; }
.sketch-text { position: absolute; z-index: 6; min-height: 0; padding: 6px 8px; resize: none; font-size: 13px; line-height: 1.3; background: rgba(12, 14, 18, .92); }
.opt.check { gap: 8px; cursor: pointer; }
.opt.check input { accent-color: var(--active); }

/* Champ de hauteur de bande à la taille des boutons de la barre. */
.page-bar #stripHeight { height: 30px; min-height: 30px; padding: 2px 8px; }
/* Webtoon : bouton d'ajout de rangée sous chaque bande. */
.strip-add { position: absolute; left: 50%; bottom: -54px; z-index: 4; transform: translateX(-50%); white-space: nowrap; background: rgba(12, 14, 18, .72); }
.viewport.webtoon .page { margin-bottom: 44px; }

/* Stylet et tactile : sur ces zones, un glissé dessine, cadre ou redimensionne au lieu de faire défiler la page. */
.mode-sketch .cell.sketching, .mode-frame .cell.selected, .divider, .strip-handle { touch-action: none; }
/* Zoom sur une case : marge autour de la page pour pouvoir centrer n'importe quelle case. */
.viewport.focused { padding: 45vh 45vw; align-self: flex-start; align-items: flex-start; width: max-content; min-width: 100%; }

/* Retouche : l'éditeur d'image remplace la vue de page ; les réglages de l'outil tiennent sur une ligne sous la barre. */
.page-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
.edit-options { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 12px; width: 100%; min-width: 0; min-height: 40px; padding: 4px 10px; white-space: nowrap; overflow: hidden; }
.edit-options > * { flex: none; }
.edit-options .opt input[type="range"] { width: 90px; }
.edit-options .picker { min-height: 30px; max-width: 170px; }
.edit-options .opt.check .icon-slot { display: none; }
.edit-options.opt-icons .opt-label, .edit-options.opt-icons .btn[data-icon] > span { display: none; }
.edit-options.opt-icons .opt.check .icon-slot { display: inline-flex; }
.edit-options.opt-icons .picker { max-width: 130px; }
.edit-options.opt-tight { gap: 6px 8px; }
.edit-options.opt-tight .opt input[type="range"] { width: 64px; }
.edit-options.opt-tight .picker { max-width: 104px; }
.page-bar.bar-icons #retouchGenBtn span, .page-bar.bar-icons #retouchStopBtn span { display: none; }
body.retouching .viewport { display: none; }
body.retouching .stage { height: 100vh; overflow: clip; }
body.retouching .zoom-box, body.retouching #stripHeightBox { display: none; }
body.retouching .hide-retouch { display: none; }
.retouch-view { flex: 1 1 auto; position: relative; }
.retouch-view .edit-canvas { transform-origin: center; }
@media (max-width: 1100px) {
  body.retouching .stage { height: auto; overflow: visible; }
  .retouch-view { flex: none; height: 72vh; }
  .edit-options { overflow-x: auto; }
}
