/* LIKE A PRO .DEV — ~/qr */
.tool-ui input[type="tel"], .tool-ui input[type="email"], .tool-ui input[type="url"] {
    width: 100%; background: #0d0d13; border: 1px solid var(--border); border-radius: 6px;
    padding: .65rem .8rem; font-family: var(--font-mono); font-size: .85rem; color: var(--text); caret-color: var(--accent);
    transition: border-color .2s, box-shadow .2s;
}
.tool-ui input[type="tel"]:focus, .tool-ui input[type="email"]:focus, .tool-ui input[type="url"]:focus { outline: none; border-color: rgba(200,255,46,.5); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool-ui input.is-err { border-color: rgba(255,95,87,.6); }
.tool-ui .x-note code { font-family: var(--font-mono); color: var(--cyan); }

.q-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 1.5rem 2rem; align-items: start; }
.q-left, .q-right { min-width: 0; }
.q-right { position: sticky; top: calc(var(--nav-h) + 1rem); }
.q-left .tool-sub:first-of-type { margin-top: 1.4rem; }

.q-color { display: flex; gap: .5rem; align-items: center; }
.q-color input[type="color"] {
    flex: none; width: 2.6rem; height: 2.45rem; padding: 3px; border: 1px solid var(--border-strong); border-radius: 6px;
    background: #0d0d13; cursor: pointer;
}
.q-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.q-color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 3px; }
.q-file { position: relative; overflow: hidden; }
.q-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.q-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.q-stage {
    display: grid; place-items: center; aspect-ratio: 1; width: 100%; padding: 1rem; border: 1px solid var(--border);
    border-radius: 10px; background: repeating-conic-gradient(#14141c 0 25%, #0c0c11 0 50%) 0 0 / 16px 16px;
}
.q-stage svg { width: 100%; height: auto; max-width: 100%; display: block; border-radius: 4px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.q-empty { text-align: center; padding: 1rem; font-size: .82rem; }
#q-warn { margin-top: .6rem; }
#q-warn .term-line { font-size: .76rem; line-height: 1.5; margin: .3rem 0; }
.q-stats { margin-top: .4rem; font-size: .78rem; }
.q-payload { max-height: 10rem; overflow: auto; font-size: .76rem; margin-top: .3rem; padding-right: 4rem; }

@media (max-width: 1100px) {
    .q-layout { grid-template-columns: minmax(0, 1fr); }
    .q-right { position: static; max-width: 440px; }
}
