/* Only the missing header styles. Based on UI_preview.html (header CSS);
   visualizer(1).css remains unchanged. */
.site-header.uv-banner{height:55px;min-height:55px;flex:0 0 55px;background:linear-gradient(105deg,#091934 0%,#102d63 54%,#164a91 100%);color:#fff;border-bottom:1px solid #244780;position:relative;z-index:30;font-family:Arial,"Segoe UI",sans-serif}
.ui-header-inner{direction:rtl;display:flex;align-items:center;gap:12px;min-width:0;width:100%;height:100%;padding:0 17px;box-sizing:border-box}
.ui-header-inner .brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:white;white-space:nowrap;flex:none}
.ui-header-inner .brand-symbol{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;border:1px solid #ffffff55;border-radius:8px;background:#ffffff0c;color:#bcd7ff}
.ui-header-inner .brand-symbol svg{width:31px;height:31px}
.ui-header-inner .brand-name{font-size:23px;font-weight:800;letter-spacing:-.65px;color:#fff}
.baner-page-title{margin:0 7px 0 0;padding:6px 15px;border:1px solid #ffffff52;border-radius:7px;background:#ffffff1b;box-shadow:inset 3px 0 0 #8abaff;font-size:18px;font-weight:700;color:#fff;white-space:nowrap;line-height:1.25;letter-spacing:0}
.ui-header-spacer{flex:1 1 auto;min-width:5px}
.ui-header-inner .lang-selector{display:flex;direction:ltr;align-items:center;gap:2px;padding:3px;border-radius:9px;background:#06152e;border:1px solid #ffffff50;flex:none;margin:0}
.ui-header-inner .lang-btn{font-family:Arial,"Segoe UI",sans-serif;font-size:12px;font-weight:700;color:#fff;border:0;background:transparent;border-radius:6px;padding:5px 18px;height:28px;cursor:pointer}
.ui-header-inner .lang-btn.is-active{background:#fff;color:#0c2c65}
.ui-header-inner .lang-btn:focus-visible,.ui-nav-btn:focus-visible{outline:2px solid #facc15;outline-offset:2px}
.ui-nav-btn{height:32px;padding:0 11px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#ffffff12;color:#eef5ff;border:1px solid #ffffff32;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer}
.ui-nav-btn:hover,.ui-nav-btn[aria-expanded=true]{background:#ffffff26;border-color:#ffffff78}
.ui-pop-anchor{position:relative;flex:none}
.ui-gear{width:34px;padding:0}
.ui-popup{position:absolute;top:calc(100% + 9px);right:0;width:280px;box-sizing:border-box;padding:12px;background:#fff;color:#17233c;border:1px solid #d7dfeb;border-radius:8px;box-shadow:0 12px 35px #06172d35;z-index:60;font:13px Arial,"Segoe UI",sans-serif;text-align:right;direction:rtl}
.ui-popup.ui-settings{left:0;right:auto;width:255px;display:flex;flex-direction:column;gap:7px}
.ui-popup label{font-weight:700;font-size:12px;margin-top:6px}
.ui-popup select{background:#f5f7fb;border:1px solid #d7dfeb;border-radius:6px;padding:8px;color:#17233c}
body.ui-dark .ui-popup{background:#16243b;color:#e6eefb;border-color:#38516f}
body.ui-dark .ui-popup select{background:#243750;color:#e6eefb;border-color:#38516f}
@media(max-width:850px){.ui-header-inner{gap:7px;padding:0 8px}.ui-header-inner .brand-name{font-size:18px}.ui-header-inner .lang-btn{padding:5px 9px}.baner-page-title{font-size:15px}}
@media(max-width:620px){.site-header.uv-banner{overflow-x:auto;overflow-y:visible}.ui-header-inner{width:max-content;min-width:100%}.ui-header-spacer{min-width:10px}}

/* A hidden settings panel must stay hidden even though its visible state uses display:flex. */
.ui-popup[hidden] { display: none !important; }
