.mobile-language-menu{display:none}
.mobile-header-actions{display:contents}
.mobile-planner-back{display:none}
@media(max-width:700px){
 body:has(#planner-root:not([hidden]))>.site-header,
 body:has(#planner-root:not([hidden]))>.site-tools,
 body #planner-root>.mode-current,
 body #planner-root>.policy-scope{display:none!important}
 body #planner-root .planner-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}
 body #planner-root .mobile-planner-back{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;min-height:38px;margin:0;padding:0;border:1px solid #40576b;border-radius:6px;background:#142433;color:#bcd0e1;font:20px/1 system-ui,sans-serif;cursor:pointer}
 body #planner-root .mobile-planner-back:focus-visible{outline:2px solid #f0ce87;outline-offset:2px}
 body #planner-root .page-title h1{margin:0!important;min-width:0;font-size:18px!important;line-height:1.4}
 body #planner-root .page-title h1 span{font-size:inherit!important}
 body #planner-root>.page-title{margin:12px 0 16px!important}
 .creator-channel{display:none!important}
 body>.site-header{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px;gap:8px}
 .site-header .channel-banner{width:100%;min-width:0}
 .mobile-header-actions{display:flex;align-items:center;gap:8px;min-width:0;width:100%}
 .mobile-header-actions .mobile-language-menu{flex:1;min-width:0}
 .mobile-header-actions .reference-button{flex:0 0 44px}
 .site-header .channel-banner{box-sizing:border-box;height:44px;min-height:44px;padding:8px;gap:7px}
 .site-header .channel-play{flex-basis:28px;width:28px;height:22px;font-size:12px}
 .site-header .channel-copy strong{font-size:17px}
 .site-header .channel-copy small{display:none}
 .site-header .reference-button{box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:8px!important;background:#182b3b!important;border-color:#60768a!important;color:#e3edf7!important;box-shadow:none}
 .site-header .reference-button-label,.site-header .reference-button-arrow{display:none}
 .site-header .reference-button-icon{width:22px;font-size:22px}
 .mobile-language-menu{display:block;position:relative;flex:0 0 auto;z-index:20}
 .mobile-language-menu summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:44px;min-height:44px;padding:8px;border:1px solid #60768a;border-radius:7px;background:#182b3b;color:#e3edf7;font-size:12px;white-space:nowrap;cursor:pointer;list-style:none}
 .mobile-language-menu summary::-webkit-details-marker{display:none}
 .mobile-language-menu summary:focus-visible{outline:2px solid #f3cf89;outline-offset:3px}
 .mobile-language-menu[open] summary{border-color:#e1c085;color:#f1d399}
 .mobile-language-menu>.sg-language{position:absolute;right:-52px;top:calc(100% + 8px);width:260px;max-width:calc(100vw - 28px);padding:12px;margin:0;display:flex;flex-direction:column;align-items:stretch;gap:10px;border:1px solid #647b8d;border-radius:9px;background:#152432;box-shadow:0 10px 35px #0008}
 .mobile-language-menu:not([open])>.sg-language{display:none}
 .mobile-language-menu .sg-language-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .mobile-language-menu .sg-language button{min-height:42px;font-size:13px;padding:8px}
 .mobile-language-menu .sg-language-hint{font-size:10px;line-height:1.5;text-align:left;margin:0}
 .site-tools{padding:0 12px}
 .site-tools>.tool-nav{gap:8px}
 .site-tools>.tool-nav :is(a,button){min-height:44px;padding:9px 6px;font-size:13px}
 body>.site-tools~.mode-start{padding-top:18px}
 /* Separate the section header, while keeping empty before/after guidance compact. */
 body #wizard-items .category-row.preview-layout-row.is-empty>.paired-comparisons{margin-top:12px!important}
 body #wizard-items .category-row.preview-layout-row.is-empty .pair-heading{padding-bottom:4px!important}
 body #wizard-items .category-row.preview-layout-row.is-empty .exchange-pair{padding-top:0!important;padding-bottom:0!important}
 body #wizard-items .category-row.preview-layout-row.is-empty .exchange-pair>.paired-before,
 body #wizard-items .category-row.preview-layout-row.is-empty .exchange-pair>.paired-after{padding:10px 4px!important}
 body #wizard-items .category-row.preview-layout-row.is-empty .placeholder{margin:0!important}
}

/* Keep the final skill comparison as wide as its editing-step counterpart. */
@media(max-width:700px){
 #wizard-review #review-rows{padding-inline:0}
 #wizard-review #review-rows>.skill-completed{margin-inline:0;padding:0!important}
}
@media(max-width:600px){
 .skill-grade-icons{display:grid;grid-template-columns:repeat(2,minmax(0,39px));gap:5px;align-items:center;align-content:center}
 .skill-grade-icons>.skill-plan-icon{width:100%;min-width:0;max-width:39px}
 .skill-grade-icons>.skill-plan-icon img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
}
/* Approved compact mobile channel links. */
.kakao-channel{display:none}
@media(min-width:701px){
 .site-header .channel-banner{box-sizing:border-box;height:70px}
 .site-header .kakao-channel{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:none;gap:11px;min-width:190px;height:70px;margin-right:auto;padding:12px 17px;border:1px solid #716b48;border-radius:9px;background:linear-gradient(135deg,#292e2b,#19272b);color:#fff0ac;text-decoration:none;box-shadow:inset 0 1px #ffffff08;white-space:nowrap}
 .site-header .kakao-copy{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
 .site-header .kakao-copy>span{order:1;font:500 11px/1.4 system-ui,sans-serif;color:#b9bcae}
 .site-header .kakao-copy small{order:0;font:750 21px/1.2 system-ui,sans-serif;color:#fff0ac;letter-spacing:-.3px}
 .site-header .kakao-mark{position:relative;display:block;flex:0 0 32px;width:32px;height:32px;background:#fee500;border-radius:9px;box-shadow:0 1px 4px #0003}
 .site-header .kakao-mark:before{content:'';position:absolute;width:21px;height:16px;left:5.5px;top:7px;background:#352b1c;border-radius:50%}
 .site-header .kakao-mark:after{content:'';position:absolute;left:9px;top:20px;border-top:6px solid #352b1c;border-right:5px solid transparent;transform:rotate(12deg)}
 .site-header .kakao-channel:hover{border-color:#b2a365;background:#30362d}
 .site-header .kakao-channel:focus-visible{outline:3px solid #fee500;outline-offset:4px}
}

@media(max-width:700px){
body>.site-header{display:flex!important;gap:8px!important;align-items:center}
.site-header .channel-banner{flex:0 0 96px;min-width:0;width:96px;padding:6px;gap:5px}
.mobile-header-actions{width:auto;flex:0 0 auto;gap:8px}
.mobile-header-actions .mobile-language-menu{flex:0 0 78px;width:78px}
.site-header .kakao-channel{box-sizing:border-box;display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:8px;height:44px;padding:5px 8px;border:1px solid #716b48;border-radius:8px;background:linear-gradient(135deg,#292e2b,#232928);color:#fff0ac;text-decoration:none;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff08}
.kakao-channel .kakao-copy{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.kakao-channel .kakao-copy>span{font:500 9px/1.2 system-ui,sans-serif;color:#b9bcae;letter-spacing:0}
.site-header .kakao-channel small{font:750 14px/1.2 system-ui,sans-serif;letter-spacing:0;color:#fff0ac}
.kakao-mark{position:relative;display:block;flex:0 0 24px;width:24px;height:24px;background:#fee500;border-radius:7px;box-shadow:0 1px 4px #0003}
.kakao-mark:before{content:'';position:absolute;width:15px;height:11px;left:4.5px;top:5.5px;background:#352b1c;border-radius:50%}
.kakao-mark:after{content:'';position:absolute;left:7px;top:14px;border-top:5px solid #352b1c;border-right:4px solid transparent;transform:rotate(12deg)}
.site-header .channel-banner{border-radius:8px}
.site-header .kakao-channel:hover{border-color:#b2a365;background:#30362d}
.site-header .kakao-channel:focus-visible{outline:2px solid #fee500;outline-offset:2px}
.site-header .channel-copy strong{font-size:13px;white-space:nowrap}
.site-header .channel-play{flex-basis:23px;width:23px;height:20px;font-size:10px}
@media(max-width:350px){
body>.site-header{padding-inline:8px;gap:6px!important}
.mobile-header-actions{gap:6px}
.mobile-header-actions .mobile-language-menu{flex-basis:70px;width:70px}
.site-header .reference-button{width:40px;min-width:40px;flex-basis:40px}
.site-header .channel-banner{flex-basis:79px;width:79px;padding:5px;gap:4px}
.site-header .channel-play{flex-basis:20px;width:20px;height:18px}
.site-header .channel-copy strong{font-size:12px}
.site-header .kakao-channel{gap:5px;padding-inline:5px}
.site-header .kakao-channel small{font-size:13px}
.site-header .kakao-mark{flex-basis:20px;width:20px;height:22px}
.site-header .kakao-mark:before{left:2.5px;top:4.5px}
.site-header .kakao-mark:after{left:5px;top:13px}
}}
