
:root{
  --navy:#17324d;--navy2:#244d68;--teal:#467f7b;--ink:#20262d;--muted:#65717d;
  --paper:#f6f6f3;--white:#fff;--line:#d8dee3;--soft:#eef3f2;--warn:#8a6428;
  --danger:#9a3f3f;--ok:#356c58;--radius:14px;--shadow:0 8px 24px rgba(28,44,58,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--paper);color:var(--ink);line-height:1.55}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.topbar-inner{max-width:1440px;margin:auto;display:flex;align-items:center;gap:18px;padding:11px 18px}
.brand{display:flex;align-items:center;gap:11px;min-width:max-content}
.brandmark{width:38px;height:38px;background:var(--navy);color:#fff;display:grid;place-items:center;border-radius:10px;font-weight:800}
.brand strong{display:block;line-height:1.1}
.brand small{display:block;color:var(--muted);margin-top:3px}
.progress-shell{flex:1;max-width:560px;margin-left:auto}
.progress{height:8px;background:#e7ecee;border-radius:999px;overflow:hidden}
.progress span{display:block;height:100%;background:var(--teal);width:0;transition:.2s}
.progress-label{font-size:.78rem;color:var(--muted);margin-top:4px;text-align:right}
.app{max-width:1440px;margin:auto;display:grid;grid-template-columns:250px minmax(0,1fr);gap:0;min-height:calc(100vh - 62px)}
.sidebar{border-right:1px solid var(--line);background:#fff;padding:18px 14px;position:sticky;top:62px;height:calc(100vh - 62px);overflow:auto}
.sidebar .group{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#82909a;font-weight:800;margin:13px 10px 6px}
.navbtn{width:100%;border:0;background:transparent;color:#34434f;text-align:left;padding:10px 11px;border-radius:9px;margin:2px 0;font-weight:650}
.navbtn:hover{background:#f1f4f4}
.navbtn.active{background:var(--navy);color:#fff}
.content{padding:30px 30px 70px;min-width:0}
.panel{display:none;max-width:1050px;margin:auto}
.panel.active{display:block}
.eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:.09em;color:var(--teal);font-weight:800;margin-bottom:6px}
h1,h2,h3{color:#172532;line-height:1.2}
h1{font-size:clamp(2rem,4vw,3rem);margin:0 0 12px}
h2{font-size:clamp(1.65rem,3vw,2.3rem);margin:0 0 10px}
h3{font-size:1.1rem}
.lead{color:#596773;max-width:800px;margin-bottom:26px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:0 4px 16px rgba(30,45,55,.04);margin-bottom:18px}
.card h3{margin-top:0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
label{display:block;font-weight:700;margin:13px 0 6px;color:#2d3943}
.req::after{content:" *";color:var(--danger)}
input[type=text],input[type=number],input[type=url],textarea,select{
 width:100%;border:1px solid #bcc7cf;border-radius:10px;background:#fff;color:var(--ink);padding:11px 12px;
}
textarea{min-height:130px;resize:vertical}
input:focus,textarea:focus,select:focus,button:focus{outline:3px solid rgba(70,127,123,.17);outline-offset:2px}
.hint{font-size:.86rem;color:var(--muted);margin-top:5px}
.example{font-size:.88rem;color:#55636d;background:#f6f8f8;border-left:3px solid #9cb7b4;padding:9px 11px;border-radius:0 8px 8px 0;margin-top:8px}
.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}
.btn{border:0;border-radius:10px;background:var(--navy);color:#fff;padding:10px 15px;font-weight:750}
.btn.secondary{background:#fff;color:var(--navy);border:1px solid #aebac3}
.btn.ghost{background:transparent;color:var(--navy);border:1px solid var(--line)}
.btn.danger{background:#fff;color:var(--danger);border:1px solid #debcbc}
.rowitem{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:start;margin:8px 0}
.rowitem textarea{min-height:75px}
.rowitem .remove{margin-top:0;padding:9px 11px}
.alert{padding:13px 15px;border-radius:10px;margin:12px 0;border:1px solid}
.alert.info{background:#f1f6f6;border-color:#cbdadb;color:#3f5d61}
.alert.warn{background:#fff8eb;border-color:#ead4a8;color:#654f28}
.alert.bad{background:#fff1f1;border-color:#e7c0c0;color:#763a3a}
.alert.ok{background:#eff8f3;border-color:#c4ddcf;color:#35604d}
.checkgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.checkitem{display:flex;gap:8px;align-items:flex-start;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#fff}
.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
table{width:100%;border-collapse:collapse;min-width:780px}
th,td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:9px;vertical-align:top}
th:last-child,td:last-child{border-right:0}
tr:last-child td{border-bottom:0}
th{background:#f3f5f5;text-align:left;font-size:.88rem}
td textarea,td input,td select{border:0;border-radius:0;padding:5px;background:transparent}
.schedule input[type=checkbox]{width:20px;height:20px}
.schedule td:not(:first-child),.schedule th:not(:first-child){text-align:center}
.issue-list{padding-left:20px}
.issue-list li{margin:7px 0}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
#previewArea{background:#e4e6e7;padding:22px;border-radius:14px;overflow:auto;max-height:72vh}
.print-page{
 width:210mm;height:297mm;background:#fff;margin:0 auto 18px;box-shadow:0 4px 18px rgba(0,0,0,.14);
 position:relative;overflow:hidden;font-family:"Times New Roman",Times,serif;color:#000;
}
.page-inner{position:absolute;left:20mm;right:20mm;top:18mm;bottom:18mm;overflow:hidden}
.page-footer{position:absolute;bottom:8mm;left:20mm;right:20mm;text-align:center;font-size:11pt}
.body-content{font-size:12pt;line-height:1.5;text-align:justify}
.body-content h2{font-family:"Times New Roman",Times,serif;color:#000;font-size:12pt;margin:0 0 9pt;font-weight:bold;text-align:left}
.body-content h3{font-family:"Times New Roman",Times,serif;color:#000;font-size:12pt;margin:8pt 0 4pt;font-weight:bold;text-align:left}
.body-content p{margin:0 0 8pt;text-indent:1.27cm}
.body-content p.noindent{text-indent:0}
.body-content ol{margin:0 0 8pt 22pt;padding-left:10pt}
.body-content li{margin-bottom:5pt;text-align:justify}
.body-content table{min-width:0;font-size:10.5pt;line-height:1.25}
.body-content th,.body-content td{border:1px solid #000;padding:5px}
.body-content th{background:#fff;text-align:center}
.cover-inner{position:absolute;left:20mm;right:20mm;top:15mm;bottom:15mm;text-align:center;font-family:"Times New Roman",Times,serif}
.cover-title{font-size:16pt;font-weight:bold;text-transform:uppercase;line-height:1.25;min-height:36mm;display:flex;align-items:flex-start;justify-content:center}
.cover-subtitle{font-size:14pt;min-height:17mm}
.cover-logo{width:4cm;height:4cm;object-fit:contain;display:block;margin:4mm auto 10mm}
.cover-main{font-size:15pt;font-weight:bold;line-height:1.35;margin:0 0 10mm}
.cover-purpose{font-size:12pt;line-height:1.45;margin-bottom:13mm}
.cover-by{font-size:12pt;margin-bottom:8mm}
.cover-person{font-size:12pt;font-weight:bold;line-height:1.5;margin-bottom:11mm}
.cover-inst{font-size:12pt;font-weight:bold;line-height:1.45}
.toc-title{text-align:center;font-weight:bold;font-size:14pt;margin:0 0 15mm}
.toc-row{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:end;margin:7pt 0;font-size:12pt}
.toc-dots{border-bottom:1px dotted #000;transform:translateY(-3px)}
.logo-note{display:flex;align-items:center;gap:14px}
.logo-note img{width:64px;height:64px;object-fit:contain}
.sticky-actions{position:sticky;bottom:12px;background:rgba(246,246,243,.96);border:1px solid var(--line);padding:10px;border-radius:12px;display:flex;gap:8px;flex-wrap:wrap;box-shadow:var(--shadow);margin-top:28px;z-index:20}
.small{font-size:.86rem;color:var(--muted)}
.hidden{display:none!important}
@media(max-width:900px){
 .app{grid-template-columns:1fr}
 .sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);display:flex;overflow-x:auto;padding:10px}
 .sidebar .group{display:none}
 .navbtn{width:auto;min-width:max-content}
 .content{padding:22px 14px 60px}
 .grid2,.grid3,.checkgrid{grid-template-columns:1fr}
 .topbar-inner{padding:9px 12px}
 .progress-shell{display:none}
 .brand small{display:none}
}
@media print{
 @page{size:A4;margin:0}
 body{background:#fff}
 .topbar,.app,.preview-toolbar{display:none!important}
 #printArea{display:block!important;background:#fff;padding:0!important;margin:0!important}
 #previewArea{display:block!important;background:#fff;padding:0!important;overflow:visible!important;max-height:none!important}
 .print-page{box-shadow:none;margin:0;page-break-after:always;break-after:page}
 .print-page:last-child{page-break-after:auto;break-after:auto}
}

.esa-attr-style-1{min-height:340px}
.esa-attr-style-2{width:85px}
.esa-attr-style-3{margin:0}
.esa-attr-style-4{display:none}