:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#10243a;background:#f5f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.75rem,5vw,2.8rem);line-height:1.1;letter-spacing:-.04em}h2{font-size:1.25rem;letter-spacing:-.02em}h3{font-size:1rem}small,.muted{color:#65768a}.shell{max-width:1180px;margin:auto;padding:0 18px 110px}.top{height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:11px;font-size:1.08rem;font-weight:800;letter-spacing:-.025em}.brand-mark{width:40px;height:40px;border-radius:13px;background:#071b32;color:#f5b94f;display:grid;place-items:center;font-size:1.1rem}.top-actions{display:flex;align-items:center;gap:9px}.tiny-btn{background:#fff;border:1px solid #dbe2e8;color:#10243a;padding:10px 13px;border-radius:12px;font-size:.84rem;font-weight:650}.hero{background:#071b32;color:#fff;border-radius:25px;padding:28px 23px 26px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,#31587a,transparent 68%);right:-70px;top:-85px;opacity:.7}.hero>*{position:relative;z-index:1}.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:#f5b94f;font-weight:800;font-size:.69rem}.hero h1{max-width:560px;margin:11px 0}.hero p{max-width:530px;color:#cbd7e3;line-height:1.5;margin:0 0 22px}.searchbar{display:flex;gap:8px;background:#fff;border-radius:15px;padding:6px;box-shadow:0 12px 40px #00111e30}.searchbar input{border:0;flex:1;min-width:0;padding:10px 9px;outline:none;background:transparent}.searchbar button{border:0;border-radius:11px;padding:11px 17px;background:#f5b94f;font-weight:800;color:#172333}.section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:29px 2px 15px}.section-head h2{margin:0}.chips{display:flex;gap:8px;overflow:auto;padding:3px 0 13px;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid #d7e1e9;background:#fff;border-radius:100px;padding:10px 14px;color:#415367;font-weight:650;font-size:.82rem}.chip.active{background:#102b44;color:#fff;border-color:#102b44}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.card{background:#fff;border:1px solid #e5eaf0;border-radius:19px;overflow:hidden;box-shadow:0 5px 20px #10243a08}.thumb{aspect-ratio:1.36;background:linear-gradient(145deg,#d5e2e9,#edf2f5);display:flex;align-items:center;justify-content:center;overflow:hidden;color:#4c6681;font-size:2.5rem}.thumb img,.thumb video{width:100%;height:100%;object-fit:cover}.card-body{padding:13px}.card h3{line-height:1.25;margin:6px 0;font-size:.92rem}.card-meta{display:flex;justify-content:space-between;gap:6px;font-size:.7rem;color:#758497}.tag{display:inline-block;border-radius:6px;background:#e8eff5;color:#43647c;padding:4px 7px;font-size:.63rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.btn{border:0;border-radius:13px;padding:12px 16px;min-height:44px;font-weight:750;background:#102b44;color:#fff}.btn.gold{background:#f5b94f;color:#16283a}.btn.light{background:#eaf0f4;color:#18364c}.btn.danger{background:#fce8e8;color:#9d2929}.btn:disabled{opacity:.55}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.wrap{flex-wrap:wrap}.stack{display:grid;gap:12px}.panel{background:#fff;border:1px solid #e2e8ef;border-radius:19px;padding:17px}.panel h2{margin-bottom:15px}.field{display:grid;gap:6px}.field label{font-weight:750;font-size:.82rem;color:#384b5f}.field input,.field select,.field textarea,.input{width:100%;border:1px solid #cfdce6;border-radius:12px;background:#fff;color:#182d40;padding:12px;min-height:46px;outline:none}.field textarea{min-height:115px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#477996;box-shadow:0 0 0 3px #47799622}.form{display:grid;gap:14px}.two{display:grid;gap:13px}.nav{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid #dae2e9;display:flex;justify-content:space-around;padding:7px 6px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px #10243a0a}.nav button{display:grid;place-items:center;gap:2px;border:0;background:transparent;color:#708195;min-width:56px;padding:6px 4px;font-size:.64rem;font-weight:750}.nav button.active{color:#0e3857}.nav .ico{font-size:1.25rem}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{background:#fff;border:1px solid #e1e8ee;border-radius:17px;padding:16px}.stat strong{display:block;font-size:1.8rem;letter-spacing:-.06em;color:#0e3550}.stat span{font-size:.74rem;color:#687a8d}.list{display:grid;gap:9px}.list-item{background:#fff;border:1px solid #e2e9ef;border-radius:15px;padding:15px;display:grid;gap:8px}.list-item h3{margin:0}.pill{border-radius:99px;padding:5px 9px;background:#e8eef4;color:#31536a;font-size:.7rem;font-weight:750}.pill.urgent{background:#ffebdb;color:#a94d18}.empty{text-align:center;padding:48px 22px;background:#fff;border:1px dashed #cbd8e2;border-radius:18px;color:#65768a}.empty .emoji{font-size:2rem;margin-bottom:8px}.sheet-back{position:fixed;inset:0;background:#071b3280;z-index:50;display:flex;align-items:end}.sheet{background:#fff;border-radius:24px 24px 0 0;padding:23px 19px calc(25px + env(safe-area-inset-bottom));width:100%;max-height:92vh;overflow:auto}.sheet .handle{width:45px;height:5px;background:#d4dce2;border-radius:9px;margin:-10px auto 17px}.preview{position:fixed;inset:0;background:#061829;z-index:60;display:grid;grid-template-rows:auto 1fr auto;color:#fff}.preview header,.preview footer{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:16px}.preview main{min-height:0;display:grid;place-items:center;padding:5px}.preview main img,.preview main video{max-width:100%;max-height:100%;object-fit:contain}.preview main iframe{width:100%;height:100%;border:0;background:#fff}.preview footer{background:#0d263d;flex-wrap:wrap}.preview .btn{background:#fff;color:#102b44}.login{max-width:440px;margin:45px auto}.login .brand{margin-bottom:30px}.login h1{margin-bottom:9px}.notice{background:#fff5dd;color:#594716;border-radius:12px;padding:12px 14px;font-size:.81rem}.error{background:#fdecec;color:#9d2929;border-radius:11px;padding:11px;font-size:.82rem}.success{background:#e7f6ed;color:#286347;border-radius:11px;padding:11px;font-size:.82rem}.timeline{border-left:2px solid #d8e4eb;margin-left:8px;padding-left:20px;display:grid;gap:16px}.event{position:relative;background:#fff;border:1px solid #e4eaef;padding:13px;border-radius:14px}.event:before{content:"";position:absolute;left:-27px;top:18px;width:10px;height:10px;background:#f5b94f;border-radius:50%}.desktop-nav{display:none}.install{background:#eaf1f5;border-radius:12px;padding:11px 13px;font-size:.78rem;color:#456174;margin-top:17px}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:700px){.shell{padding:0 28px 80px}.hero{padding:47px}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.two{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(3,1fr)}.nav{display:none}.desktop-nav{display:flex;gap:5px}.desktop-nav button{border:0;background:transparent;padding:10px 12px;border-radius:10px;font-weight:700;color:#536779}.desktop-nav button.active{background:#e9f0f4;color:#183b55}.sheet-back{align-items:center;justify-content:center}.sheet{border-radius:22px;max-width:530px;padding:25px;box-shadow:0 25px 70px #0004}.preview main{max-width:1000px;width:100%;margin:auto}}@media(min-width:1000px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stats{grid-template-columns:repeat(6,1fr)}}
.brand{gap:8px}.brand-wordmark{display:block;flex:none;width:100px;height:37px;background:url('/hm-corp-logo.png') -40px -122px/180px 180px no-repeat}.brand-divider{width:1px;height:24px;background:#cdd7df}.brand-product{font-size:1rem;white-space:nowrap}.hero-wordmark{width:105px;height:39px;margin-bottom:17px;background:url('/hm-corp-logo-white.png') -80px -171px/264px 264px no-repeat}.sign-in-short{display:none}@media(max-width:520px){.sign-in-full{display:none}.sign-in-short{display:inline}}
.page-guide{margin:0 0 18px;background:#fff;border:1px solid #dce5ec;border-radius:13px;color:#294358}.page-guide summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;cursor:pointer;font-size:.86rem;font-weight:750}.page-guide summary::-webkit-details-marker{display:none}.page-guide summary:focus-visible{outline:3px solid #477996;outline-offset:2px;border-radius:13px}.page-guide summary span{font-size:1.2rem;line-height:1;transition:transform .15s}.page-guide[open] summary span{transform:rotate(180deg)}.page-guide ol{margin:0;padding:0 20px 15px 37px;color:#4e6375;font-size:.83rem;line-height:1.5}.page-guide li+li{margin-top:6px}


/* Canonical HM account sign-in / registration UI — PR Dashboard visual identity */
.hm-auth-overlay{
  position:fixed;
  inset:0;
  z-index:100;
  background:#f5f7fb;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  overflow:auto;
  color:#0b1f3a;
}
.hm-auth-card{
  width:min(460px,100%);
  max-height:94vh;
  overflow:auto;
  background:#fff;
  color:#0b1f3a;
  border:1px solid #d7e1eb;
  border-radius:20px;
  padding:22px;
  box-shadow:0 8px 24px rgba(18,42,66,.045);
  margin:auto;
}
.auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.auth-brand-logo{
  display:block;
  width:190px;
  max-width:60%;
  height:auto;
  object-fit:contain;
}
.auth-brand-divider{
  width:1px;
  height:38px;
  background:#ccd6e0;
  flex:none;
}
.auth-product{
  font-size:20px;
  font-weight:800;
  color:#0b1f3a;
  white-space:nowrap;
}
.auth-eyebrow{
  color:#d59a2e;
  font-weight:800;
  letter-spacing:.16em;
  font-size:12px;
  margin-top:14px;
}
.hm-auth-card h1{
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.035em;
  margin:5px 0 4px;
  color:#0b1f3a;
}
.auth-sub{
  margin:0;
  color:#687b91;
  line-height:1.45;
}
.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:16px 0;
}
.auth-tab{
  border:1px solid #cfdbe7;
  background:#fff;
  color:#0b1f3a;
  padding:10px;
  border-radius:11px;
  font-weight:700;
}
.auth-tab.active{
  background:#10243e;
  color:#fff;
  border-color:#10243e;
}
.auth-form{
  display:grid;
  gap:11px;
}
.auth-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.auth-field label{
  font-size:12px;
  color:#63758a;
}
.auth-field input,
.auth-field select{
  width:100%;
  background:#fff;
  border:1px solid #cfdbe7;
  color:#0b1f3a;
  padding:11px 12px;
  border-radius:11px;
  min-height:44px;
  outline:none;
}
.auth-field input:focus,
.auth-field select:focus{
  border-color:#7c9bb7;
  box-shadow:0 0 0 3px rgba(124,155,183,.16);
}
.auth-primary{
  border:0;
  border-radius:12px;
  padding:11px 14px;
  min-height:44px;
  font-weight:750;
  background:#f1bc57;
  color:#0b1f3a;
}
.auth-primary:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.auth-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.auth-hint,
.auth-footer{
  font-size:12px;
  color:#63758a;
  line-height:1.45;
}
.auth-footer{
  margin-top:14px;
}
.auth-message{
  margin-top:14px;
  padding:10px 12px;
  border-radius:11px;
  font-size:12px;
}
.auth-note{
  border:1px solid #caddec;
  background:#eef6fc;
  color:#23425f;
}
.auth-error{
  border:1px solid #efc0c4;
  background:#fff0f1;
  color:#8b2e34;
}
.auth-success{
  border:1px solid #a9dbc7;
  background:#effaf5;
  color:#19684f;
}
@media(max-width:600px){
  .hm-auth-overlay{align-items:flex-start;padding:26px 12px 18px}
  .hm-auth-card{padding:17px;border-radius:18px}
  .auth-brand-logo{width:165px}
  .auth-product{font-size:17px}
  .auth-grid{grid-template-columns:1fr}
}


/* HM auth registration usability V4 */
.password-shell{position:relative;display:flex;align-items:center}
.password-shell input{padding-right:82px}
.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#425b73;font-size:12px;font-weight:700;padding:6px 7px;border-radius:7px;cursor:pointer}
.password-toggle:hover,.password-toggle:focus-visible{background:#eef3f8;color:#0b1f3a;outline:none}
.auth-inline-error{font-size:12px;line-height:1.35;color:#a83a42;margin-top:1px}


/* HM compact header + direct access switcher */
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.header-context-select{width:auto;max-width:230px;min-width:120px;border:1px solid #cfdbe7;background:#fff;color:#10243e;border-radius:999px;padding:7px 30px 7px 11px;font-size:12px;font-weight:800;line-height:1.2}
.header-access-pill{display:inline-flex;align-items:center;max-width:230px;border:1px solid #cfdbe7;background:#fff;color:#10243e;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-account-btn{max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){
  .header-context-select,.header-access-pill{max-width:150px;min-width:0}
  .header-account-btn{max-width:100px}
}


/* HM auth PR-style preservation */
.hm-auth-overlay{
  flex-direction:column;
  gap:12px;
}
.auth-brand-wordmark{
  flex:none;
  width:140px;
  height:52px;
  background-position:-56px -171px;
  background-size:252px 252px;
}
.auth-back-public{
  border:0;
  background:transparent;
  color:#425b73;
  font-size:13px;
  line-height:1.2;
  font-weight:700;
  padding:9px 12px;
  cursor:pointer;
}
.auth-back-public:hover,
.auth-back-public:focus-visible{
  color:#0b1f3a;
  text-decoration:underline;
  outline:none;
}
@media(max-width:600px){
  .auth-brand-wordmark{
    width:126px;
    height:47px;
    background-position:-50px -154px;
    background-size:227px 227px;
  }
}

.directory-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(140px,1fr)) auto;gap:10px;align-items:end}
.directory-filters select{width:100%}
.directory-note{margin:14px 2px}
.directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.directory-card{appearance:none;width:100%;border:1px solid var(--line);background:var(--panel);color:inherit;border-radius:18px;padding:18px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font:inherit}
.directory-card:hover{border-color:var(--gold)}
.directory-card strong,.directory-card small{display:block}
.directory-card small{margin-top:5px;color:var(--muted)}
.directory-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.directory-chip{display:inline-flex;padding:4px 8px;border-radius:999px;background:rgba(190,148,57,.12);color:#8a641e;font-size:.72rem;font-weight:750;letter-spacing:.02em}
.directory-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}
.directory-detail dl div{padding:12px;border:1px solid var(--line);border-radius:13px}
.directory-detail dt{font-size:.75rem;color:var(--muted);margin-bottom:4px}
.directory-detail dd{margin:0;font-weight:650;overflow-wrap:anywhere}
@media(max-width:800px){.directory-filters,.directory-grid,.directory-detail dl{grid-template-columns:1fr}}


/* HM login visual alignment V1 */
.hm-auth-overlay{
  flex-direction:column;
  gap:10px;
}

.auth-brand{
  position:relative;
}

.auth-brand::before{
  content:"";
  display:block;
  flex:none;
  width:145px;
  height:54px;
  background:url('/hm-corp-logo.png?v=authui4') -58px -177px / 261px 261px no-repeat;
}

.auth-brand-logo{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0;
  pointer-events:none;
}

.auth-back-public{
  border:0;
  background:transparent;
  color:#52677d;
  font-size:13px;
  font-weight:700;
  padding:8px 12px;
  cursor:pointer;
}

.auth-back-public:hover,
.auth-back-public:focus-visible{
  color:#0b1f3a;
  text-decoration:underline;
  outline:none;
}

@media(max-width:600px){
  .auth-brand::before{
    width:132px;
    height:49px;
    background-position:-53px -161px;
    background-size:238px 238px;
  }
}


/* HM POLISH V1 */

.agent-photo-note{
  margin:16px 0 18px;
  line-height:1.45;
}

.hm-modal-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(11,31,58,.46);
  backdrop-filter:blur(2px);
}

.hm-modal-card{
  width:min(720px,calc(100vw - 32px));
  max-height:min(86vh,860px);
  overflow:auto;
  background:#fff;
  border:1px solid #dbe5ee;
  border-radius:24px;
  box-shadow:0 22px 70px rgba(11,31,58,.24);
  padding:24px;
}

.hm-modal-top{
  display:flex;
  justify-content:flex-end;
  margin-bottom:4px;
}

.agent-modal-head small{
  display:block;
  margin-bottom:4px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  color:#718399;
}

.agent-modal-head h2{
  margin:0;
}

.agent-modal-head .muted{
  margin:5px 0 2px;
}

.agent-meta{
  margin:0 0 18px;
  color:#50657b;
  font-size:14px;
  font-weight:700;
}

.agent-current-photo-wrap{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:260px;
  padding:14px;
  background:#f2f6f9;
  border:1px solid #dce6ee;
  border-radius:18px;
  overflow:hidden;
}

.agent-current-photo{
  display:block;
  width:100%;
  max-height:380px;
  object-fit:contain;
  border-radius:12px;
}

.agent-current-badge{
  position:absolute;
  left:18px;
  bottom:18px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(11,31,58,.88);
  color:#fff;
  font-size:12px;
  font-weight:800;
}

.agent-photo-empty{
  padding:42px 20px;
  border:1px dashed #cfdde7;
  border-radius:18px;
  text-align:center;
  color:#657b90;
}

.agent-modal-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.agent-approve-now{
  display:flex;
  gap:9px;
  align-items:center;
  margin-top:16px;
  font-weight:700;
}

.agent-photo-history{
  margin-top:22px;
  border-top:1px solid #e3ebf1;
  padding-top:18px;
}

.agent-photo-history summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-size:18px;
  font-weight:900;
  color:#102942;
  list-style:none;
}

.agent-photo-history summary::-webkit-details-marker{
  display:none;
}

.agent-photo-history summary span{
  min-width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#eef3f6;
  font-size:12px;
}

.agent-history-list{
  margin-top:14px;
}

.agent-history-item{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:12px;
  padding:12px;
  border:1px solid #dfe8ef;
  border-radius:14px;
}

.agent-history-thumb{
  width:64px;
  height:64px;
  border-radius:12px;
  overflow:hidden;
  background:#eef3f6;
}

.agent-history-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.agent-history-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}

.agent-history-copy small{
  color:#718399;
}

.agent-history-actions{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

@media(max-width:600px){
  .hm-modal-overlay{
    padding:14px;
  }

  .hm-modal-card{
    width:calc(100vw - 28px);
    max-height:84vh;
    padding:18px;
    border-radius:20px;
  }

  .agent-current-photo-wrap{
    min-height:220px;
  }

  .agent-current-photo{
    max-height:320px;
  }

  .agent-modal-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .agent-modal-actions .btn{
    width:100%;
  }
}

/* HM Migration Center — preview only */
.migration-warning{
  margin-bottom:16px;
}
.migration-stats{
  margin:16px 0;
}
.migration-scope{
  margin-top:16px;
}
.migration-list{
  display:grid;
  gap:10px;
}
.migration-row{
  background:var(--panel,#fff);
  border:1px solid var(--line,#e2e8ef);
  border-radius:16px;
  padding:15px;
}
.migration-main p{
  margin:8px 0 4px;
  color:var(--muted,#65768a);
}
.migration-main small{
  color:var(--muted,#65768a);
}
.migration-status{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 9px;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.02em;
}
.migration-status.ready{
  background:#e7f6ed;
  color:#286347;
}
.migration-status.already-matched{
  background:#e8eff5;
  color:#31536a;
}
.migration-status.conflict{
  background:#fdecec;
  color:#9d2929;
}
.migration-status.manual-review{
  background:#fff5dd;
  color:#7b5b13;
}


/* HM canonical context switcher — production session bridge */
.header-context-select{
  width:auto;
  min-width:280px;
  max-width:440px;
  min-height:46px;
  border:1px solid #c6d4e1;
  background:#fff;
  color:#10243e;
  border-radius:14px;
  padding:10px 42px 10px 15px;
  font-size:14px;
  font-weight:800;
  line-height:1.3;
  box-shadow:0 4px 16px rgba(16,36,62,.06);
  outline:none;
}

.header-context-select:hover{
  border-color:#9fb5c9;
  box-shadow:0 5px 18px rgba(16,36,62,.09);
}

.header-context-select:focus{
  border-color:#668aa9;
  box-shadow:
    0 0 0 3px rgba(71,121,150,.15),
    0 5px 18px rgba(16,36,62,.08);
}

.header-context-select:disabled{
  opacity:.65;
  cursor:wait;
}

.header-access-pill{
  min-height:46px;
  max-width:440px;
  padding:10px 15px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  font-size:14px;
}

.header-account-btn{
  min-height:46px;
  max-width:220px;
  padding-left:15px;
  padding-right:15px;
}

@media(max-width:760px){
  .top{
    height:auto;
    min-height:76px;
    flex-wrap:wrap;
    padding:10px 0;
  }

  .top-actions{
    width:100%;
    order:3;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
  }

  .header-context-select,
  .header-access-pill{
    width:100%;
    min-width:0;
    max-width:none;
    font-size:13px;
  }

  .header-account-btn{
    max-width:135px;
  }
}

@media(max-width:430px){
  .top-actions{
    grid-template-columns:1fr;
  }

  .header-account-btn{
    width:100%;
    max-width:none;
  }
}

/* authui8 — exact equal-height canonical header controls */
:root{
  --hm-header-control-height:52px;
}

/*
 * Safari/iOS SELECT controls can look shorter than adjacent buttons even when
 * both use the same min-height.
 *
 * Use ONE exact fixed geometry and disable native SELECT appearance.
 */
.header-context-select,
.header-access-pill,
.header-account-btn{
  box-sizing:border-box !important;
  height:var(--hm-header-control-height) !important;
  min-height:var(--hm-header-control-height) !important;
  max-height:var(--hm-header-control-height) !important;
  border-radius:14px !important;
}

.header-context-select{
  -webkit-appearance:none !important;
  appearance:none !important;

  padding-top:0 !important;
  padding-bottom:0 !important;
  padding-left:15px !important;
  padding-right:44px !important;

  line-height:normal !important;

  background-color:#fff !important;

  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='%2310243e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;

  background-repeat:no-repeat !important;
  background-position:right 15px center !important;
  background-size:18px 18px !important;
}

.header-access-pill,
.header-account-btn{
  display:inline-flex !important;
  align-items:center !important;
  line-height:normal !important;
}

.header-account-btn{
  justify-content:center !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}


@media(max-width:760px){

  .header-context-select,
  .header-access-pill,
  .header-account-btn{
    height:var(--hm-header-control-height) !important;
    min-height:var(--hm-header-control-height) !important;
    max-height:var(--hm-header-control-height) !important;
  }
}

/* authui8 — keep original brand typography; only make the original div clickable */
.brand[data-nav="home"]{
  cursor:pointer;
}
