/* Shared final layout rules: readable content, local help and an unobscured composer. */
body.ea-app-ui .ea-site-header .ea-header-inner{gap:12px;padding-block:10px}
body.ea-app-ui .ea-site-header .language-nav{border:0!important;padding:0!important;background:transparent!important}
body.ea-app-ui .ea-site-header .audience-primary{font-size:14px;line-height:1.35}
body.ea-app-ui .ea-site-header .audience-secondary{font-size:11px;line-height:1.35}
body.ea-app-ui[data-role-choice=true] .ea-site-header .language-nav{display:none!important}
.role-choice-heading h1 small{display:block;margin-top:10px;font-size:16px;font-weight:500}
.role-choice-grid .choice{display:flex;flex-direction:column;gap:12px;text-decoration:none;min-height:170px;padding:24px}
.role-choice-grid .choice h2,.role-choice-grid .choice p{margin:0;line-height:1.6}
.choice-next{margin-top:auto;font-size:14px;font-weight:700;color:#8d432f}
.role-choice-grid .choice:hover,.role-choice-grid .choice:focus-visible{border-color:#aa654c;box-shadow:0 8px 22px #81503918}
/* Story: a single content column on phones, including chat and mission scenes. */
.ea-story-page .app{min-height:0!important}
.ea-story-page #stage{align-items:safe center;overflow-y:auto;overscroll-behavior:contain}
.ea-story-page #cue{display:block;font:500 13px/1.4 system-ui;color:#756354}
.ea-story-page .app>nav{height:64px;gap:14px;background:var(--paper);position:relative;z-index:2}
.ea-story-page .app>nav button{width:auto;min-width:64px;min-height:44px;height:44px;padding:7px 14px;font:600 15px/1.3 system-ui;border-radius:12px}
.ea-story-page .copy-line{overflow-wrap:break-word;word-break:normal;text-wrap:pretty}
.ea-story-page .scene .artwork img{object-fit:contain}
/* Canonical profiles and their writing examples share compact rhythm. */
body.ea-app-ui #app .ea-profile-cover{padding:18px 20px;min-height:0;gap:14px}
body.ea-app-ui #app .ea-profile-content{padding:16px 20px}
body.ea-app-ui #app .profile-story-section{padding:14px 0}
body.ea-app-ui #app .ea-profile p{font-size:15px;line-height:1.65}
body.ea-app-ui #app .ea-profile h3{font-size:16px;margin-bottom:8px;line-height:1.5}
body.ea-app-ui #app .ea-profile-person{min-width:0;gap:12px}
body.ea-app-ui #app .ea-profile-person h2{font-size:24px;overflow-wrap:anywhere}
body.ea-app-ui #app .ea-profile-rate{flex:none;min-width:115px;display:flex;flex-direction:column;gap:3px;justify-content:center;align-items:flex-end;padding:8px 0}
body.ea-app-ui #app .ea-profile-rate strong{font-size:25px;line-height:1.25;white-space:nowrap}
body.ea-app-ui #app .ea-profile-rate small{font-size:12px;white-space:nowrap}
body.ea-app-ui #app .profile-quick-facts{gap:12px;padding-bottom:12px}
body.ea-app-ui #app .profile-quick-facts strong{font-size:14px;line-height:1.5}
body.ea-app-ui #app .profile-guide [data-guide-tip]{padding-right:28px;scroll-margin:90px 0 160px}
body.ea-app-ui #app .profile-guide [aria-expanded=true]{background:#edf3e9;border-radius:10px;box-shadow:inset 0 0 0 2px #9bab83}
body.ea-app-ui #app .profile-guide-tip{position:relative;inset:auto;transform:none;width:auto;grid-column:1/-1;flex-basis:100%;min-width:0;padding:18px 48px 18px 18px;margin:10px 0 16px;background:#f6f8ef;border:1px solid #bdc9ab;border-radius:12px;box-shadow:none;cursor:default}
body.ea-app-ui #app .profile-guide-tip strong{font-size:17px;line-height:1.6}
body.ea-app-ui #app .profile-guide-tip p{font-size:15px;line-height:1.65;margin-top:7px!important}
body.ea-app-ui #app .guide-tip-close{min-width:44px!important;min-height:44px!important;top:3px;right:3px;background:none!important;box-shadow:none!important;border:0!important;color:#4a5842!important}
body.ea-app-ui #app .profile-guide-dialog{max-height:92dvh!important;overflow:auto!important;overscroll-behavior:contain}
body.ea-app-ui #app .profile-guide>h2{position:sticky;top:-18px;z-index:4;background:#fffdf8;padding:12px 44px 12px 0;margin:0;font-size:22px;line-height:1.4}
body.ea-app-ui #app .profile-guide-dialog>[data-action=dismiss]{position:sticky;bottom:-18px;z-index:4;display:block;width:100%;min-height:48px;margin-top:14px;background:#f4eadb!important;color:#513c2c!important}
.availability-summary{display:none}
/* Chat uses the visible viewport rather than an estimated header height. */
body.ea-app-ui[data-chat=true] .app-mobile-tools,body.ea-app-ui[data-chat=true] .app-page-title{display:none!important}
body.ea-app-ui[data-chat=true] .ea-install-bar{display:none!important}
body.ea-app-ui #app .chat-workspace .chat{gap:6px;background:#f5efe8}
body.ea-app-ui #app .chat-workspace .message{margin:3px 0;padding:11px 13px;color:#322c26!important;background:#fff!important;border-color:#e5dcd1}
body.ea-app-ui #app .chat-workspace .message.mine{background:#e1eee5!important;border-color:#bfd2c3;color:#253e31!important}
body.ea-app-ui #app .chat-workspace .message p{color:inherit!important;font-size:16px!important;line-height:1.6!important}
body.ea-app-ui #app .chat-workspace .message .actions{margin:3px 0 0;display:block}
body.ea-app-ui #app .chat-workspace .message-translate{width:auto!important;display:inline-flex!important;min-height:36px!important;padding:6px 0!important;font-size:12px!important;color:#465c4d!important;box-shadow:none!important;background:none!important}
body.ea-app-ui #app .chat-workspace .message-time{color:#675f56!important;font-size:11px!important;margin-top:1px}
.chat-date{align-self:center;color:#706155;font:12px/1.5 system-ui;margin:12px 0 6px;padding:4px 10px;background:#eae2d8;border-radius:12px}
body.ea-app-ui #app .chat-workspace #chat-status{font-size:11px;line-height:1.35;margin:0}
body.ea-app-ui #app .chat-workspace #message{margin:0;bottom:0;min-width:0;flex-shrink:0}
body.ea-app-ui #app .chat-workspace #message textarea{font-size:16px;min-height:48px;margin:0;line-height:1.5}
body.ea-app-ui #app .chat-workspace #message>button{min-height:48px;margin:0;align-self:end}
body.ea-app-ui .admin-table button{min-height:44px}
@media(max-width:760px){
 body.ea-app-ui[data-chat=true] .ea-site-header .ea-header-inner{padding-block:6px}
 body.ea-app-ui[data-chat=true] .ea-site-header .site-actions{display:none!important}
 body.ea-app-ui[data-chat=true] #app.compact-chat{box-sizing:border-box;margin-top:0!important;margin-bottom:0!important;padding:8px 12px!important;height:var(--compact-height)!important;max-height:var(--compact-height)!important;min-height:0!important;overflow:hidden!important}
 body.ea-app-ui .compact-chat .chat-workspace{box-sizing:border-box;margin:0!important;min-height:0;height:100%;width:100%;padding:8px!important;border-radius:14px;display:flex;flex-direction:column;gap:5px;overflow:hidden}
 body.ea-app-ui .compact-chat .chat-peer{grid-template-columns:40px minmax(0,1fr) 44px!important;min-height:54px;padding:5px 8px!important;gap:8px!important;position:relative}
 body.ea-app-ui .compact-chat .chat-peer>.story-avatar,body.ea-app-ui .compact-chat .chat-peer>.avatar{display:none}
 body.ea-app-ui .compact-chat .chat-peer>[data-compact-back]{grid-column:1;grid-row:1;min-height:44px!important}
 body.ea-app-ui .compact-chat .chat-peer>.chat-peer-info{grid-column:2;grid-row:1;cursor:pointer;min-width:0}
 body.ea-app-ui .compact-chat .chat-peer h1{font-size:16px!important;line-height:1.4}
 body.ea-app-ui .compact-chat .chat-peer small{font-size:11px!important}
 body.ea-app-ui .compact-chat .chat-peer>.compact-chat-tools{display:block;grid-column:3;grid-row:1;margin:0}
 body.ea-app-ui .compact-chat .compact-chat-tools>.chat-more>summary{width:44px;min-height:44px!important;padding:5px!important;font-size:0!important;background:#fffaf2}
 body.ea-app-ui .compact-chat .compact-chat-tools>.chat-more>summary:before{content:'⋯';font:700 25px/1 system-ui}
 body.ea-app-ui .compact-chat .compact-chat-tools>.chat-more>summary>*{display:none}
 body.ea-app-ui .compact-chat .compact-chat-tools>.chat-more[open]{position:fixed;inset:auto 12px calc(88px + env(safe-area-inset-bottom));padding:16px!important;max-height:65dvh;overflow:auto;z-index:80}
 body.ea-app-ui .compact-chat .compact-chat-tools>.chat-more[open]>summary{width:100%;font-size:14px!important;justify-content:space-between}
 body.ea-app-ui .compact-chat .compact-chat-tools>.chat-more[open]>summary>*{display:inline}
 body.ea-app-ui .compact-chat .compact-chat-tools>.chat-more[open]>summary:before{content:'×';font-size:22px;order:2}
 body.ea-app-ui .compact-chat .chat-scroll-shell{flex:1 1 0;min-height:0!important;overflow:hidden}
 body.ea-app-ui .compact-chat #messages{box-sizing:border-box;height:100%!important;min-height:0!important;max-height:none!important;padding:12px 10px}
 body.ea-app-ui .compact-chat #message{position:static!important;flex:none;grid-template-columns:minmax(0,1fr) auto;padding:4px 0!important}
 body.ea-app-ui .compact-chat #message textarea{max-height:100px!important}
 body.ea-app-ui[data-keyboard=true] .compact-chat .compact-chat-tools{display:block!important}
 body.ea-app-ui[data-keyboard=true] .compact-chat .chat-peer{min-height:48px}
 body.ea-app-ui[data-keyboard=true] .ea-site-header{display:none!important}
 body.ea-app-ui[data-keyboard=true] .compact-chat .compact-chat-tools>.chat-more[open]{bottom:70px;max-height:55dvh}
}
@media(max-width:700px){
 .ea-story-page #stage{display:block;padding:14px 0 24px!important}
 .ea-story-page .scene{margin:auto;min-width:0;max-width:540px;text-align:left}
 .ea-story-page .scene .composition,.ea-story-page .scene.chat-scene .composition,.ea-story-page .scene.mission .composition{display:flex!important;flex-direction:column!important;gap:16px!important;align-items:stretch!important;grid-template-columns:none!important}
 .ea-story-page .scene .words{width:100%;min-width:0;max-width:none}
 .ea-story-page .scene .artwork{order:-1;width:100%;max-width:160px;margin:0 auto;align-self:center}
 .ea-story-page .scene .artwork img{max-height:150px;width:100%;height:140px}
 .ea-story-page .scene.chat-scene .artwork{max-width:100px}
 .ea-story-page .scene.chat-scene .artwork img{height:85px}
 .ea-story-page .scene h1,.ea-story-page .scene.information h1{font-size:23px!important;line-height:1.5!important;letter-spacing:-.4px;margin:0}
 .ea-story-page .scene p.copy-line,.ea-story-page .scene.mission p.copy-line{font-size:17px!important;line-height:1.65!important;letter-spacing:0;margin-top:12px}
 .ea-story-page .scene .chat{max-width:100%;margin-top:18px}
 .ea-story-page .scene .eyebrow{margin-bottom:12px;font-size:14px}
 .ea-story-page .app{padding-inline:20px!important}
 .ea-story-page .story-skip{font-size:12px;min-height:36px}
}
@media(max-width:600px){
 body.ea-app-ui .ea-site-header .ea-header-inner{gap:7px;padding-block:8px}
 body.ea-app-ui .ea-site-header .site-actions{gap:6px}
 body.ea-app-ui .ea-site-header .site-actions>.language-nav a{padding:5px 8px;min-height:44px;max-width:210px}
 body.ea-app-ui .ea-site-header .audience-primary{font-size:13px}
 body.ea-app-ui .ea-site-header .audience-secondary{font-size:11px}
 body.ea-app-ui .ea-site-header .ea-header-menu>summary,body.ea-app-ui .ea-site-header .login-nav{min-height:44px;padding:8px 10px;font-size:13px}
 body.ea-app-ui #app .profile-guide-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;padding:16px!important}
 body.ea-app-ui #app .profile-guide>h2{top:-16px;font-size:21px}
 body.ea-app-ui #app .profile-guide .guide-intro{font-size:14px;line-height:1.6;margin:4px 0 12px}
 body.ea-app-ui #app .profile-guide-dialog>[data-action=dismiss]{bottom:-16px}
 body.ea-app-ui #app .ea-profile-cover{padding:16px;flex-wrap:wrap;align-items:center;gap:10px}
 body.ea-app-ui #app .ea-profile-person{flex:1 1 170px;flex-wrap:nowrap;gap:10px}
 body.ea-app-ui #app .ea-profile-person h2{font-size:21px}
 body.ea-app-ui #app .ea-profile-content{padding:14px 16px}
 body.ea-app-ui #app .ea-profile-rate{align-items:flex-start;flex:0 1 auto;min-width:115px}
 body.ea-app-ui #app .ea-profile-rate strong{font-size:23px}
 body.ea-app-ui #app .profile-story-section{padding:13px 0}
 body.ea-app-ui #app .profile-quick-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.ea-app-ui #app .profile-quick-facts>span:last-of-type{grid-column:1/-1}
 body.ea-app-ui #app .profile-guide-tip strong{font-size:16px}
 body.ea-app-ui #app .profile-guide-tip p{font-size:15px}
 body.ea-app-ui #app .profile-schedule .week-view{display:none}
 .availability-summary{display:grid;gap:8px;list-style:none;padding:0;margin:10px 0}
 .availability-summary li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;padding:10px 12px;border-radius:9px;background:#edf3e8;font-size:14px;line-height:1.5}
 .availability-summary strong{font-weight:650}
 .role-choice-grid .choice{min-height:155px;padding:20px}
}
@media(prefers-reduced-motion:reduce){.ea-story-page .reveal{transition:none!important}}
@media(max-width:600px){
 body.ea-app-ui .ea-site-header .ea-header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px 9px;min-height:0;padding-block:9px}
 body.ea-app-ui .ea-site-header .brand{grid-column:1;grid-row:1;gap:5px}
 body.ea-app-ui .ea-site-header .brand-faces{width:46px}
 body.ea-app-ui .ea-site-header .brand-name{width:92px}
 body.ea-app-ui .ea-site-header .site-actions{display:contents}
 body.ea-app-ui .ea-site-header .site-actions>.language-nav{grid-column:1/-1;grid-row:2;max-width:100%;margin:0;justify-self:start}
 body.ea-app-ui .ea-site-header .site-actions>.language-nav a{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:3px 9px;max-width:100%;min-height:36px;padding:4px 0;border:0!important;background:none!important;box-shadow:none!important}
 body.ea-app-ui .ea-site-header .audience-primary{font-size:15px}
 body.ea-app-ui .ea-site-header .audience-secondary{font-size:12px}
 body.ea-app-ui .ea-site-header .ea-header-menu{grid-column:2;grid-row:1}
 body.ea-app-ui .ea-site-header .login-nav{grid-column:3;grid-row:1}
 body.ea-app-ui[data-chat=true] .ea-site-header .site-actions{display:none!important}
}
@media(max-width:760px){
 body.ea-app-ui .compact-chat .chat-peer{grid-template-columns:40px 32px minmax(0,1fr) 44px!important;gap:6px!important}
 body.ea-app-ui .compact-chat .chat-peer>.story-avatar{display:block!important;grid-column:2;grid-row:1;width:32px!important;height:32px!important;min-width:0;border-radius:50%;object-fit:cover;margin:0!important}
 body.ea-app-ui .compact-chat .chat-peer>.chat-peer-info{grid-column:3}
 body.ea-app-ui .compact-chat .chat-peer>.compact-chat-tools{grid-column:4}
 body.ea-app-ui .compact-chat .chat-more .accepted-profile-panel[open],body.ea-app-ui .compact-chat .chat-more .chat-settings[open]{position:static!important;inset:auto!important;max-height:none!important;width:auto!important;overflow:visible!important;box-shadow:none!important;padding:12px 0!important;border:0!important;border-radius:0!important}
 body.ea-app-ui .compact-chat .chat-more .accepted-profile-panel>summary,body.ea-app-ui .compact-chat .chat-more .chat-settings>summary{font-size:14px!important;justify-content:flex-start;min-height:44px!important}
}
body.ea-app-ui #app .profile-guide>h2{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:0}
body.ea-app-ui #app .profile-guide-close{flex:none;min-width:44px;min-height:44px;padding:4px!important;background:#f2eadf!important;color:#533f2e!important;box-shadow:none!important;font-size:24px;line-height:1}
.ea-story-page .artwork img[src*="scene-03.webp"]{clip-path:inset(0 7%)}
