/* =========================================================
   Generador de QR 3D · RapidTools
   ========================================================= */
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f6f9; --bg2: #eceef3; --panel: #ffffff; --ink: #12141b; --ink2: #424756; --muted: #727889;
  --line: #e3e6ee; --line2: #d0d5e0; --acc: #4f46e5; --acc2: #06b6d4; --acc-ink: #ffffff; --acc-soft: #eef0ff; --acc-text: #3f37c9;
  --ok: #138a52; --ok-soft: #e7f6ee; --warn: #a65d00; --warn-soft: #fff4dc; --bad: #c0281b; --bad-soft: #fdecea;
  --shadow: 0 1px 2px rgba(15, 18, 40, .05), 0 10px 30px rgba(15, 18, 40, .07); --shadow-lg: 0 20px 60px rgba(15, 18, 40, .18);
  --r: 16px; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --coffee: #b85a1f; --coffee-soft: #fff3e6; --coffee-line: #f3d6bb; --coffee-text: #8a3f12;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0c10; --bg2: #14161c; --panel: #111318; --ink: #eef0f6; --ink2: #c0c5d2; --muted: #8b91a1;
  --line: #23262f; --line2: #333744; --acc: #8b84ff; --acc2: #22d3ee; --acc-ink: #0b0a1f; --acc-soft: #1b1a3a; --acc-text: #aaa5ff;
  --ok: #4fd18f; --ok-soft: #10251a; --warn: #f5b84a; --warn-soft: #2a2011; --bad: #ff7b6e; --bad-soft: #2a1513;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.3); --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  --coffee: #f0a05f; --coffee-soft: #2a1a0f; --coffee-line: #4a2e19; --coffee-text: #f6bb85;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c10; --bg2: #14161c; --panel: #111318; --ink: #eef0f6; --ink2: #c0c5d2; --muted: #8b91a1;
  --line: #23262f; --line2: #333744; --acc: #8b84ff; --acc2: #22d3ee; --acc-ink: #0b0a1f; --acc-soft: #1b1a3a; --acc-text: #aaa5ff;
    --ok: #4fd18f; --ok-soft: #10251a; --warn: #f5b84a; --warn-soft: #2a2011; --bad: #ff7b6e; --bad-soft: #2a1513;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.3); --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
    --coffee: #f0a05f; --coffee-soft: #2a1a0f; --coffee-line: #4a2e19; --coffee-text: #f6bb85;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.025em; }
a { color: var(--acc-text); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 90; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* barra superior */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 14px; padding-left: 9px; border-left: 1px solid var(--line2); }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { color: var(--ink2); text-decoration: none; font-size: 14px; padding: 7px 10px; border-radius: 8px; }
.nav a:hover { background: var(--bg2); color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pill--coffee { background: var(--coffee-soft); border-color: var(--coffee-line); color: var(--coffee-text); }
.pill--icon { width: 40px; padding: 0; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
@media (max-width: 860px) { .nav { display: none; } .pill--coffee { margin-left: auto; } }
@media (max-width: 640px) { .pill--coffee span, .brand small { display: none; } .pill--coffee, .pill--icon { width: 44px; min-height: 44px; padding: 0; } }

/* héroe */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 10px 0 0; font-size: 17.5px; color: var(--ink2); max-width: 620px; }
.privacy { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 650; font-size: 14px; }
.privacy .ico { width: 18px; height: 18px; }
@media (max-width: 640px) { .hero { padding-top: 18px; } .hero p { font-size: 16px; } }


.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg2); border-radius: 12px; margin-bottom: 14px; }
.seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 650; color: var(--ink2); cursor: pointer; font-size: 14.5px; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
input[type=number], input[type=text], select { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: 16px; }
input:focus, select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f > span { font-size: 13.5px; font-weight: 650; color: var(--ink2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn--acc { background: var(--acc); color: var(--acc-ink); }
.btn--acc:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--panel); border-color: var(--line2); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--line2); border-top-color: var(--acc); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
dialog.modal { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(1100px, calc(100vw - 24px)); width: 100%; }
dialog.modal::backdrop { background: rgba(6, 8, 18, .7); backdrop-filter: blur(3px); }
.modal__box { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); max-height: calc(100dvh - 24px); overflow: auto; }
.modal__head { display: flex; align-items: center; gap: 12px; margin: 0 48px 12px 0; flex-wrap: wrap; }
.modal__head h2 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.modal__x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
.modal__x:hover { background: var(--bg2); }
.modal p { color: var(--ink2); }
.coffee-card { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--coffee-soft); border: 1px solid var(--coffee-line); }
.coffee-card p { margin: 0 0 10px; font-size: 14.5px; }
.btn--coffee { background: var(--coffee); color: #fff; width: 100%; }
:root[data-theme="dark"] .btn--coffee { color: #1d1006; }

/* contenido */
.ad-slot { display: grid; place-items: center; border: 1.5px dashed var(--line2); border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; min-height: 100px; margin: 28px 0; background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--line) 45%, transparent) 10px 20px); }
.ad-slot--lg { min-height: 250px; }
.sec { padding: 46px 0 10px; }
.sec h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.sec .lead { color: var(--ink2); font-size: 17px; margin: 10px 0 24px; max-width: 700px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: s; }
.steps li { padding: 22px 22px 6px 0; counter-increment: s; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 12px; }
.steps b { display: block; font-size: 19px; margin-bottom: 6px; }
.steps span { color: var(--ink2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.use { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.use .ico { width: 22px; height: 22px; color: var(--acc-text); margin-top: 2px; }
.use b { display: block; }
.use span { font-size: 14.5px; color: var(--ink2); }
.prose { max-width: 780px; }
.prose p, .prose li { color: var(--ink2); font-size: 16.5px; line-height: 1.7; }
.prose h3 { font-size: 20px; margin: 26px 0 6px; }
.prose strong { color: var(--ink); }
table.fmt { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
table.fmt th, table.fmt td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fmt th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 17px 40px 17px 2px; font-weight: 650; font-size: 16.5px; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--ink2); }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rel { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); }
.rel:hover { border-color: var(--acc); }
.rel img { width: 44px; height: 44px; border-radius: 12px; }
.rel b { display: block; }
.rel span { font-size: 14px; color: var(--ink2); }
.support { display: flex; align-items: center; gap: 16px 22px; padding: 22px; border-radius: 20px; background: var(--coffee-soft); border: 1px solid var(--coffee-line); flex-wrap: wrap; }
.support > div { flex: 1; min-width: 240px; }
.support p { margin: 4px 0 0; color: var(--ink2); }
.support .btn--coffee { width: auto; }
.foot { margin-top: 48px; border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink2); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 70; transform: translate(-50%, 12px); opacity: 0; transition: transform .2s, opacity .2s; background: var(--ink); color: var(--panel); padding: 12px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 550; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.noscript { padding: 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
/* Sin anuncio real (ins.adsbygoogle) el espacio no se muestra: nada de recuadros vacíos. */
.ad-slot:not(:has(ins.adsbygoogle)) { display: none !important; }

/* =========================================================
   Herramienta QR 3D
   ========================================================= */
input[type=url], input[type=tel] { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: 16px; }
.stepn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--ink2); margin: 14px 0 7px; }
.out { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.seg--3 { grid-template-columns: repeat(3, 1fr); } .seg--4 { grid-template-columns: repeat(4, 1fr); }
.seg { margin-bottom: 0; }
.seg button { font-size: 13.5px; padding: 0 4px; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 2px; color: var(--acc-text); font-weight: 650; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn .ico { width: 17px; height: 17px; }
.linkbtn[disabled] { opacity: .5; cursor: not-allowed; }

/* paso 1: barra del enlace */
.urlbar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.urlbar input#url { min-height: 52px; font-size: 17px; border-radius: 14px; }
.kinds { display: flex; gap: 4px; padding: 4px; background: var(--bg2); border-radius: 13px; }
.kinds button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink2); font-weight: 650; font-size: 14px; cursor: pointer; }
.kinds button .ico { width: 18px; height: 18px; }
.kinds button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.fields { min-width: 0; }
.fields--2, .fields--3 { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields--3 { grid-template-columns: 1.2fr 1.2fr 1fr; }
.fields label span { display: block; font-size: 12px; font-weight: 650; color: var(--muted); margin: 0 0 3px 2px; }
.btn--gen { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.urlbar__msg { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); }
.urlbar__msg:empty { display: none; }
.urlbar__msg.is-bad { color: var(--bad); font-weight: 600; }
.urlbar__msg.is-warn { color: var(--warn); font-weight: 600; }
@media (max-width: 920px) {
  .urlbar { grid-template-columns: auto minmax(0, 1fr); }
  .urlbar .fields, .urlbar .btn--gen { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .urlbar > .stepn { display: none; }
  .urlbar { grid-template-columns: 1fr; padding: 10px; }
  .kinds { width: 100%; } .kinds button { flex: 1; justify-content: center; padding: 0 6px; }
  .fields--2, .fields--3 { grid-template-columns: 1fr; }
}

/* estudio: vista 3D + controles */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; margin-top: 18px; align-items: start; }
.stage { position: sticky; top: 76px; min-width: 0; }
@media (max-width: 1000px) { .studio { grid-template-columns: 1fr; } .stage { position: static; } }
.viewer { position: relative; height: min(64vh, 620px); min-height: 380px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--acc) 12%, var(--panel)), var(--panel) 60%), var(--panel); box-shadow: var(--shadow); touch-action: none; cursor: grab; }
.viewer:active { cursor: grabbing; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
@media (max-width: 1000px) { .viewer { height: 400px; min-height: 0; } }
@media (max-width: 560px) { .viewer { height: 330px; border-radius: 18px; } }
.v-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; text-align: center; padding: 20px; }
.v-badge, .v-dims, .v-hint { position: absolute; z-index: 2; pointer-events: none; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.v-badge { top: 12px; left: 12px; background: var(--acc); color: var(--acc-ink); box-shadow: var(--shadow); }
.v-dims { bottom: 12px; left: 12px; background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--ink); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.v-dims:empty { display: none; }
.v-hint { bottom: 12px; right: 62px; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .v-hint { display: none; } }
.v-reset { position: absolute; z-index: 2; bottom: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); cursor: pointer; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 9px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; background: var(--bg2); color: var(--ink2); }
.checks li .ico { width: 18px; height: 18px; margin-top: 1px; }
.checks .ok { background: var(--ok-soft); } .checks .ok .ico { color: var(--ok); }
.checks .warn { background: var(--warn-soft); color: var(--ink); } .checks .warn .ico { color: var(--warn); }
.checks .bad { background: var(--bad-soft); color: var(--ink); } .checks .bad .ico { color: var(--bad); }
.checks b { color: var(--ink); }
.dl3d { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.btn--big { min-height: 60px; font-size: 17px; border-radius: 16px; flex-wrap: wrap; row-gap: 0; line-height: 1.15; padding: 8px 20px; }
.btn--big small { flex-basis: 100%; text-align: center; font-size: 12.5px; font-weight: 600; opacity: .85; }
.dl3d__alt { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dl3d .hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .dl3d { grid-template-columns: 1fr; } .dl3d__alt { flex-direction: row; justify-content: space-between; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.015em; margin-bottom: 12px; }
.blk + .blk { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.styles button, .fmts button { border: 1.5px solid var(--line2); background: var(--panel); border-radius: 13px; cursor: pointer; color: var(--ink2); font-weight: 650; }
.styles button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 2px 8px; font-size: 12.5px; }
.styles button[aria-pressed="true"], .fmts button[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-text); }
.sw { width: 30px; height: 30px; display: block; --d: currentColor; }
.sw--clasico { background: conic-gradient(var(--d) 25%, transparent 0 50%, var(--d) 0 75%, transparent 0) 0 0/15px 15px; }
.sw--redondeado { background: radial-gradient(circle at 50% 50%, var(--d) 5px, transparent 5.5px) 0 0/10px 10px; border-radius: 6px; box-shadow: inset 0 0 0 3px var(--d); }
.sw--puntos { background: radial-gradient(circle, var(--d) 3.4px, transparent 3.9px) 0 0/10px 10px; }
.sw--elegante { background: linear-gradient(135deg, var(--d) 30%, transparent 30% 70%, var(--d) 70%) 0 0/10px 10px; border-radius: 9px 2px; }
.emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 10px; }
.emojis button { aspect-ratio: 1; min-height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.emojis button[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); }
.emojis--sm { margin-top: 8px; } .emojis--sm button { font-size: 17px; min-height: 34px; }
.inline { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; font-weight: 650; color: var(--ink2); }
.inline input { flex: 1; }
.upload { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; margin-top: 10px; border-radius: 13px; border: 1.5px dashed var(--line2); cursor: pointer; font-weight: 650; font-size: 14px; color: var(--ink2); overflow: hidden; position: relative; }
.upload:hover { border-color: var(--acc); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }
.upload span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.fmts button { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 4px; }
.fmts svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fmts b { font-size: 13px; line-height: 1.15; color: var(--ink); }
.fmts small { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chips button { min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); font-size: 12px; font-weight: 650; color: var(--ink2); cursor: pointer; }
.chips button:hover { border-color: var(--acc); color: var(--acc-text); }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.range { width: 100%; accent-color: var(--acc); height: 28px; }
.colrow + .colrow { margin-top: 12px; }
.colrow__h { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 650; color: var(--ink2); margin-bottom: 7px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 6px; }
.swatches button { aspect-ratio: 1; min-height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; position: relative; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--acc); }
.custom-col { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line2); cursor: pointer; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); }
.custom-col input { position: absolute; inset: -6px; width: 50px; height: 50px; opacity: 0; cursor: pointer; }
.img2d { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
.img2d img { width: 132px; height: auto; max-height: 180px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--bg2) 0 25%, var(--panel) 0 50%) 0 0/14px 14px; }
.img2d__btns { display: flex; gap: 8px; margin-top: 10px; } .img2d__btns .btn { flex: 1; min-height: 44px; }
dialog#doneDlg { max-width: min(460px, calc(100vw - 24px)); }
#doneTitle { font-size: 20px; margin-right: 48px; }
.uses .em { font-size: 22px; line-height: 1.2; }
.use b + span { display: block; }
.seg button[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-text); box-shadow: inset 0 0 0 1.5px var(--acc); }
