.assembly-gost{padding:7px 8px;border:1px solid var(--ab-line);border-radius:5px;font-size:13px;font-weight:650;color:var(--ab-accent)}
.assembly-gost:hover{background:var(--ab-active)}
body:has(.gost-dialog[open]){overflow:hidden}
.gost-dialog{color-scheme:light;width:min(940px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid #c6d5df;border-radius:12px;background:#fff;color:#172b3a;box-shadow:0 25px 100px #0e223b45}
.gost-dialog[open]{display:flex;flex-direction:column}
.gost-dialog::backdrop{background:#0b1c2b9c}
.gost-header,.gost-footer{display:flex;align-items:center;gap:8px;padding:12px 16px}
.gost-header{justify-content:space-between;border-bottom:1px solid #d5dee6}
.gost-header h2{margin:0;font-size:18px}
.gost-close{font-size:23px;line-height:1;padding:2px 6px;border-radius:5px;color:#526577}
.gost-close:hover{background:#edf2f6}
.gost-body{display:grid;grid-template-columns:247px minmax(0,1fr);min-height:0;overflow:auto}
.gost-settings{display:grid;gap:10px;padding:14px 15px;align-content:start;border-right:1px solid #d5dee6}
.gost-settings label{display:grid;gap:4px;min-width:0;color:#526577;font-size:13px}
.gost-settings input,.gost-settings select{min-width:0;width:100%;border:1px solid #d5dee6;border-radius:5px;background:#f8fafc;color:#172b3a;padding:6px;font-size:14px}
.gost-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gost-settings fieldset{margin:4px 0 0;padding:9px 0 0;border:0;border-top:1px solid #d5dee6;display:grid;gap:8px;min-width:0}
.gost-settings legend{padding:0 5px 0 0;color:#172b3a;font-size:13px;font-weight:650}
.gost-preview{display:grid;place-items:center;min-height:360px;background:#e6edf2;padding:12px}
#gostPreview{display:grid;place-items:center;width:100%;height:min(68dvh,580px);min-height:330px}
#gostPreview svg{display:block;width:auto;height:auto;max-width:100%;max-height:100%;background:#fff;box-shadow:0 2px 8px #18354a33}
.gost-footer{border-top:1px solid #d5dee6;flex:none}
#gostStatus{flex:1;font-size:13px;color:#526577}
.gost-footer button{font-size:14px;border:1px solid #c6d5df;border-radius:6px;padding:7px 10px;white-space:nowrap}
.gost-footer button:hover:enabled{background:#edf2f6}
.gost-footer .gost-primary{background:#096356;color:white;border-color:#096356}
.gost-footer .gost-primary:hover:enabled{background:#064f45}
@media(max-width:660px){
  .gost-body{grid-template-columns:1fr}
  .gost-settings{border-right:0;border-bottom:1px solid #d5dee6}
  .gost-preview{min-height:225px}
  #gostPreview{min-height:200px;height:53dvh}
  .gost-footer{flex-wrap:wrap}
  #gostStatus{flex-basis:100%}
}
