:root{--study-bg:#f4f6f1;--study-ink:#243b31;--study-muted:#54665b;--study-brand:#236046;--study-line:#d6e0d6;--study-soft:#e8f1e9}
body.study-page{display:block;width:100%;background:var(--study-bg);color:var(--study-ink);margin:0;padding:0}
.study-shell,.study-shell *{box-sizing:border-box}
.study-page .study-content{max-width:850px;margin:auto;padding:28px 24px 38px}
.study-page .study-content h1{color:var(--study-ink);text-shadow:none;line-height:1.22}
.study-page .study-content .sub{color:var(--study-muted)}
.study-shell a:focus-visible,.study-shell button:focus-visible,.study-shell :is(input,textarea,select):focus-visible{outline:2px solid var(--study-brand);outline-offset:3px}
.study-nav{position:sticky;top:0;z-index:10;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:9px 18px;background:#fff;border-bottom:1px solid var(--study-line)}
.study-nav a{min-width:68px;min-height:44px;display:grid;place-items:center;padding:4px 10px;color:#42564a;text-decoration:none;font-size:14px;border-radius:10px;white-space:nowrap}
.study-nav a:hover,.study-nav a.on{background:var(--study-soft);color:#204e36}
.study-nav a.on{font-weight:720}
.study-shell{width:100%;display:flex;flex-direction:column}
.study-nav{order:-1}
.study-section h1{font-size:clamp(28px,5vw,37px);margin:0 0 8px}
.study-section p{margin:0 0 22px;color:var(--study-muted)}
.study-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.study-module{display:flex;flex-direction:column;align-items:start;min-width:0;gap:8px;padding:17px;border:1px solid var(--study-line);border-radius:14px;background:white}
.study-module h2{font-size:17px;line-height:1.45;margin:0}
.study-module p,.study-mastery{font-size:13px;margin:0;color:var(--study-muted)}
.study-mastery{width:100%;margin-bottom:6px}
.study-mastery progress{display:block;width:100%;height:7px;margin-top:6px;accent-color:var(--study-brand)}
.study-module-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.study-shell .study-action{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--study-brand);border-radius:9px;background:var(--study-brand);color:white;text-decoration:none;font-size:14px;font-weight:650}
.study-shell .study-action.secondary{background:white;color:var(--study-brand);border-color:var(--study-line)}
.study-home-footer a,.study-section-heading a{color:var(--study-brand);font-size:13px;font-weight:620}
@media(max-width:680px){
  .study-page .study-content{padding:16px 14px calc(78px + env(safe-area-inset-bottom))}
  .study-nav{position:fixed;inset:auto 0 0;flex-wrap:nowrap;gap:2px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--study-line);border-bottom:0}
  .study-nav a{flex:1;min-width:0;min-height:44px;padding:4px 2px;font-size:13px}
  .study-nav [data-section="admin"]{display:none}
  .study-modules{grid-template-columns:1fr;gap:10px}
}
.study-content :is(.wrap,.box){width:100%;max-width:none;margin:0}
.study-content :is(.fb-form,.fb-item,.talk-card,.card){border-color:var(--study-line);background:#fff}
.study-content :is(.fb-submit,.talk-btn.on){background:var(--study-brand);color:white}
.study-content :is(.fb-tabs,.tabs) a.on{background:var(--study-soft);color:#204e36}
.study-content :is(.fb-form textarea,.fb-form select,.card textarea){border-color:var(--study-line);color:var(--study-ink);background:#fafcf9}
.study-me .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;padding:0;border:0;background:transparent}
.study-me .stats div{padding:10px 12px;border:1px solid var(--study-line);border-radius:10px;background:#fff}
.study-me .stats dt{font-size:13px;color:var(--study-muted)}
.study-me .stats dd{margin:4px 0 0;color:var(--study-brand);font-size:20px;font-weight:700}
.study-me .links{display:flex;flex-wrap:wrap;gap:8px 16px}
.study-me .links a{min-height:44px;align-content:center;color:var(--study-brand)}
.study-me .box{padding:0;border:0;box-shadow:none;background:transparent}
.study-me .mp-row{background:#fff;border-color:var(--study-line)}
.study-me .mp-bar i{background:var(--study-brand)}
@media(max-width:680px){.study-page .study-content :is(.wrap,.fb-list){padding-bottom:0}}
html:has(.study-shell){scroll-padding-top:74px}
@media(max-width:680px){html:has(.study-shell){scroll-padding-top:12px;scroll-padding-bottom:calc(66px + env(safe-area-inset-bottom))}}

.study-page .study-main{width:100%;min-width:0}
.study-page .study-content{width:100%;margin-inline:auto}
.study-nav .nav-icon{font-size:16px;line-height:1;color:var(--study-brand)}
.study-nav a:has(.nav-icon){gap:3px}
.study-me .links[aria-label]{margin-block:16px}
.study-me .links[aria-label] a{background:#fff;border:1px solid var(--study-line);border-radius:9px;padding:8px 12px;text-decoration:none}
