:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color-scheme:light;--bg:#f8f9fc;--surface:#fff;--surface-2:#f5f6fa;--surface-3:#eef0f6;--line:#e8eaf1;--line-strong:#d9dce7;--text:#1a2131;--muted:#758094;--muted-2:#96a0ad;--accent:#5d58dc;--accent-hover:#4e48c5;--accent-soft:#f0efff;--accent-line:#dad6ff;--accent-ink:#4d45bc;--good:#248269;--good-soft:#e7f5ef;--shadow:0 12px 42px rgba(34,42,71,.045)}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0d1119;--surface:#171d29;--surface-2:#202735;--surface-3:#272f40;--line:#303747;--line-strong:#3e485b;--text:#f4f5f9;--muted:#a0abbc;--muted-2:#8390a2;--accent:#afa6ff;--accent-hover:#c0b8ff;--accent-soft:#353151;--accent-line:#555078;--accent-ink:#d1cbff;--good:#6cddb8;--good-soft:#213d39;--shadow:0 12px 42px rgba(0,0,0,.13)}
*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh;font-size:14px;line-height:1.5;transition:background .35s,color .35s}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.icon-library{width:0;height:0;position:absolute;overflow:hidden}.ico{width:17px;height:17px;flex:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}.site-shell{max-width:1150px;padding:0 32px;margin:0 auto}.site-header{height:85px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;gap:11px;align-items:center;min-width:0}.brand-mark{background:var(--accent);color:#fff;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;box-shadow:0 4px 12px rgba(83,77,215,.15)}.brand-qr{width:23px;height:23px;stroke-width:1.65}.brand-type{font-weight:780;letter-spacing:-.6px;font-size:17px;white-space:nowrap}.brand-type span{font-weight:450;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:11px}.text-button{border:1px solid transparent;background:transparent;color:var(--muted);font-size:12px;font-weight:620;padding:10px 11px;border-radius:10px;display:flex;align-items:center;gap:7px;transition:color .2s,background .2s}.text-button:hover{color:var(--text);background:var(--surface-2)}.install-button{color:var(--accent-ink);background:var(--accent-soft)}.theme-toggle{width:133px;height:39px;border:1px solid var(--line);border-radius:50px;padding:4px;display:flex;align-items:center;position:relative;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.025);transition:background .35s,border-color .35s}.theme-thumb{position:absolute;left:4px;top:4px;width:60px;height:29px;border-radius:100px;background:var(--accent-soft);transform:translateX(0);transition:transform .46s cubic-bezier(.21,1.25,.36,1),background .35s;pointer-events:none}.theme-opt{flex:1;z-index:1;display:flex;justify-content:center;align-items:center;gap:5px;font-size:11px;font-weight:670;color:var(--muted);transition:color .35s}.theme-opt .ico{width:13px;height:13px}.theme-light{color:var(--accent-ink)}:root[data-theme="dark"] .theme-thumb{transform:translateX(64px)}:root[data-theme="dark"] .theme-light{color:var(--muted)}:root[data-theme="dark"] .theme-dark{color:var(--accent-ink)}
.intro{text-align:center;padding:52px 10px 34px}.eyebrow{display:inline-flex;align-items:center;gap:8px;letter-spacing:.09em;color:var(--accent-ink);font-size:11px;font-weight:750;text-transform:uppercase}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}h1,h2,p{margin-top:0}.intro h1{font-size:clamp(30px,4.2vw,46px);line-height:1.13;letter-spacing:-2.1px;font-weight:780;margin:13px 0 13px}.intro h1 em{font-style:normal;color:var(--accent)}.intro p{color:var(--muted);font-size:14px;margin:0}.workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(355px,.85fr);gap:20px;align-items:start}.panel{border:1px solid var(--line);background:var(--surface);border-radius:19px;box-shadow:var(--shadow);transition:background .35s,border-color .35s}.editor{padding:29px}.preview{padding:27px;position:sticky;top:18px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:17px}.section-kicker{color:var(--muted-2);font-size:10px;line-height:1.4;font-weight:760;letter-spacing:.12em}.section-heading h2,.preview h2,.type-picker{display:flex;gap:7px;margin-bottom:22px;min-width:0}.type-btn{display:flex;gap:6px;align-items:center;justify-content:center;padding:10px 11px;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-height:41px;color:var(--muted);font-size:12px;font-weight:660;white-space:nowrap;transition:background .2s,border-color .2s,color .2s}.type-btn .ico{width:15px;height:15px}.type-btn:hover{background:var(--surface-2);color:var(--text)}.type-btn.is-active{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-ink)}.more-wrap{position:relative;min-width:0}.more-btn .mini-chevron{width:12px;height:12px}.dropdown{background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 18px 35px rgba(0,0,0,.12);z-index:25;position:absolute;overflow:hidden}.more-menu{top:calc(100% + 8px);right:0;min-width:158px;padding:6px}.more-menu button{width:100%;border:0;background:transparent;color:var(--text);padding:10px 9px;text-align:left;border-radius:7px;display:flex;gap:10px;align-items:center;font-size:13px}.more-menu button:hover{background:var(--surface-2)}.more-menu .ico{width:15px;height:15px;color:var(--muted)}.field{display:block;min-width:0}.field-name{display:block;font-weight:680;font-size:12px;letter-spacing:.01em;margin-bottom:8px}.fields{min-height:94px}.fields input,.fields textarea,.frame-field input{display:block;width:100%;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:12px 13px;color:var(--text);font-size:13px;outline:none;transition:background .25s,border-color .25s,box-shadow .2s}.fields input:focus,.fields textarea:focus,.frame-field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.fields input::placeholder,.fields textarea::placeholder,.frame-field input::placeholder{color:var(--muted-2)}.fields textarea{min-height:94px;resize:vertical;line-height:1.6}.field-hint{display:block;color:var(--muted);font-size:11px;margin-top:8px;line-height:1.5}.field-error{font-size:11px;color:#c34b55;margin-top:7px}.fields .field+.field{margin-top:13px}.fields .field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}.fields .field-grid .field{margin:0}.fields select,.export-size select{width:100%;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:10px 11px;color:var(--text);font-size:12px}.fields .check-inline{margin-top:14px}.check-inline{display:flex;align-items:center;gap:8px;color:var(--text);font-size:12px}.check-inline input{accent-color:var(--accent);width:16px;height:16px}.input-password{display:flex;position:relative}.input-password input{padding-right:68px}.show-password{position:absolute;right:5px;top:5px;height:34px;border:0;background:transparent;color:var(--accent-ink);font-size:11px;font-weight:720;padding:0 9px;border-radius:6px}.divider{height:1px;background:var(--line);margin:28px 0 23px}.design-heading{margin-bottom:15px}.optional{color:var(--muted-2);font-size:12px;font-weight:450;letter-spacing:0}.presets{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.preset{border:1px solid transparent;border-radius:12px;padding:5px 5px 8px;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10.5px;font-weight:620;min-width:0;transition:background .2s,border-color .2s}.preset:hover{background:var(--surface-2);color:var(--text)}.preset.is-active{color:var(--accent-ink);background:var(--accent-soft);border-color:var(--accent-line)}.preset-image{width:100%;aspect-ratio:1;max-width:66px;display:flex;justify-content:center;align-items:center;border:1px solid #e7e9f0;border-radius:9px;background:#fff}.mini-qr{width:53%;height:53%;display:block;background-color:#20243a;background-image:linear-gradient(90deg,white 18%,transparent 18%,transparent 41%,white 41%,white 54%,transparent 54%,transparent 76%,white 76%),linear-gradient(white 17%,transparent 17%,transparent 37%,white 37%,white 50%,transparent 50%,transparent 74%,white 74%);background-size:12px 12px;border:3px solid currentColor;outline:2px solid white;color:#20243a;box-shadow:inset 0 0 0 3px #fff}.preset-image[data-icon="soft"] .mini-qr{color:#6656ce;background-color:#6656ce;border-radius:5px}.preset-image[data-icon="ocean"] .mini-qr{color:#087a88;background-color:#087a88}.preset-image[data-icon="berry"] .mini-qr{color:#922a66;background-color:#922a66;border-radius:4px}.preset-image[data-icon="forest"] .mini-qr{color:#217453;background-color:#217453}.preset-image[data-icon="sunset"] .mini-qr{color:#9f5826;background-color:#9f5826;border-radius:5px}.customize{border:1px solid var(--line);border-radius:12px;margin-top:20px;background:var(--surface);overflow:hidden;transition:background .3s,border-color .3s}.customize>summary{list-style:none;display:flex;align-items:center;gap:12px;cursor:pointer;padding:14px;user-select:none}.customize>summary::-webkit-details-marker{display:none}.custom-summary-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink)}.summary-copy{display:flex;flex-direction:column;flex:1;gap:2px}.summary-copy strong{font-size:12.5px;font-weight:720}.summary-copy small{font-size:11px;color:var(--muted)}.summary-chevron{color:var(--muted);transition:transform .2s}.customize[open] .summary-chevron{transform:rotate(180deg)}.custom-inner{border-top:1px solid var(--line);padding:15px}.custom-tabs{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:4px;background:var(--surface-2);padding:4px;border-radius:9px;margin-bottom:18px}.custom-tabs button{border:0;padding:10px 5px;background:transparent;color:var(--muted);border-radius:7px;font-size:11px;font-weight:660}.custom-tabs button[aria-selected="true"]{background:var(--surface);color:var(--accent-ink);box-shadow:0 1px 5px rgba(0,0,0,.05)}.custom-panel{animation:panelIn .18s ease}.control-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.control-row .field-name{margin:0}.color-control{border:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:5px 9px 5px 5px;border-radius:9px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.color-control input{border:0;padding:0;background:none;width:30px;height:25px;cursor:pointer}.style-control{margin-top:18px}.segmented{display:flex;background:var(--surface-2);padding:4px;border-radius:9px;gap:5px}.segmented button{flex:1;border:1px solid transparent;background:transparent;padding:8px 6px;border-radius:7px;font-size:11px;color:var(--muted)}.segmented button.selected{background:var(--surface);border-color:var(--line);color:var(--text);font-weight:690}.helper{display:flex;align-items:flex-start;gap:7px;color:var(--muted);font-size:11px;margin:17px 0 0;line-height:1.6}.helper .ico{width:14px;height:14px;margin-top:1px}.upload-row{display:flex;gap:8px;align-items:center}.upload-box{border:1px dashed var(--line-strong);padding:13px;border-radius:10px;display:flex;align-items:center;gap:12px;flex:1;cursor:pointer;background:var(--surface-2);min-width:0}.upload-box:hover{border-color:var(--accent)}.upload-box .ico{color:var(--accent-ink);width:23px;height:23px}.upload-box>span{display:flex;flex-direction:column;gap:2px;min-width:0}.upload-box strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}.upload-box small{color:var(--muted);font-size:10px}.remove-btn{background:var(--surface-2);border:1px solid var(--line);color:var(--muted);border-radius:8px;font-size:11px;padding:9px}.logo-settings{align-items:flex-start;margin-top:14px;flex-wrap:wrap}.range-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.range-label input{max-width:75px;accent-color:var(--accent)}.image-separator{height:1px;background:var(--line);margin:19px 0 15px}.photo-note{margin:0 0 11px}.frame-choices{display:flex;flex-wrap:wrap;gap:8px}.frame-choices button{padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:11px}.frame-choices button.selected{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-ink);font-weight:690}.frame-field{margin-top:15px}.editor-bottom{margin-top:22px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.editor-bottom .ico{width:14px;height:14px;color:var(--good)}
.preview-top{display:flex;justify-content:space-between;gap:10px;align-items:start}.preview-status{display:inline-flex;align-items:center;gap:6px;background:var(--surface-2);padding:6px 9px;border-radius:30px;color:var(--muted);font-size:10px;font-weight:650;margin-top:7px;white-space:nowrap}.preview-status.is-ready{color:var(--good);background:var(--good-soft)}.status-dot{width:6px;height:6px;background:currentColor;border-radius:50%}.preview-stage{margin-top:22px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;min-height:354px;padding:27px 23px;display:grid;place-items:center;overflow:hidden;transition:background .35s,border-color .35s}.preview-art{max-width:100%;width:275px;min-height:275px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative;overflow:hidden;transition:all .2s;background:transparent}.preview-art.has-photo{background-size:cover;background-position:center;padding:16px 13px;box-shadow:0 7px 18px #00000012}.qr-surface{width:100%;aspect-ratio:1;background:#fff;border-radius:9px;display:grid;place-items:center;padding:8px;position:relative;box-shadow:0 7px 24px rgba(25,35,58,.07)}.qr-holder{width:100%;height:100%;min-height:0;display:grid;place-items:center}.qr-holder svg{height:100%;width:100%;display:block}.empty-preview{height:100%;width:100%;border:1.6px dashed #e1e4eb;border-radius:7px;display:grid;place-items:center;color:#bdc2cd}.empty-preview .ico{width:75px;height:75px;stroke-width:.85}.qr-caption{font-weight:760;text-align:center;background:white;color:#1e2637;width:100%;padding:11px 12px;border-radius:7px;font-size:15px;line-height:1.3;overflow-wrap:anywhere}.qr-caption[hidden]{display:none}.preview-content{font-size:12px;color:var(--muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:16px;line-height:1.6}.scan-hint{display:flex;justify-content:center;align-items:center;gap:7px;color:var(--muted);font-size:11px;margin:8px 0 0;min-height:18px;text-align:center}.scan-hint .ico{width:13px;height:13px;color:var(--accent)}.scan-hint.is-error{color:#c34b55}.scan-hint.is-error .ico{color:#c34b55}.preview-actions{margin-top:23px}.download-group{position:relative;display:flex;gap:2px}.primary-btn,.download-more{background:var(--accent);color:#fff;border:1px solid var(--accent);height:47px;font-weight:750;transition:background .2s,transform .2s}.primary-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:10px 0 0 10px}.primary-btn:hover:enabled,.download-more:hover:enabled{background:var(--accent-hover)}.primary-btn:active:enabled{transform:translateY(1px)}.download-more{width:45px;border-radius:0 10px 10px 0;display:grid;place-items:center;border-left-color:#ffffff34}.download-more .ico{width:16px;height:16px}.primary-btn:disabled,.download-more:disabled{opacity:.45}.export-menu{top:calc(100% + 8px);right:0;width:min(285px,95vw);padding:9px}.menu-title{display:block;padding:5px 9px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.export-menu>button{border:0;background:transparent;color:var(--text);padding:10px;display:flex;justify-content:space-between;width:100%;font-size:12px;border-radius:6px;font-weight:700}.export-menu>button:hover{background:var(--surface-2)}.export-menu>button small{color:var(--muted);font-size:11px;font-weight:460}.menu-rule{height:1px;background:var(--line);margin:6px 0}.export-size{padding:6px 9px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}.export-size select{padding:6px;max-width:155px}.secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.small-action{border:1px solid var(--line);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--surface);color:var(--text);padding:11px 8px;font-size:12px;font-weight:640;flex:1;transition:background .2s,border-color .2s}.small-action:hover:enabled{background:var(--surface-2);border-color:var(--line-strong)}.small-action:disabled{opacity:.4}.small-action .ico{width:15px;height:15px;color:var(--muted)}.preview-footnote{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:20px;color:var(--muted);font-size:10px}.preview-footnote .ico{width:13px;height:13px;color:var(--good)}.bottom-tip{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:11.5px;margin:23px 0 49px}.bottom-tip strong{color:var(--text)}.bottom-tip .ico{width:15px;height:15px;color:var(--accent)}.site-footer{padding:24px 0 30px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}.footer-left{display:flex;flex-direction:column;gap:4px}.footer-privacy{font-size:10px;color:var(--muted-2)}.footer-brand{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-width:145px}.footer-powered{font-size:10px;line-height:1.3;color:var(--muted-2);font-weight:500}.footer-logo{display:block;object-fit:contain;width:148px;height:48px;max-width:100%} .footer-brand img{transition:transform .2s ease}.toast{position:fixed;z-index:200;bottom:26px;left:50%;transform:translate(-50%,15px);padding:11px 15px;border-radius:10px;background:var(--text);color:var(--surface);font-size:12px;font-weight:650;box-shadow:0 12px 35px #0003;opacity:0;pointer-events:none;transition:opacity .22s,transform .22s;max-width:calc(100vw - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes panelIn{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:900px){.site-shell{padding:0 22px}.workspace{grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:14px}.editor,.preview{padding:20px}.type-picker{gap:5px;flex-wrap:wrap}.type-btn{padding:9px 9px}.preview-stage{padding:20px 14px;min-height:310px}.preview-art{width:250px;min-height:250px}.presets{gap:4px}.preset{padding:5px 3px 7px}}
@media(max-width:730px){.site-shell{padding:0 19px}.site-header{height:70px}.intro{padding:39px 6px 30px}.intro h1{letter-spacing:-1.4px}.workspace{display:flex;flex-direction:column;gap:14px}.editor,.preview{width:100%;padding:24px}.preview{position:static}.preview-stage{min-height:295px}.preview-art{width:270px;min-height:270px}.presets{gap:8px}.type-picker{flex-wrap:nowrap}.type-btn{flex:1;padding:10px 8px}.more-wrap{flex:1}.more-btn{width:100%}.preview-footnote{margin-top:15px}.bottom-tip{margin-bottom:29px}}
@media(max-width:460px){.site-shell{padding:0 14px}.site-header{height:65px}.brand-mark{width:33px;height:33px;border-radius:9px}.brand-qr{width:20px;height:20px}.brand-type{font-size:14px}.hide-small{display:none}.header-actions{gap:4px}.theme-toggle{width:110px;height:37px;padding:3px}.theme-thumb{width:50px;height:29px;top:3px;left:3px}:root[data-theme="dark"] .theme-thumb{transform:translateX(54px)}.theme-opt{font-size:10px;gap:3px}.theme-opt .ico{width:12px;height:12px}.intro{padding:30px 5px 27px}.eyebrow{font-size:9px}.intro h1{font-size:30px;letter-spacing:-1.5px}.intro p{font-size:12px}.editor,.preview{padding:18px;border-radius:15px}.section-heading h2,.preview h2{font-size:17px}.type-picker{gap:5px;margin-bottom:19px}.type-btn{font-size:10px;gap:4px;padding:9px 5px;min-height:40px;border-radius:9px}.type-btn .ico{width:13px;height:13px}.more-btn .mini-chevron{display:none}.fields .field-grid{gap:9px}.presets{gap:3px}.preset-image{border-radius:7px}.preset{font-size:9px;gap:6px;padding:4px 2px 7px}.mini-qr{border-width:2px}.summary-copy small{font-size:10px}.customize>summary{padding:12px}.custom-inner{padding:12px}.preview-stage{padding:19px 12px;min-height:289px}.preview-art{width:242px;min-height:242px}.qr-caption{font-size:13px}.bottom-tip{text-align:left;align-items:start;font-size:10px;padding:0 6px;line-height:1.7}.bottom-tip .ico{margin-top:2px}.site-footer{font-size:10px;gap:12px;flex-wrap:nowrap}.footer-brand{min-width:118px}.footer-logo{width:120px;height:39px}.footer-powered{font-size:9px}.export-menu{width:260px}}
@media(max-width:350px){.brand-type span{display:none}.type-btn .ico{display:none}.type-btn{padding:9px 4px}.preview-art{width:220px;min-height:220px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* ---------------------------------------------------------------------------
   HJDP QUIET EDITION · Editorial interface · v1.1
   The foundational interactive styles stay above; these refinements change
   presentation only. Functionality, IDs, data attributes and QR logic remain.
   --------------------------------------------------------------------------- */
:root {
  --bg:#f9fafb;
  --surface:#ffffff;
  --surface-2:#f8f9fb;
  --surface-3:#f2f4f7;
  --line:#e6e9ee;
  --line-strong:#d5dae2;
  --text:#202631;
  --muted:#697585;
  --muted-2:#8a95a3;
  --accent:#227bbf;
  --accent-hover:#176da8;
  --accent-soft:#eff6fc;
  --accent-line:#a9cbe4;
  --accent-ink:#145f97;
  --good:#3a7a67;
  --good-soft:#eef7f2;
  --shadow:none;
}
:root[data-theme="dark"] {
  --bg:#11151b;
  --surface:#191f27;
  --surface-2:#202833;
  --surface-3:#29313d;
  --line:#303945;
  --line-strong:#46505e;
  --text:#e8edf3;
  --muted:#a1acbb;
  --muted-2:#8390a0;
  --accent:#68b8ef;
  --accent-hover:#4a9ddd;
  --accent-soft:#233746;
  --accent-line:#3e647e;
  --accent-ink:#a0d6ff;
  --good:#75c9a9;
  --good-soft:#263b34;
  --shadow:none;
}
body {font-size:14px;line-height:1.54;letter-spacing:-.004em;}
.site-shell {max-width:1110px;padding:0 35px;}
.site-header {height:73px;gap:16px;}
.brand {gap:10px;}
.brand-mark {width:31px;height:31px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);box-shadow:none;border-radius:7px;}
.brand-qr {width:19px;height:19px;stroke-width:1.8;}
.brand-type {font-size:15px;letter-spacing:-.38px;font-weight:720;}
.brand-type span {color:var(--muted);font-weight:470;}
.header-actions {gap:6px;}
.text-button {border-radius:7px;font-size:12px;font-weight:550;padding:8px 10px;}
.text-button:hover {background:var(--surface-3);}
.install-button{background:var(--surface-2);color:var(--text);border:1px solid var(--line);}
/* deliberate, quiet sliding segmented-control: no glow or spring bounce */
.theme-toggle {width:124px;height:35px;border-radius:100px;background:var(--surface-2);border:1px solid var(--line);padding:3px;box-shadow:none;}
.theme-thumb{left:3px;top:3px;width:56px;height:27px;background:var(--surface);border:1px solid var(--line);border-radius:100px;box-shadow:0 1px 3px rgba(20,30,45,.08);transition:transform .28s cubic-bezier(.2,.7,.2,1),background .28s;}
:root[data-theme="dark"] .theme-thumb {transform:translateX(61px);}
.theme-opt {font-size:11px;font-weight:580;color:var(--muted);gap:4px;transition:color .25s;}
.theme-opt .ico {width:13px;height:13px;}
.theme-light,:root[data-theme="dark"] .theme-dark{color:var(--text);}
.intro{text-align:left;padding:44px 0 28px;}
.intro h1 {font-size:clamp(28px,3.2vw,36px);letter-spacing:-1.05px;line-height:1.17;font-weight:675;margin:0 0 9px;}
.intro h1 em {font-style:normal;color:inherit;}
.intro p{font-size:14px;color:var(--muted);max-width:700px;}
.workspace {grid-template-columns:minmax(0,1.13fr) minmax(340px,.87fr);gap:17px;}
.panel {border-radius:12px;box-shadow:none;border-color:var(--line);}
.editor{padding:29px 29px 25px;}
.preview{padding:27px;top:16px;}
.section-heading{margin-bottom:18px;}
.section-kicker{color:var(--muted-2);font-size:10px;letter-spacing:.09em;font-weight:650;}
.section-heading h2,.preview h2 {font-size:17px;letter-spacing:-.4px;font-weight:660;margin-top:5px;}
.type-picker{gap:5px;margin-bottom:23px;border-bottom:1px solid var(--line);padding-bottom:11px;}
.type-btn{min-height:35px;padding:8px 10px;font-size:12px;font-weight:550;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--muted);}
.type-btn .ico{width:14px;height:14px;stroke-width:1.8;}
.type-btn:hover{background:var(--surface-2);color:var(--text);}
.type-btn.is-active{background:var(--surface-3);border-color:var(--line);color:var(--text);font-weight:660;}
.dropdown {border-radius:9px;box-shadow:0 14px 35px rgba(8,15,28,.12);}
.field-name{font-weight:600;font-size:12px;letter-spacing:0;margin-bottom:8px;}
.fields{min-height:82px;}
.fields input,.fields textarea,.frame-field input {background:var(--surface);border:1px solid var(--line-strong);border-radius:7px;min-height:43px;font-size:13px;padding:10px 12px;box-shadow:none;}
.fields input:focus,.fields textarea:focus,.frame-field input:focus {border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft);}
.fields .field-hint{font-size:11px;color:var(--muted-2);margin-top:7px;}
.fields select,.export-size select {border-radius:7px;background:var(--surface);border-color:var(--line-strong);}
.divider{margin:27px 0 24px;}
.design-heading{margin-bottom:15px;}
.optional{font-size:11px;font-weight:450;color:var(--muted-2);letter-spacing:0;}
/* Presets as restrained tools, not collectible game-style cards. */
.presets {grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;}
.preset{padding:7px 3px 9px;border:1px solid transparent;background:transparent;border-radius:7px;color:var(--muted);font-weight:500;gap:7px;font-size:11px;}
.preset:hover{background:var(--surface-2);}
.preset.is-active {background:var(--surface-2);color:var(--text);border-color:var(--line-strong);font-weight:650;}
.preset-image{max-width:60px;width:100%;aspect-ratio:1;border:1px solid var(--line);border-radius:6px;background:#fff;}
.mini-qr{width:54%;height:54%;border-width:2px;box-shadow:inset 0 0 0 2px #fff;}
/* Preserve the colorful code output for presets but make thumbnails neutral. */
.preset-image[data-icon] .mini-qr {color:#313d4d;background-color:#313d4d;border-radius:1px;}
.preset-image[data-icon="soft"] .mini-qr {border-radius:4px;}
.preset-image[data-icon="berry"] .mini-qr {border-radius:3px;}
.customize{margin-top:19px;border-radius:9px;background:var(--surface);}
.customize>summary{padding:12px 13px;gap:11px;}
.custom-summary-icon {width:27px;height:27px;background:var(--surface-3);color:var(--muted);border:1px solid var(--line);border-radius:6px;}
.custom-summary-icon .ico {width:15px;height:15px;}
.summary-copy strong{font-size:12px;font-weight:620;}
.summary-copy small{font-size:11px;color:var(--muted);}
.custom-inner{background:var(--surface);}
.editor-bottom {color:var(--muted-2);font-size:11px;}
.editor-bottom .ico{color:var(--muted-2);}
.preview-top{align-items:center;}
.preview-status {margin-top:0;border-radius:5px;font-size:11px;font-weight:500;background:transparent;padding:5px 0;color:var(--muted);}
.preview-status.is-ready{color:var(--good);background:transparent;}
.preview-status .status-dot{width:5px;height:5px;}
.preview-stage{margin-top:19px;min-height:334px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:23px 18px;}
.preview-art{width:270px;min-height:270px;border-radius:4px;}
.preview-art.has-photo {box-shadow:none;}
.qr-surface {border-radius:5px;box-shadow:0 1px 3px rgba(0,0,0,.04);}
.empty-preview{border:1px dashed var(--line-strong);border-radius:5px;}
.preview-content {margin-top:14px;font-size:11.5px;}
.scan-hint {font-size:11px;margin:5px 0 0;color:var(--muted-2);}
.scan-hint .ico {display:none;}
.preview-actions{margin-top:20px;}
.primary-btn,.download-more{height:44px;font-weight:625;font-size:12.5px;background:#1c2834;border-color:#1c2834;}
.primary-btn{border-radius:7px 0 0 7px;}
.download-more{border-radius:0 7px 7px 0;width:43px;}
.primary-btn:hover:enabled,.download-more:hover:enabled{background:#303f4c;border-color:#303f4c;}
:root[data-theme="dark"] .primary-btn,:root[data-theme="dark"] .download-more{background:#e5edf5;border-color:#e5edf5;color:#14202d;}
:root[data-theme="dark"] .primary-btn:hover:enabled,:root[data-theme="dark"] .download-more:hover:enabled{background:#fff;border-color:#fff;}
:root[data-theme="dark"] .download-more{border-left-color:#d1dbe2;}
.small-action{font-size:12px;font-weight:540;padding:9px 7px;border-radius:7px;}
.preview-footnote{font-size:10px;color:var(--muted-2);margin-top:16px;}
.preview-footnote .ico{color:var(--good);}
.bottom-tip{display:none;}
.site-footer{margin-top:47px;padding:25px 0 34px;font-size:11px;}
.footer-brand{gap:4px;min-width:135px;}
.footer-powered{font-size:10px;letter-spacing:0;color:var(--muted-2);}
.footer-logo{width:143px;height:auto;max-height:54px;object-fit:contain;}
.footer-privacy{color:var(--muted-2);}

@media(max-width:900px){
 .site-shell{padding:0 23px;}
 .workspace{grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:14px;}
 .editor,.preview{padding:22px;}
 .type-btn{padding:8px 7px;}
 .presets{gap:3px;}
 .preview-stage{min-height:304px;}
 .preview-art{width:235px;min-height:235px;}
}
@media(max-width:730px){
 .site-shell{padding:0 19px;}
 .site-header{height:68px;}
 .intro{padding:34px 0 23px;}
 .intro h1{font-size:31px;letter-spacing:-.85px;}
 .workspace{display:flex;flex-direction:column;gap:14px;}
 .editor,.preview{width:100%;padding:24px;}
 .preview{position:static;}
 .preview-stage{min-height:300px;}
 .preview-art{width:245px;min-height:245px;}
 .type-picker{flex-wrap:nowrap;}
 .type-btn{padding:8px 9px;}
 .site-footer{margin-top:27px;}
}
@media(max-width:460px){
 .site-shell{padding:0 15px;}
 .site-header{height:61px;}
 .brand-mark{width:29px;height:29px;}
 .brand-qr{width:18px;height:18px;}
 .brand-type{font-size:13px;}
 .header-actions{gap:2px;}
 
 .theme-toggle{width:112px;height:34px;}
 .theme-thumb{height:26px;width:50px;left:3px;top:3px;}
 :root[data-theme="dark"] .theme-thumb{transform:translateX(55px);}
 .theme-opt{font-size:10px;}
 .intro{padding:29px 1px 22px;}
 .intro h1{font-size:28px;letter-spacing:-.7px;}
 .intro p{font-size:12px;max-width:320px;line-height:1.65;}
 .editor,.preview{padding:19px;border-radius:9px;}
 .section-heading h2,.preview h2{font-size:16px;}
 .type-picker{gap:2px;margin-bottom:20px;padding-bottom:10px;}
 .type-btn{min-height:38px;font-size:10px;gap:4px;padding:7px 5px;border-radius:5px;}
 .type-btn .ico{width:12px;height:12px;}
 .fields .field-grid{gap:9px;}
 .presets{gap:2px;}
 .preset{font-size:9px;padding:5px 1px 7px;gap:5px;}
 .preset-image{border-radius:4px;}
 .preview-stage{min-height:282px;padding:15px 12px;}
 .preview-art{width:230px;min-height:230px;}
 .preview-status{font-size:10px;}
 .footer-logo{width:122px;max-height:50px;}
 .footer-brand{min-width:122px;}
 .footer-powered{font-size:9px;}
 .site-footer{margin-top:28px;}
}
@media(max-width:350px){
 .brand-type span{display:none;}
 .type-btn .ico{display:none;}
 .type-btn{padding:8px 4px;}
 .preview-art{width:215px;min-height:215px;}
}


/* QR Studio identity: app mark is independent of the unchanged HJDP footer logo. */
.brand-mark,.brand-mark:hover{width:31px;height:31px;padding:0;background:transparent;border:0;box-shadow:none;border-radius:0;display:grid;place-items:center}
.brand-symbol{display:block;width:30px;height:30px;object-fit:contain}
:root[data-theme="dark"] .brand-symbol{filter:brightness(0) invert(1)}
.brand-type{font-size:19px;line-height:1;letter-spacing:-.9px;font-weight:760;color:var(--text)}
@media(max-width:460px){.brand-type{font-size:17px}.brand-symbol{width:27px;height:27px}.brand-mark{width:28px;height:28px}}

/* Footer branding tweak requested: larger Powered by label and slightly larger vertical gap */
.footer-brand{gap:8px;}
.footer-powered{font-size:11px;font-weight:600;line-height:1.35;}
@media (max-width:460px){
  .footer-brand{gap:7px;}
  .footer-powered{font-size:10px;}
}


/* QR Studio 1.1 — quiet blue accents, legible branding and mobile phone forms */
:root {
  --bg:#f7f9fc;--surface-2:#f3f7fc;--surface-3:#e8eff9;
  --line:#e3eaf3;--line-strong:#cdd9e8;
  --accent:#2a6fbd;--accent-hover:#1c5a9f;--accent-soft:#eaf3ff;
  --accent-line:#bfd9f7;--accent-ink:#245a99;
  --shadow:0 10px 36px rgba(28,72,119,.045);
}
:root[data-theme="dark"] {
  --bg:#101724;--surface:#192332;--surface-2:#222e40;--surface-3:#2b3b50;
  --line:#334157;--line-strong:#455a73;
  --accent:#7db6f3;--accent-hover:#a7cfff;--accent-soft:#233b59;
  --accent-line:#355779;--accent-ink:#a4d0ff;
}
.site-header {border-bottom-color:var(--line);}
.brand {gap:10px;}
.brand-mark,.brand-mark:hover {width:38px;height:38px;border-radius:9px;background:transparent;}
.brand-symbol {width:38px;height:38px;filter:none!important;}
.brand-identity{display:flex;flex-direction:column;justify-content:center;gap:1px;height:38px;min-width:0;}
.brand-type{font-size:19px;line-height:1.1;letter-spacing:-.8px;font-weight:760;white-space:nowrap;}

.intro h1{color:var(--text);}
/* Heading intentionally uses one consistent text color in light and dark mode. */
.editor{border-top:2px solid var(--accent-line);}
.preview-stage{background:linear-gradient(145deg,var(--surface-2),var(--accent-soft));border-color:var(--line);}
.primary-btn,.download-more{background:#265f9c;border-color:#265f9c;color:#fff;}
.primary-btn:hover:enabled,.download-more:hover:enabled{background:#194c84;border-color:#194c84;}
:root[data-theme="dark"] .primary-btn,:root[data-theme="dark"] .download-more{background:#82b8ee;border-color:#82b8ee;color:#10223a;}
:root[data-theme="dark"] .primary-btn:hover:enabled,:root[data-theme="dark"] .download-more:hover:enabled{background:#abd2fb;border-color:#abd2fb;color:#10223a;}
:root[data-theme="dark"] .download-more{border-left-color:#507da8;}
.type-btn.is-active{border-color:var(--accent-line);color:var(--accent-ink);background:var(--accent-soft);}
.preview-status.is-ready{background:var(--good-soft);}
.phone-input-row {display:grid;grid-template-columns:minmax(0,175px) minmax(0,1fr);gap:12px;align-items:start;}
.phone-input-row .field,.phone-input-row select,.phone-input-row input{min-width:0;width:100%;}
.phone-input-row select {height:44px;overflow:hidden;text-overflow:ellipsis;}
.phone-input-row input{height:44px;}
.message-field,.custom-code-field{display:block;margin-top:15px;}
.footer-brand {min-width:0;align-items:flex-start;justify-content:center;gap:5px;}
.footer-powered {font-size:9.2px;font-weight:560;letter-spacing:0;line-height:1.3;margin-left:3.5px;color:var(--muted);}
.footer-logo {width:120px;height:auto;max-height:none;object-fit:contain;}
.site-footer{align-items:center;justify-content:space-between;}
.footer-left{display:flex;flex-direction:column;align-self:center;justify-content:center;gap:4px;}
@media(max-width:730px){
 .type-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;}
 .type-btn,.more-btn{width:100%;padding:9px 2px;min-width:0;}
 .type-btn .ico{display:none;}
 .more-btn .mini-chevron{display:none;}
 .phone-input-row{grid-template-columns:minmax(0,140px) minmax(0,1fr);}
}
@media(max-width:460px){
 .brand-mark,.brand-mark:hover{width:34px;height:34px;}
 .brand-symbol{width:34px;height:34px;}
 .brand-identity{height:34px;gap:0;}
 .brand-type{font-size:17px;}

 .type-picker{gap:3px;}
 .type-btn{font-size:10px;min-height:38px;padding:7px 1px;}
 .phone-input-row{grid-template-columns:minmax(0,112px) minmax(0,1fr);gap:9px;}
 .footer-powered{font-size:8px;margin-left:3px;}
 .footer-brand{gap:5px;}
 .footer-logo{width:106px;max-height:none;}
}
@media (max-width:350px){.type-btn .ico{display:none;}.type-btn{font-size:9px;}}

/* Footer refinement: balanced gap between publisher label and untouched logo. */
.footer-brand { gap: 9px; }
@media (max-width: 460px) { .footer-brand { gap: 8px; } }


/* v1.4.3: final footer spacing and bottom alignment with HJDP logo. */
.footer-brand { gap: 8px; }
.footer-left { align-self: flex-end; justify-content: flex-end; }
@media (max-width: 460px) { .footer-brand { gap: 7px; } }

/* v1.4.4: proportional 15% publisher-mark enlargement; preserve spacing and bottom alignment. */
.footer-logo { width: 138px; }
.footer-powered { font-size: 10.6px; }
@media (max-width:460px) {
  .footer-logo { width: 122px; }
  .footer-powered { font-size: 9.2px; }
}

/* v1.4.5: keep publisher label size; scale down logo and tighten gap 1px. */
.footer-logo { width: 126px; }
.footer-brand { gap: 7px; }
@media (max-width:460px) {
  .footer-logo { width: 112px; }
  .footer-brand { gap: 6px; }
}
/* Keep the publisher label flush with the left edge of the logo. */
.footer-powered { margin-left: 0; }


/* v1.4.8: One consistent, five-column type navigation.
   Every button (including More) has exactly the same cell width and height. */
.type-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  width: 100%;
}
.type-picker > .type-btn,
.type-picker > .more-wrap {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
}
.type-picker .type-btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 5px;
  gap: 5px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.type-picker .more-wrap { position: relative; }
.type-picker .more-btn { height: 100%; }
.type-picker .type-btn .ico { flex: 0 0 auto; }
.type-picker .type-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1100px) {
  .type-picker .type-btn .ico { display: none; }
  .type-picker { gap: 4px; }
  .type-picker .type-btn { font-size: 10px; gap: 0; }
}
@media (max-width: 460px) {
  .type-picker { gap: 3px; }
  .type-picker > .type-btn,
  .type-picker > .more-wrap,
  .type-picker .type-btn { height: 40px; min-height: 40px; }
  .type-picker .type-btn { font-size: 10px; padding: 0 1px; letter-spacing: -.12px; }
}
@media (max-width: 350px) {
  .type-picker { gap: 2px; }
  .type-picker .type-btn { font-size: 9px; padding: 0; letter-spacing: -.2px; }
}

/* v1.4.10: One deliberate, accessible accent for the full headline. */
.intro h1{color:var(--accent-ink);}

/* v1.4.11 — Keep the editor and live preview cards level on desktop.
   When advanced options are expanded, let each card size naturally.
   Mobile keeps its natural stacked card heights. */
@media (min-width: 731px) {
  .workspace:not(:has(#customize[open])) { align-items: stretch; }
  .workspace:not(:has(#customize[open])) .editor {
    display: flex;
    flex-direction: column;
  }
  .workspace:not(:has(#customize[open])) .editor-bottom {
    margin-top: auto;
    padding-top: 22px;
  }
}

/* v1.4.12: Fix readiness badge padding / dot clipping in both themes. */
.preview-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  box-sizing: border-box;
  min-height: 28px;
  margin-top: 0;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
}
.preview-status .status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  margin: 0;
}
.preview-top {gap: 10px; flex-wrap: wrap;}


/* v1.4.15 — Refined install CTA (button only; app icons unchanged). */
.install-button[hidden] { display: none !important; }
.install-button:not([hidden]) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.install-button .ico { width: 15px; height: 15px; flex: none; stroke-width: 2; }
.install-button:hover:not([hidden]) {
  background: var(--surface-3);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.install-button:active:not([hidden]) { transform: translateY(1px); }
.install-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
  .install-button:not([hidden]) { width: 35px; min-width: 35px; padding: 0; }
  .install-button .install-label { display: none; }
}
@media (max-width: 370px) {
  /* When installation is offered, wrap controls instead of squeezing the brand. */
  .site-header:has(.install-button:not([hidden])) {
    height: auto; min-height: 65px; padding-block: 10px;
    flex-wrap: wrap; gap: 8px;
  }
  .site-header:has(.install-button:not([hidden])) .header-actions {
    width: 100%; justify-content: flex-end;
  }
}

/* v1.4.20 — Slightly reduce the publisher label and open up the horizontal gap.
   Logo proportions and alignment stay exactly as in v1.4.19. */
.footer-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.footer-powered {
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}
.footer-logo { flex: 0 0 auto; }
@media (max-width: 460px) {
  .footer-brand { gap: 9px; }
  .footer-powered { font-size: 10px; }
}
@media (max-width: 350px) {
  .footer-logo { width: 102px; }
  .footer-powered { font-size: 9.5px; }
  .footer-brand { gap: 8px; }
}

/* v1.4.21 — Hide redundant helper copy when no status is present. */
.scan-hint[hidden]{display:none!important}

.preview-content[hidden]{display:none!important}

/* v1.4.22 — Full spacing and alignment audit.
   Remove inherited heading margins and normalise distances between content,
   controls and actions. Existing theme, QR behaviour and branding are unchanged. */
.section-heading h2,
.preview-top h2 {
  margin-bottom: 0;
}
.section-heading { margin-bottom: 14px; }
.design-heading { margin-bottom: 12px; }
.type-picker { margin-bottom: 17px; padding-bottom: 10px; }
.fields { min-height: 0; }
.editor .divider { margin: 22px 0 21px; }
.customize { margin-top: 15px; }
.preview-stage { margin-top: 17px; }
.preview-actions { margin-top: 17px; }
.preview-content { margin-top: 12px; }
/* Generic .field margins must not offset the second column in a phone row. */
.phone-input-row > .field { margin-top: 0; }
.phone-input-row { align-items: start; }
.phone-input-row .field-name { line-height: 1.54; }
.phone-input-row select,
.phone-input-row input { height: 44px; }
/* Keep field groups predictably aligned even as QR types change. */
.field-grid > .field { margin-top: 0; }
/* On very narrow phones, inputs stack instead of becoming cramped. */
@media (max-width: 350px) {
  .phone-input-row,
  .fields .field-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Keep the full country name legible where two columns have sufficient room. */
@media (min-width: 351px) and (max-width: 460px) {
  .phone-input-row { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); }
}

/* Keep frame choices as an intentional grid, never an orphaned final button. */
.frame-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.frame-choices button { min-width: 0; padding: 9px 4px; text-align: center; }
@media (max-width: 460px) {
  .frame-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Export options open above the trigger on larger screens, avoiding footer overlap. */
.export-menu { top: auto; bottom: calc(100% + 8px); }
/* On phones, show export choices as an in-card expansion, not over the footer. */
@media (max-width: 730px) {
  .download-group { flex-wrap: wrap; }
  .download-group .export-menu:not([hidden]) {
    position: static;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}
/* Outrank the legacy sibling-field margin inside country/number paired inputs. */
#fields .phone-input-row > .field { margin-top: 0; }
/* Distribute spare desktop editor space instead of leaving a blank block at its foot. */
@media (min-width: 731px) {
  .workspace:not(:has(#customize[open])) .editor { justify-content: space-between; }
}

/* v1.4.26 — Balanced light/dark control. A single continuous track,
   equal segments and one borderless sliding selection prevent the
   previous double-outlined/nested-pill appearance. */
.theme-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  flex: 0 0 auto;
  isolation: isolate;
  overflow: hidden;
  width: 130px;
  height: 38px;
  min-width: 0;
  padding: 3px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
}
.theme-thumb {
  z-index: 0;
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 4px);
  height: calc(100% - 6px);
  border: 0;
  border-radius: 999px;
  background: #e1f0fc;
  box-shadow: none;
  transform: translateX(0);
  transition: transform .24s cubic-bezier(.22,.72,.27,1), background .25s ease;
}
:root[data-theme="dark"] .theme-thumb {
  transform: translateX(calc(100% + 2px));
  background: #294358;
}
.theme-opt {
  z-index: 1;
  height: 100%;
  min-width: 0;
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
}
.theme-opt .ico { width: 14px; height: 14px; stroke-width: 1.8; }
.theme-light { color: var(--accent-ink); font-weight: 650; }
.theme-light .ico { color: var(--accent-ink); }
:root[data-theme="dark"] .theme-light { color: var(--muted); font-weight: 500; }
:root[data-theme="dark"] .theme-light .ico { color: inherit; }
:root[data-theme="dark"] .theme-dark { color: var(--accent-ink); font-weight: 650; }
:root[data-theme="dark"] .theme-dark .ico { color: var(--accent-ink); }
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 460px) {
  .theme-toggle { width: 116px; height: 36px; padding: 3px; }
  .theme-opt { font-size: 11px; gap: 4px; }
  .theme-opt .ico { width: 13px; height: 13px; }
}

/* v1.5 — genuine preset previews and accessible image controls. */
.preset-image > svg { display:block; width:88%; height:88%; flex:none; }
.upload-box { text-align:left; color:var(--text); font:inherit; }
#moreMenu button[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent-ink); font-weight:650; }
.noscript-note { margin:18px 0; padding:12px; border:1px solid var(--line); border-radius:8px; color:var(--text); }

/* Preserve spacing without inline style attributes. */
.field-spacer{margin-top:13px}
