/* DB-P5-AUTH-HOME-FIX01/02: scoped shell and auth overlay only. */
#formalHomePreview.db-formal-home { position: fixed; z-index: 10; inset: 0; overflow: hidden; background: #f7f8fc; }
#formalHomePreview.db-formal-home[hidden] { display: none; }
#formalHomePreview .db-formal-home__frame { display: block; width: 100%; height: 100%; border: 0; }
#formalHomePreview .db-formal-home__account-area { position: fixed; z-index: 12; top: 24px; right: 92px; display: flex; align-items: center; gap: 8px; }
#formalHomePreview .db-formal-home__auth-entry { padding: 9px 14px; border: 1px solid rgba(21,23,29,.24); border-radius: 999px; background: rgba(247,248,252,.88); color: #15171d; font: 500 11px/1 Arial, "Helvetica Neue", sans-serif; letter-spacing: .02em; cursor: pointer; backdrop-filter: blur(6px); }
#formalHomePreview .db-formal-home__auth-entry:hover { background: #15171d; color: #f7f8fc; }
#formalHomePreview .db-formal-home__account-trigger { padding: 9px 11px; border: 1px solid rgba(21,23,29,.18); border-radius: 999px; background: rgba(247,248,252,.72); color: #68707b; font: 500 11px/1 Arial, "Helvetica Neue", sans-serif; cursor: pointer; }
#formalHomePreview .db-formal-home__account-menu { position: absolute; top: 42px; right: 0; min-width: 170px; display: grid; gap: 12px; padding: 13px; border: 1px solid rgba(21,23,29,.18); background: rgba(247,248,252,.96); box-shadow: 0 12px 30px rgba(21,23,29,.12); color: #68707b; font: 400 11px/1.4 Arial, "Helvetica Neue", sans-serif; }
#formalHomePreview .db-formal-home__account-menu[hidden], #formalHomePreview .db-formal-home__account-trigger[hidden] { display: none; }
#formalHomePreview .db-formal-home__account-menu button { justify-self: start; padding: 0; border: 0; background: transparent; color: #15171d; font: 500 11px/1 Arial, "Helvetica Neue", sans-serif; text-decoration: underline; cursor: pointer; }
#authModal.db-formal-home-auth { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; }
#authModal.db-formal-home-auth[hidden] { display: none; }
#authModal .db-formal-home-auth__backdrop { position: absolute; inset: 0; background: rgba(21,23,29,.34); backdrop-filter: blur(5px); }
#authModal .db-formal-home-auth__panel { position: relative; z-index: 1; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 34px 38px 36px; border: 1px solid rgba(21,23,29,.24); background: #f7f8fc; box-shadow: 0 22px 70px rgba(21,23,29,.2); }
#authModal .db-formal-home-auth__close { position: absolute; top: 14px; right: 16px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #68707b; font: 400 25px/1 Arial, sans-serif; cursor: pointer; }
#authModal .db-formal-home-auth__close:hover { color: #15171d; }
#authModal .db-formal-home-auth__head { max-width: 570px; margin-bottom: 24px; }
#authModal .db-formal-home-auth__eyebrow { margin: 0 0 8px; color: #7f8793; font: 500 10px/1.2 "DM Mono", monospace; letter-spacing: .16em; }
#authModal .db-formal-home-auth__head h2 { margin: 0 0 8px; color: #15171d; font: 700 clamp(26px, 4vw, 38px)/1.06 "Bricolage Grotesque", Arial, sans-serif; letter-spacing: -.04em; }
#authModal .db-formal-home-auth__head > p:last-child { margin: 0; color: #68707b; font: 400 13px/1.6 Arial, "Helvetica Neue", sans-serif; }
#authModal .db-formal-home-auth__columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .76fr); gap: 0; }
#authModal .auth-form { display: flex; flex-direction: column; gap: 14px; padding-right: 34px; }
#authModal .auth-form[hidden], #authModal .db-formal-home-auth__side [hidden] { display: none; }
#authModal .auth-form + .auth-form { padding-right: 34px; }
#authModal .auth-form-label { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid rgba(21,23,29,.16); }
#authModal .auth-form-label span, #authModal .db-formal-home-auth__side-label { color: #15171d; font: 600 17px/1.2 Arial, "Helvetica Neue", sans-serif; letter-spacing: -.02em; }
#authModal .auth-form-label small { color: #8a919b; font: 400 10px/1.2 "DM Mono", monospace; }
#authModal .auth-form label { display: grid; gap: 6px; color: #68707b; font: 400 11px/1.2 Arial, "Helvetica Neue", sans-serif; }
#authModal .auth-form input { width: 100%; box-sizing: border-box; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(21,23,29,.2); border-radius: 0; outline: 0; background: transparent; color: #15171d; font: 400 14px/1.3 Arial, "Helvetica Neue", sans-serif; }
#authModal .auth-form input:focus { border-bottom-color: #15171d; box-shadow: 0 1px 0 #15171d; }
#authModal .auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
#authModal .auth-form-row .button { margin-left: auto; }
#authModal .button { border-radius: 999px; padding: 10px 15px; font: 500 11px/1 Arial, "Helvetica Neue", sans-serif; cursor: pointer; }
#authModal .button.primary, #authModal .button.dark { border: 1px solid #15171d; background: #15171d; color: #fff; }
#authModal .button.ghost { border: 1px solid rgba(21,23,29,.2); background: transparent; color: #15171d; }
#authModal .button:hover { opacity: .78; }
#authModal .text-link { padding: 0; border: 0; background: transparent; color: #68707b; font: 400 11px/1.2 Arial, "Helvetica Neue", sans-serif; text-decoration: underline; cursor: pointer; }
#authModal .text-link:hover { color: #15171d; }
#authModal .form-error { margin: 0; padding: 8px 10px; border-radius: 3px; background: #f4dedc; color: #8f3f3a; font: 400 11px/1.45 Arial, "Helvetica Neue", sans-serif; }
#authModal .auth-note { color: #8a919b; font: 400 10px/1.45 Arial, "Helvetica Neue", sans-serif; }
#authModal .db-formal-home-auth__side { min-height: 188px; padding-left: 34px; border-left: 1px solid rgba(21,23,29,.14); display: flex; align-items: flex-start; }
#authModal .db-formal-home-auth__side-copy { max-width: 220px; margin: 12px 0 22px; color: #68707b; font: 400 13px/1.65 Arial, "Helvetica Neue", sans-serif; }
@media (max-width: 700px) {
  #formalHomePreview .db-formal-home__account-area { top: 16px; right: 68px; }
  #formalHomePreview .db-formal-home__auth-entry { padding: 8px 10px; }
  #authModal.db-formal-home-auth { padding: 10px; }
  #authModal .db-formal-home-auth__panel { max-height: calc(100vh - 20px); padding: 30px 22px 26px; }
  #authModal .db-formal-home-auth__columns { grid-template-columns: 1fr; gap: 26px; }
  #authModal .auth-form, #authModal .auth-form + .auth-form { padding: 0; }
  #authModal .db-formal-home-auth__side { min-height: auto; padding: 26px 0 0; border-top: 1px solid rgba(21,23,29,.14); border-left: 0; }
}
