/* CM Academy QR code generator v2, CSS tab. Buttons and hint boxes come from CM Academy Companion (cmac-button, cmac-info); this file only lays out the tool. */
#cm-qr-lab,#cm-qr-lab *{box-sizing:border-box}
#cm-qr-lab{--green:#9CCC3D;--green-soft:#F5FAEC;--blue:#185ABC;--navy:#1F354D;--ink:#12202E;--muted:#526173;--line:#DCE4EC;--control:#A3B0BD;--surface:#F5F8FC;color:var(--ink);font-family:"Titillium Web","Titillium Web Fallback",sans-serif;font-size:16px;line-height:1.6;max-width:100%}
#cm-qr-lab p{margin:0}
#cm-qr-lab input,#cm-qr-lab select,#cm-qr-lab .cqr-choice,#cm-qr-lab .cqr-seg button,#cm-qr-lab .cqr-swatch{font-family:inherit;letter-spacing:0;text-transform:none}
#cm-qr-lab :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#cm-qr-lab :focus:not(:focus-visible){outline:none}
#cm-qr-lab .cqr-intro{display:flex;flex-direction:column;gap:24px}
#cm-qr-lab .cqr-lead{font-size:16px!important;line-height:1.6!important;color:var(--ink)!important;max-width:none;text-wrap:pretty}
#cm-qr-lab .cqr-small,#cm-qr-lab .cqr-note,#cm-qr-lab .cqr-meta{font-size:14px!important;line-height:1.5!important;color:var(--muted)}
#cm-qr-lab .cqr-note:empty,#cm-qr-lab .cqr-urlnote:empty,#cm-qr-lab .cqr-status:empty,#cm-qr-lab #cqr-hints:empty,#cm-qr-lab #cqr-urlhints:empty{display:none}
#cm-qr-lab .cqr-hide{display:none!important}
/* Layout: settings left, preview right */
#cm-qr-lab .cqr-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}
#cm-qr-lab .cqr-settings{display:flex;flex-direction:column;gap:8px;min-width:0}
#cm-qr-lab .cqr-gap{margin-top:16px}
#cm-qr-lab .cqr-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0}
#cm-qr-lab .cqr-label{font-size:14px;font-weight:600;line-height:1.4;color:var(--ink)}
#cm-qr-lab .cqr-optional{font-weight:400;font-size:14px;color:var(--muted);margin-left:4px}
#cm-qr-lab .cqr-urlnote{word-break:break-all}
/* Inputs: control edge, 8 px corners, 44 px */
#cm-qr-lab input[type=url],#cm-qr-lab input[type=text],#cm-qr-lab select{width:100%;max-width:100%;height:44px!important;min-height:44px!important;margin:0;padding:8px 12px!important;border:1px solid var(--control);border-radius:8px;background:#fff;color:var(--ink);font-size:16px!important;line-height:1.4!important;box-shadow:none}
#cm-qr-lab input[type=url]:focus,#cm-qr-lab input[type=text]:focus,#cm-qr-lab select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(24,90,188,.12)}
#cm-qr-lab input::placeholder{color:var(--muted);opacity:1}
#cm-qr-lab select{-webkit-appearance:none;appearance:none;padding-right:40px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2312202E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/16px 16px!important}
#cm-qr-lab input.cqr-hex{width:112px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;font-size:14px!important;text-transform:uppercase}
#cm-qr-lab input.cqr-hex[aria-invalid=true]{border-color:#EBDC3C;box-shadow:0 0 0 3px rgba(235,220,60,.35)}
/* Print / Screen choice */
#cm-qr-lab .cqr-use{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:4px 0 8px;max-width:720px}
#cm-qr-lab .cqr-choice{display:flex;align-items:flex-start;gap:12px;width:100%;margin:0;padding:16px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);box-shadow:none;cursor:pointer;transition:border-color .15s,background-color .15s}
#cm-qr-lab .cqr-choice:hover{border-color:var(--green);background:var(--green-soft)}
#cm-qr-lab .cqr-choice[aria-pressed=true]{border-color:var(--green);background:var(--green-soft);box-shadow:inset 0 0 0 1px var(--green)}
#cm-qr-lab .cqr-choice-icon{flex:0 0 40px;width:40px;height:40px;border-radius:8px;background:var(--surface);display:grid;place-items:center}
#cm-qr-lab .cqr-choice-icon svg{width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#cm-qr-lab .cqr-choice[aria-pressed=true] .cqr-choice-icon{background:var(--green)}
#cm-qr-lab .cqr-choice[aria-pressed=true] .cqr-choice-icon svg{stroke:#12202E}
#cm-qr-lab .cqr-choice-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
#cm-qr-lab .cqr-choice-name{font-size:16px;font-weight:600;line-height:1.3;color:var(--ink)}
#cm-qr-lab .cqr-choice-desc{font-size:14px;font-weight:400;line-height:1.4;color:var(--muted)}
#cm-qr-lab .cqr-choice-check{flex:0 0 20px;width:20px;height:20px;margin-top:2px;border-radius:50%;border:1px solid var(--control);display:grid;place-items:center}
#cm-qr-lab .cqr-choice-check svg{width:12px;height:12px;fill:none;stroke:#12202E;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;opacity:0}
#cm-qr-lab .cqr-choice[aria-pressed=true] .cqr-choice-check{background:var(--green);border-color:var(--green)}
#cm-qr-lab .cqr-choice[aria-pressed=true] .cqr-choice-check svg{opacity:1}
/* Colour swatches */
#cm-qr-lab .cqr-swatches{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px}
#cm-qr-lab .cqr-swatch{position:relative;display:inline-flex;align-items:center;gap:8px;height:44px;margin:0;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:none;cursor:pointer;transition:border-color .15s}
#cm-qr-lab .cqr-swatch>span:first-child,#cm-qr-lab .cqr-custom-dot{display:block;width:30px;height:30px;border-radius:4px}
#cm-qr-lab .cqr-swatch:hover{border-color:var(--green)}
#cm-qr-lab .cqr-swatch[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
#cm-qr-lab .cqr-custom{padding-right:12px}
#cm-qr-lab .cqr-custom input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
#cm-qr-lab .cqr-custom-dot{background:conic-gradient(#EBDC3C,#9CCC3D,#61aaf2,#185ABC,#1F354D,#EBDC3C)}
#cm-qr-lab .cqr-custom-text{font-size:14px;font-weight:600;color:var(--ink)}
#cm-qr-lab .cqr-same span{position:relative}
#cm-qr-lab .cqr-same span::after{content:'=';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:700;line-height:1}
/* White / Transparent */
#cm-qr-lab .cqr-seg{display:inline-flex;align-self:flex-start;margin-top:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fff}
#cm-qr-lab .cqr-seg button{min-height:36px;margin:0;padding:0 16px;border:0;border-radius:6px;background:transparent;color:var(--ink);font-size:14px;font-weight:600;box-shadow:none;cursor:pointer;transition:background-color .15s,color .15s}
#cm-qr-lab .cqr-seg button:hover{background:var(--green-soft)}
#cm-qr-lab .cqr-seg button[aria-pressed=true]{background:var(--green);color:#12202E}
/* Logo drop area */
#cm-qr-lab .cqr-logo{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:4px;padding:12px 16px;border:1px dashed var(--green);border-radius:16px;background:var(--green-soft);transition:background-color .15s,border-color .15s}
#cm-qr-lab .cqr-logo[data-drag="1"]{border-style:solid}
#cm-qr-lab .cqr-logo[data-has="1"]{border-style:solid;border-color:var(--line);background:#fff}
/* Caption options */
#cm-qr-lab .cqr-capopts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;margin-top:8px}
#cm-qr-lab .cqr-capcol-field{grid-column:1/-1}
/* Checkbox */
#cm-qr-lab .cqr-check{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:14px;line-height:1.4;color:var(--ink)}
#cm-qr-lab .cqr-check input{-webkit-appearance:none;appearance:none;flex:0 0 18px;width:18px;height:18px;margin:0;border:1px solid var(--control);border-radius:4px;background:#fff center/12px 12px no-repeat;cursor:pointer;transition:background-color .15s,border-color .15s}
#cm-qr-lab .cqr-check input:checked{background-color:var(--green);border-color:var(--green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312202E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
/* Preview */
#cm-qr-lab .cqr-preview{position:sticky;top:24px;display:flex;flex-direction:column;align-items:stretch;gap:12px}
#cm-qr-lab .cqr-frame{position:relative;display:grid;place-items:center;width:100%;min-height:272px;padding:16px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--cmac-shadow,0 4px 12px rgba(18,32,46,.05))}
#cm-qr-lab .cqr-frame[data-bg=transparent]{background-image:linear-gradient(45deg,var(--surface) 25%,transparent 25%),linear-gradient(-45deg,var(--surface) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--surface) 75%),linear-gradient(-45deg,transparent 75%,var(--surface) 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
#cm-qr-lab .cqr-frame canvas{display:block;width:100%;height:auto}
#cm-qr-lab .cqr-frame[data-empty="1"] canvas{opacity:0}
#cm-qr-lab .cqr-empty{position:absolute;inset:0;display:none;align-items:center;justify-content:center;padding:24px;text-align:center;font-size:14px;color:var(--muted);background:var(--surface)}
#cm-qr-lab .cqr-frame[data-empty="1"] .cqr-empty{display:flex}
#cm-qr-lab .cqr-frame[data-empty="1"]~.cqr-scan{display:none}
#cm-qr-lab .cqr-meta{min-height:20px;text-align:center}
#cm-qr-lab .cqr-actions{display:flex;flex-direction:column;gap:8px}
#cm-qr-lab .cqr-actions .cmac-button{width:100%}
#cm-qr-lab .cqr-status{text-align:center}
#cm-qr-lab .cqr-scan{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--green-soft)}
#cm-qr-lab .cqr-scan-icon{flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--green);display:grid;place-items:center}
#cm-qr-lab .cqr-scan-icon svg{width:16px;height:16px;fill:none;stroke:#12202E;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#cm-qr-lab .cqr-scan-text{font-size:14px;line-height:1.5;color:var(--ink)}
#cm-qr-lab .cqr-scan-text strong{display:block;font-weight:600}
/* Hints: the plugin's info boxes (CM Info box); only spacing here */
#cm-qr-lab #cqr-urlhints .cmac-info,#cm-qr-lab #cqr-hints .cmac-info{margin:8px 0 0!important}
/* Privacy, basics, trademark */
#cm-qr-lab .cqr-privacy{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:16px;background:var(--surface);font-size:14px!important;line-height:1.5!important;color:var(--ink)!important}
#cm-qr-lab .cqr-lock{flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#fff;color:var(--ink);display:grid;place-items:center}
#cm-qr-lab .cqr-lock svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#cm-qr-lab .cqr-basics{border:1px solid var(--line);border-radius:16px;background:#fff}
#cm-qr-lab .cqr-basics summary{display:flex;align-items:center;gap:12px;padding:12px 16px;list-style:none;cursor:pointer;font-size:16px!important;font-weight:600;line-height:1.4!important;color:var(--ink)}
#cm-qr-lab .cqr-basics summary::-webkit-details-marker{display:none}
#cm-qr-lab .cqr-basics summary::before{content:'';flex:0 0 22px;width:22px;height:22px;border-radius:50%;background-color:var(--green);background-image:linear-gradient(#12202E,#12202E),linear-gradient(#12202E,#12202E);background-size:10px 2px,2px 10px;background-position:center;background-repeat:no-repeat}
#cm-qr-lab .cqr-basics[open] summary::before{background-size:10px 2px,0 0}
#cm-qr-lab .cqr-basics-body{display:flex;flex-direction:column;gap:8px;padding:0 16px 16px 50px}
#cm-qr-lab .cqr-basics-body p{font-size:16px!important;line-height:1.6!important;color:var(--ink)!important}
/* 0.16.79: set apart from the tool text: further down, close to the line below, smaller, dark text, no line. */
#cm-qr-lab .cqr-trademark{margin-top:48px!important;margin-bottom:-24px!important;padding-top:0;border-top:0;font-size:12px!important;line-height:1.5!important;color:var(--ink,#12202E)!important}
/* 0.16.58: signs for our apps */
#cm-qr-lab .cqr-signs{display:flex;flex-direction:column;gap:16px}
#cm-qr-lab .cqr-signs-head{display:flex;flex-direction:column;gap:4px}
#cm-qr-lab .cqr-signs-title{font-size:20px!important;font-weight:700;line-height:1.3!important;color:var(--ink)!important}
#cm-qr-lab .cqr-signs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#cm-qr-lab .cqr-sign{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--cmac-shadow,0 4px 12px rgba(18,32,46,.05))}
#cm-qr-lab .cqr-sign[hidden]{display:none}
#cm-qr-lab .cqr-sign-preview{display:grid;place-items:center;padding:16px;border-radius:8px;background:var(--surface)}
#cm-qr-lab .cqr-sign-preview canvas{display:block;width:100%;max-width:240px;height:auto}
#cm-qr-lab .cqr-sign-info{display:flex;align-items:center;gap:12px;min-width:0}
#cm-qr-lab .cqr-sign-info img{flex:0 0 40px;width:40px;height:40px;border-radius:9px;margin:0}
#cm-qr-lab .cqr-sign-text{display:flex;flex-direction:column;min-width:0}
#cm-qr-lab .cqr-sign-name{font-size:16px;font-weight:600;line-height:1.4;color:var(--ink)}
#cm-qr-lab .cqr-sign-url{word-break:break-all}
#cm-qr-lab .cqr-sign-actions{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:640px){#cm-qr-lab .cqr-signs-grid{grid-template-columns:1fr}}
@media (max-width:760px){#cm-qr-lab .cqr-layout{grid-template-columns:1fr}#cm-qr-lab .cqr-preview{position:static;width:100%;max-width:320px;margin:0 auto}}
@media (max-width:640px){#cm-qr-lab .cqr-use{grid-template-columns:1fr}#cm-qr-lab .cqr-capopts{grid-template-columns:1fr 1fr}#cm-qr-lab .cqr-basics-body{padding-left:16px}}

#cm-qr-lab .cqr-public{margin:8px 0 0!important}
/* 0.18.73: "Add logo" is green like the upload buttons in the other tools. */
#cm-qr-lab #cqr-logo-add{background:#9CCC3D!important;border:1px solid #9CCC3D!important;color:#12202E!important;-webkit-text-fill-color:#12202E!important}
#cm-qr-lab #cqr-logo-add svg,#cm-qr-lab #cqr-logo-add svg *{stroke:currentColor!important}
@media (hover:hover){#cm-qr-lab #cqr-logo-add:hover{background:#1F354D!important;border-color:#1F354D!important;color:#fff!important;-webkit-text-fill-color:#fff!important}}
#cm-qr-lab #cqr-logo-add:focus-visible{background:#1F354D!important;border-color:#1F354D!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
