body:has(.portfolio-dialog[open]){overflow:hidden}
.portfolio-dialog{padding:0;border:1px solid #47606c;border-radius:14px;background:#f3f9fc;color:#102630;width:calc(100vw - 48px);max-width:1600px;height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);overflow:hidden;margin:auto;font-family:'DM Sans',Arial,sans-serif}
.portfolio-dialog::backdrop{background:rgb(9 21 29 / .78);backdrop-filter:blur(6px)}
.portfolio-dialog[open]{display:flex;flex-direction:column}
.preview-toolbar{display:flex;align-items:center;gap:24px;padding:16px 22px;border-bottom:1px solid #c2d5de;flex-shrink:0}
.preview-toolbar h2{font-family:'DM Sans',Arial,sans-serif;font-size:22px;letter-spacing:-.03em;margin-right:auto;line-height:1.2}
.preview-toolbar a,.preview-close,.profile-open{font-size:16px;font-family:inherit}
.preview-toolbar a{text-decoration:underline;text-underline-offset:4px}
.preview-close,.profile-open{border:1px solid #102630;padding:10px 16px;background:transparent;border-radius:6px}
.preview-close:hover,.profile-open:hover{background:#dceef5}
.profile-open{display:inline-flex;align-items:center;gap:24px}
#project-frame{width:100%;flex:1;min-height:0;border:0;background:#fff}
.preview-status{font-size:14px;padding:10px 22px;background:#e2eff5}
.preview-status[hidden]{display:none}
.preview-help{font-size:14px;line-height:1.5;padding:10px 22px;border-top:1px solid #c2d5de}
.profile-dialog{max-width:900px;height:auto}
.profile-content{padding:28px 32px;overflow:auto;overscroll-behavior:contain}
.profile-content h3{font-family:'DM Sans',Arial,sans-serif;font-size:23px;margin:28px 0 12px}
.profile-content p{font-size:17px;line-height:1.75}
@media(max-width:600px){.portfolio-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:none;border:0;border-radius:0}.preview-toolbar{gap:12px;padding:14px 16px;flex-wrap:wrap}.preview-toolbar h2{font-size:20px}.preview-toolbar a{order:3;width:100%;font-size:14px}.preview-close{padding:8px 12px}.preview-help{padding:10px 16px}.profile-content{padding:20px}.profile-open{text-align:left}.profile-dialog{height:100dvh}}

.preview-retry{font:inherit;font-size:14px;white-space:nowrap;background:transparent;border:0;padding:10px 2px;text-decoration:underline;text-underline-offset:4px}.preview-toolbar{flex-wrap:wrap}.preview-toolbar h2{min-width:120px}.preview-retry:hover{opacity:.7}
