/* WindirHack 5 Tabs / white-purple, visual-only override.
   Original authentication, HAPP, licence and Bytes API code stays in app.js. */
html{scroll-padding-top:88px}
body{background:#faf8fc}
.nav-inner{min-height:74px}
.header-support{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#756879;margin-left:auto;white-space:nowrap}
.header-support img{opacity:.55}
.header-support:hover{color:#9725a7}
.page-heading{max-width:820px;padding:28px 4px 18px}
.page-heading .eyebrow{margin-bottom:6px}
.page-heading h1{font-size:27px;margin-bottom:4px}
.page-heading .heading-description{font-size:12px}
.connection-workspace{gap:0;border-radius:21px}
.connection-workspace>.workspace-heading{order:1;padding:19px 30px 17px}
.workspace-heading .workspace-title img{background:#2d1238;padding:5px;border-radius:10px}
.workspace-title h2{letter-spacing:.045em;font-size:14px}
.workspace-title p{margin-top:5px;letter-spacing:.07em}
.windir-tabs{
 order:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
 gap:5px;margin:0 20px;padding:6px;background:#f7f4f8;
 border:1px solid #efe7f1;border-radius:14px;
}
.windir-tab{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 min-width:0;min-height:65px;gap:5px;padding:9px 4px;
 border:1px solid transparent;border-radius:10px;background:transparent;
 color:#84778a;font-weight:700;font-size:11px;line-height:1.2;
 transition:background .18s,border-color .18s,box-shadow .18s,color .18s,transform .18s;
}
.windir-tab img{width:20px;height:20px;opacity:.5;transition:filter .18s,opacity .18s}
.windir-tab:hover{background:#fbf2fc;color:#7e3486}
.windir-tab:active{transform:scale(.98)}
.windir-tab.active,
.windir-tab[aria-selected="true"]{
 color:#9b26a8;background:#fff;border-color:#ecd6f0;
 box-shadow:0 3px 13px rgba(133,42,151,.08);
}
.windir-tab.active img{opacity:.86;filter:brightness(0) saturate(100%) invert(27%) sepia(38%) saturate(2222%) hue-rotate(260deg) brightness(94%) contrast(91%)}
.windir-tab:focus-visible{outline:2px solid #b04db9;outline-offset:2px}
.windir-tabpanels{order:3;min-height:330px;min-width:0}
.windir-panel{display:none;min-width:0;padding:0 32px 26px}
.windir-panel.active{display:block}
.windir-panel .stage-content{padding:30px 20px 16px;min-height:0}
.windir-panel .stage-content h2{font-size:25px}
.windir-panel .stage-content .step-kicker{display:none}
.windir-panel .pair-visual{width:89px;height:89px;margin:7px auto 24px}
.windir-panel .pair-visual .phone-glyph{width:41px;height:41px}
.windir-panel .stage-description{font-size:13px;max-width:480px;margin-bottom:23px}
.windir-panel .connection-overview{
 margin:14px 2px 0;padding:22px 8px 0;
 border-top:1px solid #f0eaf1;
}
.windir-panel .connection-overview>.eyebrow,
.windir-panel .connection-overview>h2,
.windir-panel .connection-overview>.aside-description{display:none}
.windir-panel .connect-stats{margin:0}
.windir-panel .connect-stats>div{padding:12px 6px;min-height:51px;border-color:#f1edf3}
.windir-panel .connect-stats>div:nth-child(3){display:none}
.windir-panel #connectPrompt{margin:12px 6px 2px;font-size:11px;min-height:0;line-height:1.6}
.windir-panel .connect-card{padding:22px 14px 8px}
.windir-panel .connect-card .stage-content{padding:0}
.windir-panel .connect-card #connectedHeading{font-size:25px}
.windir-panel #savedConnectHapp{min-height:54px;font-size:13px;max-width:510px}
#connectPairedHint{display:none}
html.happ-device-identified:not(.happ-session-open) #connectPairedHint{display:flex}
.tab-gate{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 min-height:285px;text-align:center;gap:11px;padding:32px 20px 19px;
}
.tab-gate>img{display:block;opacity:.65;margin-bottom:6px}
.tab-gate h2,.tab-gate h3{font-size:22px;letter-spacing:-.025em;line-height:1.4;color:#2c2432;margin:0}
.tab-gate p{max-width:480px;font-size:13px;line-height:1.8;color:#817688;margin:0 auto 9px}
.tab-gate .panel-icon{margin-bottom:7px}
.tab-continue{
 display:inline-flex;align-items:center;justify-content:center;gap:12px;
 border:0;border-radius:11px;background:#a827b6;color:#fff;
 font-size:12px;font-weight:800;padding:14px 21px;min-height:48px;
 box-shadow:0 6px 15px rgba(145,31,169,.12);
}
.tab-continue:hover{background:#8d239b;transform:translateY(-1px)}
.tab-continue img{width:16px;height:16px;filter:brightness(0) invert(1)}
.tab-plain-link{
 display:inline-flex;align-items:center;gap:8px;color:#9927a5;
 font-size:12px;font-weight:800;background:none;border:0;
 margin:17px 8px 0;padding:10px 0;
}
.tab-plain-link img{width:15px;height:15px;opacity:.75}
.panel-intro{text-align:center;padding:32px 15px 20px}
.panel-intro h2{font-size:25px;line-height:1.35;color:#2d2532;margin:13px 0 8px}
.panel-intro p{max-width:475px;margin:0 auto;color:#817688;line-height:1.75;font-size:12px}
.panel-icon{
 display:grid;place-items:center;margin:0 auto;
 width:68px;height:68px;border-radius:20px;
 background:linear-gradient(145deg,#faf1fc,#f2ddf6);
 border:1px solid #edd7f2;
}
.panel-icon img{width:28px;height:28px;opacity:.78;filter:brightness(0) saturate(100%) invert(33%) sepia(49%) saturate(1480%) hue-rotate(257deg) brightness(84%) contrast(100%)}
#windirPanelDevice .device-summary{margin:0;padding:0 8px 6px;border-top:0}
#windirPanelDevice .device-summary>.aside-section-heading{padding:10px 0 15px;margin:0}
#windirPanelDevice .device-summary .aside-section-heading h3{font-size:14px}
#windirPanelDevice .real-device-grid{padding:0 12px;border:1px solid #eee7f0;background:#fcfafd;border-radius:13px}
#windirPanelDevice .real-device-grid>div{display:flex;justify-content:space-between;align-items:center;min-height:54px;padding:12px 0;border-bottom:1px solid #eee8f0;font-size:12px}
#windirPanelDevice .real-device-grid>div:last-child{border:0}
#windirPanelDevice .real-device-grid dd{font-weight:700;color:#2b2430;max-width:55%;text-align:right;overflow-wrap:anywhere}
#windirPanelDevice .app-download{margin:20px 8px 4px;padding:18px 7px;border-top:1px solid #f0eaf2}
#windirPanelCert #certGate,#windirPanelCert #certSessionNote,
#windirPanelKey #keyPairGate,#windirPanelKey #keyCertGate,
#windirPanelBytes #bytesGate{display:none}
#windirPanelCert #certificateSection{display:none!important}
html:not(.happ-device-identified):not(.happ-session-open) #windirPanelCert #certGate{display:flex}
html.happ-session-open #windirPanelCert #certSessionNote{display:flex}
html.happ-device-identified:not(.happ-session-open) #windirPanelCert #certificateSection{display:block!important}
html.happ-device-identified:not(.happ-session-open) #windirPanelCert .stage-icon{background:#f6e9f8}
#windirPanelKey #loginSection{display:none!important}
html:not(.happ-device-identified):not(.happ-session-open) #windirPanelKey #keyPairGate{display:flex}
html.happ-device-identified:not(.happ-cert-complete):not(.happ-session-open) #windirPanelKey #keyCertGate{display:flex}
html.happ-device-identified.happ-cert-complete:not(.happ-session-open) #windirPanelKey #loginSection{display:block!important}
#windirPanelKey .signed-key{display:none}
html.happ-session-open #windirPanelKey .signed-key{display:block}
#windirPanelKey .signed-key-heading{padding-bottom:3px}
#windirPanelKey #savedKeyPanel{max-width:540px;margin:0 auto}
#windirPanelKey #savedKeyPanel .key-summary{margin:10px auto 20px}
#windirPanelKey #savedKeyPanel .key-summary>div{font-size:12px;padding:12px 2px}
#windirPanelKey #savedKeyPanel .key-summary dt{color:#7e7185}
#windirPanelKey #savedKeyPanel .key-summary dd{font-weight:800;max-width:60%;overflow-wrap:anywhere}
#windirPanelKey #savedKeyPanel .logout-button{margin:12px 0 22px}
#windirPanelKey .signed-key>.tab-continue{display:flex;max-width:500px;margin:0 auto;width:100%}
#windirPanelBytes #bytesGate{display:flex}
html.happ-session-open #windirPanelBytes #bytesGate{display:none}
#windirPanelBytes .bytes-content{display:none}
html.happ-session-open #windirPanelBytes .bytes-content{display:block}
#windirPanelBytes .panel-intro{padding-bottom:12px}
#windirPanelBytes .menu-bridge-box{
 background:#fcf9fd;border:1px solid #ebdfef;
 border-radius:15px;padding:22px 23px;max-width:530px;margin:9px auto 18px;
}
#windirPanelBytes .menu-bridge-box h3{font-size:15px;color:#3a283e}
#windirPanelBytes .menu-bridge-box p{font-size:12px}
#windirPanelBytes .menu-input-row{display:flex;gap:9px}
#windirPanelBytes .menu-input-row input{text-align:center;letter-spacing:.2em;font-weight:800;font-size:16px;min-height:50px}
#windirPanelBytes .menu-input-row .button{min-height:50px}
#windirPanelBytes .menu-bridge-box .text-button{color:#9c3568}
.connection-workspace>.workspace-footer{order:4;min-height:46px}
.page-footer{display:flex;align-items:center;justify-content:space-between;max-width:820px;margin:0 auto;padding:25px 5px 32px}
.page-footer>a{display:inline-flex;gap:5px;align-items:center;color:#9c30a4;font-weight:700}
.page-footer>a img{opacity:.63}
#windirPanelCert .certificate-details{text-align:left;max-width:540px;margin:20px auto 0}
#windirPanelCert .stage-content .button{max-width:510px;width:100%}
#windirPanelKey #loginSection .button{max-width:510px}
#windirPanelKey #loginSection form{max-width:510px}
#windirPanelKey #loginSection .stage-icon{background:#f5e8f8}
@media(min-width:1000px){
 .windir-panel{padding-inline:42px;padding-bottom:33px}
 .windir-tabs{margin-inline:32px}
 .panel-intro{padding-top:39px}
}
@media(max-width:760px){
 .nav-inner{min-height:70px}
 .header-support{font-size:11px}
 .page-heading{padding:23px 2px 15px}
 .page-heading h1{font-size:24px}
 .connection-workspace>.workspace-heading{padding:18px 22px 16px}
 .windir-tabs{margin:0 13px;gap:4px;padding:5px}
 .windir-tab{font-size:10px;min-height:64px;padding:9px 2px}
 .windir-tab img{width:19px;height:19px}
 .windir-panel{padding:0 18px 25px}
 .windir-panel .stage-content{padding:23px 12px 13px}
 .windir-panel .stage-content h2{font-size:24px}
 .panel-intro{padding:25px 10px 15px}
 .panel-intro h2{font-size:22px}
}
@media(max-width:440px){
 .nav-inner{min-height:67px}
 .site-brand{font-size:13px}
 .site-brand .brand-logo{width:42px;height:42px}
 .header-support{font-size:0;gap:0;margin-left:auto;min-height:44px;min-width:32px;justify-content:center}
 .header-support img{width:18px;height:18px}
 .page-heading{padding:21px 2px 15px}
 .page-heading h1{font-size:22px}
 .page-heading .heading-description{font-size:10px;line-height:1.6}
 .page-heading .eyebrow{font-size:8px}
 .page-heading .system-status{font-size:10px;margin-top:9px}
 .connection-workspace>.workspace-heading{padding:15px 16px 13px}
 .connection-workspace>.workspace-heading h2{font-size:13px}
 .connection-workspace>.workspace-heading p{font-size:8px}
 .windir-tabs{margin:0 9px;padding:5px;gap:3px;border-radius:11px}
 .windir-tab{font-size:9px;min-height:61px;padding:8px 1px;gap:4px;line-height:1.3;border-radius:9px}
 .windir-tab img{width:18px;height:18px}
 .windir-tabpanels{min-height:298px}
 .windir-panel{padding:0 13px 20px}
 .windir-panel .stage-content{padding:20px 10px 10px}
 .windir-panel .stage-content h2{font-size:23px}
 .windir-panel .stage-description{font-size:12px;line-height:1.7;margin-bottom:18px}
 .windir-panel .pair-visual{width:75px;height:75px;margin:7px auto 19px}
 .windir-panel #pairHapp{font-size:13px;min-height:54px}
 .windir-panel .connection-overview{margin-top:12px;padding:13px 0 0}
 .windir-panel .connect-stats>div{min-height:47px;padding:10px 6px}
 .windir-panel .connect-stats>div dt,.windir-panel .connect-stats>div dd{font-size:11px}
 .tab-gate{padding:30px 12px 15px;min-height:260px}
 .tab-gate h2,.tab-gate h3{font-size:20px}
 .tab-gate p{font-size:12px}
 .panel-intro{padding:23px 6px 12px}
 .panel-intro h2{font-size:21px}
 .panel-intro p{font-size:11px}
 .panel-icon{width:59px;height:59px;border-radius:16px}
 .panel-icon img{width:26px;height:26px}
 #windirPanelDevice .device-summary{padding:0 1px}
 #windirPanelDevice .real-device-grid{padding:0 10px}
 #windirPanelDevice .real-device-grid>div{font-size:11px}
 #windirPanelDevice .real-device-grid dd{font-size:11px}
 #windirPanelKey #savedKeyPanel .key-summary>div{font-size:11px}
 #windirPanelBytes .menu-bridge-box{padding:15px 13px}
 #windirPanelBytes .menu-input-row{flex-direction:column}
 #windirPanelBytes .menu-input-row .button{width:100%}
 .page-footer{padding:20px 5px 27px;font-size:10px}
}

/* Final visual cleanup after reviewing real iPhone and desktop screenshots. */
.connection-workspace>.windir-tabs{order:1;margin-top:18px}
.connection-workspace>.windir-tabpanels{order:2}
.connection-workspace{padding-bottom:10px}
#windirPanelBytes .menu-bridge-box h3,
#windirPanelBytes .menu-bridge-box>p[data-i18n="menuBridgeHelp"]{display:none}
#windirPanelBytes .menu-bridge-box{padding-top:19px}
#windirPanelDevice .device-summary>.aside-section-heading h3{display:none}
#windirPanelDevice .device-summary>.aside-section-heading{justify-content:center;padding-bottom:12px}
#windirPanelDevice .device-summary>.aside-section-heading>span{
 display:inline-block;padding:5px 12px;background:#f8effa;border-radius:99px;color:#9e38aa;
}
#windirPanelDevice .real-device-grid dd:empty::after{content:"—";color:#988aa0}
.page-footer{padding-top:20px}
@media(max-width:440px){
 .connection-workspace>.windir-tabs{margin-top:12px}
}
