.pg-files-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #d4dce8;border-radius:20px;background:#f5f7fb;color:#243147;box-shadow:0 24px 90px #16243b33;font:calc(15px * var(--pg-ts,1))/1.6 -apple-system,BlinkMacSystemFont,"PG Hangul","Apple SD Gothic Neo",sans-serif;overflow:auto}
.pg-files-dialog::backdrop{background:#18223855}.pg-files-dialog *{box-sizing:border-box}.pg-files-dialog[hidden]{display:none}.pg-files-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid #d9e1ed;background:#f5f7fb;position:sticky;top:0;z-index:1}.pg-files-head h2{font-size:calc(20px * var(--pg-ts,1));line-height:1.4;margin:0}.pg-files-close{width:40px;height:40px;font-size:calc(26px * var(--pg-ts,1))!important;border:0!important;background:transparent!important;flex:none;color:#465772!important;padding:0!important}.pg-files-body{padding:24px}.pg-files-intro{margin:0 0 22px;color:#55657a}.pg-file-choices{display:grid;gap:10px}.pg-file-choice{display:flex!important;align-items:center;gap:14px;text-align:left;width:100%;min-height:78px;padding:16px!important;border:1px solid #d4dce8!important;border-radius:14px;background:#fff!important;color:#243147!important}.pg-file-choice>span:first-child{color:#4054df;font-size:calc(26px * var(--pg-ts,1));line-height:1;width:28px;text-align:center}.pg-file-choice b{font-size:calc(15px * var(--pg-ts,1));display:block}.pg-file-choice small{display:block;color:#596a81;font-size:calc(12px * var(--pg-ts,1));margin-top:3px}.pg-files-dialog button,.pg-files-dialog input,.pg-files-dialog select{font:inherit}.pg-files-dialog button{cursor:pointer}.pg-files-dialog button:disabled{cursor:default;opacity:.6}.pg-files-dialog :focus-visible{outline:3px solid #8191ef;outline-offset:3px}.pg-files-dialog label{display:block;color:#45556b;font-size:calc(13px * var(--pg-ts,1));font-weight:600;margin:18px 0}.pg-files-dialog input:not([type=checkbox]),.pg-files-dialog select{display:block;width:100%;margin-top:7px;min-height:50px;padding:13px 14px;border:1px solid #cbd5e3;border-radius:12px;background:#fff;color:#243147;font-size:calc(16px * var(--pg-ts,1));line-height:1.4}.pg-files-dialog input[type=file]{padding:12px;font-size:calc(14px * var(--pg-ts,1))}.pg-files-dialog input::placeholder{color:#6b788c;opacity:1}.pg-files-dialog .pg-files-consent{display:flex;align-items:flex-start;gap:10px;font-size:calc(13px * var(--pg-ts,1));font-weight:400}.pg-files-consent input{width:18px;height:18px;flex:none;margin-top:3px;accent-color:#4054df}.pg-files-note{font-size:calc(12px * var(--pg-ts,1))!important;line-height:1.7;color:#596a81!important;margin:18px 0 0;overflow-wrap:anywhere}.pg-files-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.pg-files-dialog .pg-files-primary,.pg-files-dialog .pg-files-secondary{border-radius:12px;min-height:48px;padding:12px 18px;font-weight:600}.pg-files-primary{background:var(--pg-btn-bg)!important;color:var(--pg-btn-fg)!important;border:1px solid var(--pg-btn-bg)!important}.pg-files-secondary{background:#fff!important;color:#344760!important;border:1px solid #cbd5e3!important}.pg-files-error{color:#a03039;font-size:calc(13px * var(--pg-ts,1));min-height:20px;margin:12px 0 0;overflow-wrap:anywhere}.pg-files-progress{width:100%;height:10px;accent-color:#4054df}.pg-files-status{font-size:calc(13px * var(--pg-ts,1));color:#344760;overflow-wrap:anywhere}.pg-external-thumb{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;background:#edf1f8!important;color:#243147!important;padding:22px!important;overflow:hidden;min-height:170px}.pg-external-symbol{font-size:calc(32px * var(--pg-ts,1));line-height:1;color:#4054df}.pg-external-thumb strong{font-size:calc(16px * var(--pg-ts,1));line-height:1.5;overflow-wrap:anywhere}.pg-external-thumb small{font-size:calc(12px * var(--pg-ts,1));line-height:1.6;color:#53657b}.pg-external-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:calc(12px * var(--pg-ts,1));line-height:1.6}.pg-external-meta span{padding:3px 8px;border-radius:6px;background:#e3e9f3;color:#465975}.pg-external-view{padding:24px!important;min-height:270px;align-items:stretch}.pg-external-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;background:#4054df;color:#fff!important;text-decoration:none;border-radius:10px;padding:10px 16px;font-size:calc(14px * var(--pg-ts,1));font-weight:600}.pg-external-revision{background:#fff;border:1px solid #cbd5e3;color:#344760;border-radius:10px;padding:10px 14px;min-height:44px}.pg-room-file{display:flex;flex-direction:column;gap:5px;max-width:360px;margin-top:12px;padding:14px 16px;background:#eaf0f8;border:1px solid #d4dce8;border-radius:12px;overflow-wrap:anywhere}.pg-room-file a{color:#344ac9!important;font-size:calc(14px * var(--pg-ts,1));font-weight:650;text-decoration:none}.pg-room-file small{color:#53657b;font-size:calc(12px * var(--pg-ts,1));line-height:1.6}.pg-room-attach{width:38px!important;height:38px!important;min-height:38px;padding:6px!important;border:1px solid #cad5e5!important;border-radius:10px!important;background:#fff!important;color:var(--pg-accent)!important;flex:none;font-size:calc(24px * var(--pg-ts,1))!important;line-height:1!important}.room-compose-actions:has(.pg-room-attach){gap:10px}.room-compose-actions .pg-room-attach+span{margin-right:auto}.pg-file-archive-note{font-size:calc(12px * var(--pg-ts,1));line-height:1.6;color:#596a81;padding:10px 0}
@media(max-width:760px){.pg-files-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;margin:0!important;inset:0!important}.pg-files-head{padding:calc(12px + env(safe-area-inset-top)) 20px 12px}.pg-files-body{padding:20px 20px calc(24px + env(safe-area-inset-bottom))}.pg-files-head h2{font-size:calc(19px * var(--pg-ts,1))}.pg-files-actions>*{flex:1}.pg-external-view{padding:20px!important}.pg-room-file{max-width:100%}}
@media(prefers-color-scheme:dark){.pg-files-dialog{color-scheme:light}}

/* File details grow with their content; image thumbnail aspect ratios do not apply. */
.artifact-stage>.pg-external-view{max-height:none;aspect-ratio:auto;min-height:270px;overflow:visible;flex:0 0 auto}
@media(max-width:760px){.pin .pg-external-thumb{padding:10px!important;gap:8px;min-height:0!important;align-items:center}.pin .pg-external-thumb strong,.pin .pg-external-thumb small,.pin .pg-external-meta span+span{display:none}.pin .pg-external-meta span{font-size:calc(10px * var(--pg-ts,1));padding:2px;white-space:nowrap}.pin .pg-external-symbol{font-size:calc(24px * var(--pg-ts,1))}}
