/* Shared flat controls: member app, paired tests, search and administration. */
body.desktop-platform.ea-app-ui #app :is(button,a.button),body.desktop-search :is(button,a.button,.button){background:#fff!important;background-image:none!important;border:1px solid #dde5de!important;border-radius:11px!important;box-shadow:none!important;color:#354b3c!important;text-shadow:none!important;transform:none!important;font-weight:600;transition:background-color .15s ease,border-color .15s ease}
body.desktop-platform.ea-app-ui #app :is(button,a.button):hover,body.desktop-search :is(button,a.button,.button):hover{background:#f3f6f2!important;border-color:#b9cbb9!important}
body.desktop-platform.ea-app-ui #app :is(button[type=submit],.workspace-primary,.guided-next button,.journal-actions>button:first-child,.exchange-action),body.desktop-search .exchange-action{background:#466c51!important;color:#fff!important;border-color:#466c51!important}
body.desktop-platform.ea-app-ui #app :is(button,a.button)[aria-pressed=true],body.desktop-platform.ea-app-ui #app .ac-nav button[aria-current=page]{background:#e9f2e8!important;color:#31543b!important;border-color:#9bb49d!important}
body.desktop-platform.ea-app-ui #app button:disabled,body.desktop-search button:disabled{background:#f1f3f0!important;color:#9aa59b!important;border-color:#e6ebe4!important;opacity:1!important;cursor:not-allowed}
body.desktop-platform.ea-app-ui #app button:before{box-shadow:none!important;background-image:none!important}
body.desktop-platform.ea-app-ui #app .ea-back-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:9px!important;margin:0!important;background:transparent!important;border:0!important;border-radius:50%!important;color:#364d3d!important;flex:none!important}
body.desktop-platform.ea-app-ui #app .ea-back-button:before,body.desktop-platform.ea-app-ui #app .ea-back-button:after{display:none!important}
.ea-back-button svg{width:24px!important;height:24px!important}.app-back-row{margin:0 0 8px}
.hourly-rate-control{display:flex;align-items:center;gap:6px;box-sizing:border-box;max-width:100%;border:1px solid #d7e1d7;border-radius:13px;background:#fff;padding:6px 8px}
.hourly-rate-unit{font-size:17px;font-weight:600;color:#788d7b;padding:0 4px}
body.desktop-platform.ea-app-ui #app .hourly-rate-control input{appearance:textfield;-moz-appearance:textfield;min-width:0!important;width:100%!important;flex:1!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;padding:10px 4px!important;margin:0!important;min-height:44px!important;font-size:22px!important;font-weight:650!important;color:#2e5038!important}
.hourly-rate-control input::-webkit-inner-spin-button,.hourly-rate-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.desktop-platform.ea-app-ui #app .hourly-rate-control .rate-step{height:44px!important;min-height:44px!important;width:44px!important;min-width:44px!important;padding:0!important;margin:0!important;font-size:22px!important;border-radius:9px!important;background:#f1f5ee!important;flex:none}
.hourly-rate-control:focus-within{outline:2px solid #8da88d;outline-offset:2px}
body.desktop-platform.ea-app-ui #app .app-test-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;margin:0 0 12px;background:#f4f7f1;border:1px dashed #b4c5ae;border-radius:12px;font-size:11px;line-height:1.4}
.app-test-banner>div{display:flex;gap:5px;flex-wrap:wrap}
body.desktop-platform.ea-app-ui #app .app-test-banner button{min-height:36px!important;font-size:11px!important;padding:6px 9px!important;margin:0!important}
body:has(.journal-workspace) .app-test-banner,body:has(.chat-workspace) .app-test-banner{display:none!important}
body.ea-app-ui[data-admin=true]{background:#f5f7f4!important}
body.ea-app-ui[data-admin=true] #app{max-width:1260px!important;padding:16px 20px 36px!important}
body.ea-app-ui[data-admin=true] #app .ac-heading{padding:12px 0 20px}.ac-heading h1{font-size:24px!important;color:#263c2c}
body.ea-app-ui[data-admin=true] #app .card{border:1px solid #e1e7df;border-radius:14px;background:#fff;box-shadow:none;padding:20px}
body.ea-app-ui[data-admin=true] #app .ac-nav button{text-align:left;font-size:13px!important;padding:10px 13px!important;min-height:42px}
body.ea-app-ui[data-admin=true] #app .ac-nav button:not([aria-current=page]){background:transparent!important;border-color:transparent!important}
body.ea-app-ui[data-admin=true] #app .ac-menu{border:0;background:transparent;box-shadow:none;padding:0}
body.ea-app-ui[data-admin=true] #app .ac-menu>summary{background:#fff!important;border:1px solid #dfe7dc;border-radius:12px;padding:14px 16px;font-size:14px;min-height:44px;box-sizing:border-box}
.ac-metrics article{background:#fff!important;border-color:#e0e8dc!important;box-shadow:none!important}.ac-filters{background:#f4f7f1!important;border-color:#e0e8dc!important}.ac-table th{background:#f0f4ed!important}
.ac-state{background:#f3f6f0!important;border-color:#e0e7db!important}
@media(max-width:760px){body.ea-app-ui[data-admin=true] #app{padding:12px!important}.ac-heading .actions{display:flex;flex-wrap:wrap;width:100%}.ac-heading .actions button{min-height:40px!important}.ac-menu[open] .ac-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px!important;margin:8px 0 16px!important;padding:8px!important;background:#fff;border:1px solid #e1e7df;border-radius:12px}.ac-menu[open] .ac-nav button{white-space:normal!important;width:100%!important}body.desktop-platform.ea-app-ui #app .app-test-banner{align-items:start;flex-direction:column;gap:5px}}
@media(prefers-reduced-motion:reduce){body.desktop-platform.ea-app-ui #app :is(button,a.button){transition:none}}
body.ea-app-ui .ea-search-options button,body.ea-app-ui>dialog button{background:#fff!important;background-image:none!important;border:1px solid #dce5d9!important;border-radius:10px!important;box-shadow:none!important;color:#385440!important;transform:none!important}
body.ea-app-ui .ea-search-options button[aria-selected=true]{background:#eaf3e7!important}
body.desktop-search .search-back{display:grid;place-items:center;width:44px;height:44px;font-size:25px;border:0;border-radius:50%;text-decoration:none;color:#37503e}
body.ea-app-ui[data-admin=true] .ac-heading>.ea-back-button{align-self:flex-start}
body.desktop-platform.ea-app-ui[data-admin=true] #app .ac-heading .actions button{color:#38503e!important;background:#fff!important;border-color:#d8e3d5!important;font-size:13px!important}
body.ea-app-ui #app .profile-language-fields .profile-language-row{display:flex;flex-direction:column;gap:6px;align-items:stretch;min-width:0}
body.ea-app-ui #app .profile-language-fields .profile-language-row input,body.ea-app-ui #app .profile-language-fields .profile-language-row select{width:100%;min-width:0;box-sizing:border-box;margin:0!important}
body.ea-app-ui #app .profile-language-fields .profile-language-row select{min-height:44px;border:1px solid #dae3d7;border-radius:10px;background:#fff}
body.ea-app-ui #app .profile-language-fields .ranked-options{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px}
body.ea-app-ui #app .profile-language-fields .profile-language-row{display:grid!important;grid-template-columns:18px minmax(0,1fr) 100px!important;align-items:center!important;gap:8px}
body.ea-app-ui #app .profile-language-fields .profile-language-row input,body.ea-app-ui #app .profile-language-fields .profile-language-row select{max-width:none!important;font-size:14px!important;padding:9px 10px!important}
body.ea-app-ui #app .guided-next{background:#f4f8f1!important;border:1px solid #dfe8d8!important;box-shadow:none!important}
body.ea-app-ui #app .guided-next button>.ui-icon:first-child{display:none}
@media(max-width:760px){body.ea-app-ui[data-admin=true] #app .ac-heading:has(>.ea-back-button){display:grid!important;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center}body.ea-app-ui[data-admin=true] #app .ac-heading:has(>.ea-back-button)>div:first-of-type{grid-column:2}body.ea-app-ui[data-admin=true] #app .ac-heading:has(>.ea-back-button)>.actions{grid-column:1/-1}body.ea-app-ui[data-admin=true] #app .ac-heading h1{margin:0}}
body.ea-app-ui #app .test-profile-preview{font-size:12px!important;min-height:40px!important;margin:0 0 14px!important;padding:8px 12px!important;background:#f0f6ec!important;border:1px dashed #adc3a5!important}

/* Required media and compact rate controls */
body.ea-app-ui #app .profile-language-fields .profile-language-row[hidden]{display:none!important}
.hourly-rate-control{height:58px;min-height:58px;flex-wrap:nowrap;padding:6px 10px;gap:8px}
.hourly-rate-control input{width:100%!important;min-width:0!important;flex:1 1 80px!important;font-size:22px!important;height:44px!important;padding:4px!important}
.hourly-rate-control button{flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:8px}
.hourly-rate-hint{display:block;font-size:13px;line-height:1.5;margin-top:8px}
.required-media-note{font-size:14px;font-weight:600;color:#41634e;line-height:1.5}
.wizard-actions{display:flex;flex-direction:column;gap:8px}
.wizard-actions>.secondary{background:transparent;border-color:transparent;color:#69756e}
.voice-reading{margin:16px 0;padding:14px;border:1px solid #e0e6e1;border-radius:12px}
.voice-reading p{white-space:pre-wrap;font-size:15px;line-height:1.6}
.ea-profile-person>[data-profile-section=photo]{flex-shrink:0;cursor:pointer}

.ea-profile-person>div:last-child{min-width:0}.profile-name-line h2{white-space:normal!important;overflow-wrap:anywhere}
body.ea-app-ui #app .english-level-help{padding:0!important;margin:6px 0 14px;border:0!important;background:none!important;box-shadow:none!important}
body.ea-app-ui #app .english-level-help>summary{display:inline-flex!important;align-items:center;justify-content:center;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border:1px solid #dce4de;border-radius:50%;line-height:1!important;font-size:16px!important;list-style:none}
body.ea-app-ui #app .english-level-help>summary::before,body.ea-app-ui #app .english-level-help>summary::after{display:none!important}

body.ea-app-ui #app .voice-story-reader{margin:12px 0}
body.ea-app-ui #app [data-load-voice-story]{width:100%;text-align:center;font-size:14px!important}
body.ea-app-ui #app .voice-written-story{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow-y:auto;overscroll-behavior:contain;padding:14px;margin-top:10px;border:1px solid #e0e6e1;border-radius:12px;background:#f7f9f7;font-size:15px;line-height:1.65;text-align:left}
body.ea-app-ui #app .voice-written-story[hidden]{display:none!important}

/* One settings entry in the brand row; focused communication workspaces. */
body.ea-app-ui[data-member=true] [data-site-header] .ea-header-menu,body.ea-app-ui[data-member=true] [data-site-header] [data-member-entry],body.ea-app-ui[data-member=true] [data-site-header] .language-nav{display:none!important}
body.ea-app-ui[data-member=true] [data-site-header]{display:flex!important;align-items:center;justify-content:space-between;gap:12px}
body.ea-app-ui[data-member=true] .member-settings-trigger{min-height:40px!important;margin:0!important;padding:8px 14px!important;white-space:nowrap;font-size:14px!important;background:#fff!important;border:1px solid #e0e6e1!important;border-radius:12px!important;box-shadow:none!important;color:#395447!important}
body.ea-app-ui #app .member-settings-menu{display:flex;flex-direction:column;gap:8px}
body.ea-app-ui #app .member-settings-menu>button,body.ea-app-ui #app .member-settings-menu>a{display:block;text-align:left;min-height:44px;padding:12px 14px;margin:0;text-decoration:none;border:1px solid #e2e7e2;border-radius:10px;background:#fff;color:#395447;font-size:15px}
body.ea-app-ui #app .member-settings-menu .account-settings-content{border-top:1px solid #e2e7e2;margin-top:8px;padding-top:8px}
body.ea-app-ui #app .member-settings-menu .account-settings-content h3{display:none}
body.ea-app-ui[data-member-focus=true]>[data-site-header],body.ea-app-ui[data-member-focus=true]>.ea-install-bar,body.ea-app-ui[data-member-focus=true]>footer,body.ea-app-ui[data-member-focus=true] .app-rail{display:none!important}
body.ea-app-ui[data-member-focus=true]{--app-nav-h:0px!important}
body.ea-app-ui[data-member-focus=true] #app{margin-top:0!important}
body.ea-app-ui #app .app-focus-header{display:flex;align-items:center;gap:12px;min-height:64px;background:#fff;padding:8px 12px;border-bottom:1px solid #e2e7e2;margin:0 0 16px;box-sizing:border-box}
body.ea-app-ui #app .app-focus-header h1{font-size:20px!important;line-height:1.4;margin:0!important}
body.ea-app-ui #app .app-focus-header>button{display:grid;place-items:center;width:44px;min-height:44px;margin:0!important;padding:8px!important;background:none!important;border:0!important;box-shadow:none!important}
body.ea-app-ui #app :is(.journal-help,.english-level-help,.compact-help)>summary{display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;padding:0!important;line-height:1!important;text-indent:0!important;list-style:none!important;vertical-align:middle}
body.ea-app-ui #app :is(.journal-help,.english-level-help,.compact-help)>summary::before,body.ea-app-ui #app :is(.journal-help,.english-level-help,.compact-help)>summary::after,body.ea-app-ui #app :is(.journal-help,.english-level-help,.compact-help)>summary::-webkit-details-marker{display:none!important}

body.ea-app-ui:has(#app .journal-workspace)>[data-site-header],body.ea-app-ui:has(#app .chat-workspace)>[data-site-header]{display:none!important}
body.ea-app-ui[data-member-focus=true] #app .app-back-row{display:none!important}
body.ea-app-ui #app .app-focus-header>button svg{width:22px!important;height:22px!important;display:block}
body.ea-app-ui #app .app-focus-header .focus-refresh{margin-left:auto!important;width:auto;font-size:13px!important}
body.ea-app-ui[data-member-focus=true] #app .conversations-list{border:0;border-radius:0;box-shadow:none;background:#fff}
body.ea-app-ui[data-member-focus=true]:not([data-chat=true]):not(:has(.journal-workspace)) #app{max-width:900px!important;margin:0 auto!important;padding:0 0 84px!important}
body.ea-app-ui[data-member-focus=true] .app-test-banner{display:none!important}

/* Discovery starts with four destinations, each opening a focused workspace. */
.find-hub-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:12px 0 24px}
.find-hub-cards>button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:180px;padding:24px!important;text-align:left;border:1px solid #dfe7df!important;border-radius:18px!important;background:#fff!important;color:#334b3b!important;box-shadow:0 3px 12px #23372506!important}
.find-hub-cards strong{font-size:20px;line-height:1.5;padding-right:18px}.find-hub-cards small{font-size:14px;line-height:1.6;color:#718074}.find-card-icon{font-size:28px;line-height:1;color:#597c61}.find-card-arrow{position:absolute;right:22px;top:24px;font-size:25px}
.find-hub-cards [data-hub-count]:not(:empty){display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:2px 6px;font-size:13px;border-radius:12px;background:#e7eee7;color:#47604d}
.find-hub-cards [data-hub-count].has-unread,.exchange-unread{background:#c95849!important;color:#fff!important;border-radius:12px;padding:3px 8px;font-size:12px}
.find-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.find-section-heading>button{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #e0e6e0;border-radius:12px;background:#fff}.find-section-heading svg{width:22px;height:22px}.find-section-heading h2{font-size:21px;margin:0;line-height:1.5}
#find-workspace[hidden],.find-hub-cards[hidden]{display:none!important}
.profile-connect-actions{display:flex;flex-direction:column;gap:10px}.profile-connect-actions>button{width:100%;min-height:48px;white-space:normal;line-height:1.5;padding:12px}.profile-connect-actions>button:first-child{background:#41684e!important;color:white!important}
.exchange-list-card header{display:flex;justify-content:space-between;align-items:center;gap:10px}.exchange-list-card p{font-size:14px!important;line-height:1.6}.exchange-list-card>button{min-height:44px}
.question-connect form{display:flex;flex-direction:column;gap:16px}.question-connect label{display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:600}.question-connect textarea{width:100%;box-sizing:border-box;min-height:80px;font:400 15px/1.6 system-ui}.question-connect [type=submit],.question-chat-action{min-height:48px;padding:12px 16px;border:0;border-radius:12px;background:#41684e;color:#fff;font-weight:600}
.ability-level-cards{display:grid;gap:12px;padding:16px}.ability-level-cards article{padding:16px;border:1px solid #e1e8e0;border-radius:13px;background:#f6f9f4}.ability-level-cards strong{display:block;font-size:17px;font-weight:750;color:#36563e;margin-bottom:7px}.ability-level-cards p{font-size:14px!important;line-height:1.7!important;margin:0!important;color:#57645a}
body.desktop-search dialog.ea-filter-sheet{height:min(660px,85dvh)!important;max-height:85dvh!important;padding:0!important;overflow:hidden!important}
body.desktop-search dialog.ea-filter-sheet>header,body.desktop-search dialog.ea-filter-sheet>footer{flex:none!important}
body.desktop-search dialog.ea-filter-sheet>.filter-sheet-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;max-height:none!important}
body.desktop-search .ea-filter-sheet .extra-filters>div{position:static!important;display:block!important;inset:auto!important;width:auto!important;box-shadow:none!important;border:0!important;padding:0!important;max-height:none!important}
body.desktop-search .ea-filter-sheet .age-checks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:12px}
body.desktop-search .ea-filter-sheet .age-checks label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px;background:#f6f8f4;border:1px solid #e2e7de;border-radius:10px;font-size:14px}
@media(max-width:650px){.find-hub-cards{grid-template-columns:1fr;gap:12px}.find-hub-cards>button{min-height:140px;padding:20px!important;gap:8px}.find-hub-cards strong{font-size:18px}.find-card-icon{font-size:24px}.find-section-heading h2{font-size:19px}}

.find-hub-cards .find-card-icon{font-size:28px!important}.find-hub-cards small{font-weight:400!important}.find-hub-cards strong{font-size:19px!important}
body.desktop-search .ea-filter-sheet .age-checks{max-height:none!important;height:auto!important;overflow:visible!important}

body.ea-app-ui #app .chat-list-row{display:flex;align-items:center;position:relative;gap:8px;border-bottom:1px solid #edf0ec;padding:4px 0;background:#fff}
body.ea-app-ui #app .chat-row-main{display:flex;align-items:center;flex:1;min-width:0;gap:12px;text-align:left!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:16px 12px!important}
.chat-row-avatar{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:18px;background:#edf3ea;color:#52705b;font-size:19px!important;font-weight:650}
.chat-row-copy{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.chat-row-copy strong{font-size:16px!important;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-row-copy>span{font-size:14px!important;line-height:1.5;color:#7c867e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-row-main time{align-self:flex-start;font-size:11px!important;line-height:1.4;font-weight:400;color:#879287;text-align:right;max-width:92px}
.chat-row-options{flex:none;margin:0 6px 0 0}.chat-row-options>summary{display:grid;place-items:center;width:32px;height:40px;list-style:none;cursor:pointer;font-size:22px}.chat-row-options[open]{position:absolute;right:0;z-index:4;padding:10px;background:#fff;border:1px solid #e3e9e0;border-radius:12px;box-shadow:0 6px 20px #23372515}

body.desktop-platform.ea-app-ui #app button.chat-row-main{position:relative;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;max-width:none!important;min-width:0!important;flex:1 1 auto!important}
body.desktop-platform.ea-app-ui #app .chat-row-copy strong{padding-right:44px}.chat-row-main time{position:absolute;right:12px;top:16px;max-width:none;font-size:11px!important}.chat-row-copy>span{font-weight:400!important}.chat-row-avatar{font-size:19px!important}
body.desktop-platform.ea-app-ui #app .app-focus-header .focus-refresh{width:44px!important;min-height:44px!important;padding:8px!important}
