@font-face{font-family:'GobCLHeavy';src:url('./gobCL/gobCL_Heavy.otf') format('opentype');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:'GobCLRegular';src:url('./gobCL/gobCL_Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'GobCLBold';src:url('gobCL/gobCL_Bold.otf') format('opentype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'GobCLLight';src:url('gobCL/gobCL_Light.otf') format('opentype');font-weight:300;font-style:normal;font-display:swap}

*{font-family:GobCLRegular,Arial,sans-serif;box-sizing:border-box}
body{margin:0;background:#f6f7fb;color:#1f2937}
header{padding:18px 20px;background:#fff;border-bottom:1px solid #e7eaf2;text-align:center}
header h1{margin:0;font-size:18px;color:#0d3b66; text-align:center; margin-left:auto; margin-right:auto;}
header .sub{margin-top:4px;color:#6b7280;font-size:12px; text-align:center;}
main{max-width:1200px;margin:0 auto;display:grid;gap:22px;padding:20px;
  grid-template-columns:minmax(360px,1fr) minmax(450px,1fr)}
@media (max-width:980px){ main{grid-template-columns:1fr} }
.panel{background:#fff;border:1px solid #e7eaf2;border-radius:14px;padding:18px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.panel h2{margin:0 0 12px 0;font-size:15px;color:#0d3b66}
.field{margin-bottom:10px}
.label{display:block;font-size:12px;color:#525e73;margin-bottom:6px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.input{flex:1 1 240px;height:42px;padding:10px 12px;border:1px solid #d6dbe8;border-radius:10px;font-size:14px;background:#fafbff;min-width:180px;transition:background-color .15s ease,border-color .15s ease}
.input[readonly]{background:#f8fafc; color:#111827; cursor:not-allowed}
.fontsel,.sizesel,.typesel{height:36px;border:1px solid #d6dbe8;border-radius:8px;padding:0 10px;background:#fff;font-size:13px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:700px){ .grid-2{grid-template-columns:1fr} }
.state-ok{background:#e9fbf1 !important;border-color:#bfead3 !important}
.state-bad{background:#fff0f0 !important;border-color:#f3c9c9 !important}

.hint{font-size:12px;color:#b91c1c;margin-top:4px;display:none}
.hint.show{display:block}

.btns{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;align-items:center}
.btn{height:36px;padding:0 14px;border-radius:10px;border:1px solid transparent;cursor:pointer;font-weight:700;font-size:13px;color:#fff;display:inline-flex;align-items:center;justify-content:center}
.btn.primary{height:44px;font-size:14px;background:#0d3b66}
.btn.secondary{height:44px;font-size:14px;background:#7a2f1a}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn:hover:not(:disabled){filter:brightness(1.05)}

.toggle{min-width:110px}
.toggle.on{background:#16a34a}
.toggle.off{background:#f87171}

.panel-preview{background:#fff;border:1px solid #e7eaf2;border-radius:14px;padding:16px}
.preview-wrap{padding:14px;background:#fff;border:1px dashed #c9cfe0;border-radius:12px;overflow:hidden}
#sig{position:relative;}

.sig-pad{background:#ffffff;padding:10px;display:inline-block}
.sig-container{background:#ffffff;display:flex;align-items:center;padding:0}
.sig-img{height:var(--h,220px);width:auto;flex-shrink:0;margin-right:18px}
.sig-text{display:flex;flex-direction:column;justify-content:center;height:var(--h,220px)}
.deco{display:block;width:60%;height:auto;margin:0 0 8px 0}
.gap-after-name{height:6px}
.sig-link{color:#2a75bb;text-decoration:none;font-weight:700;line-height:1.4}
.sig-item{color:#0a3d67;font-weight:700}
.sig-meta{color:#333}

footer{margin:10px 0 24px;text-align:center;color:#6b7280;font-size:12px}

.logo-ss{height:200px;width:200px;display:block;margin:0 auto;}

.footer-note{font-size:14px;color:#0d3b66;text-align:center;}

.footer-logo{text-align:center;margin-top:8px;}

.logo-ss-link{display:inline-block;position:static;transform:none;}

.sublabel{font-size:11px;color:#6b7280;line-height:1;margin-left:2px;}

.selcol{display:flex;flex-direction:column;gap:4px}
