/* Scoped Beta improvements: installation and community. */
#betaInstallDialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); }
#betaInstallDialog .install-guide { padding: clamp(20px, 4vw, 30px); overflow-y: auto; max-height: calc(100dvh - 36px); }
.install-guide__hero { display: flex; gap: 16px; align-items: center; }
.install-guide__hero img { border-radius: 18px; flex: 0 0 64px; }
.install-guide__eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: .09em; color: #007998; margin-bottom: 6px; }
#betaInstallDialog h2 { font-size: clamp(20px, 5vw, 25px); line-height: 1.18; margin: 0; }
#betaInstallCopy { font-size: 15px; line-height: 1.5; margin: 18px 0; }
.install-guide__steps { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
.install-guide__steps[hidden] { display: none; }
.install-guide__steps li { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid #d8e9ed; border-radius: 18px; background: #f0f9fb; color: #123548; }
.install-guide__steps strong { font-size: 15px; display: block; }
.install-guide__steps li p { font-size: 13px; line-height: 1.45; margin: 5px 0 0; color: #4a6470; }
.install-guide__illustration { position: relative; display: grid; place-items: center; flex: 0 0 48px; height: 62px; border: 2px solid #74b9c8; border-radius: 12px; background: white; color: #007f9b; }
.install-guide__illustration svg { width: 28px; height: 28px; }
.install-guide__illustration span { position: absolute; left: -8px; top: -7px; border-radius: 50%; background: #006e88; color: white; width: 22px; height: 22px; text-align: center; line-height: 22px; font-size: 12px; font-weight: 700; }
#betaInstallDialog .install-guide__tip { font-size: 12px; line-height: 1.5; margin: 16px 0; }
.install-guide__done { width: 100%; margin-top: 8px; }
.install-demo { margin: 0 0 20px; padding: 16px; border: 1px solid #c8e5eb; border-radius: 24px; color: #123548; background: linear-gradient(150deg, #e5f8fc, #f6fbfc 65%, #e0f2f2); }
.install-demo[hidden], .install-demo [hidden] { display: none !important; }
.install-demo__label { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #396273; }
.install-demo__label > :first-child { font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.install-demo__stage { padding-top: 18px; }
.install-demo__phone { width: 208px; height: 272px; position: relative; margin: auto; overflow: hidden; border: 5px solid #17394b; border-radius: 29px; background: #f7fbfc; box-shadow: 0 14px 28px #234d5c20; font-size: 11px; }
.install-demo__island { width: 65px; height: 11px; border-radius: 0 0 10px 10px; background: #17394b; margin: 0 auto 11px; }
.install-demo__address { margin: 0 9px; padding: 8px 6px; border-radius: 9px; background: #e5eef2; font-size: 9px; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.install-demo__address span { font-size: 19px; line-height: 1; }
.install-demo svg { width: 19px; height: 19px; vertical-align: middle; }
.install-demo__page { padding: 18px 16px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.install-demo__page img, .install-demo__confirm img { width: 45px; height: 45px; border-radius: 12px; }
.install-demo__page b { font-size: 16px; }
.install-demo__page > span { font-size: 10px; color: #55717f; }
.install-demo__page i { width: 100%; height: 12px; border-radius: 5px; background: #e5eef2; }
.install-demo__scene { position: absolute; inset: 0; animation: install-scene-in .35s ease-out; }
.install-demo__toolbar { position: absolute; inset: auto 0 0; height: 38px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; background: #e5eef2; font-size: 24px; }
.install-demo__toolbar > span { color: #007e9d; }
.install-demo__touch { position: absolute; width: 31px; height: 31px; left: calc(50% - 15px); bottom: 4px; border: 3px solid #00a5c8; background: #00badd30; border-radius: 50%; box-shadow: 0 0 0 5px #00badd18; animation: install-touch 1.6s ease-in-out infinite; }
.install-demo[data-browser="android"] .install-demo__scene--first .install-demo__toolbar,
.install-demo[data-browser="chrome-ios"] .install-demo__scene--first .install-demo__toolbar { display: none; }
.install-demo[data-browser="android"] .install-demo__scene--first .install-demo__touch,
.install-demo[data-browser="chrome-ios"] .install-demo__scene--first .install-demo__touch { left: auto; right: 9px; top: 28px; bottom: auto; }
.install-demo__sheet { position: absolute; bottom: 0; width: 100%; padding: 11px 12px 14px; border-radius: 18px 18px 0 0; background: white; box-shadow: 0 -18px 60px #234d5c35; }
.install-demo__handle { display: block; width: 32px; height: 3px; border-radius: 4px; background: #c8d9e0; margin: 0 auto 10px; }
.install-demo__sheet > b { display: block; margin-bottom: 10px; }
.install-demo__muted { padding: 8px; color: #647d88; font-size: 10px; }
.install-demo__choice { padding: 11px 7px; border: 1px solid #00a2bd; border-radius: 9px; color: #005f77; background: #e8f8fb; font-weight: 800; font-size: 10px; }
.install-demo__touch--choice { left: auto; right: 17px; bottom: 48px; }
.install-demo__confirm { display: grid; justify-items: center; gap: 8px; padding: 18px 15px 23px; }
.install-demo__confirm > b { margin: 0; }
.install-demo__confirm > span { font-size: 10px; color: #3a6a62; }
.install-demo__confirm .install-demo__choice { width: 100%; text-align: center; }
.install-demo__touch--confirm { bottom: 24px; }
#betaInstallDialog .install-demo__captions p { min-height: 40px; margin: 17px 0 11px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 750; line-height: 1.35; }
.install-demo__captions p > span { color: #007e9b; font-size: 23px; font-weight: 850; }
.install-demo__controls { display: flex; justify-content: center; align-items: center; gap: 7px; }
.install-demo__controls button { border: 1px solid #bad8e0; border-radius: 12px; min-height: 44px; min-width: 44px; background: white; color: #145165; font: inherit; font-size: 13px; cursor: pointer; }
.install-demo__controls [data-demo-play] { padding: 0 12px; min-width: 92px; }
.install-demo__controls > span { font-size: 12px; min-width: 43px; text-align: center; }
.install-demo__controls button:focus-visible { outline: 3px solid #009cc0; outline-offset: 2px; }
.install-demo[data-playing="false"] .install-demo__touch { animation-play-state: paused; }
.install-demo[data-playing="false"] .install-demo__scene { animation: none; }
@keyframes install-touch { 0%, 100% { transform: scale(.86); opacity: .65; } 55% { transform: scale(1.1); opacity: 1; } }
@keyframes install-scene-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .install-demo__touch, .install-demo__scene { animation: none; } }
.profile-preview--community > .profile-heading,
.profile-preview--community .profile-preview__content > :not(.community) { display: none !important; }
.community { max-width: 720px; margin: 0 auto; padding-bottom: 24px; color: inherit; }
.community[hidden] { display: none; }
.community button, .community textarea { font: inherit; }
.community__hero { margin: 16px 0 24px; }
.community__eyebrow { color: #007b95; font-size: 11px; letter-spacing: .1em; font-weight: 800; }
.community h1 { margin: 8px 0 12px; font-size: 30px; letter-spacing: -.04em; }
.community__hero p { line-height: 1.6; max-width: 560px; }
.community__composer { padding: 20px; border: 1px solid #cfe2e8; background: #f1f9fb; color: #183d50; border-radius: 22px; }
.community__composer label { display: block; margin-bottom: 12px; font-weight: 700; }
.community textarea { box-sizing: border-box; width: 100%; min-height: 110px; resize: vertical; padding: 14px; border: 1px solid #bbd3db; border-radius: 12px; background: #fff; color: #123548; font-size: 16px; line-height: 1.5; }
.community__composer-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.community__privacy { font-size: 12px; line-height: 1.5; margin-bottom: 0; }
.community__sort { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.community__sort button { border: 1px solid #bed7df; background: #fff; color: #205064; border-radius: 24px; padding: 11px 16px; cursor: pointer; }
.community__sort button[aria-pressed="true"] { background: #006e88; color: #fff; border-color: #006e88; }
.community__message { font-size: 14px; line-height: 1.5; }
.community__list { display: grid; gap: 12px; margin-top: 16px; }
.community__card { display: grid; grid-template-columns: minmax(0,1fr) 56px; align-items: start; gap: 18px; border: 1px solid #d5e3e7; border-radius: 20px; padding: 20px; background: #fff; color: #15364b; }
.community__card p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 12px 0; }
.community__card small { color: #546e7a; }
.community__status { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 8px; padding: 4px 7px; color: #007789; background: #e7f6f8; }
.community__heart { min-height: 64px; display: grid; place-items: center; gap: 4px; padding: 9px; border: 1px solid #cfdae1; border-radius: 15px; background: #f5fafb; color: #2b6577; cursor: pointer; }
.community__heart svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.community__heart[aria-pressed="true"] { color: #bb365b; border-color: #e9a8b9; background: #fff0f4; }
.community__heart[aria-pressed="true"] svg { fill: currentColor; }
.community button:disabled { opacity: .55; cursor: default; }
.community__remove { display: block; padding: 9px 0 0; color: #8b3c50; background: none; border: none; font-size: 12px !important; cursor: pointer; }
.community__more { display: block; margin: 20px auto; }
.community__more[hidden] { display: none; }
