/* Meta glasses guide v6. Theme owns font, header, breadcrumbs, H1 and footer.
   Everything here is scoped to .mg. Spacing steps: 4 8 12 16 24 32 48 64. */
body.se-meta-guide .entry-header{max-width:1120px;margin-inline:auto}
body.se-meta-guide .entry-header .entry-title{text-wrap:balance}


#se-meta-guide{
  --mg-ink:#24221d; --mg-text:#3d3a33; --mg-muted:#625e55; --mg-line:#e3ddd2; --mg-line-strong:#cfc6b6;
  --mg-paper:#ffffff; --mg-cream:#f7f3eb; --mg-sand:#efe5d3; --mg-gold:#e4cda7; --mg-gold-hover:#d8bd8f;
  --mg-brown:#6b5030; --mg-ok:#1d6b43; --mg-ok-bg:#e8f3ec; --mg-warn:#8f2f12; --mg-warn-bg:#fbeee7;
  --mg-focus:#0a58ca; --mg-ease:cubic-bezier(0.23,1,0.32,1);
  max-width:1120px; margin:0 auto; color:var(--mg-text); font-size:16px; line-height:1.6;
  -webkit-tap-highlight-color:transparent;
}
#se-meta-guide *,#se-meta-guide *::before,#se-meta-guide *::after{box-sizing:border-box}
#se-meta-guide [hidden]{display:none!important}
#se-meta-guide :is(h2,h3,h4){color:var(--mg-ink);letter-spacing:normal;text-transform:none;text-wrap:balance;margin:0}
#se-meta-guide h2{font-size:24px;line-height:1.3;font-weight:600}
#se-meta-guide h3{font-size:20px;line-height:1.4;font-weight:600}
#se-meta-guide h4{font-size:17px;line-height:1.45;font-weight:600}
#se-meta-guide p{margin:0;text-wrap:pretty}
#se-meta-guide ul,#se-meta-guide ol{margin:0;padding:0;list-style:none}
#se-meta-guide li{margin:0}
#se-meta-guide a{color:var(--mg-brown);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:from-font}
#se-meta-guide img{max-width:100%;height:auto}
#se-meta-guide :is(a,button,input,summary,label):focus-visible{outline:3px solid var(--mg-focus);outline-offset:2px;border-radius:8px}
#se-meta-guide :is(section,details,h2,h3,h4,[id]){scroll-margin-top:88px}
#se-meta-guide .mg-icon{width:24px;height:24px;flex:0 0 24px}

/* sections */
#se-meta-guide .mg-sec{margin-block:48px}
#se-meta-guide .mg-sec>h2{margin-bottom:8px}
#se-meta-guide .mg-sec-lead{color:var(--mg-muted);margin-bottom:24px;max-width:62ch}

/* buttons */
#se-meta-guide .mg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;
  border-radius:8px;border:1px solid transparent;font:inherit;font-size:16px;font-weight:600;line-height:1.3;
  text-align:center;text-decoration:none;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;
  transition:transform 160ms var(--mg-ease),background-color 150ms ease,border-color 150ms ease}
#se-meta-guide .mg-btn:active{transform:scale(0.96)}
#se-meta-guide .mg-btn--primary{background:var(--mg-gold);color:var(--mg-ink);border-color:var(--mg-gold)}
#se-meta-guide .mg-btn--quiet{background:var(--mg-paper);color:var(--mg-ink);border-color:var(--mg-line-strong)}
#se-meta-guide .mg-btn--ok{background:var(--mg-ok);color:#fff;border-color:var(--mg-ok)}
@media (hover:hover) and (pointer:fine){
  #se-meta-guide .mg-btn--primary:hover{background:var(--mg-gold-hover);border-color:var(--mg-gold-hover)}
  #se-meta-guide .mg-btn--quiet:hover{background:var(--mg-cream)}
  #se-meta-guide .mg-btn--ok:hover{background:#175a38}
  #se-meta-guide .mg-door:hover{background:var(--mg-cream)}
  #se-meta-guide .mg-mlinks ul a:hover{background:var(--mg-sand)}
  #se-meta-guide summary:hover .mg-problem-title,#se-meta-guide summary:hover .mg-topic-title{text-decoration:underline;text-underline-offset:4px}
}

/* start: search + three doors */
#se-meta-guide .mg-start>h2{margin-bottom:16px}
#se-meta-guide .mg-search{margin-bottom:16px;position:relative}
#se-meta-guide .mg-search label{display:block;font-size:14px;font-weight:600;color:var(--mg-ink);margin-bottom:8px}
#se-meta-guide .mg-search-field{display:flex;align-items:center;gap:8px;min-height:52px;padding:0 16px;border:1px solid var(--mg-line-strong);
  border-radius:12px;background:var(--mg-paper);color:var(--mg-muted)}
#se-meta-guide .mg-search-field:focus-within{border-color:var(--mg-brown);box-shadow:0 0 0 3px rgba(107,80,48,.15)}
#se-meta-guide .mg-search input{flex:1;min-width:0;height:50px;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:var(--mg-ink);padding:0;box-shadow:none}
#se-meta-guide .mg-results{margin-top:8px}
#se-meta-guide .mg-results:empty{display:none}
#se-meta-guide .mg-results ul{border:1px solid var(--mg-line);border-radius:12px;overflow:hidden;background:var(--mg-paper)}
#se-meta-guide .mg-results li+li{border-top:1px solid var(--mg-line)}
#se-meta-guide .mg-results a{display:block;padding:12px 16px;color:var(--mg-ink);text-decoration:none;min-height:48px}
#se-meta-guide .mg-results a small{display:block;color:var(--mg-muted);font-size:13px;line-height:1.4}
#se-meta-guide .mg-results p{padding:12px 16px;color:var(--mg-muted);font-size:14px}
#se-meta-guide .mg-doors{display:grid;gap:12px}
#se-meta-guide .mg-door{display:flex;align-items:center;gap:16px;min-height:76px;padding:16px;border:1px solid var(--mg-line);border-radius:16px;
  background:var(--mg-paper);color:var(--mg-ink);text-decoration:none;touch-action:manipulation;
  transition:background-color 150ms ease,transform 160ms var(--mg-ease)}
#se-meta-guide .mg-door:active{transform:scale(0.98)}
#se-meta-guide :is(.mg-topic,.mg-problem)>summary:active,#se-meta-guide .mg-toc a:active,#se-meta-guide .mg-results a:active{background:var(--mg-cream)}
#se-meta-guide .mg-popular a:active,#se-meta-guide .mg-ifnot a:active,#se-meta-guide .mg-mlinks ul a:active{background:var(--mg-sand)}
#se-meta-guide .mg-door>.mg-icon:first-child{width:44px;height:44px;flex:0 0 44px;padding:10px;border-radius:12px;background:var(--mg-sand);color:var(--mg-brown)}
#se-meta-guide .mg-door-text{flex:1;min-width:0;display:flex;flex-direction:column}
#se-meta-guide .mg-door-text strong{font-size:18px;line-height:1.4;font-weight:600}
#se-meta-guide .mg-door-text span{font-size:14px;line-height:1.45;color:var(--mg-muted)}
#se-meta-guide .mg-door-go{color:var(--mg-muted)}
#se-meta-guide .mg-popular{margin-top:24px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#se-meta-guide .mg-popular p{font-size:14px;font-weight:600;color:var(--mg-ink);margin-inline-end:4px}
#se-meta-guide .mg-popular ul{display:flex;flex-wrap:wrap;gap:8px}
#se-meta-guide .mg-jump{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 24px}
#se-meta-guide .mg-jump p{font-size:14px;font-weight:600;color:var(--mg-ink);margin-inline-end:4px}
#se-meta-guide .mg-jump ul{display:flex;flex-wrap:wrap;gap:8px}
#se-meta-guide .mg-jump a{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border-radius:999px;background:var(--mg-cream);color:var(--mg-ink);font-size:14px;text-decoration:none}
#se-meta-guide .mg-jump a:active{background:var(--mg-sand)}
#se-meta-guide .mg-quickpick{margin:0 0 24px;padding:16px;border-radius:16px;background:var(--mg-cream);display:grid;gap:12px}
#se-meta-guide .mg-quickpick>p:first-child{font-weight:600;color:var(--mg-ink)}
#se-meta-guide .mg-quickpick-list{display:flex;flex-wrap:wrap;gap:8px}
#se-meta-guide .mg-quickpick-note{font-size:13px;color:var(--mg-muted)}
#se-meta-guide .mg-setup-start{display:flex;flex-wrap:wrap;gap:12px}
#se-meta-guide .mg-popular a{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border-radius:999px;background:var(--mg-cream);
  color:var(--mg-ink);font-size:14px;text-decoration:none}

/* model picker */
#se-meta-guide .mg-models{border:0;margin:16px 0 24px;padding:0;min-width:0}
#se-meta-guide .mg-models legend{float:left;width:100%;font-size:18px;line-height:1.4;font-weight:600;color:var(--mg-ink);padding:0;margin:0 0 12px}
#se-meta-guide .mg-models legend+*{clear:both}
#se-meta-guide .mg-model-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#se-meta-guide .mg-model{position:relative;display:flex;flex-direction:column;gap:2px;min-height:96px;padding:14px 14px 14px 44px;border:1px solid var(--mg-line);
  border-radius:14px;background:var(--mg-paper);cursor:pointer;touch-action:manipulation;transition:border-color 150ms ease,background-color 150ms ease}
#se-meta-guide .mg-model input{position:absolute;inset-inline-start:14px;top:16px;width:20px;height:20px;margin:0;accent-color:var(--mg-brown)}
#se-meta-guide .mg-model img{display:block;width:100%;height:76px;object-fit:cover;object-position:50% 50%;margin:0 0 8px;border-radius:8px}
#se-meta-guide .mg-model-name{font-weight:600;color:var(--mg-ink);line-height:1.35}
#se-meta-guide .mg-model-lines{font-size:13px;line-height:1.4;color:var(--mg-muted)}
#se-meta-guide .mg-phone{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px}
#se-meta-guide .mg-phone-label{width:100%;font-weight:600;color:var(--mg-ink)}
#se-meta-guide .mg-phone-opt{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 18px 8px 14px;border:1px solid var(--mg-line);border-radius:999px;background:var(--mg-paper);color:var(--mg-ink);font-weight:600;cursor:pointer;touch-action:manipulation}
#se-meta-guide .mg-phone-opt input{width:18px;height:18px;margin:0;accent-color:var(--mg-brown)}
#se-meta-guide .mg-phone-opt:has(input:checked){border-color:var(--mg-brown);background:var(--mg-cream)}
#se-meta-guide .mg-model-note{font-size:12px;line-height:1.4;color:var(--mg-brown)}
#se-meta-guide .mg-model:has(input:checked){border-color:var(--mg-brown);background:var(--mg-cream);box-shadow:inset 0 0 0 1px var(--mg-brown)}
#se-meta-guide .mg-model:has(input:focus-visible){outline:3px solid var(--mg-focus);outline-offset:2px}
#se-meta-guide .mg-model-hint{font-size:14px;color:var(--mg-muted);margin-top:12px}

/* controls + lights */
#se-meta-guide .mg-family{margin-top:24px}
#se-meta-guide .mg-family-title{margin-bottom:16px}
#se-meta-guide .mg-controls{display:grid;gap:24px}
#se-meta-guide .mg-control{display:grid;gap:12px}
#se-meta-guide .mg-control h4{margin-bottom:2px}
#se-meta-guide .mg-control-where{color:var(--mg-muted);font-size:15px;margin-bottom:8px}
#se-meta-guide .mg-uses li{display:grid;gap:2px;padding:8px 0;border-top:1px solid var(--mg-line);font-size:15px}
#se-meta-guide .mg-use-do{font-weight:600;color:var(--mg-ink)}
#se-meta-guide .mg-use-result{color:var(--mg-text)}
#se-meta-guide .mg-lights-wrap{margin-top:32px}
#se-meta-guide .mg-lights-sub{font-size:15px;margin:16px 0 4px;color:var(--mg-brown)}
#se-meta-guide .mg-light-fix{grid-column:2;font-size:15px;font-weight:600}
#se-meta-guide .mg-light-fix a{display:inline-flex;align-items:center;min-height:40px}
#se-meta-guide .mg-light{display:grid;grid-template-columns:20px minmax(0,1fr);gap:2px 12px;padding:12px 0;border-top:1px solid var(--mg-line)}
#se-meta-guide .mg-dot{grid-row:span 2;width:16px;height:16px;margin-top:4px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
#se-meta-guide .mg-dot--white{background:#fff}#se-meta-guide .mg-dot--green{background:#2e9e5b}#se-meta-guide .mg-dot--orange,#se-meta-guide .mg-dot--amber{background:#f08a24}
#se-meta-guide .mg-dot--red{background:#d93a2b}#se-meta-guide .mg-dot--blue{background:#2c6fe0}#se-meta-guide .mg-dot--off{background:#bdb7ab}#se-meta-guide .mg-dot--yellow{background:#f2c230}#se-meta-guide .mg-dot--purple{background:#7b4fd6}
#se-meta-guide .mg-dot--white{box-shadow:inset 0 0 0 1.5px var(--mg-muted)}
#se-meta-guide .mg-light-what{font-weight:600;color:var(--mg-ink);font-size:15px}
#se-meta-guide .mg-light-means{font-size:15px;color:var(--mg-text)}

/* topics + problems (disclosure rows) */
#se-meta-guide .mg-topics,#se-meta-guide .mg-group{border-top:1px solid var(--mg-line)}
#se-meta-guide .mg-group{margin-top:32px;border-top:0}
#se-meta-guide .mg-group-title{margin-bottom:4px}
#se-meta-guide .mg-group-lead{color:var(--mg-muted);font-size:15px;margin-bottom:8px}
#se-meta-guide .mg-group .mg-problem:first-of-type{border-top:1px solid var(--mg-line)}
#se-meta-guide :is(.mg-topic,.mg-problem){border-bottom:1px solid var(--mg-line)}
#se-meta-guide :is(.mg-topic,.mg-problem)>summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:14px 4px;cursor:pointer;list-style:none;
  touch-action:manipulation;color:var(--mg-ink)}
#se-meta-guide :is(.mg-topic,.mg-problem)>summary::-webkit-details-marker{display:none}
#se-meta-guide :is(.mg-topic,.mg-problem)>summary::after{content:"";flex:0 0 10px;width:10px;height:10px;margin-inline-end:6px;border-right:2px solid var(--mg-muted);
  border-bottom:2px solid var(--mg-muted);transform:rotate(45deg);transition:transform 200ms var(--mg-ease)}
#se-meta-guide :is(.mg-topic,.mg-problem)[open]>summary::after{transform:rotate(-135deg)}
#se-meta-guide .mg-problem-title,#se-meta-guide .mg-topic-title{flex:1;min-width:0;font-size:17px;line-height:1.45;font-weight:600}
#se-meta-guide .mg-problem-count{flex:none;font-size:13px;color:var(--mg-muted);white-space:nowrap}
#se-meta-guide .mg-topic-when{display:none}
#se-meta-guide .mg-problem-body,#se-meta-guide .mg-topic-body{padding:4px 4px 32px}
#se-meta-guide .mg-problem-note{margin-bottom:16px;padding:12px 14px;border-radius:12px;background:var(--mg-cream);font-size:15px;color:var(--mg-ink)}
#se-meta-guide .mg-problem-note a{font-weight:600}
#se-meta-guide .mg-why{margin-bottom:16px;font-size:15px}
#se-meta-guide .mg-why summary{cursor:pointer;color:var(--mg-brown);font-weight:600;min-height:44px;display:flex;align-items:center}
#se-meta-guide .mg-why ul{padding-inline-start:20px;list-style:disc;color:var(--mg-text)}
#se-meta-guide .mg-why li{margin-bottom:4px}
#se-meta-guide .mg-fixes-lead{font-size:15px;color:var(--mg-muted);margin-bottom:16px}
#se-meta-guide .mg-fixes{counter-reset:mgfix;display:grid;gap:16px}
/* number beside the title only; everything below uses the card's full width for bigger pictures */
#se-meta-guide .mg-fix{counter-increment:mgfix;display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:12px;align-items:start;
  padding:16px;border-radius:16px;background:var(--mg-cream)}
#se-meta-guide .mg-fix>*{grid-column:1/-1}
#se-meta-guide .mg-fix::before{content:counter(mgfix);grid-column:1;grid-row:1;width:28px;height:28px;border-radius:50%;
  background:var(--mg-ink);color:#fff;font-size:14px;font-weight:600;line-height:28px;text-align:center}
#se-meta-guide .mg-fix>.mg-fix-title{grid-column:2;grid-row:1;margin:1px 0 8px}
#se-meta-guide .mg-fix .mg-steps{margin-top:12px}
#se-meta-guide .mg-fix-proc{margin-top:4px}
#se-meta-guide .mg-fix .mg-step-body{grid-template-columns:24px minmax(0,1fr)}
#se-meta-guide .mg-fix .mg-step-n{width:24px;height:24px;line-height:24px;font-size:13px}
#se-meta-guide .mg-fix .mg-step-do{font-size:16px}
#se-meta-guide .mg-fix-check{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--mg-line-strong)}
#se-meta-guide .mg-fix-check p{width:100%;font-size:14px;font-weight:600;color:var(--mg-ink)}
#se-meta-guide .mg-fix.is-tried{background:var(--mg-paper);box-shadow:inset 0 0 0 1px var(--mg-line)}
#se-meta-guide .mg-fix.is-tried::before{background:var(--mg-line-strong);color:var(--mg-ink)}
#se-meta-guide .mg-fix.is-tried>:not(.mg-fix-title){display:none}
#se-meta-guide .mg-fix.is-tried .mg-fix-title::after{content:" · ลองแล้ว";font-weight:400;color:var(--mg-muted);font-size:14px}
#se-meta-guide .mg-store{display:grid;gap:8px;justify-items:start;font-size:15px}
#se-meta-guide .mg-store p:first-child{font-weight:600;color:var(--mg-ink)}
#se-meta-guide .mg-fix.is-later{background:var(--mg-paper);box-shadow:inset 0 0 0 1px var(--mg-line)}
#se-meta-guide .mg-solved{margin-top:16px;padding:16px;border-radius:12px;background:var(--mg-ok-bg);color:var(--mg-ok)}
#se-meta-guide .mg-last{margin-top:16px;padding:16px;border-radius:12px;background:var(--mg-cream);display:grid;gap:12px;justify-items:start}

/* procedures + steps */
#se-meta-guide .mg-proc{padding-block:32px;border-top:1px solid var(--mg-line)}
#se-meta-guide .mg-topic-body .mg-proc{padding-top:0;padding-bottom:0;border-top:0}
#se-meta-guide .mg-topic-body .mg-proc-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#se-meta-guide #mg-procs .mg-topics{margin-top:8px}
#se-meta-guide .mg-proc-title{margin-bottom:6px}
#se-meta-guide .mg-proc-when{color:var(--mg-text);margin-bottom:8px}
#se-meta-guide .mg-proc-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
#se-meta-guide .mg-proc-meta li{font-size:13px;line-height:1.4;padding:4px 10px;border-radius:999px;background:var(--mg-cream);color:var(--mg-muted)}
#se-meta-guide .mg-proc-meta .mg-safe{background:var(--mg-ok-bg);color:var(--mg-ok)}
#se-meta-guide .mg-warning{margin:12px 0;padding:12px 16px;border-radius:12px;background:var(--mg-warn-bg);color:var(--mg-warn);font-size:15px}
#se-meta-guide .mg-before{margin:12px 0}
#se-meta-guide .mg-before-label{font-weight:600;color:var(--mg-ink);font-size:15px;margin-bottom:4px}
#se-meta-guide .mg-before ul{list-style:disc;padding-inline-start:20px;font-size:15px}
#se-meta-guide .mg-path{margin:16px 0}
#se-meta-guide .mg-path-label{font-size:13px;color:var(--mg-muted);margin-bottom:6px}
#se-meta-guide .mg-path-list{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#se-meta-guide .mg-path-list li{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--mg-ink)}
#se-meta-guide .mg-path-list li span{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:4px 10px;border-radius:8px;background:var(--mg-sand);color:var(--mg-ink)}
#se-meta-guide .mg-path-list li+li::before{content:"›";color:var(--mg-muted);font-weight:400;margin-inline-end:2px}
#se-meta-guide .mg-start-row{margin:16px 0 8px}
#se-meta-guide .mg-steps{display:grid;gap:32px;margin-top:20px}
#se-meta-guide .mg-step{display:grid;gap:12px;align-content:start}
#se-meta-guide .mg-step-body{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;row-gap:4px;align-items:start}
#se-meta-guide .mg-step-n{grid-row:span 3;width:32px;height:32px;border-radius:50%;background:var(--mg-gold);color:var(--mg-ink);font-weight:600;
  font-size:15px;line-height:32px;text-align:center;font-variant-numeric:tabular-nums}
#se-meta-guide .mg-step-do{font-size:17px;line-height:1.5;font-weight:600;color:var(--mg-ink);padding-top:2px}
#se-meta-guide .mg-step-detail{font-size:15px;color:var(--mg-text)}
#se-meta-guide .mg-step-expect{font-size:15px;color:var(--mg-ok)}
#se-meta-guide .mg-step-expect span{font-weight:600}
#se-meta-guide .mg-step-body>:not(.mg-step-n){grid-column:2}
#se-meta-guide .mg-step-proc{margin-top:8px}
#se-meta-guide .mg-led{display:inline-block;width:.72em;height:.72em;margin-inline:.12em .22em;border-radius:50%;vertical-align:-.02em;box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.3)}
#se-meta-guide .mg-led--white{background:#fff}#se-meta-guide .mg-led--green{background:#2e9e5b}#se-meta-guide .mg-led--blue{background:#2c6fe0}#se-meta-guide .mg-led--orange{background:#f08a24}#se-meta-guide .mg-led--red{background:#d93a2b}
#se-meta-guide .mg-nw{white-space:nowrap}
#se-meta-guide .mg-ui{font-weight:700;color:var(--mg-ink);background:var(--mg-sand);padding:1px 6px;border-radius:6px;white-space:nowrap}
#se-meta-guide .mg-shot{margin:0;order:2}
#se-meta-guide .mg-shot img{display:block;width:100%;border-radius:20px}
#se-meta-guide .mg-shot--screen{max-width:360px}
#se-meta-guide .mg-shot--hw{max-width:440px}
#se-meta-guide .mg-shot--hw img{border-radius:16px;background:var(--mg-cream)}
#se-meta-guide .mg-shot--missing{display:none}
#se-meta-guide .mg-steps .mg-shot--repeat{display:none}
#se-meta-guide .mg-sheet .mg-shot--repeat{display:block}
#se-meta-guide .mg-variant-label{display:inline-block;margin:16px 0 0;padding:4px 12px;border-radius:999px;background:var(--mg-sand);
  color:var(--mg-ink);font-size:14px;font-weight:600}
#se-meta-guide .mg-switch{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;padding:4px;border-radius:12px;background:var(--mg-cream);margin:16px 0 0;max-width:520px}
#se-meta-guide .mg-switch button{min-height:40px;padding:8px 6px;text-wrap:balance;border:0;border-radius:9px;background:transparent;color:var(--mg-muted);font:inherit;
  font-size:14px;font-weight:600;line-height:1.3;cursor:pointer;touch-action:manipulation;transition:background-color 150ms ease,color 150ms ease}
#se-meta-guide .mg-switch button[aria-pressed=true]{background:var(--mg-paper);color:var(--mg-ink);box-shadow:0 1px 2px rgba(0,0,0,.12),0 0 0 1px rgba(0,0,0,.04)}
#se-meta-guide[data-js] .mg-variants:not(.show-all)>.mg-variant:not(.is-on){display:none}
#se-meta-guide[data-js] .mg-variants:not(.show-all)>.mg-variant>.mg-variant-label{display:none}
#se-meta-guide .mg-result{margin-top:24px;padding:12px 16px;border-radius:12px;background:var(--mg-ok-bg);color:var(--mg-ok);font-size:15px}
#se-meta-guide .mg-ifnot{margin-top:16px;font-size:15px}
#se-meta-guide .mg-ifnot p{font-weight:600;color:var(--mg-ink);margin-bottom:4px}
#se-meta-guide .mg-ifnot ul{display:grid;gap:4px}
#se-meta-guide .mg-ifnot a{display:inline-flex;align-items:center;min-height:40px;font-weight:600}
#se-meta-guide .mg-tips{margin-top:16px;list-style:disc;padding-inline-start:20px;font-size:15px}

/* setup page */
#se-meta-guide .mg-toc ol{counter-reset:toc;display:grid;gap:0;border-top:1px solid var(--mg-line);margin-top:16px}
#se-meta-guide .mg-toc li{counter-increment:toc;border-bottom:1px solid var(--mg-line)}
#se-meta-guide .mg-toc a{display:flex;gap:12px;align-items:center;min-height:52px;padding:8px 4px;color:var(--mg-ink);text-decoration:none;font-weight:600}
#se-meta-guide .mg-toc a::before{content:counter(toc);flex:0 0 28px;height:28px;border-radius:50%;background:var(--mg-sand);color:var(--mg-ink);
  font-size:14px;line-height:28px;text-align:center}
#se-meta-guide .mg-stage{padding-block:40px;border-top:1px solid var(--mg-line)}
#se-meta-guide .mg-stage-n{font-size:14px;font-weight:600;color:var(--mg-brown);margin-bottom:4px}
#se-meta-guide .mg-stage-title{margin-bottom:8px}
#se-meta-guide .mg-stage-lead{color:var(--mg-text);max-width:62ch}

/* lead line under the theme H1, and the main-page links at the end */
#se-meta-guide .mg-lead{max-width:62ch;margin:0;color:var(--mg-text)}
#se-meta-guide .mg-lead+.mg-sec{margin-top:24px}
#se-meta-guide .mg-mlinks{display:grid;gap:16px}
#se-meta-guide .mg-mlinks>h2{margin-bottom:0}
#se-meta-guide .mg-mlinks-row{display:grid;gap:8px}
#se-meta-guide .mg-mlinks-brand{font-weight:600}
#se-meta-guide .mg-mlinks ul{display:flex;flex-wrap:wrap;gap:8px}
#se-meta-guide .mg-mlinks ul a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:999px;background:var(--mg-cream);
  color:var(--mg-ink);font-size:14px;text-decoration:none;touch-action:manipulation}

/* help */
#se-meta-guide .mg-help{padding:24px;border-radius:16px;background:var(--mg-cream)}
#se-meta-guide .mg-help h2{margin-bottom:8px}
#se-meta-guide .mg-help p+p{margin-top:16px}
#se-meta-guide .mg-help-actions{display:flex;flex-wrap:wrap;gap:12px}

/* step-by-step sheet (dialog) */
#se-meta-guide .mg-sheet{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--mg-paper);
  color:var(--mg-text);overscroll-behavior:contain}
#se-meta-guide .mg-sheet::backdrop{background:rgba(20,18,14,.55)}
#se-meta-guide .mg-sheet[open]{display:flex;flex-direction:column;animation:mg-sheet-in 260ms var(--mg-ease)}
@keyframes mg-sheet-in{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
#se-meta-guide .mg-sheet-head{display:flex;align-items:center;gap:12px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));border-bottom:1px solid var(--mg-line)}
#se-meta-guide .mg-sheet-title{flex:1;min-width:0;font-size:17px;line-height:1.35;font-weight:600;color:var(--mg-ink)}
#se-meta-guide .mg-sheet-close{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:50%;background:var(--mg-cream);color:var(--mg-ink);cursor:pointer;
  display:grid;place-items:center;touch-action:manipulation}
#se-meta-guide .mg-sheet-progress{height:4px;background:var(--mg-cream)}
#se-meta-guide .mg-sheet-progress span{display:block;height:100%;background:var(--mg-brown);transform-origin:0 50%;transition:transform 260ms var(--mg-ease)}
#se-meta-guide .mg-sheet-body{flex:1;overflow-y:auto;padding:20px 16px 24px;touch-action:pan-y;overscroll-behavior:contain}
#se-meta-guide .mg-sheet-count{font-size:14px;font-weight:600;color:var(--mg-brown);margin-bottom:8px;font-variant-numeric:tabular-nums}
#se-meta-guide .mg-sheet .mg-step{gap:16px}
#se-meta-guide .mg-sheet .mg-step-do{font-size:19px}
#se-meta-guide .mg-sheet .mg-shot{order:2;max-width:400px}
#se-meta-guide .mg-sheet .mg-shot img{max-height:52dvh;width:auto;max-width:100%;margin-inline:auto}
#se-meta-guide .mg-sheet .mg-step-n{display:none}
#se-meta-guide .mg-sheet .mg-step-body{grid-template-columns:minmax(0,1fr)}
#se-meta-guide .mg-sheet .mg-step-body>*{grid-column:1}
#se-meta-guide .mg-shot-note{order:3;font-size:14px;color:var(--mg-muted);max-width:400px}
#se-meta-guide .mg-sheet-lead{margin-bottom:16px;padding:12px 14px;border-radius:12px;background:var(--mg-cream);color:var(--mg-ink);font-size:15px;font-weight:600}
#se-meta-guide .mg-sheet-prep{display:grid;gap:4px}
#se-meta-guide .mg-sheet-prep .mg-before{margin-top:8px}
#se-meta-guide .mg-sheet-prep .mg-before ul{font-size:16px}
#se-meta-guide .mg-sheet-prep .mg-before a{font-weight:600}
#se-meta-guide .mg-sheet .mg-result{margin-top:16px}
#se-meta-guide .mg-sheet-pick p{font-weight:600;color:var(--mg-ink);margin-bottom:12px;font-size:18px}
#se-meta-guide .mg-sheet-pick .mg-model-list{margin-bottom:8px}
#se-meta-guide .mg-sheet-pick button.mg-model{font:inherit;text-align:start;padding:14px}
#se-meta-guide .mg-sheet-help{display:inline-flex;align-items:center;min-height:44px;margin-top:20px;padding:8px 0;border:0;background:none;color:var(--mg-brown);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#se-meta-guide .mg-sheet-helplist{display:grid;gap:4px}
#se-meta-guide .mg-sheet-helplist a{display:inline-flex;align-items:center;min-height:40px;font-weight:600}
#se-meta-guide .mg-sheet-done{display:grid;gap:16px;justify-items:stretch}
#se-meta-guide .mg-sheet-done h3{font-size:22px}
#se-meta-guide .mg-sheet-foot{display:flex;gap:12px;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--mg-line);background:var(--mg-paper)}
#se-meta-guide .mg-sheet-foot .mg-btn{flex:1}
html.mg-lock{overflow:hidden}

@media (min-width:720px){
  #se-meta-guide h2{font-size:30px;line-height:1.25}
  #se-meta-guide .mg-sec{margin-block:64px}
  #se-meta-guide .mg-doors{grid-template-columns:repeat(3,minmax(0,1fr))}
  #se-meta-guide .mg-door{flex-direction:column;align-items:flex-start;min-height:168px;padding:24px}
  #se-meta-guide .mg-door-go{display:none}
  #se-meta-guide .mg-model-list{grid-template-columns:repeat(4,minmax(0,1fr))}
  #se-meta-guide .mg-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
  #se-meta-guide .mg-steps{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:32px 24px}
  #se-meta-guide .mg-fix .mg-steps{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
  #se-meta-guide .mg-fix{padding:24px 24px 24px 64px}
  #se-meta-guide .mg-fix::before{inset-inline-start:24px;top:24px}
  #se-meta-guide .mg-sheet{inset:auto;top:50%;left:50%;width:min(640px,calc(100vw - 48px));height:min(860px,calc(100dvh - 48px));border-radius:20px;
    transform:translate(-50%,-50%)}
  #se-meta-guide .mg-sheet[open]{animation:mg-fade 200ms ease-out}
  #se-meta-guide .mg-sheet-body{padding:24px 32px}
  #se-meta-guide .mg-sheet-foot{padding:16px 32px}
  #se-meta-guide .mg-help{padding:32px}
}
@keyframes mg-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  #se-meta-guide *,#se-meta-guide .mg-sheet,#se-meta-guide .mg-sheet *{transition-duration:1ms!important;animation:none!important}
}
@media print{
  #se-meta-guide .mg-start,#se-meta-guide [data-stepper],#se-meta-guide .mg-fix-check,#se-meta-guide .mg-sheet{display:none!important}
  #se-meta-guide details>*:not(summary){display:block!important}
}
