/* Harthwyn 26.01.282 — final responsive shell/modal/form authority.
   Scope: restore I Am desktop nav, stop shell overlays, repair mobile forms, and remove legacy responsive collisions. */
:root{
  --hw282-ink:#151c29;
  --hw282-muted:#667386;
  --hw282-line:rgba(31,55,78,.15);
  --hw282-navy:#123f68;
  --hw282-gold:#c7982d;
  --hw282-card:#fff;
  --hw282-warm:#fff9ef;
  --hw282-shadow:0 18px 54px rgba(16,36,56,.12);
  --hw282-radius:24px;
  --harthwyn-mobile-nav-height:86px;
}
body.harthwyn-managed-page{overflow-x:hidden!important;}
body.harthwyn-managed-page :where(.harthwyn-managed-page__content,.harthwyn-shell,.harthwyn-page-shell,.harthwyn-panel,.harthwyn-form,.harthwyn-card,.harthwyn-managed-page__inner,.harthwyn-member-dashboard,.harthwyn-events-hub,.harthwyn-messages-center,.harthwyn-profile-workspace-260191,.harthwyn-i-am-page,.harthwyn-tribes-page,.harthwyn-care-support,.harthwyn-search-results,.harthwyn-whats-new,.harthwyn-family-moments){max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
body.harthwyn-managed-page :where(img,svg,video,canvas,iframe){max-width:100%!important;}

/* Desktop command row with I Am restored: compact enough for eleven commands without reverting to tiny text. */
@media (min-width:1281px){
  body.harthwyn-managed-page .harthwyn-member-menu[data-harthwyn-approved-member-menu-260188="1"] .harthwyn-member-menu__inner,
  body.harthwyn-managed-page .harthwyn-member-menu[data-harthwyn-approved-member-menu-260188="1"] .harthwyn-member-menu__inner--approved-260188{width:min(100%,1500px)!important;max-width:calc(100vw - 32px)!important;padding:10px clamp(8px,1vw,16px)!important;gap:clamp(6px,.55vw,10px)!important;overflow:visible!important;}
  body.harthwyn-managed-page .harthwyn-member-menu[data-harthwyn-approved-member-menu-260188="1"] .harthwyn-member-menu__toplinks,
  body.harthwyn-managed-page .harthwyn-member-menu[data-harthwyn-approved-member-menu-260188="1"] .harthwyn-member-menu__toplinks--hierarchy{gap:clamp(6px,.55vw,10px)!important;justify-content:center!important;flex-wrap:nowrap!important;}
  body.harthwyn-managed-page .harthwyn-member-menu[data-harthwyn-approved-member-menu-260188="1"] :is(.harthwyn-member-menu__home,.harthwyn-member-menu__toplink--direct,.harthwyn-member-menu__studio-group>summary){min-width:70px!important;min-height:72px!important;padding:8px clamp(7px,.55vw,11px)!important;border-radius:18px!important;}
  body.harthwyn-managed-page .harthwyn-member-menu[data-harthwyn-approved-member-menu-260188="1"] .harthwyn-member-menu__home{min-width:112px!important;}
  body.harthwyn-managed-page .harthwyn-member-menu[data-harthwyn-approved-member-menu-260188="1"] :is(.harthwyn-member-menu__toplink-label,.harthwyn-member-menu__home-label){font-size:clamp(.88rem,.72vw,1rem)!important;line-height:1.08!important;letter-spacing:-.018em!important;white-space:nowrap!important;}
  body.harthwyn-managed-page .harthwyn-member-menu[data-harthwyn-approved-member-menu-260188="1"] :is(.harthwyn-member-menu__toplink-icon,.harthwyn-member-menu__home-icon){width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;}
}

/* Event composer must own the viewport. The page shell, nav, ticker, utility rail, and bottom nav cannot sit above it. */
body.harthwyn-event-composer-open{overflow:hidden!important;touch-action:none!important;}
body.harthwyn-event-composer-open :where(.harthwyn-member-menu,.harthwyn-member-mobile-row,.harthwyn-below-header-ticker-slot-260267,.harthwyn-below-header-ticker-slot-260268,.harthwyn-below-header-ticker-slot-260269,.harthwyn-live-ticker,.harthwyn-combined-utility-260240,.harthwyn-mobile-back-to-top-260243,.harthwyn-support-launcher){visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.harthwyn-event-composer-open .harthwyn-event-composer-drawer{visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body.harthwyn-managed-page .harthwyn-event-composer-drawer[role="dialog"],
body .harthwyn-event-composer-drawer[data-harthwyn-event-drawer="true"]{position:fixed!important;inset:0!important;z-index:2147483000!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(360px,min(760px,calc(100vw - 32px)))!important;align-items:stretch!important;justify-content:end!important;width:100vw!important;height:100dvh!important;margin:0!important;padding:0!important;background:rgba(13,20,28,.48)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:hidden!important;isolation:isolate!important;}
body .harthwyn-event-composer-drawer[hidden]{display:none!important;}
body .harthwyn-event-composer-backdrop{position:absolute!important;inset:0!important;z-index:1!important;width:100%!important;height:100%!important;background:transparent!important;border:0!important;margin:0!important;padding:0!important;}
body .harthwyn-event-composer-sheet{position:relative!important;z-index:2!important;width:100%!important;max-width:760px!important;height:100dvh!important;max-height:100dvh!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;margin:0!important;border-radius:28px 0 0 28px!important;background:#fffdf8!important;border-left:1px solid rgba(216,190,145,.42)!important;box-shadow:-30px 0 80px rgba(11,27,43,.28)!important;overflow:hidden!important;}
body .harthwyn-event-composer-header{position:sticky!important;top:0!important;z-index:4!important;background:#fffdf8!important;border-bottom:1px solid rgba(31,55,78,.12)!important;padding:clamp(18px,2.2vw,28px)!important;}
body .harthwyn-event-composer-body{min-height:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:clamp(16px,2vw,26px)!important;}
body .harthwyn-event-composer-actions{position:sticky!important;bottom:0!important;z-index:4!important;display:flex!important;justify-content:flex-end!important;gap:12px!important;padding:16px clamp(16px,2vw,26px)!important;background:rgba(255,253,248,.98)!important;border-top:1px solid rgba(31,55,78,.12)!important;box-shadow:0 -10px 28px rgba(31,55,78,.08)!important;}
body .harthwyn-event-composer-close{position:absolute!important;top:18px!important;right:18px!important;z-index:6!important;width:48px!important;height:48px!important;border-radius:999px!important;background:#fff!important;color:#152236!important;border:1px solid rgba(31,55,78,.18)!important;box-shadow:0 8px 20px rgba(20,32,46,.12)!important;}

/* Profile and I Am forms: no narrow 2010 columns, no vertical headline clipping. */
body.harthwyn-managed-page-key-my_profile .harthwyn-profile-workspace-260191,
body.harthwyn-managed-page-key-my_profile .harthwyn-profile-edit-form,
body.harthwyn-managed-page-key-my_profile .harthwyn-profile-edit-section,
body.harthwyn-managed-page-key-i_am .harthwyn-profile-workspace-260191,
body.harthwyn-managed-page-key-i_am .harthwyn-profile-edit-form,
body.harthwyn-managed-page-key-i_am .harthwyn-profile-edit-section{width:min(100%,1180px)!important;margin-inline:auto!important;}
body.harthwyn-managed-page :where(.harthwyn-profile-edit-section>.harthwyn-panel,.harthwyn-profile-edit-section>.harthwyn-i-am-builder-card-260164,.harthwyn-profile-edit-section>.harthwyn-i-am-utility-builder-260165,.harthwyn-profile-edit-section>.harthwyn-i-am-structured-builder-260166,.harthwyn-panel){min-width:0!important;max-width:100%!important;width:100%!important;}
body.harthwyn-managed-page :where(.harthwyn-form-row,.harthwyn-form-grid,.harthwyn-profile-edit-section .harthwyn-form-row,.harthwyn-profile-edit-section .harthwyn-form-grid){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;gap:clamp(14px,2vw,22px)!important;align-items:start!important;width:100%!important;}
body.harthwyn-managed-page :where(.harthwyn-field,label.harthwyn-field){display:grid!important;gap:8px!important;min-width:0!important;width:100%!important;max-width:100%!important;}
body.harthwyn-managed-page :where(.harthwyn-field label,label.harthwyn-field>span){display:block!important;font-size:.95rem!important;line-height:1.25!important;font-weight:800!important;overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important;}
body.harthwyn-managed-page :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-height:48px!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:.82rem 1rem!important;font-size:1rem!important;line-height:1.25!important;}
body.harthwyn-managed-page :where(textarea){min-height:132px!important;resize:vertical!important;}

/* Messages and general forms: keep actions readable and within the viewport. */
body.harthwyn-managed-page-key-family_messages .harthwyn-message-compose-card{overflow:visible!important;}
body.harthwyn-managed-page-key-family_messages :where(.harthwyn-message-thread-link,.harthwyn-message-home-card-260199,.harthwyn-message-compose-card,.harthwyn-message-subject-field-260275){min-width:0!important;max-width:100%!important;}
body.harthwyn-managed-page-key-family_messages :where(.harthwyn-message-thread-link *,.harthwyn-message-home-card-260199 *,.harthwyn-message-subject-field-260275 *){min-width:0!important;overflow-wrap:anywhere!important;}
body.harthwyn-managed-page-key-family_messages .harthwyn-message-media-action-260202{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:62px!important;padding:12px 14px!important;white-space:normal!important;}
body.harthwyn-managed-page-key-family_messages .harthwyn-message-compose-actions{width:100%!important;}

/* Ticker: desktop only, with an explicit final guard for real phones/tablets even if stale CSS or cached runtime survives. */
@media (max-width:1280px), (pointer:coarse){
  body.harthwyn-managed-page :where(.harthwyn-below-header-ticker-slot-260267,.harthwyn-below-header-ticker-slot-260268,.harthwyn-below-header-ticker-slot-260269,.harthwyn-live-ticker,[data-harthwyn-live-ticker]){display:none!important;visibility:hidden!important;opacity:0!important;width:0!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;pointer-events:none!important;}
}

/* Mobile app shell: no horizontal page overflow, no giant narrow side card, no cropped bottom nav. */
@media (max-width:900px){
  html,body{max-width:100%!important;overflow-x:hidden!important;}
  body.harthwyn-managed-page{padding-bottom:calc(var(--harthwyn-mobile-nav-height,86px) + env(safe-area-inset-bottom))!important;}
  body.harthwyn-managed-page :where(.harthwyn-managed-page__content,.harthwyn-shell,.harthwyn-page-shell,.harthwyn-panel,.harthwyn-card,.harthwyn-form,.harthwyn-profile-workspace-260191,.harthwyn-events-hub,.harthwyn-messages-center,.harthwyn-i-am-page,.harthwyn-tribes-page){width:min(100%,calc(100vw - 20px))!important;margin-left:auto!important;margin-right:auto!important;}
  body.harthwyn-managed-page .harthwyn-member-mobile-row[data-harthwyn-mobile-nav-architecture="bottom"],
  body.harthwyn-managed-page .harthwyn-member-mobile-row[data-harthwyn-mobile-nav-architecture-260140="bottom"]{display:block!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100vw!important;max-width:100vw!important;height:auto!important;z-index:100000!important;padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.96)!important;border-top:1px solid rgba(31,55,78,.14)!important;box-shadow:0 -12px 34px rgba(15,35,55,.14)!important;overflow:hidden!important;backdrop-filter:blur(18px)!important;}
  body.harthwyn-managed-page .harthwyn-member-mobile-row[data-harthwyn-mobile-nav-architecture="bottom"] .harthwyn-member-mobile-row__inner,
  body.harthwyn-managed-page .harthwyn-member-mobile-row[data-harthwyn-mobile-nav-architecture-260140="bottom"] .harthwyn-member-mobile-row__inner{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;width:100%!important;max-width:100%!important;overflow:visible!important;padding:0!important;margin:0!important;scroll-snap-type:none!important;}
  body.harthwyn-managed-page .harthwyn-member-mobile-row__item,
  body.harthwyn-managed-page .harthwyn-member-mobile-row__item--more{min-width:0!important;max-width:100%!important;width:100%!important;flex:0 1 auto!important;min-height:62px!important;padding:7px 4px!important;border-radius:16px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;}
  body.harthwyn-managed-page .harthwyn-member-mobile-row__icon{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;flex:0 0 30px!important;}
  body.harthwyn-managed-page .harthwyn-member-mobile-row__label{display:block!important;width:100%!important;max-width:100%!important;font-size:clamp(.68rem,2.7vw,.82rem)!important;line-height:1.05!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  body.harthwyn-managed-page .harthwyn-combined-utility-260240:not(.is-more-open){right:max(6px,env(safe-area-inset-right))!important;top:50%!important;width:48px!important;grid-template-columns:48px!important;grid-template-rows:48px 48px!important;gap:8px!important;z-index:99980!important;}
  body.harthwyn-managed-page .harthwyn-mobile-back-to-top-260243{right:max(12px,env(safe-area-inset-right))!important;bottom:calc(var(--harthwyn-mobile-nav-height,86px) + 14px + env(safe-area-inset-bottom))!important;z-index:99990!important;}
  body.harthwyn-event-composer-open .harthwyn-member-mobile-row{display:none!important;}
}
@media (max-width:640px){
  body.harthwyn-managed-page :where(.harthwyn-panel,.harthwyn-card,.harthwyn-profile-workspace-260191,.harthwyn-message-compose-card,.harthwyn-events-agenda,.harthwyn-events-calendar-panel){border-radius:20px!important;padding:clamp(16px,4.5vw,22px)!important;}
  body.harthwyn-managed-page :where(.harthwyn-form-row,.harthwyn-form-grid,.harthwyn-profile-edit-section .harthwyn-form-row,.harthwyn-profile-edit-section .harthwyn-form-grid){grid-template-columns:minmax(0,1fr)!important;}
  body .harthwyn-event-composer-drawer[data-harthwyn-event-drawer="true"]{grid-template-columns:minmax(0,1fr)!important;padding:0!important;}
  body .harthwyn-event-composer-sheet{width:100vw!important;max-width:100vw!important;border-radius:0!important;border-left:0!important;}
  body .harthwyn-event-composer-header{padding:18px 70px 16px 18px!important;}
  body .harthwyn-event-composer-body{padding:16px!important;}
  body .harthwyn-event-composer-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;}
  body .harthwyn-event-composer-actions .harthwyn-button{width:100%!important;}
}
@media (max-width:1280px), (pointer:coarse){
  :where(.harthwyn-below-header-ticker-slot-260267,.harthwyn-below-header-ticker-slot-260268,.harthwyn-below-header-ticker-slot-260269,.harthwyn-live-ticker,[data-harthwyn-live-ticker]){display:none!important;visibility:hidden!important;opacity:0!important;width:0!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;pointer-events:none!important;}
}
