/* HC Portal · compact centered header search, responsive and theme independent */
@media (min-width: 1101px) {
  .ui-dense .header-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,min(38vw,520px)) minmax(0,1fr);
    align-items:center;
    column-gap:16px;
  }
  .ui-dense .header-row > .brand {justify-self:start;min-width:0;}
  .ui-dense .header-row > .search {
    grid-column:2;
    justify-self:center;
    width:100%;
    min-width:0;
    max-width:none;
    margin:0;
    flex:none;
  }
  .ui-dense .header-row > .account-links {
    grid-column:3;
    justify-self:end;
    max-width:100%;
    margin-left:0;
  }
}
@media (max-width:1100px) {
  .ui-dense .header-row {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    column-gap:12px;
    row-gap:8px;
  }
  .ui-dense .header-row > .brand {order:1;}
  .ui-dense .header-row > .account-links {order:2;margin-left:auto;}
  .ui-dense .header-row > .search {
    order:3;
    flex:0 1 600px;
    width:min(100%,600px);
    max-width:600px;
    min-width:0;
    margin:0 auto;
  }
}
.ui-dense .header-row > .search input[name="q"] {min-width:0;}
.ui-dense .header-nav-options {
  border:1px solid var(--line,#dde6f2);
  border-radius:8px;
  padding:12px 14px;
  margin:0;
  min-width:0;
}
.ui-dense .header-nav-options legend {font-size:14px;color:var(--ink,#142747);font-weight:700;padding:0 6px;}
.ui-dense .header-nav-options .muted {margin:0 0 10px;}
.ui-dense .header-nav-controls {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 12px;}
.ui-dense .header-nav-options label.check {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:8px 10px;
  border:1px solid var(--line,#dde6f2);
  background:#f8fbff;
  border-radius:7px;
  cursor:pointer;
}
.ui-dense .header-nav-options input[type="checkbox"] {flex:none;margin:0;}
