/* Shared page chrome. App content and native desktop window controls stay local. */
@font-face{font-family:'KT Flow';src:url('/fonts/KTFlow-Medium.woff2?v=ca84f99c285d6d953a0b') format('woff2');font-weight:500;font-display:swap}
:root{--ktcs-header-height:72px;--ktcs-footer-height:52px;--ktcs-shell-padding:24px;--ktcs-shell-line:#e8e8ec;--ktcs-shell-ink:#24272d;--ktcs-shell-muted:#76767d;--ktcs-shell-font:Pretendard,'Malgun Gothic',sans-serif}
body.ktcs-page{display:flex;flex-direction:column;min-height:100dvh;margin:0;padding-bottom:0;font-family:var(--ktcs-shell-font);--app-header-height:var(--ktcs-header-height);--credit-height:var(--ktcs-footer-height)}
.ktcs-page>main,.ktcs-page>.workspace{flex:1}
.ktcs-page>main[data-view="login"]{min-height:calc(100dvh - var(--ktcs-header-height) - var(--ktcs-footer-height))}
.ktcs-page.ktcs-vpn>main{width:min(1060px,100%)}
.ktcs-header,body:has(#business-workspace:not([hidden])) .ktcs-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:16px;box-sizing:border-box;width:100%;height:var(--ktcs-header-height);min-height:var(--ktcs-header-height);padding:0 var(--ktcs-shell-padding);border:0;border-bottom:1px solid var(--ktcs-shell-line);background:#fff;color:var(--ktcs-shell-ink)}
.ktcs-header .ktcs-brand,body:has(#business-workspace:not([hidden])) .ktcs-header .ktcs-brand{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px;min-width:0;min-height:44px;flex:0 1 auto;margin:0;text-decoration:none;color:inherit;letter-spacing:normal}
.ktcs-brand-logo,.ktcs-header .brand-ci{display:block;flex:none;width:76px;height:auto;max-height:40px;object-fit:contain}
.ktcs-header .ktcs-header-title{display:block;min-width:0;margin:0;padding-left:16px;border-left:1px solid var(--ktcs-shell-line);color:var(--ktcs-shell-ink);font-family:'KT Flow',var(--ktcs-shell-font);font-size:21px;font-weight:500;line-height:26px;letter-spacing:-.4px;white-space:nowrap}
.ktcs-header .ktcs-header-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:10px;min-width:0;margin:0 0 0 auto;font-family:var(--ktcs-shell-font);font-size:12px}
.ktcs-header-actions>a,.ktcs-header-actions>button,.ktcs-header-actions .service-nav>button,.ktcs-header .app-switch-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:auto;min-height:36px;margin:0;padding:0 12px;border:1px solid #e2e2e7;border-radius:8px;background:#fff;color:#494951;font-family:var(--ktcs-shell-font);font-size:12px;font-weight:600;line-height:1.4;letter-spacing:0;text-decoration:none;white-space:nowrap;cursor:pointer}
.ktcs-header #portal-logout{min-height:36px;padding:0 12px;border-radius:8px;font:600 12px/1.4 var(--ktcs-shell-font)}
.ktcs-header-actions>a:hover,.ktcs-header-actions>button:hover,.ktcs-header-actions .service-nav>button:hover,.ktcs-header .app-switch-link:hover{border-color:#efc7cc;background:#fff1f2;color:#bc172b}
.ktcs-header :focus-visible,.ktcs-footer :focus-visible{outline:2px solid #e50019;outline-offset:3px}
.ktcs-footer{position:static;display:flex;align-items:center;justify-content:space-between;flex:none;flex-wrap:wrap;gap:4px 16px;box-sizing:border-box;width:100%;min-height:var(--ktcs-footer-height);height:auto;margin:0;padding:12px var(--ktcs-shell-padding) max(12px,env(safe-area-inset-bottom));border:0;border-top:1px solid var(--ktcs-shell-line);background:#fff;color:var(--ktcs-shell-muted)!important;font-family:var(--ktcs-shell-font);font-size:11px!important;font-weight:400;line-height:16px;text-align:left}
.ktcs-footer-domain{flex:none;letter-spacing:.2px}
.ktcs-footer-credit{margin:0 0 0 auto;text-align:right;word-break:keep-all}
.ktcs-footer .product-credit{position:static;display:block;width:auto;height:auto;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;white-space:normal}
.ktcs-web-shell{--app-header-height:var(--ktcs-header-height);--app-header-padding:var(--ktcs-shell-padding);grid-template-rows:var(--ktcs-header-height) minmax(0,1fr) calc(var(--app-nav-height) + env(safe-area-inset-bottom,0px)) auto!important}
.ktcs-web-shell .ktcs-header{position:relative;z-index:20}
.ktcs-web-shell .mw-menu-credit{display:none}
.ktcs-web-shell .mw-account{flex-wrap:nowrap}
@media(max-width:620px){
 :root{--ktcs-header-height:64px;--ktcs-shell-padding:16px}
 .ktcs-header,body:has(#business-workspace:not([hidden])) .ktcs-header{gap:10px}
 .ktcs-header .ktcs-brand{gap:12px}
 .ktcs-brand-logo,.ktcs-header .brand-ci{width:64px;max-height:34px}
 .ktcs-header .ktcs-header-title{padding-left:12px;font-size:18px;line-height:24px}
 .ktcs-header .ktcs-header-actions{gap:6px}
 .ktcs-header-actions>a,.ktcs-header-actions>button,.ktcs-header-actions .service-nav>button,.ktcs-header .app-switch-link{min-height:44px;padding-inline:9px;font-size:11px}
 .ktcs-header #portal-logout{min-height:44px;padding-inline:9px;font-size:11px}
 .ktcs-header .account-name{display:none}
 .ktcs-header .network{font-size:0;gap:0}
 .ktcs-header .network i{width:7px;height:7px}
 .ktcs-footer{font-size:10px!important}
 .ktcs-web-shell .ktcs-brand-logo{width:52px}
 .ktcs-web-shell .ktcs-header-title{font-size:16px;padding-left:10px}
 .ktcs-web-shell .ktcs-brand{gap:10px}
 .ktcs-page input:not([type=checkbox]):not([type=radio]),.ktcs-page select,.ktcs-page textarea{font-size:16px}
 .ktcs-page .button,.ktcs-page button[type=submit]{min-height:44px}
 .ktcs-web-shell .ktcs-header .mw-status-trigger,.ktcs-web-shell .ktcs-header .mw-alert-settings,.ktcs-web-shell .ktcs-header .mw-more-trigger{min-height:44px;min-width:44px}
 .ktcs-web-shell .ktcs-header .mw-status-trigger .mw-presence-label{display:none}
 .ktcs-web-shell .ktcs-header .mw-status-trigger{max-width:56px;padding-inline:7px}
}
@media(max-width:380px){
 .ktcs-header .ktcs-brand{gap:8px}
 .ktcs-header .ktcs-header-title{padding-left:8px;font-size:16px}
 .ktcs-header .ktcs-header-actions{gap:4px}
 .ktcs-web-shell .ktcs-header{gap:6px}
 .ktcs-web-shell .ktcs-brand-logo{width:42px}
 .ktcs-web-shell .ktcs-header-title{font-size:15px}
}
@media print{.ktcs-header,.ktcs-footer{display:none!important}body.ktcs-page{padding:0}}

.portal-vpn-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid var(--ktcs-shell-line);border-radius:16px;background:#fff;color:var(--ktcs-shell-ink);font-family:var(--ktcs-shell-font);overflow:auto;box-shadow:0 20px 80px #24272d26}
.portal-vpn-dialog::backdrop{background:#20232a66}
.portal-vpn-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.portal-vpn-heading h2{margin:0;font-family:'KT Flow',var(--ktcs-shell-font);font-size:24px;font-weight:500}
.portal-vpn-dialog button,.portal-vpn-dialog a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:0 14px;border:1px solid #e2e2e7;border-radius:8px;background:#fff;color:#494951;font:600 13px var(--ktcs-shell-font);text-decoration:none;cursor:pointer}
.portal-vpn-dialog button:disabled{opacity:.5;cursor:wait}.portal-vpn-dialog :focus-visible{outline:2px solid #e50019;outline-offset:3px}
#portal-vpn-message{margin:0 0 18px;color:#626b77;font-size:14px;line-height:1.7;overflow-wrap:anywhere}#portal-vpn-message:empty{display:none}
.portal-vpn-progress{text-align:center;padding:20px 0}.portal-vpn-dialog form{display:grid;gap:9px}.portal-vpn-dialog label{font-size:13px;font-weight:600;color:#555b65}.portal-vpn-dialog input{box-sizing:border-box;width:100%;min-width:0;height:48px;margin:0 0 12px;padding:0 12px;border:1px solid #dcdde2;border-radius:7px;background:#fff;color:#24272d;font:400 16px var(--ktcs-shell-font)}
.portal-vpn-dialog #portal-vpn-connect,.portal-vpn-dialog #portal-vpn-open{width:100%;background:#e50019;border-color:#e50019;color:#fff}.portal-vpn-actions{display:grid;gap:10px}.portal-vpn-dialog form+.portal-vpn-actions:has(>:not([hidden])){margin-top:16px}
@media(max-width:620px){.portal-vpn-dialog{padding:24px 20px;max-height:calc(100dvh - 24px);padding-bottom:max(24px,env(safe-area-inset-bottom))}}
body:has(#portal-vpn-dialog[open]){overflow:hidden}
.service-card[aria-busy="true"] .enter-arrow{position:relative}.service-card[aria-busy="true"] .enter-arrow svg{visibility:hidden}.service-card[aria-busy="true"] .enter-arrow::after{content:'';position:absolute;inset:5px;border:2px solid #e8e6e3;border-top-color:#e50019;border-radius:50%;animation:portal-spin 1s linear infinite}
@media(prefers-reduced-motion:reduce){.service-card[aria-busy="true"] .enter-arrow::after{animation:none}}
