/* W5 free web tool. Loaded after /assets/site.css. */
.tool { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.panel { padding: 22px; }
.stepn { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.stepn i { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 13px; }
.stepn i.done { background: var(--success); font-size: 0; }
.stepn i.done::after { content: '✓'; font-size: 13px; }
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 2px dashed var(--btn-border); background: var(--surface); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; }
.drop:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.drop.over { border-color: var(--primary); background: var(--tint); }
.drop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.drop .dz { display: grid; gap: 4px; justify-items: center; padding: 12px; }
.drop .dz b { color: var(--ink); }
.drop.filled { border-style: solid; border-color: var(--border); }
.drop.filled .dz { display: none; }
.drop .lbl { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(11,16,17,.75); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .06em; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.align { position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #222; touch-action: none; cursor: grab; }
.align:active { cursor: grabbing; }
.align canvas { width: 100%; height: 100%; display: block; }
.align-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: #c9d4df; font-size: 14px; }
.align-ctl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.align-ctl input[type=range] { padding: 0; border: 0; accent-color: var(--primary); }
.nudge { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.nudge .btn { min-width: 40px; padding: 0 12px; }
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tp-opt { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px; border-radius: 12px; border: 1px solid var(--btn-border); background: var(--card); font-weight: 700; font-size: 13.5px; text-align: center; cursor: pointer; text-decoration: none; color: var(--ink); }
.tp-opt input { position: absolute; opacity: 0; }
.tp-opt:has(input:checked) { border: 2px solid var(--primary); background: var(--tint); color: var(--primary); }
.tp-opt:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.tp-opt.lk { color: #66768a; }
.tp-opt .ico { width: 15px; height: 15px; }
.side { position: sticky; top: 90px; }
.preview { width: 220px; margin: 0 auto 16px; border: 5px solid #15191a; border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 16; background: #222; }
.preview canvas { width: 100%; height: 100%; display: block; }
.progress { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.progress .bar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.private { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #e9f4ed; color: var(--success); font-weight: 700; font-size: 13.5px; }
.upsell { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--tint); border: 1px solid var(--primary-soft); }
.upsell.hot { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.upsell b { display: block; margin-bottom: 4px; }
.upsell p { margin: 0 0 12px; font-size: 14px; color: var(--text2); }
.upsell .store { height: 44px; padding: 0 12px; font-size: 13px; }
@media (max-width: 900px) {
  .tool { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 520px) { .align-ctl { grid-template-columns: 1fr; } .tpl-pick { grid-template-columns: 1fr 1fr; } }
