/* mecon. Build 15 — Mobile-first editorial polish.
   Values: electric blue, sun yellow, lavender, plenty of quiet space.
   Thai and English typography are tuned independently. */
:root{--me-yellow:#FFDB36;--me-blue:#2948F5;--me-lilac:#C8B5FF;--me-cream:#FCFCF8;--me-ink:#111947}
html{font-size:16px;text-size-adjust:100%;-webkit-text-size-adjust:100%}
html[lang="th"] body,html[lang="th"] input,html[lang="th"] select,
html[lang="th"] textarea,html[lang="th"] button{
 font-family:"LINE Seed Sans TH","Noto Sans Thai",Tahoma,sans-serif!important;
 font-kerning:normal;letter-spacing:0}
html[lang="en"] body,html[lang="en"] input,html[lang="en"] select,
html[lang="en"] textarea,html[lang="en"] button{
 font-family:"Plus Jakarta Sans",sans-serif!important}
body{color:var(--me-ink);background-color:var(--me-cream)}
#app .tab-panel{min-width:0}
#app .tab-panel h1,#app .tab-panel h2,#app .tab-panel h3{
 overflow-wrap:normal;word-break:normal;text-wrap:pretty;letter-spacing:-.025em;line-height:1.3}
html[lang="th"] #app .tab-panel h1,
html[lang="th"] #app .tab-panel h2,
html[lang="th"] #app .tab-panel h3,
html[lang="th"] .auth-heading h2{letter-spacing:0!important;line-height:1.45}
#app .tab-panel p{line-height:1.7;letter-spacing:0}
#app .eyebrow,#app .dashboard-eyebrow,#app .dashboard-editorial-copy>span,
#app .form-kicker{font-family:"Plus Jakarta Sans",sans-serif!important;font-size:10px;line-height:1.4;letter-spacing:.08em}
#app .dashboard-main-card,#app .dashboard-editorial{overflow:hidden}
#app .dashboard-main-card h3,#app .dashboard-editorial h1{max-width:100%}
#app .dashboard-editorial .dashboard-editorial-copy p{color:#4B4A70}
#app .dashboard-editorial[data-visual-background="home-banner"]{
 border-radius:28px;background-color:#F0EAFF;
 background-image:radial-gradient(ellipse at 100% 90%,rgba(200,181,255,.58),transparent 64%),url("./assets/backgrounds/03-bg-desktop-minimal.webp");
 border:1px solid #ECE5FF;box-shadow:none}
#app .dashboard-main-card[data-visual-background="home-card"]{
 background-color:#FFDB36;
 border:1px solid #F4CF29;box-shadow:none;
 background-image:radial-gradient(circle at 105% -5%,#FFF3AC 0 19%,transparent 19.3%)}
#app .dashboard-main-card[data-visual-background="home-card"] h3{font-size:clamp(24px,3vw,35px)}
#app .dashboard-main-card[data-visual-background="home-card"] .dash-arrow{background:#fff;color:var(--me-blue)}
#app .studio-companion{border-radius:24px;padding:17px 20px}
#app .studio-companion p{max-width:36ch}
#app #library .ideas-library-heading.visual-heading{
 border:1px solid #EEE9F6;background-color:#F4EEFF;
 background-image:radial-gradient(circle at 86% 75%,rgba(255,219,54,.3),transparent 42%);
}
#app #library .ideas-library-heading.visual-heading h2{margin:5px 0 8px}
#app #library .visual-heading-mascot{filter:drop-shadow(0 6px 16px #28215a19)}
#app .plan-hero,#app .profile-hero{border:1px solid #E9E2FA}
#app .plan-hero h2,#app .profile-hero h2{margin:4px 0 4px}
#app .profile-character-row{border-radius:24px}
#app .creative-form{overflow:hidden}
#app .creative-form input,#app .creative-form select,#app .creative-form textarea{min-width:0}
#app .creative-form .form-intro h2{max-width:26ch}
#app .tabs{z-index:50}
#app .tabs button{touch-action:manipulation}
#app .tabs button:focus-visible,#app .dash-arrow:focus-visible{outline:3px solid #111947;outline-offset:3px}
@media(min-width:761px){
 #app .dashboard-editorial{padding:32px 34px!important;align-items:center}
 #app .dashboard-editorial-copy h1{font-size:clamp(34px,4vw,60px);line-height:1.2}
 #app .dashboard-editorial>img{max-width:40%;object-fit:contain}
 #app .dashboard-main-card{padding:28px 36px}
}
@media(max-width:760px){
 body:has(#app:not([hidden])) .shell{width:100%;max-width:none;padding:0 16px!important;overflow-x:clip}
 body:has(#app:not([hidden])) .topbar{height:auto;min-height:58px;padding:8px 0 4px;margin-bottom:6px}
 body:has(#app:not([hidden])) .topbar .logo{font-size:clamp(24px,6.3vw,30px)}
 body:has(#app:not([hidden])) #status{margin:0 0 12px;min-height:0;font-size:14px}
 #app{padding-bottom:110px}
 #app .dashboard-heading{margin:16px 0 15px;gap:10px;align-items:center}
 #app .dashboard-heading-copy h2{font-size:clamp(22px,5.4vw,29px);margin:1px 0 2px}
 #app .dashboard-heading-copy>p{font-size:13px;line-height:1.5}
 #app .dashboard-avatar{width:54px;height:54px;min-width:54px}
 #app .dashboard-eyebrow{font-size:9px;letter-spacing:.04em}
 #app .me-companion-note{border-radius:18px;padding:13px 15px;margin:0 0 17px;min-height:54px}
 #app .dashboard-editorial[data-visual-background="home-banner"]{
  display:grid!important;grid-template-columns:minmax(0,1fr) 33%!important;
  padding:22px 18px 20px!important;min-height:195px!important;
  gap:8px;align-items:center;border-radius:24px;margin:0 0 14px;
  background-position:center;background-size:cover}
 #app .dashboard-editorial-copy{min-width:0;align-self:center}
 #app .dashboard-editorial-copy>span{font-size:9px}
 #app .dashboard-editorial-copy h1{
  font-size:clamp(25px,6.2vw,34px)!important;line-height:1.42!important;
  margin:6px 0 8px;letter-spacing:0!important;
  word-break:keep-all;overflow-wrap:normal}
 #app .dashboard-editorial-copy p{
  font-size:12px!important;line-height:1.65;margin:0;max-width:28ch}
 #app .dashboard-editorial>img{
  display:block;width:100%;height:158px;max-height:158px;align-self:end;
  object-fit:contain;object-position:center bottom;transform:none!important;
  filter:drop-shadow(0 11px 17px #24206a22)}
 #app .dashboard-main-card[data-visual-background="home-card"]{
  display:grid!important;grid-template-columns:minmax(0,1fr) 31%!important;
  gap:5px;align-items:center;min-height:204px!important;
  padding:23px 18px!important;border-radius:24px;margin-top:0}
 #app .dash-main-copy{min-width:0}
 #app .dashboard-main-card .eyebrow{font-size:9px}
 #app .dashboard-main-card h3{
  font-size:clamp(22px,5.35vw,29px)!important;
  line-height:1.42!important;letter-spacing:0!important;
  margin:8px 0 7px;overflow-wrap:normal;word-break:keep-all}
 #app .dashboard-main-card p{font-size:12px!important;line-height:1.6;max-width:28ch;margin:0 0 12px}
 #app .dashboard-feature-mascot{
  width:100%;height:163px;max-height:163px;align-self:end;
  object-position:center bottom;transform:none!important}
 #app .dashboard-main-card .dash-arrow{width:44px;height:44px;min-height:44px}
 #app .dashboard-section-title{font-size:20px;margin:30px 0 15px}
 #app .feature-tiles{gap:12px}
 #app .feature-tile{border-radius:22px;min-height:166px;padding:17px}
 #app .feature-tile strong{font-size:15px;line-height:1.5}
 #app #library .ideas-library-heading.visual-heading{
  display:grid;grid-template-columns:minmax(0,1fr) 92px;
  min-height:145px;padding:18px;border-radius:24px;gap:8px;
 }
 #app #library .ideas-library-heading h2{font-size:clamp(23px,6.3vw,31px);line-height:1.45}
 #app #library .ideas-library-heading p{font-size:12px;line-height:1.65}
 #app #library .visual-heading-mascot{width:92px;height:118px}
 #app #studio .studio-companion{gap:12px;margin-top:16px;padding:15px 16px}
 #app #studio .studio-3d-trigger{flex-shrink:0}
 #app #studio .studio-companion p{font-size:13px}
 #app .creative-form .form-intro{padding:24px 18px}
 #app .creative-form .form-intro h2{font-size:clamp(24px,6vw,30px);line-height:1.45}
 #app .creative-form .form-section-heading strong{font-size:16px}
 #app .creative-form .fields{min-width:0}
 #app .creative-form .creative-field{border-radius:20px}
 #app .plan-hero,#app .profile-hero{
  display:grid;grid-template-columns:minmax(0,1fr) 34%;
  align-items:center;min-height:154px;
  padding:20px 17px 16px!important;border-radius:24px}
 #app .plan-hero>img,#app .profile-hero>img{
  width:100%;max-width:100%;max-height:145px;
  height:135px;align-self:end;object-fit:contain;transform:none!important}
 #app .plan-hero h2,#app .profile-hero h2{font-size:clamp(24px,6vw,32px);line-height:1.4}
 #app .plan-hero .hint,#app .profile-hero .hint{font-size:12px;line-height:1.6}
 #app .tabs{
  left:12px!important;right:12px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
  width:auto!important;max-width:none!important;transform:none!important;
  border-radius:22px!important;padding:6px!important;gap:1px!important;
  box-shadow:0 8px 29px #15228a21;min-height:68px;align-items:stretch}
 #app .tabs button{min-width:0;flex:1;min-height:56px;padding:7px 2px!important;border-radius:16px!important;font-size:10px!important;gap:4px}
 #app .tabs button svg{width:21px!important;height:21px!important}
 #app .tabs button span{font-size:10px!important;white-space:nowrap}
 #app .tabs button.active{background:var(--me-yellow)}
}
@media(max-width:375px){
 #app .dashboard-editorial[data-visual-background="home-banner"]{grid-template-columns:minmax(0,1fr) 29%!important;padding:19px 14px!important}
 #app .dashboard-editorial-copy h1{font-size:24px!important}
 #app .dashboard-main-card[data-visual-background="home-card"]{grid-template-columns:minmax(0,1fr) 29%!important;padding:20px 14px!important}
 #app .dashboard-main-card h3{font-size:21px!important}
 #app .dashboard-editorial>img,#app .dashboard-feature-mascot{height:132px}
}
@media(prefers-reduced-motion:reduce){
 #app .dashboard-editorial>img,#app .dashboard-feature-mascot{animation:none!important}
}
