/* Needs-first Emotional Calculator v3. Scope to post-home navigator and activities only. */
body.app-body.ns-shell-v1 #main .ns-needs{
 --need-ink:#244735;--need-muted:#62776a;--need-edge:#d9e6da;--need-paper:#fffdf7;
 max-width:970px;margin:auto;padding:clamp(13px,2.7vw,29px) clamp(10px,2.7vw,30px) 90px;
 color:var(--need-ink);font-family:system-ui,-apple-system,sans-serif;line-height:1.6;
}
body.app-body.ns-shell-v1 #main .ns-needs *{box-sizing:border-box;}
body.app-body.ns-shell-v1 #main .ns-needs :is(button,a,input,select,textarea):focus-visible{
 outline:3px solid #b28347;outline-offset:3px;
}
body.app-body.ns-shell-v1 #main .ns-needs :is(button,textarea,input,select){font-family:inherit;}
body.app-body.ns-shell-v1 #main .ns-needs-top{
 display:flex;gap:13px;justify-content:space-between;align-items:center;flex-wrap:wrap;
 font-size:12px;margin-bottom:14px;font-weight:700;
}
body.app-body.ns-shell-v1 #main .ns-needs-top a{color:#447655;text-decoration:none;min-height:35px;display:inline-flex;align-items:center;}
body.app-body.ns-shell-v1 #main .ns-needs-top a:last-child{color:#84684b;text-decoration:underline;text-underline-offset:3px;}
body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-hero,.ns-needs-header){
 background:linear-gradient(125deg,#fffaf0 15%,#ecf5e9 100%);
 border:1px solid #e0e7d9;border-radius:24px;padding:clamp(24px,4.5vw,44px);
 box-shadow:0 9px 23px #28442d0a;margin:0 0 15px;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-eyebrow{
 letter-spacing:.15em;font:800 10px/1.4 system-ui,sans-serif;color:#4a6753;margin:0 0 11px;
}
body.app-body.ns-shell-v1 #main .ns-needs h1{
 font:750 clamp(30px,4.5vw,48px)/1.11 Georgia,serif;
 letter-spacing:-.03em;color:#1e4535;margin:0 0 12px;
}
body.app-body.ns-shell-v1 #main .ns-needs h2{
 font:750 clamp(21px,2.7vw,28px)/1.26 Georgia,serif;
 color:#2d573e;margin:0 0 12px;
}
body.app-body.ns-shell-v1 #main .ns-needs h3{font:750 18px/1.33 Georgia,serif;color:#30583d;margin:0 0 8px;}
body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-hero,.ns-needs-header)>p:not(.ns-needs-eyebrow){
 font:400 14px/1.65 system-ui,sans-serif;color:#405b49;max-width:70ch;margin:0;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-panel{
 background:var(--need-paper);border:1px solid var(--need-edge);border-radius:20px;
 padding:clamp(19px,3.3vw,33px);box-shadow:0 8px 21px #223c220a;
}
body.app-body.ns-shell-v1 #main .ns-needs-panel>.ns-needs-sub{font:400 13px/1.58 system-ui,sans-serif;color:#405a46;margin:0 0 18px;}
body.app-body.ns-shell-v1 #main .ns-needs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-mode{
 display:grid;grid-template-columns:37px minmax(0,1fr) 20px;gap:12px;align-items:center;
 min-height:104px;padding:18px;text-decoration:none;border:1px solid #d9e5d4;
 border-radius:16px;background:#edf5e9;color:#264d35;
 transition:box-shadow .15s,transform .15s,border-color .15s;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-mode:hover{
 transform:translateY(-2px);border-color:#90ad99;box-shadow:0 6px 14px #233b230f;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-mode strong,
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-choice strong,
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-topic strong{
 display:block;font:750 15px/1.35 system-ui,sans-serif;margin-bottom:5px;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-mode small,
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-choice small,
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-topic small{
 display:block;font:400 12px/1.5 system-ui,sans-serif;color:#3b5945;
}
body.app-body.ns-shell-v1 #main .ns-needs-mode-mark{
 display:grid;place-items:center;width:36px;height:36px;background:#ffffffa8;
 color:#3b7654;border-radius:12px;font:750 22px Georgia,serif;
}
body.app-body.ns-shell-v1 #main .ns-needs-next{font-size:19px;color:#527b59;justify-self:end;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-tone-sage{background:#e9f3e3;border-color:#d1e3cc;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-tone-rose{background:#f8eae8;border-color:#efd8d3;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-tone-blue{background:#e8f0f6;border-color:#d7e4ee;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-tone-gold{background:#faf0da;border-color:#eae0c8;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-tone-peach{background:#fbede3;border-color:#f0ded3;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-tone-lilac{background:#f1eaf5;border-color:#e8dbee;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-tone-slate{background:#e8eeec;border-color:#d8e3df;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-mode:last-child:nth-child(odd){grid-column:1/-1;min-height:86px;}
body.app-body.ns-shell-v1 #main .ns-needs-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-choice,.ns-needs-topic){
 display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:76px;
 border:1px solid #d9e6d7;border-radius:14px;background:#f4f8f2;
 color:#325742;text-decoration:none;padding:14px 16px;
}
body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-choice,.ns-needs-topic):hover{
 background:#eaf4e8;border-color:#9ac19e;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-footnote{
 font:400 12px/1.6 system-ui,sans-serif;color:#435a49;margin:16px 0;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-footnote a{color:#32744e;font-weight:750;}
/* One optional filter within the same uninterrupted card grid. */
body.app-body.ns-shell-v1 #main .ns-needs-filter-label{
 display:block;font:750 12px/1.5 system-ui,sans-serif;color:#3d6549;margin:0 0 7px;
}
body.app-body.ns-shell-v1 #main .ns-needs #needs-choice-filter{
 width:100%;min-height:44px;background:#fff;border:1px solid #bdd5c0;border-radius:12px;
 padding:10px 14px;font:400 14px system-ui,sans-serif;color:#28553b;margin:0 0 10px;
}
body.app-body.ns-shell-v1 #main .ns-needs-filter-count{
 font:600 12px/1.5 system-ui,sans-serif;color:#47624e;margin:0 0 10px;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-choice[hidden]{display:none!important;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-sr{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;
 overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-process-track{
 height:7px;background:#e5e9dc;border-radius:99px;overflow:hidden;margin:5px 0 26px;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-process-track span{
 display:block;height:100%;background:#7eaa87;border-radius:99px;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-process-studio h2{max-width:76ch;margin-bottom:18px;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-process-studio textarea{
 width:100%;min-height:190px;resize:vertical;background:#fff;
 border:1px solid #bcd2c0;border-radius:13px;padding:15px;
 font:400 14px/1.6 system-ui,sans-serif;color:#254e37;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-actions{
 display:flex;flex-wrap:wrap;gap:9px;margin-top:19px;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-actions button,
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-action-link{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:42px;border-radius:11px;background:#337755;color:#fff;
 border:1px solid #327751;padding:10px 14px;cursor:pointer;text-decoration:none;
 font:750 12px/1.4 system-ui,sans-serif;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-actions .secondary{
 color:#37684a;background:#f1f7ed;border-color:#cbdccb;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-actions button[disabled]{opacity:.48;cursor:not-allowed;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-process-finish{text-align:center;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-process-finish>p{font:400 14px/1.65 system-ui,sans-serif;color:#59745f;}
body.app-body.ns-shell-v1 #main .ns-needs-finish-icon{font-size:36px;color:#a77a88;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-steady-options{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-steady-options button{
 padding:10px 13px;min-height:42px;border-radius:12px;background:#f3f7ef;
 border:1px solid #cddfca;cursor:pointer;color:#447653;font:750 12px/1.4 system-ui,sans-serif;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-steady-options button[aria-pressed=true]{background:#32704d;color:#fff;border-color:#32704d;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-steady-content{
 border:1px solid #d4e1d1;border-radius:15px;background:#f4f9f0;padding:clamp(16px,3vw,24px);
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-steady-content li{
 margin-bottom:13px;line-height:1.6;font-size:14px;padding-left:3px;
}
body.app-body.ns-shell-v1 #main .ns-needs .ns-steady-content p{font:400 12px/1.6 system-ui,sans-serif;color:#46624c;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-alert{background:#fff1db;color:#684b2b;padding:18px;border:1px solid #dfca9e;border-radius:15px;margin:0 0 15px;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-alert p{font:400 13px/1.5 system-ui,sans-serif;}
body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-alert a{color:#795027;font-weight:800;}
body.app-body.ns-shell-v1 #main .ns-needs-support-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.app-body.ns-shell-v1 #main .ns-needs-support-list article{
 padding:18px;border:1px solid #e0e5d8;border-radius:13px;background:#f7f8f2;
}
body.app-body.ns-shell-v1 #main .ns-needs-support-list p{font:400 13px/1.55 system-ui,sans-serif;color:#5e7462;}
body.app-body.ns-shell-v1 #main .ns-needs-support-list a{color:#2f7050;font-weight:750;font-size:12px;}
@media(max-width:540px){
 body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-grid,.ns-needs-choices,.ns-needs-subjects,.ns-needs-support-list){grid-template-columns:1fr;}
 body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-mode:last-child:nth-child(odd){grid-column:auto;}
 body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-mode{min-height:85px;}
 body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-panel{padding:18px;}
 body.app-body.ns-shell-v1 #main .ns-needs .ns-needs-actions :is(a,button){flex:1 1 120px;}
}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs{
 --need-ink:#e8f2e8;--need-muted:#c7dccc;--need-edge:#59725b;--need-paper:#203829;color:#edf5e9;
}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-hero,.ns-needs-header,.ns-needs-panel){background:#213c2c;border-color:#5c8065;}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs :is(h1,h2,h3){color:#f0f8ef;}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-mode,.ns-needs-choice,.ns-needs-topic,.ns-steady-content,.ns-needs-support-list article){background:#32503b!important;color:#ecf3ea!important;border-color:#648469!important;}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-choice small,.ns-needs-mode small,.ns-needs-topic small,.ns-needs-hero>p,.ns-needs-header>p,.ns-needs-footnote){color:#c5dac9!important;}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs :is(textarea,input){background:#1b3326!important;color:#f2f8ed!important;border-color:#729576!important;}
@media(prefers-reduced-motion:reduce){body.app-body.ns-shell-v1 #main .ns-needs *{transition:none!important;animation:none!important;scroll-behavior:auto!important;}}
@media print{
 body.app-body.ns-shell-v1 #main .ns-needs-top,body.app-body.ns-shell-v1 #main .ns-needs-actions{display:none!important;}
}


/* Topic browser: 11 equally weighted themes are the only follow-up choices.
 * Search is secondary and does not add a second row of shortcuts. */
body.app-body.ns-shell-v1 #main .ns-needs-browse{max-width:100%;}
body.app-body.ns-shell-v1 #main .ns-needs-browse>.ns-needs-sub{margin-bottom:19px;}
body.app-body.ns-shell-v1 #main .ns-needs-theme-section{margin-bottom:20px;padding:0;border:0;}
body.app-body.ns-shell-v1 #main .ns-needs-browse .ns-needs-filter-label{
 margin:18px 0 7px;padding-top:17px;border-top:1px solid var(--need-edge);
}
body.app-body.ns-shell-v1 #main .ns-needs-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
body.app-body.ns-shell-v1 #main .ns-needs-theme{
 display:grid;grid-template-columns:36px minmax(0,1fr) 19px;align-items:center;gap:12px;
 text-align:left;min-height:108px;padding:17px;background:#f0f5ed;border:1px solid #d1e0d0;
 border-radius:17px;color:#28513c;cursor:pointer;transition:background .15s,border-color .15s;
}
body.app-body.ns-shell-v1 #main .ns-needs-theme:hover,
body.app-body.ns-shell-v1 #main .ns-needs-theme[aria-expanded=true]{background:#e6efdf;border-color:#92b39a;}
body.app-body.ns-shell-v1 #main .ns-needs-theme-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#fff9ed;font-size:22px;color:#3b7654;}
body.app-body.ns-shell-v1 #main .ns-needs-theme strong{display:block;font-size:15px;line-height:1.35;margin-bottom:3px;}
body.app-body.ns-shell-v1 #main .ns-needs-theme small{display:block;font-size:12px;line-height:1.45;color:#4b6654;}
body.app-body.ns-shell-v1 #main .ns-needs-theme em{display:inline-block;font:650 11px/1.4 system-ui,sans-serif;color:#58725e;margin-top:6px;font-style:normal;}
body.app-body.ns-shell-v1 #main .ns-needs-topic-panel{padding-top:20px;margin-top:16px;border-top:1px solid var(--need-edge);}
body.app-body.ns-shell-v1 #main .ns-needs-topic-panel[hidden],
body.app-body.ns-shell-v1 #main .ns-needs-theme-section[hidden]{display:none!important;}
body.app-body.ns-shell-v1 #main .ns-needs-topic-heading{margin-bottom:12px;}
body.app-body.ns-shell-v1 #main .ns-needs-back-themes{border:0;background:none;color:#32734d;font:750 12px system-ui,sans-serif;cursor:pointer;padding:8px 0;min-height:42px;}
body.app-body.ns-shell-v1 #main .ns-needs-topic-heading h3{font:750 clamp(20px,2.5vw,25px)/1.24 Georgia,serif;margin:5px 0;}
body.app-body.ns-shell-v1 #main .ns-needs-topic-heading p{color:#56715c;font-size:13px;margin:0;}
body.app-body.ns-shell-v1 #main .ns-needs-more{display:block;margin:15px auto 0;min-height:44px;border:1px solid #a4c1ab;background:#edf6ea;border-radius:12px;padding:10px 22px;color:#27533c;font-weight:750;cursor:pointer;}
body.app-body.ns-shell-v1 #main .ns-needs-more[hidden]{display:none;}
body.app-body.ns-shell-v1 #main .ns-needs-empty{grid-column:1/-1;color:#4e6955;font-size:13px;}
body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-choice,.ns-needs-theme){box-shadow:none!important;}
@media(max-width:620px){
 body.app-body.ns-shell-v1 #main .ns-needs-theme-grid{grid-template-columns:1fr;}
 body.app-body.ns-shell-v1 #main .ns-needs-theme{min-height:84px;padding:14px;}
}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-theme,.ns-needs-more){background:#31503b;color:#f0f7ee;border-color:#6a8a6d;}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-theme small,.ns-needs-theme em,.ns-needs-topic-heading p){color:#cfe2d0;}
html[data-theme=dark] body.app-body.ns-shell-v1 #main .ns-needs :is(.ns-needs-back-themes,.ns-needs-topic-heading h3){color:#edf7eb;}

/* Keep the theme cards balanced in height rather than magnifying the last card. */
body.app-body.ns-shell-v1 #main .ns-needs-theme-grid{align-items:stretch;}
body.app-body.ns-shell-v1 #main .ns-needs-theme{height:100%;min-height:100px;}
body.app-body.ns-shell-v1 #main .ns-needs-theme em{white-space:nowrap;}


/* Second level of the problem navigator: narrower areas before topic cards. */
body.app-body.ns-shell-v1 #main .ns-needs-subdomain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:18px}
body.app-body.ns-shell-v1 #main .ns-needs-subdomain{
 display:grid;grid-template-columns:36px minmax(0,1fr) 19px;align-items:center;gap:12px;
 min-height:100px;padding:16px;text-align:left;background:#f1f5ec;border:1px solid #d1e0d0;
 border-radius:16px;color:#28513c;cursor:pointer;transition:background .15s,border-color .15s,transform .15s;
}
body.app-body.ns-shell-v1 #main .ns-needs-subdomain:hover,
body.app-body.ns-shell-v1 #main .ns-needs-subdomain:focus-visible{background:#e6efdf;border-color:#92b39a;transform:translateY(-1px)}
body.app-body.ns-shell-v1 #main .ns-needs-subdomain strong{display:block;font:750 15px/1.35 system-ui,sans-serif;margin-bottom:4px}
body.app-body.ns-shell-v1 #main .ns-needs-subdomain small{display:block;font:400 12px/1.5 system-ui,sans-serif;color:#4b6654}
body.app-body.ns-shell-v1 #main .ns-needs-subdomain em{display:block;margin-top:7px;font:700 11px/1.3 system-ui,sans-serif;color:#477453;font-style:normal}
body.app-body.ns-shell-v1 #main .ns-needs-stage-back{display:inline-flex;align-items:center;min-height:42px;margin:4px 0 12px;padding:6px 10px;border:0;background:transparent;color:#32734d;font:750 12px system-ui,sans-serif;cursor:pointer}
body.app-body.ns-shell-v1 #main .ns-needs-search-results{margin-top:18px}
body.app-body.ns-shell-v1 #main .ns-needs-sub{max-width:72ch;color:#56715c;font-size:13px;line-height:1.55}
@media(max-width:650px){
 body.app-body.ns-shell-v1 #main .ns-needs-subdomain-grid{grid-template-columns:1fr}
}
