.header-auth {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.auth-button, .account-chip {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
}

.auth-button--access {
  border: 1px solid rgba(168,69,4,.38);
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 9px 22px rgba(168,69,4,.18), inset 0 0 0 1px rgba(255,255,255,.24);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.auth-button:hover { transform: translateY(-2px); }
.auth-button--access:hover { background: #ff8b3d; box-shadow: 0 12px 27px rgba(168,69,4,.22), inset 0 0 0 1px rgba(255,255,255,.3); }
.auth-button--access svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transform: translateX(-3px); }
.auth-button:focus-visible, .account-chip:focus-visible { outline: 3px solid rgba(252,120,31,.45); outline-offset: 2px; }

@media (min-width: 1101px) {
  .header-utilities .header-actions .chatbot-trigger,
  .header-utilities .header-actions .header-contact {
    width: clamp(108px, 7.2vw, 126px);
    height: 46px;
    min-height: 46px;
    padding-inline: 12px;
    flex: 0 0 clamp(108px, 7.2vw, 126px);
  }
  .header-utilities .header-auth .auth-button {
    width: clamp(176px, 9.8vw, 186px);
    height: 46px;
    min-height: 46px;
    padding-inline: 18px;
    flex: 0 0 clamp(176px, 9.8vw, 186px);
  }
}

@media (min-width: 1280px) {
  body.is-english .header-utilities .header-actions .chatbot-trigger {
    width: 146px;
    padding-inline: 14px;
    flex-basis: 146px;
  }
}

.account-chip {
  gap: 8px;
  border: 1px solid rgba(22,22,22,.12);
  background: white;
  color: var(--ink);
}

.account-chip > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  font-size: 11px;
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: 245px;
  padding: 14px;
  border: 1px solid rgba(22,22,22,.12);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(22,22,22,.16);
}

.account-popover[hidden] { display: none; }
.account-popover div { display: grid; gap: 3px; padding: 3px 3px 13px; }
.account-popover span { color: #8a8a82; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.account-popover strong { font-size: 15px; }
.account-popover small { overflow: hidden; color: #686862; font-size: 11px; text-overflow: ellipsis; }
.account-email-preference { margin: -3px 0 12px; padding: 10px; display: grid; gap: 4px; border-radius: 11px; background: #fff3e9; }
.account-email-preference strong { font-size: 11px; }
.account-email-preference span { color: #775037; font-size: 11px; }
.account-popover .account-admin-link { min-height: 48px; margin-bottom: 7px; padding: 8px 10px; display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 9px; border: 1px solid rgba(31,143,96,.2); border-radius: 11px; background: #edf8f2; color: #176f4b; text-decoration: none; }
.account-popover .account-admin-link:hover { border-color: rgba(31,143,96,.42); background: #e4f5ec; }
.account-popover .account-admin-link:focus-visible { outline: 3px solid rgba(31,143,96,.25); outline-offset: 2px; }
.account-popover .account-admin-link > i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #fff; font-size: 14px; font-style: normal; }
.account-popover .account-admin-link > b { min-width: 0; display: grid; gap: 2px; font-size: 12px; }
.account-popover .account-admin-link small { font-size: 9px; font-weight: 650; }
.account-popover .account-admin-link--access { border-color: rgba(168,69,4,.2); background: #fff5ed; color: #9b4108; }
.account-popover .account-admin-link--access:hover { border-color: rgba(168,69,4,.42); background: #ffecde; }
.account-popover button { width: 100%; min-height: 38px; border: 0; border-radius: 11px; background: #f2f1ed; color: #8a3426; font-weight: 800; cursor: pointer; }
.account-popover .account-password-action { min-height: 44px; margin-bottom: 8px; color: #34342e; font-weight: 650; }
.account-chip > b { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

.account-dialog {
  width: min(94vw, 470px);
  max-height: min(90vh, 720px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--ink);
}

.account-dialog::backdrop {
  background: rgba(18,18,17,.58);
  backdrop-filter: blur(8px);
}

.account-dialog-shell {
  position: relative;
  padding: 30px;
  overflow: auto;
  max-height: min(90vh, 720px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 28px;
  background: #faf9f6;
  box-shadow: 0 32px 90px rgba(18,18,17,.28);
}

.account-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22,22,22,.12);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.account-dialog-brand {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
}
.account-dialog-brand img { width: 100%; height: 100%; object-fit: contain; }
.account-dialog-heading { margin-top: 18px; }
.account-dialog-heading > span { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.account-dialog-heading h2 { margin: 7px 0 8px; font-size: clamp(27px, 6vw, 36px); line-height: 1.02; letter-spacing: -1.5px; }
.account-dialog-heading p { margin: 0; color: #686862; font-size: 14px; line-height: 1.55; }

.account-dialog-notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  background: #fff1e7;
  color: #713612;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}
.account-dialog-notice[hidden] { display: none; }

.account-tabs {
  margin: 22px 0 18px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 14px;
  background: #ecebe6;
}
.account-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #6c6c66;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}
.account-tabs button[aria-selected="true"] { background: white; color: var(--ink); box-shadow: 0 5px 14px rgba(22,22,22,.08); }
.account-tabs[hidden] { display: none; }

.account-form { display: grid; gap: 14px; }
.account-form[hidden] { display: none; }
.account-form label { display: grid; gap: 7px; }
.account-form label > span { font-size: 13px; font-weight: 780; }
.account-form input {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid rgba(22,22,22,.14);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.account-form .account-claim-history { display: flex; align-items: flex-start; gap: 10px; }
.account-form .account-claim-history input { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 1px 0 0; accent-color: #fc781f; flex: none; }
.account-form .account-claim-history span { font-size: 12px; font-weight: 600; line-height: 1.4; }
.account-form input:focus { border-color: var(--orange); outline: 3px solid rgba(252,120,31,.16); }
.account-code-input { letter-spacing: .45em; text-align: center; font-size: 22px !important; font-weight: 850; }
.account-form-help { margin: -2px 0 0; color: #777770; font-size: 11px; line-height: 1.5; }
.account-form .account-consent-option { grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px; border: 1px solid rgba(168,69,4,.2); border-radius: 13px; background: #fff7f0; cursor: pointer; }
.account-consent-option > input { width: 17px; height: 17px; min-height: 17px; margin: 2px 0 0; padding: 0; accent-color: var(--orange-dark); }
.account-consent-option > span { display: grid; gap: 5px; }
.account-consent-option strong { font-size: 12px; line-height: 1.35; }
.account-consent-option small { color: #777770; font-size: 11px; font-weight: 450; line-height: 1.45; }
.account-consent-toast { position: fixed; right: 22px; bottom: 22px; z-index: 1000; width: min(420px, calc(100vw - 32px)); padding: 16px 48px 16px 17px; border: 1px solid rgba(168,69,4,.25); border-left: 4px solid var(--orange); border-radius: 16px; background: #fffaf5; color: var(--ink); box-shadow: 0 18px 48px rgba(22,22,22,.2); }
.account-consent-toast strong { display: block; font-size: 13px; }
.account-consent-toast p { margin: 5px 0 0; color: #686862; font-size: 12px; line-height: 1.45; }
.account-consent-toast button { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #686862; font-size: 21px; cursor: pointer; }
.marketing-consent-dialog { width: min(92vw, 440px); max-height: min(90vh, 680px); padding: 0; overflow: visible; border: 0; border-radius: 27px; background: transparent; color: var(--ink); }
.marketing-consent-dialog::backdrop { background: rgba(18,18,17,.62); backdrop-filter: blur(7px); }
.marketing-consent-card { position: relative; padding: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 27px; background: radial-gradient(ellipse at 95% 0%, rgba(252,120,31,.13), transparent 35%), #fffdfa; box-shadow: 0 30px 90px rgba(18,18,17,.3); }
.marketing-consent-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(22,22,22,.1); border-radius: 50%; background: #fff; color: #666; font-size: 24px; line-height: 1; cursor: pointer; }
.marketing-consent-mark { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(140deg, #ffac65, #fc781f 70%); color: #171717; font-size: 26px; font-weight: 950; box-shadow: 0 9px 20px rgba(252,120,31,.24); }
.marketing-consent-eyebrow { margin: 0 0 8px; color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: 1.1px; }
.marketing-consent-card h2 { max-width: 340px; margin: 0; font-size: clamp(26px, 6vw, 34px); line-height: 1.08; letter-spacing: -1.1px; }
.marketing-consent-copy { margin: 13px 0 0; color: #5f5f59; font-size: 14px; line-height: 1.6; }
.marketing-consent-details { margin: 20px 0 0; padding: 14px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 9px; border: 1px solid rgba(168,69,4,.14); border-radius: 15px; background: #fff5ec; }
.marketing-consent-details > span { color: var(--orange-dark); font-size: 19px; }
.marketing-consent-details p { margin: 0; color: #5c4b3d; font-size: 12px; font-weight: 650; line-height: 1.5; }
.marketing-consent-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fae3df; color: #982f25; font-size: 12px; line-height: 1.45; }
.marketing-consent-error[hidden] { display: none; }
.marketing-consent-accept { width: 100%; min-height: 50px; margin-top: 21px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #b6500d; border-radius: 14px; background: var(--orange); color: var(--ink); font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 9px 20px rgba(168,69,4,.18); }
.marketing-consent-accept:hover { background: #ff9148; }
.marketing-consent-accept:disabled, .marketing-consent-later:disabled { opacity: .65; cursor: wait; }
.marketing-consent-later { width: 100%; min-height: 42px; margin-top: 5px; border: 0; background: transparent; color: #65655f; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.marketing-consent-later:hover { color: var(--ink); text-decoration: underline; }
.marketing-consent-footnote { margin: 12px 0 0; color: #85857f; font-size: 10px; line-height: 1.45; text-align: center; }
.marketing-consent-dialog button:focus-visible { outline: 3px solid rgba(252,120,31,.42); outline-offset: 3px; }
.account-form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fae3df; color: #982f25; font-size: 12px; line-height: 1.45; }
.account-form-error[hidden] { display: none; }
.account-submit {
  position: relative;
  min-height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #b6500d;
  border-radius: 14px;
  background: var(--orange);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(168,69,4,.17);
}
.account-submit:disabled { opacity: .65; cursor: wait; }
.account-forgot { justify-self: end; margin-top: -3px; padding: 2px 0; border: 0; background: none; color: var(--orange-dark); font: inherit; font-size: 12px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.account-switch { margin: 1px 0 0; color: #71716b; font-size: 12px; text-align: center; }
.account-switch button { padding: 0; border: 0; background: none; color: var(--orange-dark); font: inherit; font-weight: 850; text-decoration: underline; cursor: pointer; }
body.account-dialog-open { overflow: hidden; }

@media (max-width: 1180px) {
  .header-auth { gap: 5px; }
  .auth-button { padding-inline: 11px; }
}

@media (max-width: 900px) {
  .header-contact {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin-left: 0;
    display: inline-flex;
    gap: 0;
    flex: 0 0 44px;
    border-radius: 14px;
  }
  .header-contact svg { width: 20px; height: 20px; flex-basis: 20px; }
  .header-contact span { display: none; }
  .header-auth { margin-left: 0; }
}

@media (max-width: 520px) {
  .marketing-consent-card { padding: 28px 22px 24px; border-radius: 23px; }
  .marketing-consent-close { top: 13px; right: 13px; width: 35px; height: 35px; }
  .header-brand-cluster > .brand { gap: 6px; font-size: 15px; letter-spacing: -.55px; }
  .header-brand-cluster > .brand .brand-mark { width: 36px; height: 30px; }
  .auth-button, .account-chip { min-height: 39px; padding-inline: 11px; font-size: 11px; }
  .auth-button--access, .account-chip { width: 44px; height: 44px; min-height: 44px; padding: 0; flex: 0 0 44px; }
  .auth-button--access span, .account-chip b { display: none; }
  .auth-button--access svg { transform: none; }
  .account-chip b { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
  .account-dialog-shell { padding: 24px 18px 20px; border-radius: 23px; }
  .account-dialog-close { top: 14px; right: 14px; }
}

@media (max-width: 380px) {
  .account-chip b { display: none; }
  .auth-button--access { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-button { transition: none; }
}
.account-submit > [aria-hidden="true"] { position: absolute; right: 18px; }

/* Account dialog: approved Google sign-in layout. No homepage layout changes. */
.account-dialog-shell { padding: 24px 30px; scrollbar-width: thin; scrollbar-color: #c9c9c1 transparent; }
.account-dialog-shell::-webkit-scrollbar { width: 5px; }
.account-dialog-shell::-webkit-scrollbar-track { background: transparent; margin-block: 20px; }
.account-dialog-shell::-webkit-scrollbar-thumb { background: #c9c9c1; border-radius: 20px; }
.account-dialog-brand { width: 54px; height: 28px; }
.account-dialog-heading { margin-top: 14px; }
.account-dialog .account-tabs { margin-block: 16px 14px; }
.account-dialog-heading h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.7px; font-weight: 700; }
.account-dialog-heading p { font-size: 14px; line-height: 1.65; }
.account-dialog-close { width: 44px; height: 44px; }
.account-dialog .account-form { gap: 12px; }
.account-dialog .account-submit { min-height: 48px; box-shadow: none; font-weight: 650; }
.account-dialog .account-forgot { min-height: 44px; font-weight: 600; color: #a44100; }
.google-option { position: relative; margin-top: 0; }
.google-button-slot { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.google-option.is-preparing .google-button-slot { visibility: hidden; }
.google-option.is-preparing .google-status { position: absolute; inset: 0 0 auto; min-height: 44px; margin: 0; padding: 4px 12px; border: 1px solid #dadce0; border-radius: 999px; background: #fff; font-size: 12px; line-height: 1.4; pointer-events: none; }
.google-button-slot.is-busy { pointer-events: none; opacity: .65; }
.google-purpose { margin: 6px 0 0; color: #62625c; font-size: 12px; text-align: center; line-height: 1.5; }
.google-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #4d4d46; }
.google-spinner { width: 16px; height: 16px; flex: none; border: 2px solid #deded8; border-top-color: #353531; border-radius: 50%; animation: google-auth-spin .85s linear infinite; }
.google-error { margin-top: 12px; padding: 12px 14px; border: 1px solid #e4bdb6; border-radius: 10px; background: #fff1ed; color: #82362c; }
.google-error p { margin: 0; font-size: 13px; line-height: 1.6; }
.google-error button { min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; font-size: 13px; font-weight: 650; text-decoration: underline; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-block: 16px; color: #6a6a64; font-size: 12px; line-height: 1.5; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: #dcdcd5; }
.password-group { display: grid; gap: 7px; }
.account-dialog .password-group > label { font-size: 13px; font-weight: 600; }
.password-field { position: relative; }
.account-dialog .password-field input { width: 100%; padding-right: 66px; }
.password-field button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 50px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #55554e; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.auth-legal { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #ddddd5; color: #62625b; font-size: 12px; line-height: 1.7; text-align: center; }
.auth-legal a { color: #53534c; text-underline-offset: 3px; }
.auth-explanation { margin: 0; color: #4e4e47; font-size: 14px; line-height: 1.7; }
.auth-secondary { min-height: 44px; padding: 10px 14px; border: 1px solid #d2d2ca; border-radius: 12px; background: #fff; color: #3d3d37; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.account-dialog button:focus-visible, .account-dialog a:focus-visible { outline: 3px solid #fc781f88; outline-offset: 3px; }
.account-dialog [hidden] { display: none !important; }
@keyframes google-auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .account-dialog-shell { padding: 24px 20px; }
  .account-dialog-heading h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .google-spinner { animation: none; } }
