.norm-page{max-width:1320px;margin:20px auto 28px;padding:0 24px}
.norm-reader{background:var(--panel,#fff);color:var(--text,#172033);padding:18px;border:1px solid var(--line,#dbe3ef);border-radius:12px}
.norm-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center}
.norm-heading{min-width:0}
.norm-heading h1{font-size:22px;line-height:1.4;margin:0 0 5px;overflow-wrap:anywhere}
.norm-heading p{font-size:12px;margin:0}
.norm-actions{display:flex;gap:8px;flex-shrink:0}
.norm-actions .button{white-space:nowrap;padding:8px 13px}
.norm-note{font-size:12px;margin:10px 0 12px}
.norm-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;height:calc(100dvh - 270px);min-height:400px}
.norm-layout nav,.norm-document{min-width:0;min-height:0;display:flex;flex-direction:column}
.norm-layout label{font-size:12px}
.norm-layout input{width:100%;box-sizing:border-box;margin:6px 0 10px;padding:9px 10px;border:1px solid var(--line,#cbd5e1);border-radius:6px;background:var(--panel,#fff);color:inherit}
.norm-layout [data-toc]{flex:1;min-height:0;overflow:auto;padding:4px;border:1px solid var(--line,#e2e8f0);border-radius:6px}
.norm-layout details{margin:0}
.norm-layout summary,.norm-tree-leaf{padding:7px 6px;text-align:left;font:inherit;line-height:1.5;color:inherit;cursor:pointer;border-radius:4px;overflow-wrap:anywhere;transition:background-color .18s,color .18s}
.norm-layout summary{display:list-item;font-weight:600;list-style-position:outside;margin-left:16px}
.norm-tree-children{margin-left:14px;border-left:1px solid var(--line,#e2e8f0);padding-left:5px}
.norm-tree-leaf{display:block;width:100%;background:transparent;border:0;font-weight:400}
.norm-layout summary:hover,.norm-tree-leaf:hover,.norm-layout [aria-current=page]{background:var(--card,#eaf2ff);color:var(--accent,#174c9b)}
.norm-tree-leaf:disabled{opacity:.6;cursor:default}
.norm-layout summary:focus-visible,.norm-tree-leaf:focus-visible{outline:2px solid var(--accent,#174c9b);outline-offset:-2px}
.norm-document [data-current]{font-size:12px;color:var(--muted);margin:0;min-height:71px;display:flex;align-items:center}
.norm-layout iframe{display:block;flex:1;min-height:0;width:100%;border:1px solid var(--line,#dbe3ef);background:#fff}
.norm-reader:fullscreen{overflow:auto;border-radius:0;display:flex;flex-direction:column}
.norm-reader:fullscreen .norm-layout{height:auto;flex:1;min-height:0}
@media(max-width:1000px){.norm-toolbar{align-items:flex-start;flex-wrap:wrap}.norm-layout{grid-template-columns:245px minmax(0,1fr);height:calc(100dvh - 320px)}}
@media(max-width:700px){.norm-page{padding:0 13px;margin:18px auto 28px}.norm-reader{padding:13px}.norm-heading h1{font-size:19px}.norm-layout{grid-template-columns:1fr;height:auto;min-height:0}.norm-layout [data-toc]{flex:auto;height:200px}.norm-document [data-current]{min-height:30px;margin-bottom:8px}.norm-layout iframe{flex:auto;height:65vh}.norm-reader:fullscreen .norm-layout{overflow:auto;flex:auto}.norm-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.norm-layout summary,.norm-tree-leaf{transition:none}}

.norm-toc-toggle{display:none}
@media(max-width:700px){
    .norm-actions{width:100%;gap:8px}.norm-actions .button{min-height:44px}
    .norm-toc-toggle{display:inline-flex}.norm-toc-collapsed .norm-layout>nav{display:none}
    .norm-layout input{min-height:44px;font-size:16px}
    .norm-layout summary,.norm-tree-leaf{min-height:44px;box-sizing:border-box}
}
