.ac-site-header {
  background: #fffef9;
  color: #263a31;
  border-bottom: 1px solid #dadfd4;
}
.ac-header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 88px;
  margin-inline: auto;
  padding-block: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
}
.ac-header-inner.has-session { grid-template-columns: auto minmax(0, 1fr) minmax(150px, 220px); }
.ac-site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 0;
  margin: 0;
  color: #233d2d;
  font: 700 27px/1.15 Georgia, serif;
  text-decoration: none;
}
.ac-site-header .brand span { font: inherit; letter-spacing: normal; white-space: nowrap; }
.ac-site-header .brand img { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 0; object-fit: contain; }
.ac-site-header .site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
}
.ac-site-header .site-nav a,
.ac-site-header .navigation-signout button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 2px;
  color: #28543c;
  font: 650 1rem/1.4 system-ui, sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ac-site-header .site-nav a:hover,
.ac-site-header .navigation-signout button:hover { text-decoration: underline; text-underline-offset: 4px; }
.ac-site-header .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.ac-site-header .site-nav a::after { content: none; }
.ac-site-header .navigation-signout { display: inline-flex; width: auto; margin: 0; padding: 0; gap: 0; border: 0; }
.ac-site-header .navigation-signout button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 6px 2px;
  cursor: pointer;
}
.ac-site-header .header-account { display: grid; justify-items: end; min-width: 0; max-width: 100%; gap: 0; }
.ac-site-header .session-identity { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; color: inherit; text-decoration: none; text-align: left; }
.ac-site-header .session-identity > img { flex: 0 0 48px; width: 48px; height: 48px; border: 2px solid #b7c6b1; border-radius: 50%; background: #edf1e7; object-fit: cover; }
.ac-site-header .session-identity-copy { display: grid; gap: 2px; min-width: 0; max-width: 220px; }
.ac-site-header .session-identity-copy strong { font: 750 1rem/1.25 system-ui, sans-serif; overflow-wrap: anywhere; }
.ac-site-header .session-identity-role { font: 600 .9rem/1.3 system-ui, sans-serif; color: #45624c; }
.ac-site-header a:focus-visible,
.ac-site-header button:focus-visible { outline: 3px solid #315d3f; outline-offset: 4px; border-radius: 6px; }
@media (max-width: 1050px) {
  .ac-header-inner.has-session { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ac-header-inner.has-session .site-nav { grid-row: 2; grid-column: 1 / -1; padding-top: 8px; }
}
@media (max-width: 650px) {
  .ac-header-inner { width: calc(100% - 24px); grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ac-header-inner.has-session { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ac-site-header .brand { gap: 7px; font-size: clamp(1rem, 4.2vw, 1.4rem); }
  .ac-site-header .brand span { white-space: normal; }
  .ac-site-header .brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .ac-site-header .site-nav { gap: 4px 16px; }
  .ac-site-header .session-identity { gap: 7px; }
  .ac-site-header .session-identity > img { width: 40px; height: 40px; flex-basis: 40px; }
  .ac-site-header .session-identity-copy strong { font-size: .95rem; }
}

/* A compact, shared mobile header; desktop layout stays unchanged. */
@media (max-width: 650px) {
  .ac-site-header {
    background: #e5eddf;
    border-bottom-color: #bdcdb5;
    box-shadow: 0 2px 6px #263f320a;
  }
  .ac-header-inner {
    width: calc(100% - 24px);
    min-height: 0;
    padding-block: 6px 8px;
    gap: 4px 10px;
    align-items: center;
  }
  .ac-header-inner.has-session {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
  .ac-site-header .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
    font-size: clamp(1.05rem, 4.8vw, 1.25rem);
  }
  .ac-site-header .header-account {
    grid-column: 2;
    grid-row: 1;
  }
  .ac-site-header .session-identity {
    min-height: 44px;
    gap: 7px;
  }
  .ac-site-header .session-identity > img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-color: #b5c5ac;
  }
  .ac-site-header .session-identity-copy {
    min-width: 0;
    gap: 1px;
  }
  .ac-site-header .session-identity-copy strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
  }
  .ac-site-header .session-identity-role {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
  }
  .ac-site-header .site-nav,
  .ac-header-inner.has-session .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    align-items: stretch;
    gap: 4px;
    padding-top: 4px;
    border-top: 1px solid #c8d5bf;
  }
  .ac-site-header .site-nav > a,
  .ac-site-header .site-nav > .navigation-signout {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 0;
  }
  .ac-header-inner.has-session .site-nav > a,
  .ac-header-inner.has-session .site-nav > .navigation-signout {
    flex-basis: calc(50% - 3px);
  }
  .ac-header-inner.has-session .site-nav:has(> a:nth-of-type(4)) > a,
  .ac-header-inner.has-session .site-nav:has(> a:nth-of-type(4)) > .navigation-signout {
    flex-basis: calc(33.333% - 4px);
  }
  .ac-site-header .site-nav > a,
  .ac-site-header .navigation-signout button {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 3px 5px;
    border: 1px solid #ccd8c4;
    border-radius: 9px;
    background: #f7faf3;
    color: #294d36;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }
  .ac-site-header .site-nav > a[aria-current="page"] {
    background: #d5e3cc;
    border-color: #b4c7a9;
    text-decoration: none;
  }
  .ac-site-header .navigation-signout button {
    color: #52664c;
    font-weight: 500;
  }
}
.ac-site-header .session-identity-points {
  display: block;
  color: #315c3f;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Warm highlight while the account has unread notifications. */
.notification-unread-alert {
  background:#fff0cc;
  border:1px solid #df9a36;
  border-left:4px solid #ce7a19;
  border-radius:12px;
  color:#613a10;
  padding:1rem 1.2rem;
  box-sizing:border-box;
}
.notification-unread-alert a { color:#613a10; font-weight:700; text-decoration:underline; }

/* Device actions must respect hidden even where button styles use flex. */
[data-member-notifications] [hidden] { display:none !important; }
.ac-site-header .header-account { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.account-settings-menu { position:relative; flex:0 0 44px; margin:0; padding:0; border:0; }
.account-settings-menu summary { display:flex; width:44px; min-height:44px; align-items:center; justify-content:center; list-style:none; cursor:pointer; color:#28543c; font-size:1.6rem; border:1px solid #c8d5bf; border-radius:8px; background:#f7faf3; }
.account-settings-menu summary::-webkit-details-marker { display:none; }
.account-settings-menu summary:focus-visible { outline:3px solid #315d3f; outline-offset:3px; }
.account-settings-menu nav { position:absolute; z-index:30; top:calc(100% + 6px); right:0; min-width:170px; padding:8px; border:1px solid #c8d5bf; border-radius:10px; background:#fffef9; box-shadow:0 5px 18px #263a3126; }
.account-settings-menu:not([open]) nav { display:none; }
.account-settings-menu nav a { display:flex; align-items:center; min-height:44px; padding:7px 12px; color:#28543c; text-decoration:none; border-radius:6px; }
.account-settings-menu nav a:hover { background:#edf1e7; }
.notification-subject-group { margin-block:24px; }
.notification-subject-group > ul { padding-left:1.4rem; }
.notification-subject-group > ul > li { margin-block:18px; overflow-wrap:anywhere; }
@media(max-width:650px) {
 .ac-site-header .header-account { gap:5px; }
 .ac-site-header .session-identity { min-width:0; flex:1 1 auto; }
 .account-settings-menu { flex-basis:40px; }
 .account-settings-menu summary { width:40px; }
}

/* Menu pessoal */
.ac-site-header .account-settings-menu summary { box-sizing:border-box; width:44px; }
.ac-site-header .account-settings-menu { flex-basis:44px; }
.account-settings-menu nav {
  box-sizing:border-box; width:min(16rem,calc(100vw - 24px)); min-width:0;
  max-height:min(72vh,29rem); overflow-y:auto; overscroll-behavior:contain;
}
.account-settings-menu nav a {
  box-sizing:border-box; font:600 1rem/1.35 system-ui,sans-serif; overflow-wrap:anywhere;
}
.account-settings-menu nav a:focus-visible { outline:3px solid #315d3f; outline-offset:-3px; }
.account-settings-menu nav a + a { border-top:1px solid #e4e9dd; }
.ac-site-header .session-identity-role { overflow:hidden; text-overflow:ellipsis; }
@media (min-width:1051px) {
  .ac-header-inner.has-session { grid-template-columns:auto minmax(0,1fr) minmax(15rem,17rem); }
}
@media (max-width:650px) {
  .ac-header-inner.has-session { grid-template-columns:auto minmax(0,1fr); }
  .ac-site-header .session-identity-copy { flex:1 1 auto; }
}
.personal-walk-list-empty:not(:target) { display:none; }

@media (min-width:1051px){
  .ac-site-header .ac-header-inner{width:min(1320px,calc(100% - 32px));column-gap:clamp(8px,1.3vw,22px)}
  .ac-site-header .ac-header-inner.has-session{grid-template-columns:auto minmax(0,1fr) minmax(12rem,15rem)}
  .ac-site-header .site-nav{gap:3px clamp(4px,1vw,17px);flex-wrap:nowrap}
  .ac-site-header .site-nav>a,.ac-site-header .site-nav button{white-space:nowrap}
}
@media (min-width:1051px) and (max-width:1160px){
  .ac-site-header .ac-header-inner.has-session{grid-template-columns:auto minmax(0,1fr) 12rem;column-gap:8px}
  .ac-site-header .brand{gap:6px;font-size:23px}
  .ac-site-header .brand img{width:36px;height:36px;flex-basis:36px}
  .ac-site-header .site-nav{column-gap:4px}
  .ac-site-header .header-account{gap:4px}
}
