/* NUAR 1.3 — category-specific poster cards and faithful visual exports. */
#templatesPane .nuar-template-library{padding:13px;border-radius:16px;overflow:hidden}
#templatesPane .nuar-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#templatesPane .nuar-v13-item{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:8px 8px 12px;min-width:0;border-radius:15px;border:2px solid transparent;background:rgba(237,234,226,.12);color:var(--text);box-shadow:none;overflow:hidden}
#templatesPane .nuar-v13-item[aria-pressed="true"]{border-color:var(--gold);outline:2px solid var(--gold);outline-offset:1px}
#templatesPane .nuar-v13-item:focus-visible{outline:3px solid #5a8be8;outline-offset:2px}
#templatesPane .nuar-template-poster{display:block;width:100%;aspect-ratio:2480/3508;height:auto;border-radius:9px;object-fit:contain;background:transparent;box-shadow:0 4px 16px rgba(0,0,0,.20)}
#templatesPane .nuar-v13-item .nuar-template-item-title{font:700 13px/1.35 var(--f);color:var(--text)}
#templatesPane .nuar-v13-item .nuar-template-item-num{font:500 11px/1.3 var(--f);color:var(--muted)}
#templatesPane .nuar-template-hint{font:13px/1.55 var(--f)}
#templatesPane .nuar-qr-design-preview{display:block;width:100%;padding:5px 0 10px;min-width:0}
#templatesPane .nuar-v13-live-label{font:600 13px/1.45 var(--f);color:var(--muted);padding:3px 0 10px}
#templatesPane .nuar-v13-live-canvas{display:block;width:min(100%,500px);height:auto;aspect-ratio:auto;margin:0 auto;border-radius:10px;background:#fff;box-shadow:0 12px 36px rgba(0,0,0,.24)}
#templatesPane #plainQr{display:none!important}
#templatesPane .result-actions{margin-top:14px}
#templatesPane .nuar-template-controls{margin-top:13px}
body[data-nuar-theme="light"] #templatesPane .nuar-v13-item{background:#fff!important;border-color:#d4dce5}
body[data-nuar-theme="light"] #templatesPane .nuar-v13-item[aria-pressed="true"]{border-color:#315d98!important}
body[data-nuar-theme="light"] #templatesPane .nuar-v13-item .nuar-template-item-title{color:#1e3044!important}
@media(min-width:620px){#templatesPane .nuar-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:960px){#templatesPane .nuar-template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* A sticky back navigation bar must never enter the iPhone dynamic-island/status area. */
body.tools-used .tool-backbar{top:max(12px, env(safe-area-inset-top, 0px))!important;z-index:14!important;padding:12px 0!important}
body.tools-used .tool-backbar .tool-back{min-height:44px}
@media(max-width:420px){body.tools-used .tool-backbar{top:max(10px, env(safe-area-inset-top, 0px))!important}.tool-backlabel{max-width:48%;line-height:1.3}}
/* Keep long artwork names readable inside existing two-column mobile tiles. */
#templatesPane .nuar-v13-item .nuar-template-item-title{overflow-wrap:anywhere}
