/* Generator rang (reszta stylów z text-colors.css) */
.rk-stage { min-height: 160px; padding: 28px 18px; }
canvas#out { display: block; image-rendering: pixelated; }
.preview[data-bg="checker"] .chat-line {
  background-color: #2a2a2e;
  background-image: linear-gradient(45deg, #36363b 25%, transparent 25%, transparent 75%, #36363b 75%), linear-gradient(45deg, #36363b 25%, transparent 25%, transparent 75%, #36363b 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}
.preview-bar .dims { align-self: center; margin-left: 6px; font-size: 0.78rem; color: var(--faint); font-family: ui-monospace, Consolas, monospace; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.stop .lbl { font-size: 0.86rem; color: var(--muted-strong); }
.dim { opacity: 0.35; pointer-events: none; }
.seg button { white-space: nowrap; }

.presets .preset.on { color: #fff; background: rgba(255, 55, 95, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 55, 95, 0.6); }

.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.ic { display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: var(--faint); font-size: 1.1rem; cursor: pointer; transition: background 0.2s ease; }
.ic:hover { background: rgba(255, 255, 255, 0.11); }
.ic.on { background: rgba(255, 55, 95, 0.22); box-shadow: inset 0 0 0 2px #ff375f; }
.ic img { width: 32px; height: 32px; image-rendering: pixelated; }
.upload { color: var(--red-soft); font-size: 0.8rem; cursor: pointer; }

.range { width: 100%; accent-color: #ff375f; }
.field.mini { width: auto; padding: 5px 10px; font-size: 0.8rem; }
.out-actions.dl { gap: 8px; margin-top: 18px; }
@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; }
  .out-actions.dl { flex-wrap: wrap; }
}
@media (max-width: 820px) { .hide-sm { display: none; } }
canvas#out { width: auto; max-width: none; }
.rk-stage { overflow: auto; }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 86px; padding: 10px 6px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: var(--muted-strong); font-size: 0.78rem; cursor: pointer; transition: background 0.2s ease; }
.tpl:hover { background: rgba(255, 255, 255, 0.1); }
.tpl.on { background: rgba(255, 55, 95, 0.18); box-shadow: inset 0 0 0 2px #ff375f; color: #fff; }
.tpl img { max-width: 100%; image-rendering: pixelated; }

.hint { margin: 4px 0 0; font-size: 0.78rem; color: var(--faint); }
/* styl nowoczesny (od 30.11.2026) */
.rk-style { margin-bottom: 6px; }
.rk-style button { flex: 1; }
.tpls.tpls-modern .tpl img { image-rendering: auto; }
.tpls.tpls-modern .tpl { min-height: 92px; }
#text-scale, #shadow, #bold, #smooth { transition: opacity 0.2s; }
