.system-guide{--sg-ink:var(--slate-950,#312331);--sg-muted:var(--slate-600,#71636d);--sg-line:var(--slate-200,#e5dce0);--sg-accent:var(--blue-600,#a34c65);--sg-paper:var(--surface,#fffdfa);color:var(--sg-ink);line-height:2;font-size:15px;max-width:1320px;margin-inline:auto;text-align:right}
.system-guide *, .sg-image-dialog *{box-sizing:border-box}
.system-guide [hidden]{display:none!important}
.sg-cover{display:flex;gap:24px;align-items:start;justify-content:space-between;padding:30px 32px;background:var(--sg-paper);border:1px solid var(--sg-line);border-top:4px solid var(--sg-accent);border-radius:16px}
.sg-kicker{color:var(--sg-accent);font-size:13px;font-weight:700;margin:0 0 8px}.sg-cover h2{font-size:clamp(25px,3vw,34px);line-height:1.5;margin:0 0 12px}.sg-cover p:not(.sg-kicker){max-width:70ch;margin:0;color:var(--sg-muted)}
.sg-cover-meta{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:12px;color:var(--sg-muted);margin-top:20px}.sg-print{white-space:nowrap;margin-top:10px}
.sg-path{display:grid;grid-template-columns:repeat(4,1fr);padding:18px 24px;gap:12px;background:var(--slate-100,#f1e3e7);border-radius:12px;margin:16px 0;color:var(--sg-ink);font-weight:600;counter-reset:sg-path}.sg-path span{display:flex;gap:8px;align-items:center;font-size:13px}.sg-path span:before{counter-increment:sg-path;content:counter(sg-path,persian);display:grid;place-items:center;min-width:28px;height:28px;border:1px solid var(--sg-line);border-radius:50%;background:var(--sg-paper);color:var(--sg-accent)}
.sg-tools{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,230px);gap:12px 18px;padding:18px 0 22px}.sg-tools label{font-size:13px;font-weight:600;display:grid;gap:6px}.sg-tools input,.sg-tools select{width:100%;font:inherit;min-height:46px;border:1px solid var(--sg-line);border-radius:10px;padding:8px 12px;color:var(--sg-ink);background:var(--sg-paper)}.sg-tools p{grid-column:1/-1;font-size:12px;color:var(--sg-muted);margin:0}
.sg-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:28px;align-items:start}.sg-toc{position:sticky;top:24px;background:var(--sg-paper);border:1px solid var(--sg-line);border-radius:12px;padding:16px;max-height:calc(100dvh - 60px);overflow:auto;scrollbar-width:thin}.sg-toc h3{font-size:14px;margin:0 0 10px}.sg-toc a{display:flex;align-items:baseline;gap:9px;padding:8px 4px;line-height:1.7;font-size:12px;text-decoration:none;color:var(--sg-muted);border-bottom:1px solid var(--sg-line)}.sg-toc a:last-child{border:0}.sg-toc a span{color:var(--sg-accent);min-width:18px}.sg-toc a:hover{color:var(--sg-accent)}
.sg-reading{min-width:0}.sg-chapter{padding:26px 28px;border:1px solid var(--sg-line);border-radius:14px;margin-bottom:20px;background:var(--sg-paper);scroll-margin-top:24px}.sg-chapter-heading{display:flex;gap:14px;align-items:start;margin-bottom:20px}.sg-number{font-size:23px;font-weight:700;color:var(--sg-accent);line-height:1.4;min-width:32px;padding-top:20px}.sg-audience{font-size:11px;color:var(--sg-muted);margin:0 0 4px}.sg-chapter h3{font-size:20px;line-height:1.6;margin:0 0 8px;scroll-margin-top:24px}.sg-summary{color:var(--sg-muted);font-size:13px;margin:0}.sg-chapter>p{margin:12px 0}.sg-chapter p{overflow-wrap:anywhere}
.sg-toc-toggle{display:none;width:100%;min-height:44px;align-items:center;justify-content:space-between;border:0;background:transparent;color:var(--sg-ink);font:inherit;font-weight:600;text-align:right;padding:0;cursor:pointer}
.sg-steps{list-style:none;counter-reset:sg-step;padding:0;margin:20px 0}.sg-steps li{position:relative;padding:0 38px 18px 0;margin:0}.sg-steps li:before{counter-increment:sg-step;content:counter(sg-step,persian);position:absolute;right:0;top:2px;display:grid;place-items:center;line-height:1;width:26px;height:26px;border-radius:6px;border:1px solid var(--sg-line);color:var(--sg-accent);font-weight:700;font-size:12px}.sg-steps li p{margin:4px 0 0;color:var(--sg-muted);font-size:14px}.sg-steps li strong{font-size:14px}
.sg-figure{margin:24px 0}.sg-figure button{display:block;width:100%;position:relative;border:1px solid var(--sg-line);border-radius:10px;padding:0;overflow:hidden;background:var(--slate-100,#f1e3e7);cursor:zoom-in}.sg-figure img{display:block;width:100%;height:auto}.sg-zoom-label{position:absolute;bottom:8px;left:8px;background:var(--sg-paper);border:1px solid var(--sg-line);border-radius:6px;font-size:11px;line-height:1.5;padding:5px 8px;color:var(--sg-ink)}.sg-figure figcaption{color:var(--sg-muted);font-size:11px;padding-top:8px;line-height:1.8}
.sg-note{background:var(--slate-100,#f1e3e7);border-right:3px solid var(--sg-accent);border-radius:6px;padding:14px 16px;margin:16px 0;font-size:13px}.sg-note p{margin:4px 0 0;color:var(--sg-muted)}.sg-route{margin:8px 0 14px}.sg-back{display:block;font-size:11px;color:var(--sg-accent);text-decoration:none;padding-top:12px;border-top:1px solid var(--sg-line)}
.sg-faq{background:var(--sg-paper);padding:24px 28px;border:1px solid var(--sg-line);border-radius:14px}.sg-faq h3{font-size:20px;margin:0 0 16px;scroll-margin-top:24px}.sg-faq details{border-bottom:1px solid var(--sg-line);padding:12px 0}.sg-faq details:last-child{border:0}.sg-faq summary{cursor:pointer;font-size:14px;font-weight:600}.sg-faq details p{color:var(--sg-muted);font-size:14px;margin:10px 0;overflow-wrap:anywhere}.sg-footer{padding:20px;font-size:12px;color:var(--sg-muted);text-align:center}.sg-empty{padding:32px;background:var(--sg-paper);border:1px solid var(--sg-line);border-radius:12px;margin-bottom:18px}
.system-guide :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--sg-accent);outline-offset:3px}
.sg-image-dialog{color:var(--sg-ink);background:var(--sg-paper);border:1px solid var(--sg-line);border-radius:12px;width:min(1450px,96vw);max-height:94dvh;padding:16px;overflow:auto}.sg-image-dialog::backdrop{background:rgb(45 25 50 / .72)}.sg-image-dialog form{position:sticky;top:0;text-align:left;margin:0 0 14px}.sg-image-dialog img{display:block;width:100%;height:auto}.sg-image-dialog p{font-size:12px;line-height:1.8}.sg-standalone{margin:0;padding:30px 24px}.sg-standalone-header{max-width:1320px;margin:0 auto 20px;display:flex;align-items:center;gap:14px;font-size:14px}.sg-standalone-header img{width:42px;height:42px;object-fit:contain}.sg-standalone-header a{margin-right:auto;color:var(--blue-600);font-size:12px}
@media(max-width:1100px){.sg-layout{grid-template-columns:210px minmax(0,1fr);gap:18px}.sg-chapter{padding:22px}.sg-cover{padding:24px}}
@media(max-width:800px){.sg-layout{grid-template-columns:minmax(0,1fr)}.sg-toc{position:static;max-height:none}.sg-toc h3{display:none}.sg-toc-toggle{display:flex}.sg-toc-links{display:none}.sg-toc[data-expanded=true] .sg-toc-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;padding-top:12px}.sg-cover{display:block}.sg-print{margin-top:16px}.sg-chapter{padding:20px}.sg-chapter h3{font-size:18px}.sg-number{font-size:20px}}
@media(max-width:480px){.system-guide{font-size:14px}.sg-tools{grid-template-columns:1fr}.sg-path{grid-template-columns:repeat(2,1fr);padding:14px}.sg-path span{font-size:11px}.sg-cover{padding:20px}.sg-cover-meta{gap:6px 12px}.sg-toc[data-expanded=true] .sg-toc-links{grid-template-columns:1fr}.sg-standalone{padding:18px 12px}.sg-chapter,.sg-faq{padding:18px 16px}.sg-chapter-heading{gap:10px}.sg-number{min-width:28px}.sg-steps li{padding-right:34px}.sg-image-dialog{padding:10px}}
@media(prefers-reduced-motion:reduce){.system-guide *{scroll-behavior:auto!important;transition:none!important}}
@media print{
 @page{size:A4;margin:15mm 13mm}
 html:has(body.system-guide-print),body.system-guide-print{background:white!important;color:#312331!important}
 body.system-guide-print{padding:0!important;min-height:0!important}
 .system-guide-print #sidebar,.system-guide-print .topbar,.system-guide-print .section-intro,.system-guide-print #network-status,.system-guide-print #toast-region,.system-guide-print #journey,.system-guide-print .sg-standalone-header,.system-guide-print .portal-track-bar,.system-guide-print #selection-tray,.system-guide-print .skip-link{display:none!important}
 .system-guide-print #app-shell,.system-guide-print main.main-content,.system-guide-print main{display:block!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
 .system-guide-print .system-guide{font-size:10pt;color:#312331}.system-guide-print .sg-tools,.system-guide-print .sg-toc,.system-guide-print .sg-print,.system-guide-print .sg-route,.system-guide-print .sg-back,.system-guide-print .sg-zoom-label,.system-guide-print .sg-image-dialog{display:none!important}
 .system-guide-print .sg-layout{display:block}.system-guide-print .sg-chapter,.system-guide-print .sg-faq{padding:16px 0;border:0;border-radius:0;background:white;break-before:auto}.system-guide-print .sg-chapter-heading,.system-guide-print .sg-note,.system-guide-print .sg-steps li,.system-guide-print .sg-figure{break-inside:avoid}.system-guide-print .sg-chapter-heading,.system-guide-print .sg-faq h3{break-after:avoid}.system-guide-print .sg-chapter>p{orphans:3;widows:3}.system-guide-print .sg-chapter h3{font-size:16pt}.system-guide-print .sg-cover{padding:16px;border-radius:0;box-shadow:none;break-inside:avoid}.system-guide-print .sg-path{background:white;break-inside:avoid}.system-guide-print .sg-figure{margin:12px 0}.system-guide-print .sg-figure img{max-height:170mm;object-fit:contain;background:white}.system-guide-print .sg-faq details{break-inside:avoid}.system-guide-print .sg-faq summary{list-style:none}
}
