/* ToolPetal Discord emoji maker. Builds on discord-gif.css (v2). */
.de-cropgrid { display: grid; gap: var(--sp-3); }
@media (min-width: 720px) { .de-cropgrid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; } }
.de-stagebox { width: 100%; max-width: 320px; margin: 0 auto; }
.de-stage { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; border: 1px solid var(--line-strong); touch-action: none; background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 16px 16px; }
.de-stage.can-pan { cursor: grab; }
.de-stage.is-drag { cursor: grabbing; }
.de-stage:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
.de-panhint { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.de-ctls { display: grid; gap: var(--sp-3); min-width: 0; }
.de-ctls .dg-seg button { min-height: 48px; }
.de-zoomrow { display: flex; align-items: center; gap: var(--sp-2); }
.de-zoomrow input[type="range"] { flex: 1 1 auto; min-width: 0; }
.de-zoomhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; font-weight: 600; font-size: var(--fs-sm); }
.de-zoomhead output { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.de-namebox label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.de-namerow { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.de-namerow span { padding: 0 0.15rem 0 0.75rem; color: var(--muted); font-family: var(--mono); }
.de-namerow span:last-child { padding: 0 0.75rem 0 0.15rem; }
.de-namerow input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 0.7rem 0.2rem; font: inherit; font-family: var(--mono); font-size: 16px; color: var(--ink); }
.de-namerow input:focus { outline: none; }
.de-namerow:focus-within { outline: var(--focus); outline-offset: var(--focus-offset); }
.de-rules { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: 0.2rem; font-size: var(--fs-sm); }
.de-rules li.ok span[aria-hidden], .de-checks li.ok span[aria-hidden] { color: var(--ok); font-weight: 700; }
.de-rules li.bad, .de-rules li.bad span[aria-hidden] { color: var(--bad); font-weight: 600; }
.de-suggest { margin: var(--sp-2) 0 0; padding: 0.6rem 0.75rem; border-radius: 12px; background: var(--surface-2); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: var(--fs-sm); }
.de-suggest code { font-weight: 700; word-break: break-all; }
.de-suggest button { min-height: 40px; }
.de-codeline { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.de-codeline code { color: var(--ink); word-break: break-all; }
.de-stale { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--warn); }
.de-size { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); }
.de-bytes { color: var(--muted); font-size: var(--fs-sm); }
.de-previews { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
@media (min-width: 720px) { .de-previews { grid-template-columns: 1fr 1fr; } }
.de-chat { border-radius: 12px; padding: 0.85rem; border: 1px solid var(--line); min-width: 0; }
.de-chat.dark { background: #313338; color: #dbdee1; border-color: #1e1f22; }
.de-chat.light { background: #ffffff; color: #313338; }
.de-chat p.de-ptitle { margin: 0 0 0.6rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.de-row { display: flex; align-items: flex-end; gap: 0.9rem; flex-wrap: wrap; }
.de-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.de-row figcaption { font-size: 11px; opacity: 0.75; white-space: nowrap; }
.de-emo { display: block; object-fit: contain; }
.de-emo.px { image-rendering: pixelated; }
.de-e128 { width: 128px; height: 128px; }
.de-e48 { width: 48px; height: 48px; }
.de-e32 { width: 32px; height: 32px; }
.de-e22 { width: 22px; height: 22px; }
.de-msgline { margin: 0.7rem 0 0; display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; font-size: 15px; line-height: 22px; }
.de-msgline b { font-weight: 600; margin-right: 0.2rem; }
.de-msgline .de-e22 { display: inline-block; }
.dg-dl.is-disabled { opacity: 0.5; pointer-events: none; }
.de-help { margin: var(--sp-2) 0 0; padding: 0.6rem 0.75rem; border-radius: 12px; background: var(--surface-2); font-size: var(--fs-sm); }
.de-opts { display: grid; gap: var(--sp-2); }
.de-thumb { width: 88px; height: 88px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 12px 12px; flex: 0 0 auto; }
#de-step4 { border-bottom: 0; margin-bottom: var(--sp-3); padding-bottom: 0; }
