dialog.sg-document{box-sizing:border-box;width:min(900px,calc(100vw - 48px));max-width:none;height:min(88dvh,960px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #e4e6e9;border-radius:20px;background:#fff;color:#253345;box-shadow:0 24px 90px #12203340;overflow:hidden;font:16px/1.7 Arial,sans-serif}
dialog.sg-document[open]{display:flex;flex-direction:column}dialog.sg-document::backdrop{background:#17243599;backdrop-filter:blur(3px)}
.sg-document .sg-document-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 28px;background:#faf8f5;border-bottom:1px solid #e8e3dc;flex:none;font-size:14px;color:#76664f}
.sg-document .sg-document-head button{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;border:1px solid #d9c7b0;border-radius:9px;background:#fff;color:#65492b;font:inherit;cursor:pointer}.sg-document-head button span{font-size:24px;line-height:1}
.sg-document .sg-document-body{overflow:auto;overscroll-behavior:contain;padding:24px 44px 40px;min-height:0;flex:1;scrollbar-gutter:stable;overflow-wrap:anywhere}
.sg-document .sg-document-body h1{font-size:27px;line-height:1.3;margin:0 0 24px;font-weight:700}.sg-document .sg-document-body h2{font-size:20px;line-height:1.4;margin:30px 0 12px;font-weight:700}.sg-document .sg-document-body p{margin:0 0 14px;font-size:16px;line-height:1.7}.sg-document .sg-document-body ul,.sg-document .sg-document-body ol{padding-left:24px}.sg-document :focus-visible{outline:2px solid #c77b36;outline-offset:3px}
@media(max-width:600px){dialog.sg-document{width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.sg-document .sg-document-head{padding:10px 14px}.sg-document .sg-document-body{padding:22px 20px 32px}.sg-document .sg-document-body h1{font-size:23px}.sg-document .sg-document-body h2{font-size:19px}}
