/* Shared touch layouts. Desktop styles and access rules stay with their owners. */
.kwyg-mobile-menu-toggle,.kwyg-mobile-start{display:none}
.kwyg-mobile-nav-shell:not(.eg-nav-shell){display:contents}
.kwyg-mobile-menu:not([open]){display:none}
.kwyg-mobile-menu{box-sizing:border-box;border:0;background:#fffefa;color:#202421;font:16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;padding:22px;box-shadow:0 -12px 48px #15251b26}
.kwyg-mobile-menu::backdrop{background:#17252a66;backdrop-filter:blur(5px)}
.kwyg-mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.kwyg-mobile-menu-head h2{font-size:21px!important;margin:0!important}
.kwyg-mobile-menu-head button{width:44px;min-height:44px;border:0;border-radius:50%;background:#f0eee6;font:24px/1 system-ui;cursor:pointer;color:inherit}
.kwyg-mobile-menu-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kwyg-mobile-menu-list button{display:flex;align-items:center;gap:10px;min-width:0;min-height:64px;padding:12px;border:1px solid #e1dfd3;border-radius:14px;background:#fffefa;color:#474c54;text-align:left;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.kwyg-mobile-menu-list button[aria-current]{background:#e7f3ed;border-color:#327658;color:#17563e}
.kwyg-mobile-menu-list svg{width:18px;height:18px;flex-shrink:0}
.kwyg-mobile-menu :focus-visible{outline:3px solid #1764cc;outline-offset:3px}
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
  html{scroll-padding-top:76px!important}
  .kwyg-mobile-nav-shell{position:sticky!important;top:0;z-index:30;display:flex!important;align-items:center;min-width:0;background:#faf7f0f5;border-block:1px solid #e6dfd0;backdrop-filter:blur(14px)}
  .kwyg-mobile-nav-shell>.app-navigation,.kwyg-mobile-nav-shell>.site-tabs-v138,.kwyg-mobile-nav-shell>.eg-nav{position:static!important;top:auto!important;flex:1;min-width:0;width:0!important;margin:0!important;padding:7px 8px 7px 16px!important;border:0!important;background:transparent!important;mask-image:none!important;-webkit-mask-image:none!important;scrollbar-width:none;scroll-padding-inline:16px}
  .kwyg-mobile-nav-shell>.eg-nav{max-width:none;overflow-x:auto}
  .kwyg-mobile-nav-shell nav::-webkit-scrollbar{display:none}
  .kwyg-mobile-nav-shell nav .nav-btn,.kwyg-mobile-nav-shell nav .nav-link-v138,.kwyg-mobile-nav-shell>.eg-nav a{min-height:44px!important;line-height:1.4!important}
  .kwyg-mobile-nav-shell .kwyg-mobile-menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex:0 0 56px;width:56px;min-height:44px;margin:0 6px 0 0;padding:3px;border:0!important;border-radius:10px!important;background:transparent!important;color:#414c42;font:600 11px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;box-shadow:-8px 0 12px -10px #26382a66;cursor:pointer}
  .kwyg-mobile-menu-toggle svg{width:19px;height:19px}
  .kwyg-mobile-menu-toggle:active{background:#e8ece2;transform:scale(.96)}
  .kwyg-mobile-menu{position:fixed;inset:auto 0 0;width:100%;max-width:600px;max-height:calc(var(--kwyg-viewport-height,100dvh) - 24px);margin:0 auto;overflow:auto;overscroll-behavior:contain;border-radius:24px 24px 0 0;padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .kwyg-mobile-menu[open]{animation:kwyg-sheet-in .22s cubic-bezier(.2,0,0,1)}
  .kwyg-mobile-start{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin:2px 0 18px;padding:12px 16px;border:0!important;border-radius:12px!important;background:#1c1e21!important;color:#fff!important;font:650 15px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer}
  .kwyg-mobile-start:active{transform:scale(.98)}
  body>header .hero{padding-top:26px!important;gap:22px!important}
  body>header .hero h1{font-size:28px!important;line-height:1.35!important}
  body>header .hero .hero-sub-v131{font-size:15px!important;line-height:1.75!important;margin-bottom:18px!important}
  .app-navigation~header,.kwyg-mobile-nav-shell~header{scroll-margin-top:72px}
  main>.section,#gapResult,.diagnosis-details,.diagnosis-detail-stack,.diagnosis-detail-stack>*{min-width:0;max-width:100%}
  .diagnosis-detail-stack{grid-template-columns:minmax(0,1fr)!important}
  #gapResult .result-card,#gapResult .prediction-head>div,#gapResult .persona-profile>div{min-width:0;max-width:100%}
  #gapResult .prediction-head{flex-wrap:wrap;gap:10px}
  #gapResult .prediction-head>div{flex:1 1 180px}
  #gapResult .prediction-head>.tag{white-space:normal!important;overflow-wrap:anywhere;max-width:100%}
  #gapResult .persona-profile>div{flex:1}
  #gapResult .persona-profile img{width:76px;height:76px}
  #gapResult .persona-profile strong{font-size:18px}
  #gapResult .scenario-grid{grid-template-columns:minmax(0,1fr)!important}
  #gapResult .scenario-btn{min-width:0;white-space:normal;text-align:left;overflow-wrap:anywhere}
  #gapResult .diagnosis-detail-stack pre,#gapResult .pb113 pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
  #gapResult .tool-route-v99,#gapResult .instant-case{min-width:0}
  #majorSuggestions{position:static!important;inset:auto!important;max-height:min(200px,36dvh);margin-top:6px;overscroll-behavior:contain;box-shadow:0 5px 16px #23352b0a!important}
  #majorSuggestions .suggestion-item{min-height:48px;align-items:center;gap:8px;white-space:normal}
  #majorSuggestions .suggestion-item>span{min-width:0;overflow-wrap:anywhere}
  #majorSuggestions .suggestion-item small{font-size:12px;flex-shrink:0}
  #diagnoseGap{width:100%;min-height:48px!important;font-size:15px!important}
  #majorInput{scroll-margin-top:16px}
  .section button.small,.section .scenario-btn,.section .beginner-subnav button,.section .cw-day-nav button,.section .cw134 .cw-link,.section .section-links-v140 a{min-height:44px!important}
  .section input:not([type=checkbox]):not([type=radio]),.section select,.section textarea,.pay-modal input,.pay-modal select,.pay-modal textarea,.eg-page input,.eg-page select,#kwyg-support-root select{font-size:16px!important}
  .section .toolbar{gap:10px;flex-wrap:wrap}
  .section .toolbar>button{white-space:normal;max-width:100%}
  .beginner-subnav{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;scroll-padding-inline:10px;overscroll-behavior-x:contain}
  .beginner-subnav button{flex:0 0 auto!important}
  .section .cw-day-nav{gap:10px;flex-wrap:wrap}
  .section .cw-day-nav button{flex:1 1 100px}
  .modal-backdrop.show{top:var(--kwyg-viewport-top,0px);bottom:auto;height:var(--kwyg-viewport-height,100dvh);padding:12px 10px max(12px,env(safe-area-inset-bottom));align-items:flex-end;z-index:2500}
  .modal-backdrop .pay-modal{width:100%!important;max-height:100%!important;margin:0;overscroll-behavior:contain;border-radius:23px;padding:20px 18px!important;scroll-padding-block:16px}
  .modal-backdrop .modal-head{gap:12px;align-items:flex-start}
  .modal-backdrop .modal-close{min-width:44px;min-height:44px;flex-shrink:0}
  .modal-backdrop .login-intro{font-size:14px;margin-bottom:16px}
  .modal-backdrop .login-modal .field{margin-bottom:14px}
  .modal-backdrop .login-code-row{grid-template-columns:minmax(0,1fr) 116px;gap:10px;align-items:end}
  .modal-backdrop .login-code-row .field{margin-bottom:0}
  .modal-backdrop .login-code-row .small{width:auto;min-height:48px;padding-inline:8px;font-size:13px}
  .modal-backdrop .pay-modal h2{font-size:22px!important;line-height:1.4!important}
  .modal-backdrop .login-message{padding:12px;font-size:13px}
  #kwyg-support-root{bottom:calc(16px + env(safe-area-inset-bottom) + var(--kwyg-keyboard-inset,0px))}
  body:has(#mobile-bottom) #kwyg-support-root,body:has(.mobile-nav) #kwyg-support-root,body:has(.bottom-nav) #kwyg-support-root{bottom:calc(82px + env(safe-area-inset-bottom) + var(--kwyg-keyboard-inset,0px))}
  #kwyg-support-panel{width:calc(100vw - 28px);max-height:calc(var(--kwyg-viewport-height,100dvh) - 105px);padding:20px;scroll-padding-block:14px}
  #kwyg-support-root .kwyg-support-tabs button{min-height:44px}
  #kwyg-support-root[hidden]{display:none!important}
  body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .eg-page .eg-search{width:100%}
  .eg-page .eg-project-intro,.eg-page .eg-project-deliver{font-size:14px}
  .eg-page .eg-detail-hero h1{font-size:30px;line-height:1.3}
  .eg-page .eg-lightbox{max-width:calc(100vw - 20px);max-height:calc(var(--kwyg-viewport-height,100dvh) - 24px);overflow:auto}
  .eg-page .eg-lightbox [data-close]{min-width:44px;min-height:44px}
  .enterprise-workspace-bar .ew-top a{min-height:44px}
  .enterprise-workspace-bar .ew-routes{gap:8px}
  .enterprise-workspace-bar .ew-routes button{font-size:13px;white-space:normal}
}
@media(max-width:360px){.modal-backdrop .login-code-row{grid-template-columns:minmax(0,1fr) 108px;gap:8px}.modal-backdrop .pay-modal{padding-inline:14px!important}.kwyg-mobile-menu{padding-inline:16px}.kwyg-mobile-menu-list button{gap:7px;padding:10px;font-size:13px}}
@keyframes kwyg-sheet-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.kwyg-mobile-menu[open]{animation:none}.kwyg-mobile-start,.kwyg-mobile-menu-toggle{transition:none!important}}
@media print{.kwyg-mobile-menu-toggle,.kwyg-mobile-menu,.kwyg-mobile-start{display:none!important}}

/* v2: a phone has its own hierarchy, not a squeezed desktop navigation. */
.kwyg-mobile-brand,.kwyg-mobile-copy{display:none}
.kwyg-mobile-fold,.kwyg-mobile-fold-body{display:contents}
.kwyg-mobile-fold>summary{display:none}
.kwyg-desktop-notice:not([open]){display:none}
.kwyg-desktop-notice,.kwyg-device-card{box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:calc(var(--kwyg-viewport-height,100dvh) - 32px);overflow:auto;border:0!important;border-radius:24px;background:#fffefa;color:#23362b;padding:24px;font:15px/1.8 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;box-shadow:0 20px 70px #17332928}
.kwyg-desktop-notice::backdrop{background:#17252a66;backdrop-filter:blur(5px)}
.kwyg-desktop-notice-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.kwyg-desktop-notice-head>span{display:grid;place-items:center;width:46px;height:46px;background:#e7f0e8;border-radius:13px;font-size:35px;line-height:1;color:#316249}
.kwyg-desktop-notice-head button{width:44px;min-height:44px;border:0!important;border-radius:50%;background:#f0eee7;color:#46544a;font:24px/1 system-ui;cursor:pointer}
.kwyg-desktop-notice h2,.kwyg-device-card h1{font-size:23px!important;line-height:1.45!important;margin:12px 0!important;letter-spacing:-.025em}
.kwyg-desktop-notice p,.kwyg-device-card p{font-size:14px;line-height:1.8;color:#58665c;margin:12px 0}
.kwyg-desktop-notice label,.kwyg-device-card label{display:block;font-size:12px;color:#617362;margin:18px 0 12px}
.kwyg-desktop-notice input,.kwyg-device-card input{box-sizing:border-box;width:100%;min-height:48px;font-size:16px;padding:10px 12px;color:#324e3c;background:#f2f5ee;border:1px solid #d6e0cf;border-radius:10px}
.kwyg-device-copy{width:100%;min-height:48px;border:0!important;border-radius:12px!important;background:#20543f!important;color:white!important;padding:11px 16px;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.kwyg-desktop-notice .kwyg-device-copy-status,.kwyg-device-card .kwyg-device-copy-status{font-size:12px;line-height:1.8;margin-bottom:0}
.kwyg-device-page{margin:0;background:#faf7f0;color:#24362a;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.kwyg-device-card{margin:12vh auto 90px;max-height:none;overflow:visible}
.kwyg-device-card>a{display:inline-flex;align-items:center;min-height:44px;color:#246149;font-size:14px;margin-top:12px;text-underline-offset:4px}
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
  body:has(.kwyg-mobile-nav-shell)>.campus-identity,body:has(.kwyg-mobile-nav-shell)>header.site-top-v138,body:has(.kwyg-mobile-nav-shell) .eg-top{display:none!important}
  .eg-page>header:has(.kwyg-mobile-nav-shell){position:sticky!important;top:0;z-index:30}
  .kwyg-mobile-nav-shell{padding:6px 16px!important;min-height:60px;justify-content:space-between;gap:16px}
  .kwyg-mobile-nav-shell>.app-navigation,.kwyg-mobile-nav-shell>.site-tabs-v138,.kwyg-mobile-nav-shell>.eg-nav{display:none!important}
  .kwyg-mobile-brand{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:17px;font-weight:750;letter-spacing:.02em;text-decoration:none!important;color:#202823!important}
  .kwyg-mobile-brand img{display:block;width:30px;height:30px;border-radius:9px}
  .kwyg-mobile-nav-shell .kwyg-mobile-menu-toggle{flex:0 0 auto;width:auto;min-width:83px;flex-direction:row;gap:9px;font-size:14px;font-weight:650;padding:8px 9px!important;margin:0!important;box-shadow:none!important;border-radius:11px!important;background:#edece3!important;line-height:1.4}
  .kwyg-mobile-menu-toggle svg{width:17px;height:17px;transition:transform .22s cubic-bezier(.2,0,0,1)}
  .kwyg-mobile-menu-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
  .kwyg-mobile-menu[open]{animation:kwyg-menu-fade .18s ease-out}
  .kwyg-mobile-menu{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .kwyg-desktop-copy{display:none!important}
  .kwyg-mobile-copy{display:block}
  .kwyg-freebar-v8 .kwyg-mobile-copy{display:inline}
  .kwyg-freebar-v8{padding:6px 12px;gap:7px;font-size:11px}
  body>header .hero{padding-block:24px 12px!important;gap:0!important}
  body>header .hero .eyebrow{margin-bottom:12px!important;font-size:12px!important}
  body>header .hero h1.kwyg-mobile-copy{font-size:30px!important;line-height:1.4!important;margin:0 0 12px!important;max-width:12em}
  body>header .hero .hero-sub-v131.kwyg-mobile-copy{font-size:15px!important;line-height:1.8!important;margin:0 0 16px!important;font-weight:400!important}
  body>header .hero .tool-lanes,body>header .hero .hero-links-v131,body>header .hero .hero-promise-v132,body>header .hero .hero-camp-v131,body>header .hero .notebook-v130{display:none!important}
  .kwyg-mobile-start{margin-bottom:4px!important}
  #gap>.grid>.panel.span-7:has(#gapResult:empty){display:none!important}
  .kwyg-mobile-fold{display:block;grid-column:1/-1;min-width:0;border:0;border-radius:12px;background:#f0f3eb;margin-block:0 12px}
  .kwyg-mobile-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:12px 16px;cursor:pointer;list-style:none;font-size:13px;font-weight:600;color:#3c5c47}
  .kwyg-mobile-fold>summary::-webkit-details-marker{display:none}
  .kwyg-mobile-fold>summary::after{content:'⌄';font-size:18px;flex-shrink:0}
  .kwyg-mobile-fold[open]>summary::after{transform:rotate(180deg)}
  .kwyg-mobile-fold[open]>.kwyg-mobile-fold-body{display:block;padding:0 12px 12px;min-width:0}
  .kwyg-mobile-fold #journeyBar{margin:0!important}
  .kwyg-mobile-fold .why-panel{margin:0!important}
  .eg-page .eg-hero{padding-block:26px 24px;gap:24px}
  .eg-page .eg-hero h1{font-size:30px;line-height:1.35;margin-bottom:14px}
  .eg-page .eg-hero-steps,.eg-page .eg-process,.eg-page .eg-hero-note,.eg-page .eg-project-major{display:none}
  .eg-page .eg-hero .eg-buttons a:not(.primary){display:none}
  .eg-page .eg-project-content{padding:18px}
  .eg-page .eg-project-intro.kwyg-mobile-copy{font-size:14px;margin-bottom:12px}
  .eg-page .eg-section-head{margin-bottom:18px}
  .eg-page .eg-section-head p{font-size:14px}
  #kwyg-support-root{position:fixed!important;right:max(14px,env(safe-area-inset-right))!important;bottom:calc(16px + env(safe-area-inset-bottom) + var(--kwyg-keyboard-inset,0px))!important;z-index:3000}
  #kwyg-support-root #kwyg-support-panel{position:fixed!important;right:14px;bottom:calc(82px + env(safe-area-inset-bottom) + var(--kwyg-keyboard-inset,0px));max-height:calc(var(--kwyg-viewport-height,100dvh) - 105px)}
  .kwyg-device-card{margin:6vh auto 90px;padding:22px}
}
@keyframes kwyg-menu-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.kwyg-mobile-menu-toggle svg{transition:none}.kwyg-mobile-menu[open]{animation:none}}
