/* Shared violet/lime choice controls; popups are mounted above clipping containers. */
.b2g-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.b2g-select{position:relative;min-width:0;font:inherit}
select.b2g-native-select,.locale-control select.b2g-native-select{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}
.b2g-select-trigger{appearance:none;display:flex;align-items:center;gap:14px;width:100%;min-height:54px;padding:13px 16px;border:2px solid #8e79a5;border-radius:14px;background:#261e37;color:#f7f5f0;font:700 14px/1.4 Arial,Helvetica,sans-serif;letter-spacing:0;text-align:left;cursor:pointer;touch-action:manipulation;box-shadow:0 3px 0 #09051055;transition:background-color .16s,border-color .16s,box-shadow .16s;isolation:isolate}
.b2g-select-value{flex:1;min-width:0;overflow-wrap:anywhere}.b2g-select-chevron{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#b8a2e51c;color:#d6c3f0;transition:transform .16s,background-color .16s}
.b2g-select-chevron svg,.b2g-select-globe svg,.b2g-option-check svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.b2g-select-globe{flex:none;color:#c5f75b}.b2g-select-globe svg{width:20px;height:20px;stroke-width:1.8}
.b2g-select-trigger:focus-visible{outline:3px solid #c5f75b;outline-offset:4px;box-shadow:0 0 0 7px #151120}.b2g-select.is-open .b2g-select-trigger{border-color:#c5f75b;background:#302340;box-shadow:0 0 0 4px #c5f75b12}.b2g-select.is-open .b2g-select-chevron{transform:rotate(180deg);background:#c5f75b;color:#20192d}
.b2g-select-trigger:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.b2g-select-trigger[aria-invalid="true"]{border-color:#912c4b;box-shadow:0 0 0 3px #912c4b25}
.brief .b2g-select-trigger{min-height:56px;border-color:#607c31;background:#efffc066;color:#222c18;box-shadow:0 3px 0 #77963844;font-size:14px}.brief .b2g-select-chevron{background:#26301b;color:#d9ff9f}.brief .b2g-select-trigger:focus-visible{outline-color:#533c7d;box-shadow:0 0 0 7px #c5f75b}.brief .b2g-select.is-open .b2g-select-trigger{background:#e5ffa4;border-color:#30233f;box-shadow:0 0 0 4px #30233f14}.brief .b2g-select.is-open .b2g-select-chevron{background:#30233f;color:#d9ff9f}.brief .b2g-select.is-placeholder .b2g-select-value{font-weight:500;color:#43572b}
.footer-locale .locale-control{display:block;min-width:0;min-height:0;padding:0;border:0;border-radius:14px;background:none;white-space:normal}.footer-locale .locale-control:focus-within{outline:none}.footer-locale .b2g-select{width:120px;min-width:120px}.footer-locale .b2g-select-trigger{min-height:48px;padding:10px 12px;gap:11px;font-size:13px}.b2g-select-language .b2g-select-value{white-space:nowrap;overflow-wrap:normal}
.b2g-select-panel{position:fixed;z-index:10000;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px;border:2px solid #a68bc4;border-radius:17px;background:#21192f;color:#f7f5f0;box-shadow:0 16px 50px #09051070,0 0 0 4px #b8a2e510;font:600 14px/1.4 Arial,Helvetica,sans-serif;scrollbar-width:thin;scrollbar-color:#9981b3 #21192f;animation:b2g-select-in .14s ease-out;transform-origin:top center}.b2g-select-panel[data-direction="up"]{transform-origin:bottom center}.b2g-select-panel-form{border-color:#c5f75b;box-shadow:0 16px 50px #09051060,0 0 0 4px #c5f75b18}.b2g-select-panel[hidden]{display:none}
.b2g-select-option{display:flex;align-items:center;gap:12px;min-height:48px;padding:11px 12px;border:1px solid transparent;border-radius:10px;cursor:pointer;touch-action:manipulation;transition:background-color .1s,border-color .1s,color .1s}.b2g-select-option+.b2g-select-option{margin-top:3px}.b2g-option-label{flex:1;min-width:0;overflow-wrap:anywhere}.b2g-option-code{font:700 10px/1.2 monospace;letter-spacing:.9px;color:#b9a6cd}.b2g-option-check{flex:none;width:22px;height:22px;color:#c5f75b;opacity:0}.b2g-option-check svg{width:22px;height:22px;stroke-width:3}.b2g-select-option.is-selected{background:#c5f75b13;color:#d2ff88}.b2g-select-option.is-selected .b2g-option-check{opacity:1}.b2g-select-option.is-active{background:#3d2d52;border-color:#aa8bc7;color:#fff}.b2g-select-option.is-active.is-selected{background:#3c4b2b;border-color:#c5f75b;color:#e2ffba}.b2g-select-option[aria-disabled="true"]{opacity:.4;cursor:not-allowed}
@media(hover:hover) and (pointer:fine){.b2g-select-trigger:not(:disabled):hover{border-color:#c5f75b;background:#30243f}.brief .b2g-select-trigger:not(:disabled):hover{border-color:#30233f;background:#e5ffa4}.b2g-select-option:not([aria-disabled="true"]):hover{background:#3d2d52;border-color:#aa8bc7}}
@media(max-width:760px){.brief .b2g-select-trigger{font-size:16px}.b2g-select-panel{font-size:14px}.b2g-select-option{min-height:50px}}
@keyframes b2g-select-in{from{opacity:0;transform:translateY(3px) scale(.985)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.b2g-select-trigger,.b2g-select-chevron,.b2g-select-option{transition:none}.b2g-select-panel{animation:none}}

.brief .b2g-select-trigger[aria-invalid="true"]{border-color:#912c4b;box-shadow:0 0 0 3px #912c4b25}

/* Keep the clean idle form compact; live errors and results retain their space. */
#form-status:empty{display:none}

/* Keep all three controls together, including intermediate and landscape widths. */
.footer-actions{display:flex;align-items:center;gap:18px;min-width:0;flex-shrink:0}
@media(max-width:760px){
  .footer-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,350px);margin-left:auto;gap:6px}
  .footer-actions>.motion-toggle,.footer-actions>.back-top{width:100%;min-width:0;min-height:48px;margin:0;padding:8px 6px;gap:5px;font-size:11px}
  .footer-actions>.motion-toggle .ui-icon,.footer-actions>.back-top .ui-icon{width:16px;height:16px;flex-basis:16px}
  .footer-actions>.back-top .button-label{min-width:0;line-height:1.15}
  .footer-actions>.footer-locale{display:block;margin:0;min-width:0}
  .footer .footer-locale .b2g-select{width:100%;min-width:0}
  .footer .footer-locale .b2g-select-trigger{min-height:48px;padding:9px 6px;gap:5px;font-size:12px}
  .footer .footer-locale .b2g-select-globe svg{width:18px;height:18px}
  .footer .footer-locale .b2g-select-chevron{width:20px;height:20px}
}
@media(max-width:600px){
  .footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 12px}
  .footer>.wordmark{grid-column:1;grid-row:1;min-width:0}
  .footer>.wordmark .brand-logo{max-width:100%}
  .footer>p{grid-column:2;grid-row:1;justify-self:end;margin:0;font-size:10px;white-space:nowrap}
  .footer>.footer-actions{grid-column:1 / -1;grid-row:2;width:100%;margin:0}
}
