:where(body.pg-module) [hidden]{display:none!important}
:where(body.pg-module) .fatal{display:none}
:where(body.pg-module) .fatal:not([hidden]){display:flex}
:where(body.pg-module) .start-actions[hidden]{display:none!important}
:where(body.pg-module){--font:'Vazirmatn','Segoe UI',Tahoma,sans-serif}
:where(body.pg-module) button,:where(body.pg-module) a,:where(body.pg-module) select{cursor:pointer}
:where(body.pg-module) .fatal{position:fixed;inset:0;z-index:999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:30px}
:where(body.pg-module) #webgl-canvas{position:fixed;inset:0;width:100%;height:100%;outline:none}
:where(body.pg-module) .loading-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;transition:opacity .8s,visibility .8s}
:where(body.pg-module) .loading-overlay.closed{opacity:0;visibility:hidden;pointer-events:none}
:where(body.pg-module) .loading-backdrop{position:absolute;inset:0;background:radial-gradient(circle at 50% 35%,rgba(212,175,55,.13),transparent 38%),linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,.9)),url('../images/legacy/gallery-art.gif') center/cover no-repeat}
:where(body.pg-module) .loading-card{position:relative;z-index:2;width:min(620px,calc(100vw - 40px));text-align:center;padding:46px 36px;border:1px solid var(--line)}
:where(body.pg-module) .loading-logo{width:min(390px,80vw);height:90px;object-fit:contain;margin:0 auto 30px}
:where(body.pg-module) .loading-card h1{margin:10px 0 12px}
:where(body.pg-module) .loader{width:min(360px,90%);height:2px;margin:24px auto}
:where(body.pg-module) .loader span{display:block;height:100%;width:0;transition:width .3s}
:where(body.pg-module) .start-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
:where(body.pg-module) .start-actions button,:where(body.pg-module) .back-link{min-height:46px;border:1px solid var(--line);padding:0 24px}
:where(body.pg-module) .start-actions .primary{border:0}
:where(body.pg-module) .back-link{display:inline-flex;align-items:center;margin-top:18px;min-height:34px;border:0}
:where(body.pg-module) .hud{position:fixed;inset:0;z-index:10;pointer-events:none;padding:22px;display:flex;flex-direction:column;justify-content:space-between}
:where(body.pg-module) .hud.active{pointer-events:none}
:where(body.pg-module) .panel{border:1px solid var(--line)}
:where(body.pg-module) .hud button,:where(body.pg-module) .hud a,:where(body.pg-module) .hud input,:where(body.pg-module) .hud select,:where(body.pg-module) .drawer button{pointer-events:auto}
:where(body.pg-module) .topbar{display:grid;grid-template-columns:minmax(310px,1fr) minmax(300px,1fr) minmax(310px,1fr);align-items:start;gap:18px;direction:ltr}
:where(body.pg-module) .brand-status{justify-self:start;border-radius:20px;padding:9px 16px 9px 9px;display:flex;align-items:center;gap:12px;direction:ltr}
:where(body.pg-module) .brand-logo img{width:195px;height:44px;object-fit:contain}
:where(body.pg-module) .title-line{display:flex;align-items:center;gap:8px}
:where(body.pg-module) .title-line span{padding:3px 7px;border:1px solid var(--line);border-radius:99px}
:where(body.pg-module) .room-heading{text-align:center;direction:rtl;padding-top:5px}
:where(body.pg-module) .room-heading h1{margin:4px 0}
:where(body.pg-module) .top-actions{justify-self:end;display:flex;gap:8px;direction:rtl}
:where(body.pg-module) .action,:where(body.pg-module) .exit-btn,:where(body.pg-module) .icon-btn{height:48px;border-radius:16px;padding:0 17px;border:1px solid var(--line);text-decoration:none;display:flex;align-items:center;justify-content:center}
:where(body.pg-module) .icon-btn{width:48px;padding:0}
:where(body.pg-module) .narrative{position:fixed;z-index:12;top:112px;right:22px;width:min(370px,calc(100vw - 44px));padding:24px;border-radius:24px;direction:rtl;transform:translateX(calc(100% + 40px));opacity:0;transition:.45s;pointer-events:auto}
:where(body.pg-module) .narrative.visible{transform:none;opacity:1}
:where(body.pg-module) .narrative-head{display:flex;justify-content:space-between;align-items:center}
:where(body.pg-module) .narrative-head em{font-style:normal}
:where(body.pg-module) .narrative h2{margin:13px 0 3px}
:where(body.pg-module) .narrative>p{margin:0 0 15px}
:where(body.pg-module) .narrative-text{max-height:92px;overflow:auto}
:where(body.pg-module) .narrative dl{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:16px 0}
:where(body.pg-module) .narrative dl div{padding:9px}
:where(body.pg-module) .narrative dd{margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where(body.pg-module) .narrative button{width:100%;min-height:40px;margin-top:7px;border:1px solid var(--line);border-radius:10px}
:where(body.pg-module) .narrative button.primary{border:0}
:where(body.pg-module) .narrative button:disabled{opacity:.35;cursor:not-allowed}
:where(body.pg-module) .bottom-bar{display:grid;grid-template-columns:420px minmax(380px,1fr) auto;align-items:end;gap:14px;direction:ltr}
:where(body.pg-module) .peace-wall,:where(body.pg-module) .navigation,:where(body.pg-module) .quick{pointer-events:auto}
:where(body.pg-module) .peace-wall{width:100%;padding:16px;border-radius:22px;direction:rtl}
:where(body.pg-module) .section-title{display:flex;justify-content:space-between;align-items:center}
:where(body.pg-module) .messages{height:55px;overflow:auto;margin:8px 0}
:where(body.pg-module) .messages p{margin:0 0 5px;padding:6px 8px;border-right:2px solid var(--gold)}
:where(body.pg-module) .message-form{display:flex;gap:7px}
:where(body.pg-module) .message-form input{flex:1;min-width:0;border:1px solid var(--line);padding:9px 11px;outline:none}
:where(body.pg-module) .message-form button{width:50px;border:0}
:where(body.pg-module) .navigation{justify-self:center;display:grid;gap:8px;padding:10px;border-radius:18px;direction:rtl}
:where(body.pg-module) .nav-row{display:flex;align-items:center;justify-content:center;gap:6px}
:where(body.pg-module) .nav-row button,:where(body.pg-module) .nav-row select{height:34px;border:1px solid var(--line);padding:0 12px}
:where(body.pg-module) .nav-row b{min-width:55px;text-align:center}
:where(body.pg-module) .quick{padding:8px;border-radius:18px;display:flex;flex-direction:column;gap:6px}
:where(body.pg-module) .quick button{width:42px;height:42px;border:1px solid var(--line)}
:where(body.pg-module) .drawer{position:fixed;z-index:50;top:0;right:0;width:min(420px,100vw);height:100%;padding:28px;transform:translateX(100%);transition:.45s;border-radius:0;pointer-events:auto}
:where(body.pg-module) .drawer.open{transform:none}
:where(body.pg-module) .drawer-head{display:flex;justify-content:space-between;align-items:center}
:where(body.pg-module) .drawer-head h2{margin:4px 0}
:where(body.pg-module) .drawer-head button{width:38px;height:38px;border-radius:50%;border:1px solid var(--line)}
:where(body.pg-module) .drawer-scroll{height:calc(100% - 75px);overflow:auto;padding-top:20px}
:where(body.pg-module) .drawer section{margin-bottom:25px;padding-bottom:20px;border-bottom:1px solid var(--line)}
:where(body.pg-module) .drawer section h3{margin:6px 0}
:where(body.pg-module) .stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
:where(body.pg-module) .stats-grid article{padding:14px}
:where(body.pg-module) .stats-grid span{display:block}
:where(body.pg-module) .stats-grid b{display:block;margin-top:6px}
:where(body.pg-module) .room-list>div{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:10px}
:where(body.pg-module) .room-list button{height:38px;border:1px solid var(--line)}
:where(body.pg-module) .drawer ::-webkit-scrollbar,:where(body.pg-module) .narrative-text::-webkit-scrollbar,:where(body.pg-module) .messages::-webkit-scrollbar{width:4px}
@media(max-width:1100px){:where(body.pg-module) .topbar{grid-template-columns:1fr auto}
:where(body.pg-module) .room-heading{display:none}
:where(body.pg-module) .bottom-bar{grid-template-columns:1fr auto}
:where(body.pg-module) .peace-wall{display:none}
:where(body.pg-module) .brand-logo img{width:160px}
:where(body.pg-module) .brand-status>div{display:none}
:where(body.pg-module) .top-actions .action{display:none}}
@media(max-width:700px){:where(body.pg-module) .hud{padding:10px}
:where(body.pg-module) .topbar{grid-template-columns:1fr auto}
:where(body.pg-module) .brand-status{padding:7px 10px}
:where(body.pg-module) .brand-logo img{width:150px;height:36px}
:where(body.pg-module) .top-actions .icon-btn{display:none}
:where(body.pg-module) .exit-btn{height:42px}
:where(body.pg-module) .bottom-bar{display:flex;justify-content:space-between}
:where(body.pg-module) .navigation{max-width:calc(100vw - 75px);overflow:hidden}
:where(body.pg-module) .nav-row:first-child{display:none}
:where(body.pg-module) .nav-row button{padding:0 8px}
:where(body.pg-module) .quick{flex-direction:row}
:where(body.pg-module) .quick button:nth-child(-n+2){display:none}
:where(body.pg-module) .narrative{top:72px;right:10px;width:calc(100vw - 20px)}
:where(body.pg-module) .narrative dl{grid-template-columns:1fr}
:where(body.pg-module) .loading-card{padding:35px 18px}}
:where(body.pg-module) .narrative{width:min(430px,calc(100vw - 44px));max-height:calc(100vh - 250px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--gold) transparent}
:where(body.pg-module) .narrative.visible{pointer-events:auto}
:where(body.pg-module) .narrative-text{min-height:78px;max-height:145px;padding:12px 13px;margin-top:9px;border:1px solid var(--line);border-radius:12px;overflow:auto}
:where(body.pg-module) .narrative-text.typing::after{content:'|';display:inline-block;margin-right:3px;animation:typeCursor .7s steps(1) infinite}
@keyframes typeCursor{50%{opacity:0}}
:where(body.pg-module) .smart-guide-label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:10px;border:1px solid var(--line)}
:where(body.pg-module) .smart-guide-label small{text-align:left}
:where(body.pg-module) .guide-note{display:block;margin:7px 2px 0}
:where(body.pg-module) .voice-controls{margin-top:10px}
:where(body.pg-module) .voice-controls button{margin-top:0}
:where(body.pg-module) .voice-controls button::before{content:'◖';margin-left:7px}
:where(body.pg-module) .voice-controls button.speaking::before{content:'■'}
:where(body.pg-module) .voice-controls small{display:block;min-height:17px;padding-top:5px;text-align:center}
:where(body.pg-module) .signature-panel{margin-top:10px;padding:12px;border-radius:13px;border:1px solid var(--line)}
:where(body.pg-module) .signature-panel.empty{border-style:dashed}
:where(body.pg-module) .signature-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
:where(body.pg-module) .verified-badge{border:1px solid var(--line);padding:4px 7px;border-radius:99px;white-space:nowrap}
:where(body.pg-module) .signature-visual{min-height:38px;display:flex;align-items:center;justify-content:center;margin:9px 0 5px;padding:7px 9px;direction:ltr;text-align:center;border-bottom:1px solid var(--line)}
:where(body.pg-module) .signature-panel.empty .signature-visual{direction:rtl}
:where(body.pg-module) .signature-visual img{max-width:100%;max-height:55px;object-fit:contain}
:where(body.pg-module) .signature-panel>small{display:block}
:where(body.pg-module) .narrative .art-meta-grid{grid-template-columns:repeat(2,1fr)}
:where(body.pg-module) .narrative .art-meta-grid dd{white-space:normal;max-height:36px}
:where(body.pg-module) .archive-charts>.chart-card{margin-top:12px;padding:13px;border:1px solid var(--line);border-radius:14px}
:where(body.pg-module) .chart-title{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:12px}
:where(body.pg-module) .chart-title h3{margin:0!important}
:where(body.pg-module) .chart-title span{text-align:left}
:where(body.pg-module) .chart-stage{position:relative;width:100%;min-height:245px}
:where(body.pg-module) .chart-stage canvas{width:100%!important;height:245px!important}
:where(body.pg-module) .country-stage{min-height:315px}
:where(body.pg-module) .country-stage canvas{height:315px!important}
:where(body.pg-module) .chart-fallback{width:100%;height:100%}
:where(body.pg-module) .donut-stage .chart-fallback{display:grid;grid-template-columns:135px 1fr;align-items:center;gap:15px;min-height:220px}
:where(body.pg-module) .internal-donut{width:132px;height:132px;margin:auto;border-radius:50%;display:grid;place-items:center}
:where(body.pg-module) .internal-donut>div{width:78px;height:78px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line)}
:where(body.pg-module) .chart-legend{display:grid;gap:7px}
:where(body.pg-module) .chart-legend>div{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:7px}
:where(body.pg-module) .chart-legend i{width:8px;height:8px;border-radius:2px}
:where(body.pg-module) .internal-bars{display:grid;gap:9px;padding-top:2px}
:where(body.pg-module) .bar-row{display:grid;gap:5px}
:where(body.pg-module) .bar-label{display:flex;align-items:center;justify-content:space-between}
:where(body.pg-module) .bar-track{height:7px;border-radius:99px;overflow:hidden}
:where(body.pg-module) .bar-track i{display:block;height:100%;border-radius:inherit;transition:width .7s ease}
:where(body.pg-module) .chart-engine-status{margin:10px 0 0!important}
@media(max-width:700px){:where(body.pg-module) .narrative{max-height:calc(100vh - 152px);padding:18px}
:where(body.pg-module) .narrative-text{max-height:125px}
:where(body.pg-module) .smart-guide-label{align-items:flex-start;flex-direction:column;gap:3px}
:where(body.pg-module) .smart-guide-label small{text-align:right}
:where(body.pg-module) .donut-stage .chart-fallback{grid-template-columns:1fr}
:where(body.pg-module) .chart-stage{min-height:310px}
:where(body.pg-module) .signature-panel{padding:10px}}
@media(prefers-reduced-motion:reduce){:where(body.pg-module) .narrative,:where(body.pg-module) .drawer,:where(body.pg-module) .loading-overlay,:where(body.pg-module) .bar-track i{transition:none!important}
:where(body.pg-module) .narrative-text.typing::after{animation:none}}
:where(body.pg-module) .sponsor-panel{margin-top:11px;padding:12px;border:1px solid var(--line);border-radius:13px}
:where(body.pg-module) .sponsor-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
:where(body.pg-module) .sponsor-panel-head b{padding:5px 9px;border-radius:99px}
:where(body.pg-module) .sponsor-panel p{margin:10px 0}
:where(body.pg-module) .sponsor-panel a{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;text-decoration:none;pointer-events:auto}
:where(body.pg-module) .narrative:has(.sponsor-panel:not([hidden])) .signature-panel{display:none!important}