#ab-signin-header, #ab-signin-header * { all: revert; box-sizing: border-box; }
#ab-signin-header { display:block; color:#0c214f; --blue:#0758ef; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
#ab-signin-header a { text-decoration:none; color:inherit; }
#ab-signin-header button { font:inherit; cursor:pointer; }
#ab-signin-header.header{height:75px;background:#ffffffea;border-bottom:1px solid #e4ebf6;backdrop-filter:blur(14px)}
#ab-signin-header .header-inner{max-width:1320px;width:calc(100% - 72px);height:100%;margin:auto;display:flex;align-items:center;gap:22px}
#ab-signin-header .logo{display:flex;align-items:center;gap:10px;flex:none}
#ab-signin-header .header-sep{height:30px;width:1px;background:#d6e2f1;margin:0 8px}
#ab-signin-header .header-nav{display:flex;align-items:center;gap:26px}
#ab-signin-header .header-nav a{font-size:12px;color:#596d8d;font-weight:750;transition:color .2s}
#ab-signin-header .header-nav a:hover{color:var(--blue)}
#ab-signin-header .right-nav{margin-left:auto;display:flex;align-items:center;gap:15px}
#ab-signin-header .nation-tag{padding:9px 12px;border-radius:100px;border:1px solid #d9e7fd;color:#476795;font-size:11px;background:#f6f9ff;font-weight:800}
#ab-signin-header .back-link{font-weight:820;font-size:12px;border-radius:11px;padding:10px 15px;color:#184ea4;background:white;border:1px solid #cedef6}
#ab-signin-header .back-link:hover{background:#edf4ff}
@media(max-width:1100px){#ab-signin-header .header-nav{gap:17px}}
@media(max-width:820px){#ab-signin-header .header-nav,#ab-signin-header .header-sep{display:none}
#ab-signin-header .header-inner{width:calc(100% - 36px)}}
@media(max-width:650px){#ab-signin-header.header{height:65px}
#ab-signin-header .header-inner{gap:7px}
#ab-signin-header .right-nav{gap:7px}
#ab-signin-header .nation-tag{display:none}
#ab-signin-header .back-link{padding:10px 12px;font-size:10px}}
@media(max-width:360px){#ab-signin-header .header-inner{width:calc(100% - 24px)}
#ab-signin-header .back-link{padding:9px;font-size:9px}}
#ab-signin-header .new-brand-logo{display:block;width:176px;max-width:100%;height:auto;object-fit:contain}
#ab-signin-header.header .logo{min-width:176px}
#ab-signin-header .header-nav a[href="stories.html"]{color:var(--blue)}
@media(max-width:650px){#ab-signin-header .new-brand-logo{width:132px}
#ab-signin-header.header .logo{min-width:132px}
#ab-signin-header .header-inner{width:calc(100% - 20px)}
#ab-signin-header.header .back-link{font-size:10px}}
#ab-signin-header .header-nav a.active-nav-link{color:var(--blue)}
#ab-signin-header .mobile-menu-toggle{display:none;align-items:center;justify-content:center;gap:7px;flex:none;background:#edf4ff;border:1px solid #cbdcff;border-radius:10px;padding:10px 12px;color:#104aa5;font-weight:800;font-size:12px;cursor:pointer}
#ab-signin-header .mobile-menu-toggle svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:820px){#ab-signin-header.header{height:auto;min-height:70px;position:relative;z-index:20}
#ab-signin-header .header-inner{min-height:70px;flex-wrap:wrap;gap:10px}
#ab-signin-header .header-nav{display:none;order:3;flex-basis:100%;width:100%;padding:7px 0 14px;margin:0;gap:3px;flex-direction:column;align-items:stretch;border-top:1px solid #e0e9f7}
#ab-signin-header .header-nav.mobile-open{display:flex}
#ab-signin-header .header-nav a{display:block;padding:12px 14px;border-radius:10px;font-size:13px}
#ab-signin-header .header-nav a:hover,#ab-signin-header .header-nav a:focus-visible{background:#eff5ff}
#ab-signin-header .mobile-menu-toggle{display:inline-flex;margin-left:auto}
#ab-signin-header .right-nav{margin-left:0}
#ab-signin-header.header .header-sep{display:none}}
@media(max-width:650px){#ab-signin-header .header-inner{min-height:65px;gap:8px;padding:8px 0}
#ab-signin-header.header .logo{min-width:0;max-width:43%;}
#ab-signin-header .new-brand-logo{width:clamp(106px,33vw,150px)}
#ab-signin-header .mobile-menu-toggle{padding:9px 10px;font-size:11px}
#ab-signin-header .right-nav{margin-left:0}
#ab-signin-header.header .back-link{padding:9px 9px;font-size:10px}}
@media(max-width:370px){#ab-signin-header .header-inner{gap:5px}
#ab-signin-header.header .back-link{font-size:9px;padding:8px 7px}
#ab-signin-header .mobile-menu-toggle{font-size:10px;padding:8px}
#ab-signin-header .new-brand-logo{width:106px}}
.ab-context-links { display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; padding:7px max(16px,calc((100% - 1248px)/2)); font: 13px/1.5 system-ui,sans-serif; color:#475b7d; background:white; border-bottom:1px solid #e4ebf6; }
.ab-context-links a { color:#184ea4; text-decoration:none; padding:4px 0; }
.ab-context-links [hidden] {display:none!important}
@media print { #ab-signin-header,.ab-context-links { display:none } }


@media screen and (max-width: 820px) {
  :is(#ab-signin-header, .header) .header-inner { height: auto; }
  :is(#ab-signin-header, .header) :is(.back-link, .mobile-menu-toggle) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  }
  .ab-context-links { gap: 0 14px; padding-block: 2px; }
  .ab-context-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .ab-context-links #location { flex-basis: 100%; overflow-wrap: anywhere; }
}
@media screen and (max-width: 650px) {
  :is(#ab-signin-header, .header) .header-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px; width: calc(100% - 20px);
  }
  :is(#ab-signin-header, .header).header .logo { min-width: 0; max-width: 100%; }
  :is(#ab-signin-header, .header) .header-nav { grid-column: 1 / -1; grid-row: 2; }
  :is(#ab-signin-header, .header) .right-nav { grid-column: 3; grid-row: 1; }
  :is(#ab-signin-header, .header) .mobile-menu-toggle { grid-column: 2; grid-row: 1; }
}
@media screen and (max-width: 820px) {
  .frame { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .frame > *, .control > input, .auth-content { min-width: 0; }
  .dialog { max-height: 90vh; max-height: 90dvh; overflow-y: auto; }
  .auth-content :is(input, select, textarea) { font-size: 16px; }
}
@media screen and (max-width: 480px) {
  .role-select { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding-inline: clamp(16px, 5vw, 24px); }
}
