/* Subject pages use the same collection components for owners and visitors. */
.learning-subjects h2,.collection-heading h2 {margin:0 0 8px}
.learning-subject {display:flex;align-items:center;gap:14px;padding:20px 0;border-top:1px solid var(--border);color:var(--text);text-decoration:none}
.learning-subject>span:nth-child(2){flex:1;min-width:0}.learning-subject strong,.learning-subject small {display:block}.learning-subject strong{font-size:1.2rem}.learning-subject small{color:var(--muted);margin-top:6px;line-height:1.5}
.subject-emblem{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border-radius:16px;background:var(--surface);border:1px solid var(--border);font-size:30px;color:var(--action-text)}
.learning-owner{display:flex;align-items:center;gap:16px}.learning-owner h2{margin:0 0 8px}.subject-overview h1{font-size:1.8rem;margin:8px 0}.subject-overview p,.collection-heading p{line-height:1.6;color:var(--muted)}
.discovery-grid,.discovery-medals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.discovery-medals{margin:22px 0}.discovery-card,.collection-medal{min-width:0;border:1px solid var(--border);border-radius:18px;background:var(--surface);overflow:hidden}.discovery-card summary,.collection-medal summary{cursor:pointer;list-style:none;display:flex;align-items:center;flex-direction:column;text-align:center;gap:10px;padding:18px 10px}.discovery-card summary::-webkit-details-marker,.collection-medal summary::-webkit-details-marker{display:none}.discovery-card strong,.collection-medal strong{font-size:.92rem;overflow-wrap:anywhere}.discovery-card small,.collection-medal small{font-size:.77rem;color:var(--muted)}
.discovery-coin{position:relative;display:grid;place-items:center;width:70px;height:70px;flex-shrink:0;border-radius:50%;color:#8a6329;background:linear-gradient(145deg,#fff7da,#cfa34e);border:4px double #9d742d;box-shadow:inset 0 0 0 4px #ffffff44,0 3px 8px #291a0720}.discovery-coin img{width:38px;height:38px}.discovery-coin>span{position:absolute;bottom:-7px;right:-4px;color:#80601c;background:#fff1b5;border-radius:50%;width:22px;height:22px;font-size:15px}.is-pending .discovery-coin,.collection-medal:not(.is-earned) .discovery-coin{filter:grayscale(1);opacity:.48}.is-earned.discovery-card,.is-earned.collection-medal{border-color:#b99952}.discovery-card[open]{grid-column:1/-1}.discovery-card[open] summary{flex-direction:row;text-align:left}.discovery-card[open] summary strong{flex:1}.discovery-card-body,.collection-medal>p{padding:0 18px 18px;font-size:.9rem;line-height:1.65}.discovery-history a{overflow-wrap:anywhere}.discovery-controls{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.discovery-controls label{flex:1;min-width:130px;display:grid;gap:8px;font-size:.85rem}.discovery-controls input,.discovery-controls select{width:100%;min-width:0;box-sizing:border-box}.discovery-collection>p,.discovery-history .muted{color:var(--muted);font-size:.85rem}.discovery-notice{border:1px solid #b99952;border-radius:16px;padding:14px;margin:14px 0}.discovery-notice p{margin:8px 0}
@media(max-width:420px){.discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.discovery-medals{grid-template-columns:1fr}.collection-medal summary{flex-direction:row;text-align:left}.collection-medal .discovery-coin{width:48px;height:48px}.collection-medal .discovery-coin img{width:26px;height:26px}.discovery-card[open] summary{flex-wrap:wrap}.discovery-card[open] summary small{width:100%}}
/* Mobile application shell. Trainer layout deliberately keeps its own rhythm. */
:root { --action-text: #345fe2; }
body.dark { --action-text: #a9beff; }
[hidden] { display: none !important; }
.app-destination, .auth-page { gap: 18px; }
.app-destination { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.dashboard a, .app-navigation a, .app-destination .icon-button, .auth-page a { text-decoration: none; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.wordmark { font-size: 23px; font-weight: 800; color: var(--text); letter-spacing: -.7px; margin: 0; }
.wordmark span { color: var(--action-text); }
.community-card > svg, .community-icon svg, .start-learning svg { width: 22px; height: 22px; flex-shrink: 0; }
.dashboard-intro { margin: 4px 0 0; }
.eyebrow { margin: 0 0 5px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.dashboard-intro h1, .section-intro h2 { margin: 0; font-size: 1.875rem; letter-spacing: -.6px; line-height: 1.16; }
.learning-card { background: var(--surface); padding: 22px; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 8px 24px rgba(31,41,55,.035); }
.learning-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; font-size: .875rem; color: var(--muted); }
.learning-meta > span:first-child { color: var(--action-text); font-weight: 700; }
.learning-card h2 { margin: 18px 0 8px; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.4px; overflow-wrap: anywhere; }
.learning-card > p { color: var(--muted); margin: 0; line-height: 1.5; font-size: 1rem; }
.learning-progress { margin-top: 20px; }
.learning-progress > div { display: flex; justify-content: space-between; gap: 10px; font-size: .875rem; color: var(--muted); margin-bottom: 10px; }
.learning-progress strong { white-space: nowrap; color: var(--text); }
.app-destination progress { display: block; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 12px; overflow: hidden; background: var(--border); accent-color: var(--accent); }
.app-destination progress::-webkit-progress-bar { background: var(--border); border-radius: 12px; }
.app-destination progress::-webkit-progress-value { background: var(--accent); border-radius: 12px; }
.app-destination progress::-moz-progress-bar { background: var(--accent); border-radius: 12px; }
.start-learning { display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; line-height: 1.4; text-align: center; }
.learning-card .start-learning { margin-top: 22px; border-radius: 16px; }
.text-action { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--action-text); font-size: .875rem; font-weight: 600; text-decoration: none; }
.learning-card .text-action { margin-top: 8px; }
.text-action span { color: var(--muted); font-weight: 400; font-size: .875rem; }
.daily-card { border: 1px solid var(--border); background: var(--surface); padding: 18px 20px; border-radius: 20px; }
.daily-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daily-card h2 { margin: 0 0 6px; font-size: 1.0625rem; }
.daily-card p { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 0; }
.daily-card p strong { color: var(--text); font-size: 1.25rem; }
.goal-count { color: var(--action-text); font-weight: 700; white-space: nowrap; }
.daily-card progress { margin-top: 14px; }
.daily-card .goal-complete { color: var(--text); margin-top: 10px; }
.daily-goal-control { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 14px; }
.daily-goal-control label { color: var(--muted); font-size: .875rem; }
.daily-goal-control select { min-height: 44px; max-width: 100%; padding: 8px 28px 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font-size: 1rem; }
.form-message:empty { display: none; }
.daily-card .form-message:not(:empty) { margin-top: 10px; }
.community-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; color: var(--text); text-decoration: none; min-width: 0; }
.community-card > span:nth-child(2) { flex: 1; min-width: 0; }
.community-card strong, .community-card small { display: block; }
.community-card strong { font-size: 1rem; margin-bottom: 4px; }
.community-card small { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.community-card > svg:last-child { width: 18px; color: var(--muted); }
.community-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--action-text); flex-shrink: 0; }
.save-progress-link { text-align: center; display: block; padding: 8px 12px; color: var(--action-text); font-size: .9375rem; font-weight: 650; text-decoration: none; min-height: 56px; }
.save-progress-link small { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.app-navigation { position: fixed; z-index: 15; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); padding: 8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; background: var(--surface); border-top: 1px solid var(--border); }
.app-navigation a { min-width: 0; min-height: 58px; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 14px; color: var(--muted); font-size: .875rem; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; text-align: center; }
.app-navigation a[aria-current] { background: var(--bg); color: var(--action-text); font-weight: 750; }
.app-navigation svg { width: 22px; height: 22px; }
.page-header { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 10px; min-height: 44px; }
.page-header h1 { text-align: center; font-size: 1.0625rem; line-height: 1.3; margin: 0; }
.page-header .icon-button { width: 44px; height: 44px; color: var(--text); text-decoration: none; }
.section-intro { margin: 4px 0 6px; }
.section-intro p:not(.eyebrow) { color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.section-intro .community-icon { margin-bottom: 16px; }
.course-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.subject-disclosure { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.subject-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; padding: 18px; list-style: none; cursor: pointer; border-radius: 20px; }
.subject-disclosure summary::-webkit-details-marker { display: none; }
.subject-disclosure summary:focus-visible { outline: 3px solid var(--action-text); outline-offset: 3px; }
.subject-disclosure summary strong { display: block; font-size: 1.125rem; }
.subject-disclosure summary small { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; }
.disclosure-chevron { font-size: 1.5rem; color: var(--action-text); flex-shrink: 0; }
.subject-disclosure[open] .disclosure-chevron { transform: rotate(180deg); }
.subject-disclosure-content { display: grid; gap: 16px; padding: 0 12px 12px; }
.subject-route-note { margin: 0 6px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.subject-coming { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 80px; padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.subject-coming h2 { margin: 0; font-size: 1.125rem; }
.subject-coming > span { color: var(--muted); font-size: .875rem; }
.course-topic { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.course-topic > div { min-width: 0; }
.course-topic h3 { margin: 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.course-topic p { margin: 5px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.topic-number { display: grid; place-items: center; width: 36px; min-height: 36px; background: var(--bg); border-radius: 12px; flex-shrink: 0; color: var(--muted); font-size: .875rem; font-weight: 700; }
.course-topic.is-current { border-color: var(--action-text); }
.is-current .topic-number { background: var(--accent); color: #fff; }
.is-locked { background: transparent; }
.is-locked h3 { color: var(--muted); font-weight: 500; }
.is-mastered .topic-number { color: var(--text); background: var(--soft-ok); }
.auth-page { padding-bottom: max(20px,env(safe-area-inset-bottom)); }
.auth-page .page-header { position: sticky; top: 0; padding: 8px 0; background: var(--bg); z-index: 2; }
.auth-panel { padding: 20px; border-radius: 20px; }
.auth-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border-radius: 14px; margin-bottom: 20px; }
.auth-mode button { border: 0; border-radius: 10px; min-height: 48px; padding: 8px; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 650; cursor: pointer; }
.auth-mode button[aria-pressed="true"] { background: var(--surface); color: var(--action-text); box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.auth-form { gap: 8px; }
.auth-form label { color: var(--text); font-size: .875rem; margin-top: 8px; }
.auth-form input { min-width: 0; width: 100%; min-height: 48px; border: 1px solid var(--border); }
.auth-form .field-help { font-size: .875rem; }
.auth-panel .form-message:not(:empty) { margin-top: 16px; }
.auth-page > .text-action { justify-content: center; }
.community-page .panel { border-radius: 20px; padding: 20px; }
.community-welcome .start-learning { margin-top: 20px; }
.friend-label { display: block; margin: 20px 0 8px; font-size: .875rem; }
.community-page .inline-form { grid-template-columns: minmax(0,1fr); }
.community-page .inline-form input { min-width: 0; width: 100%; }
.community-page .leaderboard-title { margin-top: 26px; font-size: 1rem; }
.community-page .leader-row { grid-template-columns: 24px minmax(0,1fr) auto; gap: 10px; }
.community-page .leader-row strong { overflow-wrap: anywhere; }
.community-page .leader-row span:last-child { white-space: nowrap; font-size: .875rem; }
.profile-page .panel { border-radius: 20px; }
.page-loading { justify-content: center; align-items: center; gap: 24px; text-align: center; color: var(--muted); }
.loading-placeholder { width: 100%; height: 180px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.page-loading p { margin: 0; }
:is(a,button,input,select):focus-visible { outline: 3px solid var(--action-text); outline-offset: 3px; }
h1[tabindex]:focus { outline: none; }
@media (max-width: 360px) {
  .learning-card { padding: 18px; }
  .learning-card h2 { font-size: 1.5rem; }
  .daily-card { padding: 16px; }
  .learning-card .text-action { align-items: flex-start; flex-direction: column; justify-content: center; padding: 8px 0; gap: 4px; }
  .community-card { gap: 10px; padding: 14px; }
  .community-card > svg:last-child { display: none; }
}
@media (min-width: 600px) {
  .app-navigation { border: 1px solid var(--border); border-bottom: 0; border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Profile and achievement collection: shared native controls, no extra library. */
.profile-hero { position: relative; overflow: hidden; padding-top: 98px; }
.profile-cover { position: absolute; inset: 0 0 auto; height: 116px; display: flex; align-items: flex-start; justify-content: space-around; padding: 18px; background: linear-gradient(120deg,#2848bd,#7358be 65%,#41878e); color: #fff; font-size: 28px; }
.profile-cover span { opacity: .5; transform: rotate(-12deg); }
.profile-cover span:nth-child(2) { font-size: 23px; letter-spacing: 13px; padding-top: 4px; }
.profile-hero .account-row { position: relative; align-items: start; }
.profile-hero .account-row > div { min-width: 0; padding-top: 28px; }
.profile-hero .profile-avatar { width: 76px; height: 76px; border: 4px solid var(--surface); box-shadow: 0 4px 12px #0002; }
.profile-hero h1 { font-size: 1.5rem; line-height: 1.2; margin: 4px 0 6px; overflow-wrap: anywhere; }
.profile-hero .eyebrow { font-size: .75rem; margin: 0; }
.profile-identity { margin: 0; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.profile-motto { display: flex; gap: 10px; align-items: center; padding: 14px 0 4px; }
.profile-motto > span { color: var(--action-text); flex-shrink: 0; }
.profile-motto svg { width: 26px; height: 26px; }
.profile-motto p { margin: 0; }
.profile-motto strong, .profile-motto small { display: block; line-height: 1.5; }
.profile-motto strong { font-size: .875rem; }
.profile-motto small { color: var(--muted); font-size: .8125rem; }
.profile-page .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.profile-page .stat { border-radius: 14px; background: var(--bg); border: 0; padding: 14px 8px; text-align: center; }
.profile-page .stat strong { font-size: 1.4rem; }
.profile-page .text-action svg { width: 20px; height: 20px; }
.profile-page .panel h2 { font-size: 1.25rem; }
.achievement-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; list-style:none; cursor:pointer; }
.achievement-summary::-webkit-details-marker { display:none; }
.achievement-summary strong { display:block; font-size:1.125rem; }
.achievement-summary small { display:block; margin-top:6px; color:var(--muted); font-size:.8125rem; line-height:1.4; }
.achievement-chevron { color:var(--muted); font-size:24px; }
.achievement-panel[open] .achievement-chevron { transform:rotate(180deg); }
.achievement-summary:focus-visible { outline:2px solid var(--action-text); outline-offset:5px; border-radius:8px; }
.achievement-content { margin-top:18px; }
.profile-register { display:grid; gap:12px; }
.profile-register h2, .profile-register p { margin:0; }
.profile-register p { color:var(--muted); font-size:.875rem; line-height:1.5; }
.profile-register .primary-button { text-align:center; text-decoration:none; }
.profile-register .text-action { justify-content:center; }
.achievement-intro, .achievement-footnote { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.achievement-footnote { margin: 16px 0 0; }
.next-achievement { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 18px 0; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); }
.next-achievement > div { flex: 1; min-width: 0; }
.next-achievement small, .next-achievement strong { display: block; }
.next-achievement small { color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.next-achievement strong { font-size: 1rem; }
.next-achievement p { font-size: .8125rem; color: var(--muted); line-height: 1.4; margin: 6px 0 10px; }
.badge-progress { display: flex; align-items: center; gap: 10px; }
.badge-progress span { white-space: nowrap; font-size: .75rem; color: var(--muted); }
.achievement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: start; }
.achievement-card { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.achievement-card summary { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 16px 8px 10px; list-style: none; cursor: pointer; text-align: center; }
.achievement-card summary::-webkit-details-marker { display: none; }
.achievement-card summary:focus-visible { outline: 3px solid var(--action-text); outline-offset: -3px; border-radius: 17px; }
.badge-art { --badge-ink: #6643b2; --badge-bg: #eee6ff; display: inline-flex; position: relative; flex-shrink: 0; align-items: center; justify-content: center; width: 64px; height: 70px; color: var(--badge-ink); background: var(--badge-bg); border: 2px solid currentColor; border-radius: 22px 22px 28px 28px; box-shadow: inset 0 0 0 4px var(--surface); }
.badge-topics { --badge-ink: #146d69; --badge-bg: #dbf4ee; }
.badge-streak { --badge-ink: #986012; --badge-bg: #fff0ce; }
.badge-art svg { width: 29px; height: 29px; }
.badge-tier { position: absolute; bottom: 4px; font-size: 10px; letter-spacing: 2px; line-height: 1; }
.achievement-card summary > strong { font-size: .8125rem; line-height: 1.4; min-height: 2.8em; display: grid; place-items: center; }
.achievement-card summary > small { font-size: .75rem; color: var(--muted); }
.is-earned summary > small { color: var(--action-text); font-weight: 700; }
.is-pending .badge-art { color: var(--muted); background: var(--bg); border-color: var(--border); box-shadow: none; }
.badge-more { font-size: .6875rem; color: var(--muted); }
.achievement-card[open] .badge-more { color: var(--action-text); }
.badge-condition { padding: 0 12px 14px; font-size: .8125rem; line-height: 1.45; overflow-wrap: anywhere; }
.badge-condition p { margin: 0 0 10px; }
.badge-condition .badge-earned-note { color: var(--action-text); margin: 0; }
body.dark .is-earned .badge-art, body.dark .next-achievement .badge-art { --badge-ink: #cfbaff; --badge-bg: #352c50; }
body.dark .is-earned .badge-topics, body.dark .next-achievement .badge-topics { --badge-ink: #8bdfd1; --badge-bg: #203f43; }
body.dark .is-earned .badge-streak, body.dark .next-achievement .badge-streak { --badge-ink: #ffd38b; --badge-bg: #493d29; }
.profile-page .avatar-upload-button:focus-within { outline: 3px solid var(--action-text); outline-offset: 2px; }
@media (max-width: 420px) {
  .achievement-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-page .panel { padding-left: 16px; padding-right: 16px; }
  .next-achievement { padding: 12px; gap: 10px; }
  .next-achievement > .badge-art { width: 48px; height: 56px; border-radius: 16px 16px 22px 22px; }
}

.question-share-row { display:flex; justify-content:flex-end; margin-top:4px; }
.question-share-button { display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:8px 10px; border:0; border-radius:12px; background:transparent; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; }
.question-share-button svg { width:17px; height:17px; }
.question-share-button:hover { background:var(--surface); color:var(--action-text); }
.question-share-button:focus-visible { outline:2px solid var(--action-text); outline-offset:2px; }
.question-share-dialog { width:min(440px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid var(--border); border-radius:24px; padding:20px; background:var(--surface); color:var(--text); box-shadow:0 20px 80px #0004; }
.question-share-dialog::backdrop { background:#08132699; }
.share-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.share-dialog-header h2 { margin:0; font-size:1.25rem; }
.question-share-dialog p { color:var(--muted); font-size:.875rem; line-height:1.5; }
.question-share-dialog button, .share-messengers a { min-height:44px; font-size:.9375rem; }
.share-native, .share-copy { width:100%; }
.share-messengers { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0 18px; }
.share-messengers a { text-align:center; text-decoration:none; display:grid; place-items:center; padding:12px 8px; }
.share-link-label { display:block; font-size:.8125rem; color:var(--muted); margin:0 0 8px; }
#sharedQuestionUrl { width:100%; min-width:0; min-height:44px; padding:10px; border:1px solid var(--border); background:var(--bg); color:var(--text); border-radius:10px; font-size:16px; margin-bottom:10px; }
.share-status:empty { display:none; }
.shared-task-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.shared-task-header a { text-decoration:none; }
.shared-task-header > span, .shared-task-topic { color:var(--muted); font-size:.875rem; }
.shared-task-topic { overflow-wrap:anywhere; }
.shared-task .question-share-row { margin-top:-12px; }
.shared-task .question-area { flex:0; }
.shared-answer-result { font-size:1rem; line-height:1.5; margin:0; text-align:center; }
.shared-answer-result:empty { display:none; }
.shared-answer-result.is-correct { color:var(--action-text); }
.shared-task-footer { display:grid; gap:10px; margin-top:12px; }
.shared-task-footer p { color:var(--muted); font-size:.8125rem; line-height:1.5; text-align:center; margin:0; }
.shared-task-footer a { text-align:center; text-decoration:none; }
@media(max-width:480px) { .question-share-dialog { margin:auto auto max(12px,env(safe-area-inset-bottom)); } }

.seo-initial h1 { font-size:1.75rem; line-height:1.25; }
.seo-initial p, .seo-initial li, .public-seo-info p { line-height:1.6; }
.seo-initial a, .public-seo-info a { color:var(--action-text); }
.seo-initial details summary { min-height:44px; cursor:pointer; }
.seo-initial li { margin:8px 0; }
.public-seo-info { width:min(100%,480px); margin:0 auto; padding:0 20px calc(112px + env(safe-area-inset-bottom)); color:var(--muted); font-size:.875rem; }
.public-seo-info h2 { font-size:1.125rem; color:var(--text); }

.recovery-page .page-header h1 { margin:0; font-size:1.5rem; }
.recovery-intro { margin:0 0 20px !important; color:var(--muted); font-size:.9375rem; line-height:1.5; }
.recovery-page .auth-form input { min-width:0; }
.recovery-page .form-message:not(:empty) { margin:16px 0; line-height:1.5; }
.recovery-page #recoverySuccess { display:grid; gap:14px; }
.recovery-login { display:block; text-align:center; text-decoration:none; }
.topic-stories { margin-top: 8px; font-size: 14px; }
.topic-stories summary { color: var(--accent); cursor: pointer; }
.topic-stories ul { padding-left: 20px; }
.topic-stories li { margin: 8px 0; }
.topic-stories a { color: var(--accent); }

/* Public education mission and phone installation help. */
.umai-promise{margin:0;color:var(--action-text);font-size:.94rem;line-height:1.5;font-weight:600}.umai-mission{padding:20px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}.umai-mission h2{margin:0 0 10px;font-size:1.2rem}.umai-mission p{color:var(--muted);line-height:1.6;font-size:.94rem;margin:10px 0}.umai-phone{border-top:1px solid var(--border);margin-top:16px;padding-top:8px}.umai-phone summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--action-text);font-weight:600;gap:8px}.umai-phone summary:before{content:"+"}.umai-phone[open] summary:before{content:"−"}.umai-phone summary:focus-visible{outline:2px solid var(--action-text);outline-offset:4px}
