/* Source-measured shared header/footer and floating controls. KSI identity retained. */
:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;}body.light-page{background:var(--gray-50)}header,body.tools-page header{height:65px;padding:0 24px;gap:0;z-index:40;border-bottom:1px solid var(--gray-100);box-shadow:0 1px 2px #00000006}.brand{width:194px;gap:10px;display:flex;align-items:center;flex-direction:row}.brand img,body.tools-page .brand img{width:80px;height:36px}.brand span,body.tools-page .brand span{border:0;padding:0;letter-spacing:0;display:block;color:var(--gray-950);font-size:var(--fs-small);line-height:21px;font-weight:700}.brand small{display:block;font-size:var(--fs-caption);line-height:16px;font-weight:400;color:var(--gray-600)}.header-actions{gap:8px;margin-left:auto}.header-actions select,body.tools-page .header-actions select{width:88px;font-size:var(--fs-caption);line-height:16px;padding:6px 8px;border-radius:var(--radius-md);background:var(--ksi-white);height:30px}.header-actions #user-button{height:36px;width:100px;max-width:100px;font-size:var(--fs-small);line-height:20px;padding:8px 10px;border-radius:var(--radius-md);background:var(--ksi-blue);color:white;font-weight:600}#admin-link,.header-actions .message-link{display:none}#top-nav,body.tools-page #top-nav{position:fixed;left:240px;right:248px;top:0;height:65px;width:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;z-index:41;display:flex;justify-content:space-between;align-items:center;gap:16px;overflow:visible}#top-nav a,body.tools-page #top-nav a{font-size:var(--fs-small);font-weight:500;line-height:20px;gap:8px;padding:0;color:var(--gray-800)}#top-nav svg,body.tools-page #top-nav svg{width:16px;height:16px}#top-nav a.active,body.tools-page #top-nav a.active{color:var(--ksi-blue-text)}.tools-sidebar{top:65px;width:208px}.tools-content{margin-left:208px}.tools-group{scroll-margin-top:86px}.admin-sidebar{top:65px}.tool-grid{grid-template-columns:repeat(6,minmax(0,1fr))}#service-assistant,#message-fab,#page-backtop{position:fixed;right:40px;width:52px;height:52px;padding:0;display:grid;place-items:center;border-radius:var(--radius-full);color:white;z-index:24;box-shadow:0 4px 18px #0002;line-height:1;border:1px solid #ffffff25}#service-assistant{bottom:144px;background:var(--ksi-blue)}#service-assistant span{display:none}#service-assistant svg,#message-fab svg{width:22px;height:22px}#message-fab{bottom:216px;background:var(--gray-800)}#page-backtop{bottom:72px;background:var(--ksi-blue);font-size:var(--fs-h2)}.tools-backtop{display:none}body.admin-page #service-assistant,body.admin-page #message-fab,body.admin-page #page-backtop{display:none}footer,body.light-page footer,body.tools-page footer{margin-left:0;background:var(--ksi-black);color:#A9A29C;border-top:1px solid #ffffff0d;text-align:left;padding:24px;font-size:var(--fs-caption);min-height:206px}.footer-main{display:flex;align-items:center;justify-content:space-between;gap:32px;max-width:1280px;margin:auto;min-height:128px}.footer-brand{display:flex;gap:20px;align-items:center;max-width:600px}.footer-brand img{width:100px;opacity:1}.footer-brand strong{color:var(--ksi-white);font-size:var(--fs-small)}.footer-brand p{line-height:22px;margin:8px 0}.footer-links{display:flex;gap:24px;line-height:24px}.footer-links>div{display:grid}.footer-links strong{color:#A9A29C;font-size:var(--fs-caption);margin-bottom:6px}.footer-bottom{max-width:1280px;margin:0 auto;display:flex;justify-content:space-between;border-top:1px solid #ffffff0d;padding-top:16px;font-size:var(--fs-caption);color:#A9A29C}.footer-bottom p{margin:0}footer a:hover{color:white}.tool-detail{min-height:calc(100vh - 271px)}
@media(min-width:1280px){.tool-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1280px) and (min-width:769px){header,body.tools-page header{padding:0 16px}.brand{width:170px;gap:6px}.brand img,body.tools-page .brand img{width:65px}.brand span{font-size:var(--fs-caption)}#top-nav,body.tools-page #top-nav{left:194px;right:204px;gap:9px}#top-nav a,body.tools-page #top-nav a{font-size:var(--fs-caption);gap:4px}#top-nav svg,body.tools-page #top-nav svg{width:14px;height:14px}.header-actions select{width:64px!important}.header-actions #user-button{width:88px;font-size:var(--fs-caption)}.tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1024px) and (min-width:769px){.brand{width:128px}.brand span{display:none!important}.brand img,body.tools-page .brand img{width:108px}#top-nav,body.tools-page #top-nav{left:144px;right:186px;gap:5px}#top-nav a,body.tools-page #top-nav a{font-size:var(--fs-caption)}#top-nav svg,body.tools-page #top-nav svg{display:none}.header-actions #user-button{width:80px}}
@media(max-width:768px){header,body.tools-page header{height:65px;padding:0 16px}.brand{width:auto}.brand img,body.tools-page .brand img{width:108px;height:32px}.brand span,body.tools-page .brand span{display:none}#top-nav,body.tools-page #top-nav{display:none}.header-actions #user-button{width:92px}.header-actions select{width:80px!important}.tools-sidebar{position:sticky;top:65px;width:100%;height:52px;display:flex;overflow-x:auto;padding:8px;border-bottom:1px solid var(--gray-100)}.tools-content{margin-left:0}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tools-group{scroll-margin-top:135px}#mobile-nav{display:flex}#service-assistant,#message-fab,#page-backtop{right:16px;width:44px;height:44px}#service-assistant{bottom:132px}#message-fab{bottom:188px}#page-backtop{bottom:76px}.footer-main{flex-direction:column;align-items:flex-start;gap:20px;min-height:0}.footer-brand{gap:16px}.footer-links{gap:30px;flex-wrap:wrap}.footer-bottom{margin-top:24px;gap:10px;flex-direction:column}footer,body.light-page footer,body.tools-page footer{padding:24px 20px 100px}.admin-sidebar{top:65px}}
dialog.auth-dialog{width:384px;padding:32px;background:var(--ksi-white);color:var(--gray-950);border:1px solid var(--gray-100);border-radius:var(--radius-lg)}dialog.auth-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.auth-panel h2{text-align:center;font-size:var(--fs-h3);line-height:28px;margin:14px 0 4px}.auth-brand{display:grid;place-items:center;width:72px;height:56px;margin:0 auto}.auth-brand img{width:72px}.auth-subtitle{text-align:center;font-size:var(--fs-small);line-height:20px;color:var(--gray-600);margin:0}.auth-panel .switch{margin:24px 0;background:var(--gray-50);padding:4px;border-radius:var(--radius-md)}.auth-panel .switch button{font-size:var(--fs-small);line-height:20px;padding:8px}.auth-panel .switch .selected{background:white;color:var(--ksi-blue-text);box-shadow:0 1px 3px #0001}.auth-panel label{font-size:var(--fs-small);line-height:20px;color:var(--gray-800);margin-bottom:16px}.auth-panel input:not([type=checkbox]){height:44px;background:var(--ksi-white);color:var(--gray-950);border:1px solid var(--gray-300);padding:10px 12px;border-radius:var(--radius-md)}.auth-panel input[type=checkbox]{accent-color:var(--ksi-blue);width:14px;height:14px;margin:0}.auth-options{display:flex;justify-content:space-between;align-items:center;margin-top:-2px}.auth-options label,.auth-panel .auth-remember{display:flex;align-items:center;gap:6px;font-size:var(--fs-caption);line-height:16px;margin:0}.auth-panel .auth-remember{margin-top:10px}.auth-options button{padding:0;border:0;color:var(--ksi-blue-text);font-size:var(--fs-caption);background:transparent}.auth-panel button[type=submit]{height:44px;background:linear-gradient(100deg,var(--ksi-blue),var(--ksi-blue-text));color:white;border:0;border-radius:var(--radius-md);font-size:var(--fs-small)}.auth-note{font-size:var(--fs-caption);color:var(--gray-600);line-height:18px;margin-bottom:0}.auth-back{width:100%;border:0;background:transparent;color:var(--ksi-blue-text);font-size:var(--fs-caption)}.auth-panel .form-error{font-size:var(--fs-caption);min-height:16px;margin:10px 0;color:var(--danger)}.media-picker [data-media-previews]{display:flex;gap:10px;flex-wrap:wrap}.media-picker [data-media-previews]>div{position:relative}.media-picker [data-media-previews] img{width:80px;height:80px;object-fit:cover;border:1px solid var(--gray-100);border-radius:var(--radius-md)}.media-picker [data-media-previews] button{position:absolute;right:-5px;top:-5px;padding:0;background:var(--gray-800);color:white;border-radius:var(--radius-full);width:22px;height:22px}.media-picker [data-media-state]{font-size:var(--fs-caption);color:var(--ksi-blue-text)}
/* Homepage geometry follows the public reference; operational copy stays KSI. */
.home-reference{background:var(--ksi-black)}.home-reference .hero{height:650px;min-height:650px;background:var(--ksi-black)}.home-network{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.home-reference .hero-inner{max-width:1280px;margin:auto;padding:124px 96px 0}.home-reference .hero .eyebrow{font-size:var(--fs-small);line-height:20px;padding:0;background:none;border:0;letter-spacing:1.4px;color:var(--ksi-blue-text)}.home-reference .hero h1{font-size:var(--fs-display);line-height:1;letter-spacing:-3px;font-weight:900;max-width:600px;margin:26px 0 24px}.home-reference .hero p{font-size:var(--fs-h3);line-height:28px;max-width:448px;margin:0;color:var(--gray-600)}.home-reference .hero .stats{margin-top:36px;gap:40px;max-width:448px}.home-reference .stat{min-width:96px;border:0;padding:0;background:none}.home-reference .stat strong{font-size:var(--fs-h1);font-weight:900;line-height:40px;color:var(--ksi-white)}.home-reference .stat span{display:block;font-size:var(--fs-caption);letter-spacing:1px;margin-top:6px;color:var(--gray-300)}.home-reference .hero .home-announcement{font-size:var(--fs-caption);line-height:18px;margin-top:24px;color:var(--gray-600)}.home-wordmark{position:absolute;left:75.5%;top:280px;display:flex;flex-direction:column;align-items:center;text-align:center}.home-wordmark strong{font-size:var(--fs-h1);letter-spacing:3px;color:white}.home-wordmark b{color:var(--ksi-blue-text);font-size:var(--fs-display);font-weight:900;letter-spacing:7px;line-height:1.2}.home-wordmark span{font-size:var(--fs-small);color:var(--gray-300);letter-spacing:4px;margin-top:8px}.home-reference .section{max-width:1200px;padding:80px 24px}.home-reference .section-title{margin-bottom:56px}.home-reference .section-title h2{font-size:var(--fs-display);line-height:48px;font-weight:900;margin:0 0 16px}.home-reference .section-title p{font-size:var(--fs-body);color:var(--gray-600);margin:0}.home-services .grid{gap:20px}.home-services .card{background:#ffffff05;border:1px solid #ffffff1a;border-radius:var(--radius-lg);padding:24px;min-height:244px}.home-services .card:hover{border-color:#1a99bd77;transform:translateY(-4px)}.home-services .card h3{font-size:var(--fs-h3);margin:0 0 10px}.home-services .card p{font-size:var(--fs-small);line-height:24px;min-height:48px}.home-services .icon{width:48px;height:48px;margin-bottom:18px}.home-services .icon svg{width:24px;height:24px}.home-services .card .tags{display:none}.home-services .arrow{font-size:var(--fs-small);color:var(--ksi-blue-text);margin-top:16px}.home-reference .home-guide{padding-top:96px;padding-bottom:96px}.home-guide .section-title{margin-bottom:80px}.home-guide .eyebrow{border:0;background:none;display:block;padding:0;margin-bottom:16px;font-size:var(--fs-small);color:var(--ksi-blue-text);letter-spacing:1.4px}.home-guide-group{margin-bottom:64px}.home-guide-group>h3{display:flex;align-items:center;gap:14px;font-size:var(--fs-h2);font-weight:900;margin:0 0 24px}.home-guide-group>h3>span{font-size:var(--fs-caption);padding:6px 12px;border:1px solid #1a99bd55;background:#1a99bd22;border-radius:var(--radius-md);color:var(--ksi-blue-text);letter-spacing:1px}.home-conditions,.home-process,.home-rights{display:grid;gap:16px}.home-conditions{grid-template-columns:repeat(4,1fr)}.home-process{grid-template-columns:repeat(5,1fr)}.home-rights{grid-template-columns:repeat(3,1fr)}.home-guide article{padding:20px;background:#ffffff0d;border:1px solid #ffffff1a;border-radius:var(--radius-lg)}.home-guide article h4{font-size:var(--fs-body);line-height:24px;margin:0 0 10px;color:var(--ksi-white)}.home-guide article h4 i{font-style:normal;color:var(--ksi-blue-text);margin-right:10px}.home-guide article p{font-size:var(--fs-small);line-height:23px;color:var(--gray-600);margin:0 0 16px}.home-guide article .tag{font-size:var(--fs-caption);background:#1a99bd1a;border-color:#1a99bd33;color:var(--ksi-blue-text)}.home-process article{position:relative}.home-process article:not(:last-child):after{content:'›';position:absolute;right:-14px;top:44%;font-size:var(--fs-h1);color:#1a99bd99}.home-process b{font-size:var(--fs-h3);color:var(--ksi-blue-text);display:block;margin-bottom:16px}.home-process small{display:block;border-top:1px solid #ffffff0d;padding-top:10px;font-size:var(--fs-caption);color:var(--gray-600);line-height:18px}.home-rights .tag{display:inline-block;margin-bottom:14px}.home-rights p{margin-bottom:0!important}.home-cta{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.home-cta>a{display:flex;align-items:center;gap:10px;padding:16px 40px;background:#ffffff1a;border:1px solid #ffffff33;border-radius:var(--radius-lg);font-size:var(--fs-h3);font-weight:700;color:white}.home-cta>a.primary{background:var(--ksi-blue);border-color:var(--ksi-blue)}.home-cta svg{width:20px;height:20px}.home-cta p{width:100%;text-align:center;color:var(--gray-600);font-size:var(--fs-small);margin-top:4px}
@media(max-width:1024px){.home-reference .hero-inner{padding-left:48px}.home-reference .hero h1{font-size:var(--fs-display)}.home-wordmark{left:76%;top:310px}.home-wordmark strong{font-size:var(--fs-h2)}.home-wordmark b{font-size:var(--fs-display)}.home-services .grid,.home-conditions{grid-template-columns:repeat(2,1fr)}.home-process{grid-template-columns:repeat(3,1fr)}.home-process article:after{display:none}.home-reference .section-title h2{font-size:var(--fs-h1)}}
@media(max-width:768px){.home-reference .hero{height:600px;min-height:600px}.home-reference .hero-inner{padding:64px 24px 0}.home-reference .hero h1{font-size:var(--fs-display);line-height:1.15;letter-spacing:-1px;margin:24px 0}.home-reference .hero p{font-size:var(--fs-body);line-height:25px;max-width:360px}.home-reference .hero .stats{gap:24px;margin-top:28px}.home-reference .stat{min-width:80px}.home-reference .stat strong{font-size:var(--fs-h1)}.home-reference .stat span{font-size:var(--fs-caption)}.home-network{opacity:.4;object-position:65% center}.home-wordmark{display:none}.home-reference .section{padding:56px 20px}.home-reference .section-title h2{font-size:var(--fs-h2);line-height:38px}.home-reference .section-title p{font-size:var(--fs-small);line-height:24px}.home-reference .section-title{margin-bottom:36px}.home-services .grid{grid-template-columns:1fr 1fr;gap:12px}.home-services .card{padding:18px;min-height:230px}.home-services .card h3{font-size:var(--fs-body)}.home-services .card p{font-size:var(--fs-small)}.home-conditions,.home-process,.home-rights{grid-template-columns:1fr}.home-guide-group{margin-bottom:40px}.home-cta>a{font-size:var(--fs-body);padding:14px 20px}}
@media(max-width:768px){#mobile-nav{display:flex;height:66px;width:100%;left:0;right:0;padding:0 4px env(safe-area-inset-bottom);position:fixed;bottom:0;background:white;color:var(--gray-600);z-index:30;border-top:1px solid var(--gray-100)}#mobile-nav a,#mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1;font-size:var(--fs-caption);padding:8px 0;border:0;background:transparent}#mobile-nav button{font-size:var(--fs-h3);line-height:21px}#mobile-nav button span{font-size:var(--fs-caption)}#mobile-nav svg{width:22px;height:22px}#mobile-nav .active{color:var(--ksi-blue-text)}}

/* Compact admin menu remains in normal flow below the single-row header. */
@media(max-width:768px){.admin-sidebar{top:auto}}
