/* Shared colour system: light and dark cover public pages, forms and the panel. */
:root,[data-theme="light"] {
  --paper:#f6f7f3; --surface:#fff; --surface-soft:#edf2e9; --surface-hover:#e7efe1;
  --ink:#172c24; --muted:#617268; --line:#dfe6db; --green:#286b45; --accent:#bce589;
  --shadow:0 16px 45px rgba(23,44,36,.045); --header:rgba(246,247,243,.92); --field:#fafcf8;
  --bs-body-bg:var(--paper); --bs-body-color:var(--ink); --bs-border-color:var(--line);
}
[data-theme="dark"] {
  --paper:#101816; --surface:#18231f; --surface-soft:#1e2e26; --surface-hover:#263c2e;
  --ink:#edf3e9; --muted:#acbbb0; --line:#304138; --green:#afe189; --accent:#bce589;
  --shadow:0 16px 45px rgba(0,0,0,.13); --header:rgba(16,24,22,.94); --field:#121d18;
  --bs-body-bg:var(--paper); --bs-body-color:var(--ink); --bs-secondary-color:var(--muted);
  --bs-border-color:var(--line); --bs-emphasis-color:var(--ink); --bs-tertiary-bg:var(--surface-soft);
}
html { scroll-padding-top:110px; }
body { background:radial-gradient(ellipse at 12% 0,var(--surface-soft),transparent 45%),var(--paper); color:var(--ink); }
[hidden] { display:none!important; }
.site-header { background:var(--header); border-color:var(--line); }
.site-footer { border-color:var(--line); }
.brand,.footer-brand,.nav-links a,.nav-panel,.language-switch,.mobile-menu,.text-link,.back-link { color:var(--ink); }
.brand-mark { background:#173c29; color:#f4f9eb; }
[data-theme="dark"] .brand-mark { background:var(--accent); color:#173c29; }
.eyebrow { background:var(--surface-soft); border-color:var(--line); }
.nav-links a:hover,.footer-links a:hover,.back-link:hover,.text-link:hover { color:var(--green); }
.nav-inner { position:relative; gap:20px; flex-wrap:wrap; padding-block:10px; }
.nav-inner .brand { flex-shrink:0; }
.nav-inner .language-switch,.nav-inner .mobile-menu { position:static; }
.nav-links { flex:1 1 24rem; min-width:0; flex-wrap:wrap; row-gap:8px; }
.nav-panel { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.nav-panel,.language-switch summary,.mobile-menu summary { border-color:var(--line); }
.theme-toggle { width:40px; height:40px; flex:0 0 40px; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--ink); display:grid; place-items:center; }
.theme-toggle:hover { background:var(--surface-hover); border-color:var(--green); }
.theme-sun { display:none; }
[data-theme="dark"] .theme-sun { display:block; }
[data-theme="dark"] .theme-moon { display:none; }
.language-options,.mobile-menu-links { background:var(--surface); border-color:var(--line); box-shadow:var(--shadow); max-height:50vh; max-height:50dvh; overflow-y:auto; overscroll-behavior:contain; }
.language-options a,.mobile-menu-links a { color:var(--ink); overflow-wrap:anywhere; }
.language-options a:hover,.mobile-menu-links a:hover,.language-options a[aria-current] { background:var(--surface-hover); color:var(--green); }
.hero-lead,.section-heading p,.step-card p,.bottom-note p,.info-hero p,.faq-list p,.panel-heading p,.account-hero p,.account-stage-copy p,.account-side .content-card p,.auth-aside p,.auth-card>p,.auth-hint,.simple-page p,.detail-heading p,.panel-note-card p,.help-hero p,.help-side-card p,.experience-path p,.experience-details p,.experience-timeline p,.footer-inner>span,.footer-links a,.form-text { color:var(--muted); }
.hero-copy h1 span,.hero-footnote,.eyebrow,.section-label,.step-number,.strategy-mode,.progress-heading a,.faq-all-link,.experience-path a,.auth-hint a { color:var(--green); }
.step-card,.metric,.strategy-card,.content-card,.auth-card,.faq-list details,.account-stage-card,.account-progress>div,.account-progress-detail,.experience-path,.experience-details article,.community-link { background:var(--surface); border-color:var(--line); color:var(--ink); box-shadow:var(--shadow); }
.step-card h3,.strategy-card h3,.metric strong,.auth-card h2,.prose h2,.prose h3,.account-side h3 { color:var(--ink); }
.step-symbol,.tiny-icon,.note-spark,.info-icon,.experience-path-icon,.strategy-glyph { background:var(--surface-soft); color:var(--green); }
.step-card:hover,.strategy-card:hover { border-color:var(--green); }
.strategy-arrow { color:var(--green); }
.risk-chip,.detail-tags span,.state-chip,.state-done { background:var(--surface-soft); color:var(--green); }
.metric-muted,.panel-note-card,.help-side-card,.experience-timeline article,.progress-next,.progress-fact.is-complete { background:var(--surface-soft); border-color:var(--line); color:var(--ink); }
.metric p,.metric>span,.panel-bottom,.empty-state,.progress-fact small,.progress-meter-label span { color:var(--muted); }
.panel-overview>* { min-width:0; overflow-wrap:anywhere; }
.metric a,.panel-note-card a,.proof-link { color:var(--green); }
.overview-main { background:linear-gradient(120deg,#173d2b,#20513a); color:#f4faee; }
.overview-main>span { color:#bbdf9f; }
.overview-main p { color:#d4e1d4; }
.hero-art { border-color:var(--surface); }
.stage-images figure { background:var(--surface); border:1px solid var(--line); }
.stage-images figcaption { background:var(--surface); color:var(--ink); }
.form-control,.account-side input[readonly] { background:var(--field); border-color:var(--line); color:var(--ink); }
.form-control::placeholder { color:var(--muted); opacity:.8; }
.form-control:focus { background:var(--field); color:var(--ink); border-color:var(--green); box-shadow:0 0 0 .2rem color-mix(in srgb,var(--green) 16%,transparent); }
.btn-primary { color:#f7fff4; background:#286b45; border-color:#286b45; }
.btn-primary:hover { color:#fff; background:#1e5737; border-color:#1e5737; }
[data-theme="dark"] .btn-primary { background:#bce589; border-color:#bce589; color:#173422; }
[data-theme="dark"] .btn-primary:hover { background:#caeda1; border-color:#caeda1; color:#173422; }
[data-submit-feedback] .btn-primary:disabled { background:#286b45; border-color:#286b45; color:#f7fff4; opacity:1; }
[data-theme="dark"] [data-submit-feedback] .btn-primary:disabled { background:#bce589; border-color:#bce589; color:#173422; }
.overview-main .btn-primary { background:#c4ec97; color:#183b26; border-color:#c4ec97; }
.btn-outline-dark { color:var(--ink); border-color:var(--line); background:transparent; }
.btn-outline-dark:hover { color:var(--ink); background:var(--surface-hover); border-color:var(--green); }
.btn-light { background:#f3f9e9; color:#1a4028; border-color:#f3f9e9; }
.skip-link { color:var(--ink); background:var(--surface); }
.skip-link:focus-visible { outline-color:var(--green); }
.prose,.strategy-prose { color:var(--muted); }
.strategy-detail-icon { background:var(--surface-soft); border-color:var(--line); }
.strategy-detail-heading>div { min-width:0; }
.strategy-detail-heading h1 { overflow-wrap:anywhere; }
.strategy-detail-heading .detail-tags { flex-wrap:wrap; }
.strategy-prose>blockquote:first-child,.strategy-prose ol>li,.strategy-prose>p:last-child { background:var(--surface-soft); border-color:var(--line); color:var(--ink); }
/* Keep counters in the text flow so long numbers cannot overlap a step. */
.strategy-prose ol>li { padding-inline-start:17px; }
.strategy-prose ol>li::before { content:counter(list-item) / counter(list-item); position:static; width:max-content; min-width:27px; height:auto; min-height:27px; padding:2px; margin-bottom:10px; line-height:1.3; background:var(--surface-hover); color:var(--green); }
.strategy-prose h2 { border-color:var(--line); }
.strategy-prose :is(h1,h2,h3,h4,h5,h6) { color:var(--ink); font-family:Manrope,sans-serif; font-weight:800; line-height:1.45; scroll-margin-top:112px; overflow-wrap:anywhere; }
.strategy-prose :is(h1,h3,h4,h5,h6) { margin:1.5em 0 .6em; letter-spacing:-.025em; }
.strategy-prose h1 { font-size:1.5rem; }
.strategy-prose h3 { font-size:1.12rem; }
.strategy-prose h4 { font-size:1.06rem; }
.strategy-prose h5 { font-size:1rem; }
.strategy-prose h6 { font-size:1rem; font-weight:700; }
.strategy-prose :is(h1,h3,h4,h5,h6):first-child { margin-top:0; }
.strategy-prose a,.prose a { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
.strategy-prose a { overflow-wrap:anywhere; }
.strategy-prose :not(pre)>code { color:var(--ink); background:var(--surface-soft); padding:.1em .3em; border-radius:4px; overflow-wrap:anywhere; white-space:normal; }
.strategy-prose pre { max-width:100%; overflow:auto; padding:16px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--surface-soft); font-size:.875rem; line-height:1.65; }
.strategy-prose pre code { color:inherit; background:transparent; padding:0; white-space:pre; overflow-wrap:normal; }
.strategy-prose a:focus-visible,.strategy-prose pre:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
.strategy-prose { min-width:0; overflow-wrap:anywhere; }
.strategy-prose :is(ol,ul)>li { min-width:0; }
/* Nested notes keep their hierarchy without stacking padded cards. */
.strategy-prose li :is(ol,ul) { display:block; padding-inline-start:24px; margin:.65em 0 .25em; }
.strategy-prose li ol { list-style:decimal inside; }
.strategy-prose li ul { list-style:disc; }
.strategy-prose li :is(ol,ul)>li { padding:0; margin:.4em 0; border:0; border-radius:0; background:transparent; }
.strategy-prose li :is(ol,ul)>li::before { content:none; }
.strategy-prose li :is(ol,ul)>li::marker { color:var(--green); font-size:.85em; font-weight:700; }
.practical-guide > ol { display:block; list-style:decimal outside; padding-inline-start:1.5rem; }
.practical-guide > ol > li { padding:0 .25rem; border:0; background:transparent; color:inherit; }
.practical-guide > ol > li + li { margin-top:.75em; }
.practical-guide > ol > li::before { content:none; }
.practical-guide > ol > li::marker { color:var(--green); font-weight:800; }
.article-table { max-width:100%; overflow-x:auto; margin:24px 0; border:1px solid var(--line); border-radius:12px; overscroll-behavior-x:contain; }
.article-table:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
.article-table table { width:100%; border-collapse:collapse; color:var(--ink); background:var(--surface); font-size:.88rem; }
.article-table th,.article-table td { min-width:7rem; padding:12px 14px; border-bottom:1px solid var(--line); line-height:1.6; vertical-align:top; overflow-wrap:anywhere; }
.article-table th { font-weight:700; text-align:left; background:var(--surface-soft); }
.article-table tbody tr:last-child td { border-bottom:0; }
.article-table [align="left" i] { text-align:left; }
.article-table [align="center" i] { text-align:center; }
.article-table [align="right" i] { text-align:right; }
.article-table caption { caption-side:top; padding:12px 14px; color:var(--muted); text-align:left; overflow-wrap:anywhere; }
.strategy-side-note { border-color:var(--line); }
.referrals-table { --bs-table-bg:var(--surface); --bs-table-color:var(--ink); --bs-table-border-color:var(--line); table-layout:fixed; width:100%; }
.referrals-table th,.referrals-table td { color:var(--ink); border-color:var(--line); }
.referrals-table thead th:first-child { width:46%; }
.referrals-table .referral-name { padding:17px 8px; font-size:.9rem; font-weight:700; text-transform:none; letter-spacing:normal; vertical-align:middle; overflow-wrap:anywhere; }
.referrals-table .state-chip { display:inline-block; max-width:100%; overflow-wrap:anywhere; }
.referral-status-label { display:none; }
.account-progress>div.done,.progress-fact,.progress-fact.is-complete { background:var(--surface-soft); border-color:var(--line); color:var(--ink); }
.progress-fact-icon,.progress-fact.is-complete .progress-fact-icon { background:var(--surface-hover); color:var(--green); }
.progress-meters progress,.progress-meters progress::-webkit-progress-bar { background:var(--surface-hover); }
.auth-decoration { color:var(--surface-hover); }
.web-join #join-error { overflow-wrap:anywhere; }
.web-join #join-error:focus { outline:3px solid var(--green); outline-offset:3px; }
.magic-unavailable,.resource-unavailable { max-width:760px; }
.magic-unavailable h1,.resource-unavailable h1 { font-size:clamp(2rem,5vw,3rem); line-height:1.2; overflow-wrap:anywhere; }
.magic-recovery-actions,.recovery-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.magic-recovery-actions .btn,.recovery-actions .btn { font-size:.9rem; padding:14px 18px; min-height:48px; }
.magic-unavailable .auth-hint { margin-top:24px; }
.account-check-unavailable { overflow-wrap:anywhere; }
.account-check-unavailable h1:focus { outline:3px solid var(--green); outline-offset:6px; }
.account-check-unavailable .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:767px) {
  .page-content.account-recovery-page { width:calc(100% - 32px); padding-inline:0; }
  .account-check-unavailable h1 { font-size:1.6rem; }
}
.join-steps { color:var(--green); }
.join-steps span { background:var(--surface-soft); }
.web-login .auth-aside,.web-login .auth-card { min-width:0; overflow-wrap:anywhere; }
.footer-inner { flex-wrap:wrap; gap:18px; }
.footer-links { flex-wrap:wrap; }
.panel-heading { padding-top:46px; overflow-wrap:anywhere; }
.panel-heading h1 { word-break:keep-all; }
@media(max-width:767px) {
  .page-content.join-page { width:calc(100% - 32px); padding-inline:0; }
  .page-content.login-page { width:calc(100% - 32px); padding-inline:0; }
  .page-content.panel-page { width:calc(100% - 32px); padding-inline:0; }
  .panel-heading h1 { font-size:1.6rem; }
}
.panel-quicklinks { display:flex; gap:18px; flex-wrap:wrap; margin-bottom:26px; font-size:.82rem; font-weight:700; }
.panel-quicklinks a { color:var(--muted); }
.panel-quicklinks a:hover { color:var(--green); }
.panel-overview { gap:18px; }
.overview-main { padding:32px; border-radius:24px; min-height:235px; }
.overview-main h2 { max-width:560px; font-size:clamp(1.8rem,3.1vw,2.6rem); letter-spacing:-.05em; }
.overview-main p { max-width:540px; margin:15px 0 22px; font-size:.93rem; line-height:1.7; }
.metric strong { letter-spacing:-.05em; }
.library-section { padding-top:42px; overflow-wrap:anywhere; }
.library-toolbar { display:flex; align-items:center; gap:20px; justify-content:space-between; margin:22px 0 18px; }
.library-search { position:relative; display:flex; align-items:center; width:min(100%,450px); }
.library-search svg { position:absolute; left:16px; pointer-events:none; color:var(--muted); }
.library-search input { width:100%; border:1px solid var(--line); border-radius:13px; background:var(--surface); color:var(--ink); padding:14px 16px 14px 45px; font-size:.88rem; }
.library-search input::placeholder { color:var(--muted); }
.library-counter { color:var(--muted); font-size:.78rem; white-space:nowrap; }
.library-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.library-filters button { background:var(--surface); color:var(--muted); border:1px solid var(--line); border-radius:50px; padding:9px 15px; font-size:.77rem; font-weight:700; }
.library-filters button[aria-pressed="true"] { color:var(--ink); background:var(--surface-hover); border-color:var(--green); }
.library-filters button:hover { border-color:var(--green); color:var(--green); }
.library-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.library-card { display:flex; flex-direction:column; position:relative; border:1px solid var(--line); border-radius:22px; padding:24px; background:var(--surface); color:var(--ink); min-width:0; box-shadow:var(--shadow); transition:transform .18s,border-color .18s; }
.library-card:hover { color:var(--ink); border-color:var(--green); transform:translateY(-3px); }
.library-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.library-icon { width:max(48px,1.5em); height:max(48px,1.5em); flex-shrink:0; border:1px solid var(--line); border-radius:15px; display:grid; place-items:center; background:var(--surface-soft); font-size:1.45rem; }
.library-category { color:var(--muted); font-size:.7rem; font-weight:700; }
.library-card h3 { font:800 1.23rem Manrope,sans-serif; letter-spacing:-.035em; margin:24px 0 10px; }
.library-card p { color:var(--muted); font-size:.84rem; line-height:1.65; margin:0 0 26px; }
.library-card-bottom { display:flex; justify-content:space-between; gap:12px; margin-top:auto; padding-top:17px; border-top:1px solid var(--line); color:var(--green); font-size:.76rem; font-weight:800; }
.library-empty { text-align:center; padding:50px 20px; border:1px dashed var(--line); border-radius:20px; color:var(--muted); }
.library-unavailable h3 { color:var(--ink); font-size:1.1rem; font-weight:800; margin:0 0 12px; }
.library-unavailable p { max-width:600px; margin:0 auto 22px; line-height:1.7; }
.library-empty button { margin-top:10px; }
.library-footnote { color:var(--muted); font-size:.8rem; max-width:780px; line-height:1.7; margin-top:21px; }
.guide-sidebar { display:grid; gap:16px; position:sticky; top:100px; }
.guide-reading { min-width:0; }
.guide-return { display:flex; margin-top:20px; }
.guide-return .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; white-space:normal; }
.guide-return .btn:focus-visible { color:var(--ink); background:var(--surface-hover); border-color:var(--green); outline:3px solid var(--green); outline-offset:3px; }
@media (max-width:767px) { .guide-return .btn { width:100%; } }
.guide-sidebar .panel-note-card { position:static; }
.guide-toc,.guide-sources { background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:23px; }
.guide-toc h2,.guide-sources h2 { font:800 .95rem Manrope,sans-serif; margin:0 0 17px; }
.guide-toc ul { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.guide-toc li { font-size:.8rem; line-height:1.5; }
.guide-toc a { color:var(--muted); overflow-wrap:anywhere; }
.guide-toc a:hover { color:var(--green); }
.guide-toc a:focus-visible,.guide-toc summary:focus-visible { outline-color:var(--green); }
.guide-toc li ul { padding-left:12px; margin-top:8px; }
[data-toc-mobile] { display:none; }
@media (max-width:767px) {
  [data-toc-mobile] { display:block; padding:16px 23px; }
  [data-toc-desktop] { display:none; }
  [data-toc-mobile] summary { cursor:pointer; font:800 .95rem/1.5 Manrope,sans-serif; min-height:44px; padding:10px 0; }
  [data-toc-mobile] details[open] summary { margin-bottom:12px; }
  [data-toc-mobile] a { display:flex; align-items:center; min-height:44px; padding:6px 0; }
}
.guide-sources>a { display:block; color:var(--green); font-size:.79rem; line-height:1.6; padding:7px 0; border-bottom:1px solid var(--line); }
.guide-sources>small { display:block; color:var(--muted); margin-top:15px; font-size:.7rem; }
.donation-card { display:grid; grid-template-columns:1fr 1fr; gap:40px; background:var(--surface); border:1px solid var(--line); border-radius:25px; padding:clamp(24px,4vw,42px); margin:44px 0 25px; box-shadow:var(--shadow); position:relative; overflow:hidden; }
.donation-message h2 { font:800 clamp(1.5rem,2.5vw,2rem) Manrope,sans-serif; letter-spacing:-.04em; margin:14px 0 13px; line-height:1.2; }
.donation-message p { color:var(--muted); font-size:.9rem; line-height:1.7; margin-bottom:12px; }
.donation-message small { color:var(--muted); font-size:.76rem; line-height:1.6; display:block; }
.donation-wallet { align-self:center; min-width:0; }
.donation-wallet label { display:block; color:var(--muted); font-size:.75rem; font-weight:700; margin-bottom:12px; }
.wallet-address { display:flex; align-items:center; gap:12px; background:var(--field); border:1px solid var(--line); border-radius:13px; padding:14px; }
.wallet-address>span { color:#b87b27; font-size:1.4rem; line-height:1; }
.wallet-address textarea { width:100%; min-width:0; border:0; background:transparent; color:var(--ink); font:500 .78rem/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; outline-offset:5px; resize:none; overflow-wrap:anywhere; word-break:break-all; }
.wallet-actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-top:15px; }
.wallet-actions .btn { padding:11px 15px; font-size:.78rem; }
.wallet-actions .text-link { font-size:.78rem; }
.copy-feedback { display:block; min-height:20px; margin-top:10px; color:var(--green); font-size:.76rem; }
.referral-share-card { min-width:0; }
.referral-copy-controls { display:flex; flex-wrap:wrap; gap:8px; }
.referral-copy-controls .form-control { flex:1 1 12rem; min-width:0; max-width:100%; }
.referral-copy-controls .btn { min-height:44px; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.referral-copy-feedback { overflow-wrap:anywhere; }
.account-page { overflow-wrap:anywhere; }
.account-session-notice { position:sticky; top:92px; z-index:5; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:24px; padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--surface-soft); }
.account-session-notice p { flex:1 1 16rem; margin:0; color:var(--ink); font-size:.82rem; line-height:1.4; }
.account-session-notice .btn { flex-shrink:0; min-height:44px; font-size:.85rem; }
@media(max-width:767px) {
  .account-session-notice { flex-direction:column; align-items:stretch; gap:10px; padding:14px; }
  .account-session-notice p { flex-basis:auto; }
}
.account-page .check-result { padding:14px; }
.account-page .check-result:focus { outline:3px solid var(--green); outline-offset:3px; }
.account-page .account-main>* { min-width:0; }
.account-page .account-progress { grid-template-columns:repeat(3,minmax(0,1fr)); }
.account-page .account-progress>div,.account-page .progress-fact>div { min-width:0; }
.account-page .progress-heading { flex-wrap:wrap; }
.account-page .progress-heading a { white-space:normal; }
.account-page .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:900px) {
  .account-page .account-main { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:767px) {
  .page-content.account-page { width:calc(100% - 32px); padding-inline:0; }
  .account-page .account-hero h1 { font-size:1.6rem; }
  .account-page .eyebrow { max-width:100%; white-space:normal; }
}
.thanks-hero { max-width:800px; }
.thanks-hero+.donation-card { margin-top:0; }
.thanks-hero~.back-link { margin:20px 0 70px; }
@media(min-width:1021px) and (max-width:1199px) { .nav-links { gap:12px; font-size:.8rem; } .nav-inner { gap:12px; } .nav-panel { font-size:.75rem; } }
@media(max-width:992px) { .library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .donation-card { gap:25px; } }
@media(max-width:767px) { .nav-inner { gap:10px; } .theme-toggle { width:36px; height:36px; flex-basis:36px; } .library-grid { grid-template-columns:1fr; } .library-card { padding:23px; } .library-card h3 { margin-top:18px; } .library-toolbar { align-items:stretch; flex-direction:column; gap:12px; } .library-search { width:100%; } .library-counter { text-align:right; } .donation-card { grid-template-columns:1fr; gap:25px; } .guide-sidebar { position:static; } .overview-main { padding:26px; } .panel-heading { padding-top:35px; } .panel-quicklinks { gap:15px; } .footer-links { gap:15px; } }
@media(max-width:400px) { .brand { gap:7px; font-size:1.05rem; } .language-switch summary { padding:8px 10px; } .mobile-menu summary { padding:8px 10px; } .nav-inner { gap:8px; } }
@media(max-width:767px) {
  .web-join .auth-aside h1 { font-size:1.6rem; overflow-wrap:anywhere; }
  .web-join .auth-card { min-width:0; padding:24px; }
  .web-join .auth-card h2 { font-size:1.4rem; overflow-wrap:anywhere; }
  .web-join .eyebrow { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
  .web-join .btn { white-space:normal; overflow-wrap:anywhere; }
  .web-login .auth-aside h1 { font-size:1.6rem; }
  .web-login .auth-card { padding:24px; }
  .web-login .auth-card h2 { font-size:1.4rem; }
  .web-login .eyebrow { max-width:100%; white-space:normal; }
  .web-login .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
  .page-content.article-page { width:calc(100% - 32px); padding-inline:0; }
  .strategy-detail-layout { grid-template-columns:minmax(0,1fr); }
  .strategy-detail-heading { flex-wrap:wrap; align-items:flex-start; }
  .strategy-detail-heading>div:last-child { flex:1 1 12rem; }
  .footer-brand .brand-dot { display:inline; margin:0; }
  .magic-recovery-actions,.recovery-actions { flex-direction:column; align-items:stretch; }
  .referrals-card { padding:0; border:0; background:transparent; box-shadow:none; overflow:visible; }
  .referrals-table { display:block; }
  .referrals-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .referrals-table tbody { display:grid; gap:14px; }
  .referrals-table tbody tr { display:block; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:18px; }
  .referrals-table .referral-name { display:block; width:100%; padding:0 0 14px; margin-bottom:4px; font-size:.93rem; border-bottom:1px solid var(--line); }
  .referrals-table .referral-status { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:10px 0; border:0; }
  .referral-status-label { display:inline-block; color:var(--muted); font-size:.8rem; }
  .referrals-table tbody td[colspan] { display:block; border:0; }
}
@media(max-width:360px) {
  .nav-inner { width:calc(100% - 24px); padding:0; gap:6px; }
  .nav-inner .brand-mark { display:none; }
  .wallet-address textarea { min-height:4.8em; }
}
@media(prefers-reduced-motion:reduce) { .library-card { transition:none; } }
