/* Edytor GUI (reszta z text-colors.css i rank-generator.css) */
main.tc.gm { max-width: 1240px; }
.gm .tc-head { padding: 34px 0 20px; }
.gm-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.gm-left, .gm-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.gm-left { position: sticky; top: 78px; }
@media (max-width: 960px) {
  .gm-grid { grid-template-columns: 1fr; }
  .gm-left { position: static; }
}
.gm-preview { margin-bottom: 0; padding: 14px; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.preview-top .seg { width: 240px; }
.gm-stage { min-height: 240px; padding: 18px 12px; overflow: auto; }
#out { display: block; image-rendering: pixelated; touch-action: none; }
.hint-inline { margin-top: 10px; text-align: center; font-size: 0.78rem; color: var(--faint); }
.top-gap-sm { margin-top: 10px; }
.gm-icons { max-height: 200px; }
.quick, .add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.add-row { margin-bottom: 6px; }
#rows-box.dim { opacity: 0.35; pointer-events: none; }

.layer-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.ly { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.ly.on { background: rgba(255, 55, 95, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 55, 95, 0.6); }
.ly button { border: 0; background: none; color: var(--muted-strong); cursor: pointer; font-size: 0.84rem; }
.ly .nm { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 0; }
.ly .mv, .ly .rm { width: 26px; height: 26px; border-radius: 50%; color: var(--faint); }
.ly .mv:hover, .ly .rm:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.props { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.props strong { font-size: 0.95rem; }
.icon-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-row img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.xywh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.xywh label { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; color: var(--faint); font-weight: 600; }
.xywh .field { padding: 7px 8px; }
.gm [hidden] { display: none !important; }
.preview-top { flex-wrap: wrap; }
.preview-top .seg { width: auto; flex: 0 1 380px; }
.tools-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tools-r .btn-icon { width: 34px; height: 34px; font-size: 1rem; }
.tools-r .btn-icon:disabled { opacity: 0.35; cursor: default; }
.mini-sw { padding: 0; font-size: 0.8rem; gap: 8px; }
.sp-icon { width: 32px; height: 32px; image-rendering: pixelated; }
.dm-btns { align-self: end; }
textarea.field { min-height: 56px; resize: vertical; }
/* dm-btns (30.11.2026): przyciski DeluxeMenus pod polem komendy, nie wychodzą poza kartę */
.card .two:has(.dm-btns) { grid-template-columns: minmax(0, 1fr); }
.dm-btns { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dm-btns .btn { flex: 1 1 140px; justify-content: center; }
