header{position:relative;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:28px;max-width:1440px;box-sizing:border-box;margin:0 auto;padding:24px 40px;border-bottom:1px solid #8e63ae1b}
header>a.logo{display:flex;align-items:center;gap:12px;flex:none;width:auto;height:auto;padding:0;background:none;border:0;border-radius:0;box-shadow:none;color:#faf7ff;font-size:23px;font-weight:750;white-space:nowrap;text-decoration:none;letter-spacing:-.7px}header .badge{display:flex;width:36px;height:36px;background:none;padding:0}header .badge img{display:block;width:36px;height:36px;max-width:none}
header>nav{position:relative;display:flex;align-items:center;justify-content:center;gap:25px;margin:0;padding:0}header>nav>a,header .ddb{font-family:inherit;font-size:16px!important;font-weight:550;line-height:1.5;color:#f5efff!important;text-decoration:none;white-space:nowrap}header .ddb{display:flex;align-items:center;gap:7px;border:0;background:none;padding:8px 0;cursor:pointer}header>nav>a:hover,header .ddb:hover{color:#d4acff!important}header .acts{display:flex;align-items:center;gap:10px}header .acts select{font:inherit;font-size:13px;min-height:42px;border:1px solid #78559655;background:#171021;color:#faf5ff;padding:9px 13px;border-radius:11px;max-width:155px}
header .dd{position:static}header .menu{position:absolute;display:none;left:50%;top:calc(100% + 7px);transform:translateX(-50%);width:min(740px,calc(100vw - 32px));max-height:min(76vh,680px);overflow:auto;box-sizing:border-box;grid-template-columns:1fr 1fr;gap:20px;padding:23px;border:1px solid #72508b77;border-radius:20px;background:#171022!important;color:#f8f1ff;box-shadow:0 18px 42px #0005;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}header .dd.open .menu{display:grid}header .menu h3{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#c4a0e4;margin:0 10px 11px}header .menu a{display:flex;align-items:flex-start;gap:13px;min-height:67px;box-sizing:border-box;padding:12px;border:1px solid transparent;border-radius:12px;color:#f8f1ff;text-decoration:none}header .menu a:hover{background:#8b4bc925;border-color:#a56be32b}header .menu .ic{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}header .menu .menu-text{display:grid;gap:5px;min-width:0}header .menu strong{font-size:15px;line-height:1.35;font-weight:650;color:#faf5ff}header .menu small{font-size:12px;line-height:1.5;color:#d3c4e0}header .menu-enhancers{grid-column:1/-1;padding-top:15px;border-top:1px solid #8d64aa26}header .menu-enhancer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}header .menu .menu-enhancer-link{background:#7d44bd14;border-color:#9c65ce2b}
@media(hover:hover) and (min-width:761px){header .dd:hover .menu{display:grid}}
[data-theme=light] header>a.logo,[data-theme=light] header>nav>a,[data-theme=light] header .ddb{color:#30203e!important}[data-theme=light] header .menu{background:#fffaff!important;color:#35213f;border-color:#d7c2e6}[data-theme=light] header .menu strong,[data-theme=light] header .menu a{color:#35213f}[data-theme=light] header .menu small{color:#6b567e}[data-theme=light] header .acts select{background:#f8f0ff;color:#35213f}
@media(max-width:1100px) and (min-width:761px){header{gap:18px;padding:22px 28px;flex-wrap:wrap}header>nav{order:2;flex:1 1 100%;gap:26px}}
@media(max-width:760px){header{padding:18px 20px;gap:10px;flex-wrap:nowrap}header>a.logo{font-size:21px;flex:1;min-width:0}header>nav{margin:0;gap:8px}header .menu{position:static;transform:none;left:auto;top:auto;width:100%;max-height:48vh;grid-template-columns:1fr;padding:12px;margin-top:8px;border-radius:14px}header .menu a{min-height:61px}header .menu-enhancer-grid{grid-template-columns:1fr;gap:7px}header>nav>a,header .ddb{font-size:15px!important}header .menu strong{font-size:14px}header .menu small{font-size:12px}.brand-ready header.mobile-open>nav{background:#171022!important;backdrop-filter:none!important}[data-theme=light] header.mobile-open>nav{background:#fffaff!important}}

@media(hover:hover) and (min-width:761px){header .dd:hover:not(.open) .menu{display:none!important}}
/* Shared language control: consistent text baseline and a single dropdown indicator. */
header .acts select#lg,header .acts select#enhancer-language{appearance:none;-webkit-appearance:none;box-sizing:border-box;display:block;min-width:132px;max-width:170px;height:44px;min-height:44px;padding:0 39px 0 15px;border:1px solid #624b7a;border-radius:12px;background-color:#171021;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23cab8df' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:18px;color:#faf5ff;font-family:inherit;font-size:14px;font-weight:500;line-height:normal;letter-spacing:0;cursor:pointer;box-shadow:none;transition:border-color .15s,background-color .15s}
header .acts select#lg:hover,header .acts select#enhancer-language:hover{border-color:#a77ad0;background-color:#20162d}
header .acts select#lg:focus-visible,header .acts select#enhancer-language:focus-visible{outline:2px solid #bc8df1;outline-offset:3px}
header .acts select option{background:#171021;color:#faf5ff}
[dir=rtl] header .acts select#lg,[dir=rtl] header .acts select#enhancer-language{padding:0 15px 0 39px;background-position:left 12px center}
[data-theme=light] header .acts select#lg,[data-theme=light] header .acts select#enhancer-language{background-color:#faf6ff;border-color:#d5c0e5;color:#35213f;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23664a7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")}
[data-theme=light] header .acts select option{background:#fffaff;color:#35213f}
@media(max-width:760px){header .acts select#lg,header .acts select#enhancer-language{min-width:116px;font-size:16px}}
/* Consistent action controls across tool, gallery, learning and contact pages. */
body button.go,body button#sb,body button#fs,body .btn,body button.cp,body .gallery-copy,body .guide-feedback-actions button,body .ckb button,body .result-reopen,body .example-full button,body .verification-host button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 18px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:normal;text-align:center;white-space:normal;text-decoration:none;border-radius:12px}
body button.mb{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;font-family:inherit;font-size:14px;line-height:1.4;text-align:center;white-space:normal}
body .gallery-close,body .slide-button,header button.theme-switch,header button#th,header button#enhancer-theme{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;line-height:1;font-family:inherit}
body .slide-button{font-size:22px}body .gallery-close,body .remove-image{font-size:22px}
header button.theme-switch,header button#th,header button#enhancer-theme{font-size:17px}
header .ddb{min-height:44px}header .acts{align-items:center}
body .slide-progress button{min-height:44px;height:44px}body .slide-progress button:before,body .slide-progress button:after{top:calc(50% - 1.5px)}
body .text-button#diagnostics{min-height:44px;padding:10px 14px;font-family:inherit;font-size:13px;line-height:1.4;white-space:normal;text-align:center}
body button:focus-visible,body a.btn:focus-visible{outline:2px solid #c7a0ff;outline-offset:3px}
@media(max-width:600px){body .guide-feedback-actions,body .ckb{flex-wrap:wrap;gap:10px}body button.go,body button#sb,body button#fs,body .gallery-copy,body .guide-feedback-actions button,body .result-reopen{max-width:100%;overflow-wrap:anywhere}body .mb{max-width:100%}}
body .collapse-prompt{min-height:44px;padding:10px 14px;font-family:inherit;font-size:13px;line-height:1.4}
body button[hidden],body a[hidden]{display:none!important}

body .remove-image,body button#remove-image{box-sizing:border-box;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;line-height:1;font-family:inherit}
