/* MindCheck unified responsive design: mobile app surfaces, fluid desktop workspace. */
:root{--mc-ui-radius:22px;--mc-ui-border:#dce7ec;--mc-ui-bg:#f3f7fb;--mc-ui-shadow:0 8px 30px rgba(24,49,76,.065)}
html{-webkit-text-size-adjust:100%;scroll-padding-bottom:130px}
body{overflow-x:clip}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid #287dd8!important;outline-offset:3px}
@media(max-width:699px){
 body{background:var(--mc-ui-bg)!important}
 main,body.mc-stage-dashboard main{width:100%;max-width:100%!important}
 .ac-card,.ac-list,.panel{border-radius:var(--mc-ui-radius)!important;box-shadow:var(--mc-ui-shadow)}
 .ac-card a,.mc-assessment-actions button,.mc-assessment-actions a{min-height:48px}
 .mc-premium-tabs{backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
}
@media(min-width:1100px){
 body.mc-stage-dashboard{--mc-premium-max:1600px}
 body.mc-stage-dashboard>header.mc-brand-nav{max-width:min(1680px,calc(100% - 70px))!important}
 body.mc-stage-dashboard #homeSection,
 body.mc-stage-dashboard #moodSection,
 body.mc-stage-dashboard #tipsSection,
 body.mc-stage-dashboard #helpSection,
 body.mc-stage-dashboard #badgesSection,
 body.mc-stage-dashboard #formContainer{width:min(1600px,calc(100% - 80px))!important;max-width:none!important}
 body.mc-stage-dashboard #homeSection .grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important}
 body.mc-stage-dashboard #homeSection .stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.mc-standalone-page main{max-width:min(1600px,calc(100% - 80px))!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
 body.mc-standalone-page .ac-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.mc-standalone-page .ac-header>div{max-width:1600px!important}
 body.mc-standalone-page .ac-card{min-width:0}
}
@media(min-width:1600px){
 body.mc-stage-dashboard #homeSection .grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.mc-standalone-page .ac-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Phase 2: deliberate native-app hierarchy and interaction states. */
body.mc-stage-dashboard #homeSection>h2{font-weight:850!important;letter-spacing:-.035em}
body.mc-stage-dashboard #homeSection>p{color:#526775!important;line-height:1.6}
body.mc-stage-dashboard #homeSection>h3{letter-spacing:-.025em}
body.mc-stage-dashboard #homeSection .grid .card{position:relative;isolation:isolate;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;overflow:hidden}
body.mc-stage-dashboard #homeSection .grid .card:focus-visible{border-color:#3186de!important}
body.mc-stage-dashboard #homeSection .grid .card:active{transform:scale(.985)}
body.mc-stage-dashboard #homeSection .grid .card .big{display:grid;place-items:center;width:56px;height:56px;border-radius:17px;background:linear-gradient(150deg,#f4f8ff,#e8f0fc);box-shadow:0 5px 13px rgba(21,63,112,.07)}
body.mc-stage-dashboard #homeSection .grid .card h3{line-height:1.25!important;letter-spacing:-.02em}
body.mc-stage-dashboard #homeSection .stats .pill{border-radius:16px!important}
body.mc-standalone-page .ac-card{transition:transform .2s ease,box-shadow .2s ease}
body.mc-standalone-page .ac-card a:active{transform:scale(.98)}
@media(hover:hover) and (pointer:fine){
 body.mc-stage-dashboard #homeSection .grid .card:hover{transform:translateY(-4px);box-shadow:0 18px 36px rgba(18,56,92,.11)!important;border-color:#c8ddeb!important}
 body.mc-standalone-page .ac-card:hover{transform:translateY(-2px);box-shadow:0 13px 33px rgba(18,56,92,.10)!important}
}
@media(max-width:699px){
 body.mc-stage-dashboard #homeSection{padding:18px 16px!important}
 body.mc-stage-dashboard #homeSection .grid{gap:12px!important}
 body.mc-stage-dashboard #homeSection .grid .card{padding:19px!important;min-height:0;border-radius:22px!important}
 body.mc-stage-dashboard #homeSection .grid .card .big{width:54px;height:54px}
 body.mc-stage-dashboard #homeSection .stats{gap:9px!important;margin:18px 0 25px!important}
 body.mc-stage-dashboard #homeSection .stats .pill{min-height:68px;padding:11px 8px!important}
}
@media(prefers-reduced-motion:reduce){
 body.mc-stage-dashboard #homeSection .grid .card,body.mc-standalone-page .ac-card{transition:none!important;transform:none!important}
}

/* Full native-inspired interface: shared surfaces, controls and primary screens. */
:root{--mc-native-surface:rgba(255,255,255,.96);--mc-native-ink:#153c35;--mc-native-muted:#526977;--mc-native-line:#dce8ee;--mc-native-tint:#eaf4fe}
body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection,#formContainer){
 color:var(--mc-native-ink)!important;border:1px solid var(--mc-native-line)!important;
 background:var(--mc-native-surface)!important;border-radius:28px!important;
 box-shadow:0 12px 38px rgba(19,45,75,.075)!important;
}
body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection) :is(h1,h2,h3){
 letter-spacing:-.028em;line-height:1.2;color:#153c35;
}
body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection) :is(button,.btn){
 border-radius:15px;min-height:44px;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection) button:active{transform:scale(.97)}
body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection) :is(input,select,textarea){
 border-radius:13px;font:inherit;max-width:100%;
}
body.mc-stage-dashboard #tipsSection :is(.tip-card,.mc-tip-card,details),
body.mc-stage-dashboard #helpSection :is(.card,details),
body.mc-stage-dashboard #badgesSection :is(.card,details){
 border-radius:20px;
}
body.mc-stage-dashboard #tipsSection .tip-filter{min-height:44px;border-radius:14px!important}
body.mc-stage-dashboard #tipsSection .tip-filter[aria-pressed=true]{
 background:#e5f1ff!important;border-color:#72a7ea!important;color:#0753a7!important;
}
body.mc-standalone-page :is(.ac-hero,.hero){border-radius:26px!important}
body.mc-standalone-page :is(.ac-card,.ac-list,.panel){background:rgba(255,255,255,.97)!important;border:1px solid var(--mc-native-line)!important}
body.mc-standalone-page :is(button,.ac-card a,.tools button){touch-action:manipulation}
@media(max-width:699px){
 body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection,#formContainer){
 width:calc(100% - 24px)!important;max-width:none!important;margin:14px auto 20px!important;
 padding:20px 15px!important;border-radius:24px!important;
 }
 body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection) :is(h1,h2){font-size:clamp(1.45rem,5vw,2rem)!important}
 body.mc-stage-dashboard #tipsSection .tip-filter{padding:10px 13px!important}
 body.mc-standalone-page :is(.ac-card,.ac-list,.panel){padding:18px!important}
}
@media(min-width:1100px){
 body.mc-stage-dashboard :is(#tipsSection,#helpSection,#badgesSection,#formContainer){width:min(1600px,calc(100% - 80px))!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;padding:clamp(28px,3vw,54px)!important}
 body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection) :is(h1,h2){max-width:100%}
}
@media(hover:hover) and (pointer:fine){
 body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection) button:hover{box-shadow:0 5px 15px rgba(20,56,88,.12)}
}
@media(prefers-reduced-motion:reduce){
 body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection) :is(button,.btn){transition:none!important;transform:none!important}
}

/* Signature MindCheck experience: calm, tactile, native-inspired—not a copy of iOS. */
:root{--mc-signature-primary:#106e60;--mc-signature-blue:#1769ca;--mc-signature-ink:#152f35;--mc-signature-glass:rgba(255,255,255,.84);--mc-signature-glow:0 15px 42px rgba(17,65,94,.10)}
body.mc-stage-dashboard,body.mc-standalone-page{
 background:radial-gradient(ellipse 70% 35% at 0% 0%,rgba(204,244,232,.65),transparent 75%),radial-gradient(ellipse 60% 38% at 100% 18%,rgba(210,230,255,.58),transparent 80%),#f4f8fb!important;
 color:var(--mc-signature-ink);
}
body.mc-stage-dashboard #homeSection>h2{font-size:clamp(1.8rem,4vw,3.25rem)!important;letter-spacing:-.045em!important;line-height:1.08!important}
body.mc-stage-dashboard #homeSection>h3{font-size:clamp(1.26rem,2.3vw,1.75rem)!important}
body.mc-stage-dashboard #homeSection .grid .card{
 border:1px solid rgba(220,235,241,.97)!important;
 background:linear-gradient(160deg,rgba(255,255,255,.99),rgba(247,252,253,.97))!important;
 box-shadow:0 12px 32px rgba(20,62,91,.065),inset 0 1px rgba(255,255,255,.95)!important;
 border-radius:26px!important;
}
body.mc-stage-dashboard #homeSection .grid .card .big{
 background:linear-gradient(145deg,#e8f7f2,#dbeeff)!important;
 border:1px solid rgba(189,222,222,.8)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 18px rgba(20,84,100,.08)!important;
}
body.mc-stage-dashboard :is(#moodSection,#tipsSection,#helpSection,#badgesSection,#formContainer){
 background:linear-gradient(155deg,rgba(255,255,255,.98),rgba(249,252,254,.95))!important;
 border-color:rgba(213,229,237,.95)!important;
 box-shadow:0 18px 48px rgba(25,66,93,.08),inset 0 1px 0 white!important;
}
body.mc-standalone-page :is(.ac-card,.ac-list,.panel){
 background:linear-gradient(160deg,#fff,#f9fcfd)!important;
 box-shadow:0 12px 35px rgba(25,66,93,.065)!important;
 border-radius:24px!important;
}
body.mc-stage-dashboard .mc-premium-tabs,
body.mc-standalone-page .mc-premium-tabs{
 background:var(--mc-signature-glass)!important;
 backdrop-filter:saturate(1.65) blur(26px)!important;
 -webkit-backdrop-filter:saturate(1.65) blur(26px)!important;
 border-top:1px solid rgba(255,255,255,.92)!important;
 box-shadow:0 -8px 35px rgba(17,57,92,.10)!important;
}
@media(max-width:699px){
 body.mc-stage-dashboard #homeSection .grid .card{padding:20px!important;border-radius:24px!important}
 body.mc-standalone-page .ac-hero{padding:24px!important;border-radius:25px!important}
 body.mc-stage-dashboard #homeSection>h2{font-size:clamp(1.75rem,8vw,2.35rem)!important}
}
@media(min-width:1100px){
 body.mc-stage-dashboard #homeSection .grid{gap:24px!important}
 body.mc-stage-dashboard #homeSection .grid .card{min-height:205px}
 body.mc-standalone-page :is(.ac-grid,.grid){gap:20px!important}
}
@media(prefers-reduced-motion:reduce){
 body.mc-stage-dashboard #homeSection .grid .card{animation:none!important;transition:none!important}
}

/* Screen composition: calm, deliberate hierarchy for Mood and Wellness. */
body.mc-stage-dashboard #moodSection .mc-section-intro{max-width:560px;margin:0 auto 24px!important;color:#596d77!important;font-size:clamp(.95rem,1.5vw,1.08rem);line-height:1.65}
body.mc-stage-dashboard #moodSection .mood-row{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px!important;max-width:820px!important;margin:0 auto 20px!important}
body.mc-stage-dashboard #moodSection .mood-row .mood{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:110px;padding:14px 7px!important;border:1px solid #dce9f1!important;border-radius:22px!important;background:linear-gradient(155deg,#fff,#f3f8fc)!important;box-shadow:0 7px 20px rgba(12,62,91,.07)!important;font-size:clamp(1.6rem,3vw,2.3rem);transition:transform .18s ease,border-color .18s ease,background .18s ease!important}
body.mc-stage-dashboard #moodSection .mood-row .mood .mood-label{font-size:clamp(.72rem,1.2vw,.94rem)!important;font-weight:650;line-height:1.25;margin-top:7px}
body.mc-stage-dashboard #moodSection .mood-row .mood:focus-visible{border-color:#1876d2!important}
body.mc-stage-dashboard #moodSection .mood-row .mood:active{transform:scale(.96)!important}
body.mc-stage-dashboard #tipsSection .toolbar[aria-label="Filter tips"]{display:flex;flex-wrap:wrap;gap:9px!important;padding:8px!important;background:#f3f7fa;border-radius:19px;max-width:100%}
body.mc-stage-dashboard #tipsSection .toolbar[aria-label="Filter tips"] .tip-filter{flex:1 0 auto;padding:10px 15px!important;border-radius:13px!important;font-weight:650}
body.mc-stage-dashboard #tipsSection #tipText{font-size:clamp(1.04rem,2vw,1.25rem)!important;line-height:1.7!important;letter-spacing:-.012em}
body.mc-stage-dashboard #tipsSection :is(#tipSaveBtn,#tipDoneBtn,#nextTip){min-height:48px;border-radius:15px!important}
@media(max-width:699px){
 body.mc-stage-dashboard #moodSection .mood-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.mc-stage-dashboard #moodSection .mood-row .mood{min-height:105px!important;padding:13px 8px!important}
 body.mc-stage-dashboard #moodSection .mood-row .mood:last-child:nth-child(odd){grid-column:1 / -1}
 body.mc-stage-dashboard #tipsSection .toolbar[aria-label="Filter tips"]{gap:6px!important;padding:6px!important}
 body.mc-stage-dashboard #tipsSection .toolbar[aria-label="Filter tips"] .tip-filter{font-size:.85rem!important;padding:10px 11px!important}
}
@media(hover:hover) and (pointer:fine){body.mc-stage-dashboard #moodSection .mood-row .mood:hover{transform:translateY(-3px);border-color:#a5c9df!important}}
@media(prefers-reduced-motion:reduce){body.mc-stage-dashboard #moodSection .mood-row .mood{transition:none!important;transform:none!important}}
