/* ============================================================
   TOOLYARD — QR TOOLS
   Moved out of pages/qr-tools.html so the generated per-tool
   landing pages can reuse the exact same styling.
   Generated by scripts/extract-category-assets.js — do not edit
   the copy in the HTML page, it no longer exists.
============================================================ */
body{padding-top:var(--header-h);}
.site-header{position:fixed;top:0;left:0;right:0;height:var(--header-h);z-index:200;background:rgba(10,10,15,0.85);backdrop-filter:blur(20px);border-bottom:1px solid var(--border);}
[data-theme="light"] .site-header{background:rgba(248,248,252,0.9);}
.site-header-inner{max-width:var(--max-w);margin:0 auto;padding:0 24px;height:100%;display:flex;align-items:center;gap:24px;}
.logo-text{font-family:var(--font-display);font-size:20px;font-weight:800;background:linear-gradient(135deg,var(--accent2),var(--accent3));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
.hnav{padding:7px 14px;border-radius:var(--r);font-size:14px;font-weight:500;color:var(--text2);transition:all var(--t);}
.hnav:hover{background:var(--surface);color:var(--text);}
.theme-btn{width:36px;height:36px;border-radius:var(--r);background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text2);transition:all var(--t);}
.theme-btn:hover{border-color:var(--accent);}
.qr-hero{padding:56px 0 40px;background:var(--bg2);border-bottom:1px solid var(--border);position:relative;overflow:hidden;}
.qr-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 50% 70% at 80% 40%,rgba(124,108,255,0.08),transparent 60%);pointer-events:none;}
.qr-tabs-bar{background:var(--bg2);border-bottom:1px solid var(--border);position:sticky;top:var(--header-h);z-index:50;}
/* overflow-x was missing here while every other tab bar on the site has it,
   so on a narrow screen the tabs were squashed or clipped with no way to
   reach them. ScrollStrip in core.js adds the arrows. */
.qr-tabs-inner{max-width:var(--max-w);margin:0 auto;padding:0 24px;display:flex;overflow-x:auto;scrollbar-width:none;}
.qr-tabs-inner::-webkit-scrollbar{display:none;}
.qr-tab{padding:14px 24px;font-size:14px;font-weight:600;color:var(--text3);border-bottom:2px solid transparent;cursor:pointer;transition:all var(--t);}
.qr-tab:hover{color:var(--text2);}
.qr-tab.active{color:var(--accent2);border-color:var(--accent);}
.qr-panel{display:none;max-width:var(--max-w);margin:0 auto;padding:36px 24px 80px;}
.qr-panel.active{display:block;}
.panel-title{font-family:var(--font-display);font-size:26px;font-weight:800;margin-bottom:4px;}
.panel-sub{font-size:14px;color:var(--text2);margin-bottom:28px;}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:32px;}
.field{margin-bottom:16px;}
.field-lbl{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.07em;color:var(--text3);margin-bottom:7px;}
.fi{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:11px 14px;font-size:14px;color:var(--text);outline:none;font-family:var(--font-body);transition:border-color var(--t),box-shadow var(--t);}
.fi:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(124,108,255,0.1);}
.fi::placeholder{color:var(--text3);}
.fi-sm{min-height:80px;resize:vertical;}
.sel{cursor:pointer;}
.type-tabs{display:flex;gap:0;background:var(--surface2);border-radius:var(--r);padding:3px;margin-bottom:20px;flex-wrap:wrap;gap:3px;}
.type-tab{padding:8px 14px;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;transition:all var(--t);color:var(--text3);white-space:nowrap;}
.type-tab.active{background:var(--surface);color:var(--accent2);box-shadow:var(--shadow-sm);}
.type-tab:hover{color:var(--text2);}
.qr-preview{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);padding:32px;display:flex;align-items:center;justify-content:center;min-height:280px;margin-bottom:16px;position:sticky;top:calc(var(--header-h)+80px);}
.qr-preview img{max-width:220px;max-height:220px;border-radius:var(--r);}
.qr-empty{text-align:center;color:var(--text3);}
.qr-empty-icon{font-size:64px;margin-bottom:8px;}
.btn-a{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:var(--r);font-size:13px;font-weight:600;cursor:pointer;border:none;font-family:var(--font-body);transition:all var(--t);}
.btn-p{background:var(--accent);color:#fff;}
.btn-p:hover{background:var(--accent2);box-shadow:var(--shadow-accent);transform:translateY(-1px);}
.btn-s{background:var(--surface);border:1px solid var(--border2);color:var(--text2);}
.btn-s:hover{border-color:var(--accent2);color:var(--accent2);}
.btn-g{background:rgba(52,211,153,0.12);border:1px solid rgba(52,211,153,0.2);color:var(--green);}
.btn-g:hover{background:rgba(52,211,153,0.22);}
.actions{display:flex;gap:8px;flex-wrap:wrap;}
.size-btns{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px;}
.size-btn{padding:6px 14px;border-radius:var(--r-full);font-size:12px;font-weight:600;border:1px solid var(--border);background:var(--surface);color:var(--text2);cursor:pointer;transition:all var(--t);}
.size-btn.active,.size-btn:hover{border-color:var(--accent);color:var(--accent2);background:rgba(124,108,255,0.07);}
.color-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.history-list{display:flex;flex-direction:column;gap:8px;margin-top:16px;max-height:240px;overflow-y:auto;}
.history-item{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);cursor:pointer;transition:all var(--t);}
.history-item:hover{border-color:var(--border2);}
.history-item-img{width:36px;height:36px;border-radius:6px;}
.history-item-text{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.history-item-time{font-size:11px;color:var(--text3);}
.dropzone{border:2px dashed var(--border2);border-radius:var(--r-xl);padding:48px 24px;text-align:center;cursor:pointer;background:var(--surface2);position:relative;transition:all var(--t);}
.dropzone:hover{border-color:var(--accent);}
.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.decode-result{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;margin-top:16px;display:none;}
.toast-stack{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;gap:8px;z-index:9999;}
.toast{background:var(--surface);border:1px solid var(--border2);border-radius:var(--r-md);padding:13px 18px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;box-shadow:var(--shadow-lg);max-width:340px;animation:slideLeft 0.3s ease;}
@keyframes slideLeft{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
.toast-success{border-left:3px solid var(--green);}
.toast-error{border-left:3px solid var(--red);}
.back-to-top{position:fixed;bottom:28px;left:28px;width:44px;height:44px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;color:var(--text2);font-size:18px;cursor:pointer;z-index:50;opacity:0;visibility:hidden;transition:all var(--t);}
.back-to-top.show{opacity:1;visibility:visible;}
.back-to-top:hover{background:var(--accent);border-color:var(--accent);color:#fff;}
@media(max-width:768px){.two-col{grid-template-columns:1fr;}.qr-preview{position:static;}}
/* Each half of .color-row is a 44px colour swatch plus a mono hex field in a
   flex row. Two of those in 155px columns leaves ~100px for "#000000" and its
   label; stacked, both fit without truncating. */
@media(max-width:560px){.color-row{grid-template-columns:1fr;}}
