/* Use real system font families so Korean regular/bold faces resolve normally.
   The old single-weight VaultSans alias disabled synthesis and flattened weights. */
:root{--ink:#172b45;--muted:#46566b;--line:#cdd7e2;--gold-dark:#775423;--sd-ink:#172b45;--sd-muted:#46566b;--sd-line:#d7e0ea;--sd-accent:#2d4eae;font-family:'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR','Noto Sans CJK KR',system-ui,sans-serif;font-synthesis:weight}
body{font-size:16px;line-height:1.65;letter-spacing:0;color:var(--ink)}
button,input,select,textarea{font-family:inherit;letter-spacing:0}
h1,h2,h3,h4,strong,b{font-weight:700}
button{font-weight:600}
input,select,textarea{color:#172b45}
input::placeholder,textarea::placeholder{color:#5b687a;opacity:1}
.button,.sd-button,.sdg-button,.te-button{font-size:15px;min-height:44px;font-weight:700}
.button.small{font-size:14px;min-height:40px}
.text-link,.ct-link{font-size:14px;min-height:38px;color:#294d85}
.icon-button{width:40px;height:40px}
.sidebar{padding:26px 18px 18px;overflow-y:auto}
.brand small,.workspace small,.nav-caption,.nav-count,.private-label,.private-label b,.sidebar-bottom .text-link,.version{font-size:12px;color:#4c5c72}
.workspace b,.nav-item{font-size:14px}
.nav-item{color:#35475f;min-height:46px}
.nav-item svg,.nav-count{color:#546882}
.sidebar-bottom{padding-top:18px}
.breadcrumb,.connection-status,.account-button,.mode-banner,.home-active .mode-banner,.contracts-active .mode-banner{font-size:14px}
.mode-banner{color:#654a21;background:#fff6e7}
.mode-banner.live{color:#285548}
.home-brand-word{font-weight:700;letter-spacing:-.3px}
.home-brand-word small{font-size:12px;color:#46566b;letter-spacing:.8px}
.global-search .search-field input,.home-active .search-field input,.contracts-active .search-field input{font-size:17px;color:#172b45}
.global-search .search-field input::placeholder{font-size:16px;color:#5b687a}
#search-summary,.search-key{font-size:13px;color:#4c5c72}
.sd-title-row h1{font-size:32px;letter-spacing:-.5px}
.sd-title-row p{font-size:16px;line-height:1.65;max-width:none}
.sd-title-row>button,.sd-panel-head button,.sd-groups-head button{font-size:14px;min-height:42px}
.sd-panel-head h2{font-size:21px;font-weight:700;letter-spacing:0}
.sd-panel-head h2 small{font-size:15px}
.sd-panel-head p{font-size:14px;line-height:1.65}
.sd-doc strong,.sd-doc-cards .sd-doc strong,.sd-contract-copy strong{font-size:17px;font-weight:700;line-height:1.5;letter-spacing:0}
.sd-doc small,.sd-contract-copy small{font-size:14px;color:#46566b;line-height:1.6}
.sd-doc-cards .sd-doc{min-height:160px;background:#f4f7fb}
.sd-doc-cards .sd-doc>button:first-child{padding:18px;gap:18px}
.sd-panel-footer{font-size:15px;min-height:50px;font-weight:600}
.sd-contract-row{min-height:114px}
.sd-groups-head h2{font-size:20px}
.sd-group-list>button{font-size:15px;min-height:66px}
.sd-group-list small{font-size:13px;color:#46566b}
.quick-card b{font-size:15px;line-height:1.5}
.quick-card small{font-size:13px;color:#46566b;line-height:1.5}
.section-heading h2{font-size:23px}
.section-heading h2 span,.section-heading p,.doc-group-heading p,.group-empty{font-size:14px;color:#46566b;line-height:1.7}
.doc-group-heading h3{font-size:19px;font-weight:700}
.doc-group-heading h3 b{font-size:14px;color:#3b5575}
.doc-body h3,.group-grid .doc-body h3{font-size:17px;font-weight:700;line-height:1.5;white-space:normal;letter-spacing:0}
.doc-category,.group-grid.list-mode .doc-category{font-size:13px;color:#334e70;background:#eaf0f7;padding:5px 8px}
.doc-meta,.group-grid .doc-meta{font-size:14px;color:#46566b}
.doc-footer,.group-grid .doc-footer,.doc-cover .file-type,.doc-cover .sample-pill{font-size:12px;color:#46566b}
.doc-issued,.group-grid.list-mode .doc-issued>span,.doc-issued>span{font-size:14px;color:#354e6b}
.doc-issued small,.doc-issued b{font-size:13px;color:#315f43}
.doc-issued.older b,.issue-preview.older{color:#765014;background:#fff0d4}
.storage-summary,.storage-label,#storage-value,#storage-remaining{font-size:13px;color:#46566b}
.bottom-note,.field-help,.details-help,.install-note,.install-guide .field-help{font-size:13px;color:#46566b;line-height:1.75}
.field,.field>small,.batch-item .field,.favorite-field,.issue-date-heading .field{font-size:14px;color:#293e59}
.field input,.field select,.batch-item .field>input,.batch-item .field>select,.issue-date-section>input{font-size:16px;min-height:46px;color:#172b45;border-color:#aebccc}
.field input::placeholder{color:#5b687a}
.issue-preview,.issue-date-section .field-help{font-size:14px;line-height:1.7}
.viewer-title h2{font-size:19px;font-weight:700;line-height:1.45}
.viewer-title p{font-size:13px;color:#46566b}
.viewer-header-actions .button{font-size:15px;min-height:42px}
.viewer-details{width:295px;padding:24px}
.viewer-details h3{font-size:20px;font-weight:700}
.viewer-details dt{font-size:14px;color:#46566b}
.viewer-details dd{font-size:16px;color:#172b45;font-weight:500;line-height:1.7}
.viewer-details .button{font-size:14px;line-height:1.5}
.viewer-details .danger{font-size:14px;color:#8e3030}
.viewer-details .detail-storage,.viewer-loading,.details-help{font-size:13px;color:#46566b}
.viewer-toolbar{padding:9px 16px;font-size:14px;color:#263d5a}
.viewer-toolbar .icon-button{width:38px;height:38px}
.ct-modal{--ct-ink:#172b45;--ct-muted:#46566b;--ct-line:#cad5e2}
.ct-modal h2{font-size:26px;font-weight:700;letter-spacing:-.3px}
.ct-modal h3{font-size:19px;font-weight:700}
.ct-modal .ct-help,.ct-eyebrow,.ct-check,.ct-field,.ct-field-label,.ct-card-numbers small,.ct-card-numbers>span{font-size:14px;color:#46566b}
.ct-field input,.ct-field textarea,.ct-field select,.ct-custom-field input:not([type=checkbox]),.ct-custom-field textarea,.ct-custom-field select{font-size:16px;min-height:46px;color:#172b45;border-color:#aebccc}
.ct-modal summary{font-size:17px;font-weight:700}
.ct-summary span,.ct-summary small{font-size:14px;color:#46566b}
.ct-summary strong{font-size:31px;font-weight:700;color:#244474;letter-spacing:-.3px}
.ct-next,.ct-dl,.ct-table{font-size:16px;line-height:1.75}
.ct-dl dt{color:#46566b}
.ct-dl dd small,.ct-table small{font-size:14px;color:#46566b}
.ct-table th{color:#354b68;font-weight:700}
.te-intro,.te-note,.te-field-help,.te-field,.te-field small,.sdg-field,.sdg-note,.sdg-muted{font-size:14px;line-height:1.75;color:#46566b}
.te-field input,.te-field textarea,.te-field select,.sdg-field input,.sdg-field select{font-size:16px;min-height:46px;color:#172b45}
.mask-modal{color:#172b45;line-height:1.65}
.mask-head h2{font-size:28px;font-weight:700;letter-spacing:-.3px}
.mask-eyebrow{font-size:13px;font-weight:700;color:#285c50}
.mask-head p,.mask-notice p{font-size:15px;line-height:1.65;color:#354c65}
.mask-notice b{font-size:17px;color:#173f35}
.mask-notice small,.mask-notice summary{font-size:14px;color:#315c51;line-height:1.7}
.mask-notice summary{cursor:pointer;font-weight:700;margin-top:9px}
.mask-notice details p{font-size:14px;color:#354c65}
.mask-progress,.mask-page-nav,.mask-hint,.mask-help,.mask-controls form label,.mask-page-status,.mask-region-item,.mask-review{font-size:15px;line-height:1.7}
.mask-progress{color:#25594b;font-weight:600}
.mask-controls h3{font-size:19px;font-weight:700}
.mask-help,.mask-hint,.mask-page-status{color:#3e536c}
.mask-region-item{padding:8px 11px;color:#263f5e;background:#f0f4f8;border-color:#bccbda}
.mask-word-row input{font-size:16px;min-height:44px;color:#172b45;border-color:#aebccc}
.mask-review{font-size:16px;color:#1d3a57;font-weight:700}
.mask-review input{width:20px;height:20px;flex-shrink:0}
.mask-preview-tools #mask-zoom{font-size:14px;font-weight:700;color:#354c65;min-width:42px}
.mask-footer>p{font-size:13px;color:#46566b;line-height:1.7}
.mask-scroll{max-height:64vh;background:#e9eef4}
.mask-preview{background:#edf2f7;border-color:#c4d0df}
.mask-error{font-size:15px;color:#842c1d}
@media(max-width:700px){
 .home-active main,.contracts-active main{padding-left:18px;padding-right:18px}
 .sd-title-row h1{font-size:29px}.sd-title-row p{font-size:15px;max-width:235px}
 .sd-title-row>button{font-size:14px;margin-top:8px}
 .sd-panel-head{padding:18px 16px}.sd-panel-head h2{font-size:20px}
 .sd-doc-cards .sd-doc>button:first-child{padding:15px}.sd-doc-cards .sd-doc strong{font-size:16px}
 .sd-doc-cards .sd-doc{min-height:155px}.sd-doc small,.sd-contract-copy small{font-size:14px}
 .sd-contract-copy strong{font-size:16px}.sd-contract-row{min-height:104px}
 .sd-group-list>button{font-size:14px}.sd-group-list small{font-size:13px}
 .group-grid .doc-body{padding:16px 13px}.group-grid .doc-body h3{font-size:16px}
 .group-grid .doc-meta,.doc-issued>span{font-size:14px}.doc-issued small,.doc-issued b{font-size:12px}
 .viewer-title h2{font-size:17px}.viewer-title p{font-size:12px}
 .viewer-details{width:100%;padding:22px 18px}.viewer-details dl{grid-template-columns:95px minmax(0,1fr);gap:12px}
 .viewer-details dt{font-size:14px}.viewer-details dd{font-size:16px}.viewer-details .button{font-size:14px;min-height:42px}
 .viewer-toolbar{padding:8px 6px}.viewer-toolbar .icon-button{width:34px;height:36px}
 .ct-dl{grid-template-columns:105px minmax(0,1fr);font-size:15px}.ct-table{font-size:15px}.ct-summary strong{font-size:28px}
 .mask-head{padding:18px 16px 10px}.mask-head h2{font-size:25px}.mask-head p{font-size:15px}
 .mask-notice{padding:11px 13px}.mask-notice b{font-size:16px}.mask-notice p{font-size:14px}
 .mask-layout{padding:0 12px 16px}.mask-scroll{max-height:62vh}
 .mask-preview-tools{flex-wrap:wrap;row-gap:8px}.mask-preview-tools .button{font-size:13px}
 .mask-preview-tools #mask-zoom{font-size:13px;min-width:35px}
 .mask-footer>div{gap:9px}.mask-footer .button.primary{font-size:16px;min-height:48px;width:100%}
}

.sd-eyebrow,.eyebrow,.detail-eyebrow{font-size:12px;color:#46566b;font-weight:600;letter-spacing:.04em}

.ct-subtitle,.ct-history,.ct-note{font-size:15px;color:#46566b;line-height:1.75}.ct-dl dt{word-break:keep-all;overflow-wrap:anywhere}@media(max-width:700px){.ct-dl{grid-template-columns:132px minmax(0,1fr)}}
/* Keep install/update/settings reachable from the personal home as well. */
.topbar-left{display:flex;align-items:center;gap:12px;min-width:0}
.home-active #menu-toggle,.contracts-active #menu-toggle{display:inline-flex!important}
.home-active .sidebar.open,.contracts-active .sidebar.open{display:flex;position:fixed;inset:0 auto 0 0;width:min(290px,85vw);transform:translateX(0);z-index:30;overflow:auto}
.home-active #nav-shade:not([hidden]),.contracts-active #nav-shade:not([hidden]){position:fixed;inset:0;background:#172b4570;backdrop-filter:blur(2px);z-index:25}
@media(max-width:480px){.home-active .topbar,.contracts-active .topbar{padding:0 12px;gap:8px}.topbar-left{gap:8px}.home-brand-word{font-size:18px}.home-brand>span:first-child{display:none}.top-actions{gap:5px}}
