
.pd-dialog{position:fixed;width:min(1120px,calc(100vw - 44px));max-width:calc(100vw - 20px);max-height:92vh;max-height:92dvh;margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line,#393c34);border-radius:16px;background:var(--panel,#191b18);color:var(--ink,#f2f5ed);font-family:var(--body,system-ui,sans-serif);scrollbar-color:#585d50 #181a17;box-shadow:0 22px 95px #0008}
.pd-dialog::backdrop{background:rgb(4 6 4/.84);backdrop-filter:blur(6px)}
.pd-dialog *{box-sizing:border-box}
.pd-grid{display:block;height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#585d50 #181a17}
.pd-dialog{width:min(1040px,calc(100vw - 32px));height:96vh;height:96dvh;max-height:96vh;max-height:96dvh;overflow:hidden}
.pd-media{position:relative;display:block;min-width:0;width:100%;height:89vh;height:89dvh;margin:0;padding:0;border:0;border-radius:0;background:#0c0d0b;cursor:zoom-in}
.pd-media img{display:block;width:100%;height:100%;object-fit:contain}
.pd-expand-icon{position:absolute;right:13px;bottom:13px;width:32px;height:32px;border:1px solid #ffffff66;border-radius:50%;background:#141612b3}
.pd-expand-icon::before,.pd-expand-icon::after{content:"";position:absolute;width:7px;height:7px;border:solid white}
.pd-expand-icon::before{top:8px;right:8px;border-width:1.5px 1.5px 0 0}
.pd-expand-icon::after{bottom:8px;left:8px;border-width:0 0 1.5px 1.5px}
.pd-panel{padding:19px 22px 24px;overflow-wrap:anywhere}
.pd-head:empty{display:none}
.pd-head:not(:empty){margin-bottom:14px}
.pd-byline-summary{font-size:.92rem;line-height:1.45;font-weight:600}
.pd-panel h2,.pd-panel h3,.pd-panel p,.pd-panel ul{margin:0}
.pd-panel .pd-category{color:var(--lime,#d6ff63);font-size:.74rem;font-weight:650;text-transform:uppercase;letter-spacing:.11em;margin-bottom:6px}
.pd-name{font-size:1.5rem;font-weight:600;line-height:1.15;letter-spacing:-.045em}
.pd-sub,.pd-counter,.pd-note,.pd-empty,.pd-byline time{font-size:.8rem;color:var(--muted,#b2b6a9);line-height:1.45}
.pd-panel .pd-sub{display:block;margin-top:5px}
.pd-dialog button,.pd-dialog textarea,.pd-dialog select{font:inherit}
.pd-close{position:absolute;top:12px;right:12px;width:40px;height:40px;z-index:2;border-radius:50%;background:#151712c9;color:#fff;border:1px solid #787e7080;font-size:27px!important;line-height:1;display:grid;place-items:center;cursor:pointer}
.pd-dialog :focus-visible{outline:2px solid var(--lime,#d6ff63);outline-offset:3px}
.pd-thread{margin:0}
.pd-comments-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.pd-comments-head h3{font-size:1.04rem;font-weight:610}
.pd-form textarea,.pd-row-actions select{background:var(--bg,#121310);color:var(--ink,#f2f5ed);border:1px solid var(--line,#3d4038);border-radius:8px;padding:9px 11px;width:100%;resize:vertical;line-height:1.4}
.pd-form textarea{min-height:60px}
.pd-form textarea::placeholder{color:var(--muted,#b2b6a9);opacity:1}
.pd-form-row,.pd-byline{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pd-form-row{margin-top:5px}
.pd-post,.pd-more{min-height:38px;padding:8px 15px;border:1px solid var(--lime,#d6ff63);border-radius:7px;background:var(--lime,#d6ff63);color:#18200e;font-size:.88rem!important;font-weight:650!important;cursor:pointer}
.pd-dialog button:disabled{opacity:.5;cursor:default}
.pd-link,.pd-danger{cursor:pointer;border:0;background:none;color:var(--muted,#b2b6a9);text-decoration:underline;text-underline-offset:3px;font-size:.79rem!important;padding:4px 2px;min-height:32px}
.pd-danger{color:#ffb2a2}
.pd-note:not(:empty){margin-top:9px}
.pd-list{list-style:none;padding:0}
.pd-list>li{padding:14px 0;border-bottom:1px solid var(--line,#3d4038)}
.pd-byline strong{font-size:.88rem;font-weight:630}
.pd-panel .pd-body{font-size:.94rem;line-height:1.46;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px}
.pd-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:3px}
.pd-row-actions select{width:auto;padding:4px 5px;font-size:.82rem}
.pd-more{background:transparent;border-color:var(--line,#3d4038);color:var(--ink,#f2f5ed);margin-top:12px}
.pd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pd-unavailable{padding:35px}
.pd-comments-head h3,.round-comments [data-comment-count]{font-variant-numeric:tabular-nums}
.pd-row-actions>[hidden],.pd-child-thread[hidden]{display:none}
.pd-replies{border-inline-start:2px solid var(--line,#3d4038);margin-inline-start:3px!important;padding-inline-start:12px}
.pd-replies .pd-replies{padding-inline-start:8px}
.pd-replies .pd-replies .pd-replies{border-inline-start:0;margin-inline-start:0!important;padding-inline-start:0}
.pd-replies>.pd-comment:last-child{border-bottom:none;padding-bottom:0}
.pd-reply-form{margin:4px 0 12px;padding:9px 10px;background:var(--bg,#121310);border:1px solid var(--line,#3d4038);border-radius:8px}
.pd-reply-label{display:block;font-size:.82rem;color:var(--muted,#b2b6a9);margin-bottom:6px}
.pd-reply-form .pd-form-row>.pd-counter{margin-inline-end:auto}
.pd-moderate{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
.pd-toggle-replies{font-weight:600!important;color:var(--ink,#f2f5ed)}
@media(max-width:740px){
  .pd-dialog{inset:0;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;border:0;border-radius:0}
  .pd-media{height:94vh;height:94dvh}
  .pd-media img{object-fit:cover;object-position:var(--portrait-x,50%) 40%}
  .pd-panel{padding:17px 16px 22px}
  .pd-close{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
  .pd-post,.pd-more{min-height:44px}
  .pd-row-actions button,.pd-row-actions select{min-height:38px}
}
.pd-dialog.pd-zoomed{inset:0;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;overflow:hidden;border:0;border-radius:0;background:#080908}
.pd-zoomed .pd-grid{overflow:hidden}
.pd-zoomed .pd-media{height:100vh;height:100dvh;cursor:zoom-out;background:#080908}
.pd-zoomed .pd-media img{object-fit:contain;object-position:center}
.pd-zoomed .pd-expand-icon{display:none}
.pd-zoomed .pd-media:focus-visible{outline-offset:-4px}
.pd-media:focus-visible{outline-offset:-4px}


.pd-download{position:absolute;top:12px;left:12px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #787e7080;border-radius:50%;background:#151712c9;color:#fff;cursor:pointer}
.pd-download-note:not(:empty){position:absolute;z-index:2;top:13px;left:62px;max-width:calc(100% - 124px);padding:7px 10px;border-radius:8px;background:#151712ed;color:white;font-size:.82rem}
@media(max-width:740px){.pd-download{top:9px;left:9px}}

.pd-prompt{margin:0 0 12px}
.pd-prompt-toggle{min-height:42px;display:inline-flex;align-items:center;gap:7px;padding:0 9px 0 0;border:0;background:transparent;color:var(--ink,#f2f5ed);font-size:.87rem!important;font-weight:600!important;cursor:pointer}
.pd-prompt-icon{display:inline-flex;color:var(--muted,#b2b6a9)}
.pd-prompt-badge{padding:1px 5px;border:1px solid var(--line,#3d4038);border-radius:4px;color:var(--muted,#b2b6a9);font-size:.72rem;font-weight:500}
.pd-prompt-body{border-inline-start:2px solid var(--line,#3d4038);padding:3px 12px;font-size:.9rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.pd-prompt:last-child{margin-bottom:0}

.pd-prompt-source{display:block;margin-bottom:4px;color:var(--muted,#b2b6a9);font-size:.77rem;font-weight:600}

.pd-entry-actions{position:absolute;z-index:2;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);text-align:center}
.pd-entry-actions button{min-height:44px;box-shadow:0 2px 12px #0008}
.pd-entry-actions .st-message:not(:empty){margin:8px 0 0;padding:8px 12px;border-radius:8px;background:#151712ed;color:white}
