/* Full-screen product preview. The app leads; project information supports it. */
.project-dialog{--demo-panel-width:352px;position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:12px;border:0;border-radius:0;background:#080808;color:var(--text);overflow:hidden;transform:none}
.project-dialog::backdrop{background:#000}
.project-layout{display:flex;flex-direction:column;gap:12px;width:100%;height:100%;min-width:0;min-height:0}
.project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:0 4px;flex-shrink:0}
.project-identity{display:flex;align-items:center;gap:10px;min-width:0}
.project-identity img{width:28px;height:28px;object-fit:cover;border-radius:8px;flex-shrink:0}
.project-identity h2{font-family:var(--font-sans);font-size:16px;line-height:24px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-toolbar-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.details-toggle,.project-toolbar .exit-button{width:auto;min-height:44px;height:44px;padding:0 16px;border-radius:12px;font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:500;transition:background-color 160ms ease,color 160ms ease}
.details-toggle{background:transparent;color:#bbb}
.details-toggle[aria-expanded="true"]{background:#ffffff0a;color:#eee}
.project-toolbar .exit-button{display:flex;gap:8px;background:#242424;color:#fff;flex-shrink:0}
.exit-button img{transform:rotate(180deg)}
.project-workspace{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;flex:1;min-height:0;min-width:0}
.project-dialog.details-open .project-workspace{grid-template-columns:minmax(0,1fr) var(--demo-panel-width)}
.project-workspace .demo-stage{width:100%;height:100%;min-height:0;min-width:0;overflow:hidden;border:1px solid #ffffff1a;border-radius:16px;background:#101010}
.demo-stage iframe{display:block;width:100%;height:100%;min-width:0;min-height:0;border:0;border-radius:0;flex:1}
.demo-loading{max-width:32ch;padding:24px;text-align:center;font-size:15px;line-height:23px;color:#bbb}
.project-workspace .project-details{display:flex;flex-direction:column;min-height:0;min-width:0;height:100%;overflow:hidden;padding:24px;background:#101010;border:1px solid #ffffff14;border-radius:16px}
.project-info{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#444 transparent;padding-right:4px}
.project-heading{gap:0}
.project-heading p{font-size:15px;line-height:23px;color:#c4c4c4;opacity:1}
.project-metrics{display:grid;grid-template-columns:1fr 1px 1fr;gap:20px;align-items:center;margin-top:32px;min-height:0}
.project-metrics p{font-size:13px;line-height:20px;color:#999;opacity:1}
.project-metrics strong{margin-top:4px;font-size:28px;line-height:36px;font-weight:700;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.metric-divider{width:1px;height:28px;background:#ffffff1a}
.metric-divider img{display:none}
.project-stack{margin-top:32px;font-size:14px;line-height:21px}
.project-stack>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid #ffffff12}
.project-stack>div:last-child{border-bottom:0}
.project-stack dt{color:#999;opacity:1;white-space:normal}
.project-stack dd{color:#e6e6e6;overflow-wrap:break-word;text-align:right}
.project-actions{margin-top:auto;padding-top:24px;gap:0;flex-shrink:0}
.project-actions .github-button{height:48px;border-radius:12px;font-size:14px;font-weight:500;gap:8px}
.details-shade{position:absolute;inset:0;z-index:1;background:#0009;cursor:default}
.project-dialog :focus-visible{outline:2px solid #fff;outline-offset:-3px}
body.project-open>.site-header{visibility:hidden}
@media(hover:hover){.details-toggle:hover{background:#ffffff14;color:#fff}.project-toolbar .exit-button:hover{background:#353535;transform:none}}
@media(min-width:1100px) and (max-width:1279px){.project-dialog{--demo-panel-width:320px}.project-workspace .project-details{padding:20px}}
@media(max-width:1099px){
  .project-dialog.details-open .project-workspace{grid-template-columns:minmax(0,1fr)}
  .project-workspace .project-details{position:absolute;z-index:2;right:0;top:0;bottom:0;width:min(360px,calc(100% - 24px));height:100%;box-shadow:-12px 8px 32px #0006}
}
@media(max-width:650px){
  .project-dialog{padding:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .project-layout{gap:8px}.project-toolbar{padding:0;gap:8px}.project-toolbar-actions{gap:4px}
  .project-identity{gap:8px}.project-identity img{width:24px;height:24px;border-radius:7px}.project-identity h2{font-size:14px;line-height:20px}
  .details-toggle,.project-toolbar .exit-button{padding:0 10px;font-size:13px;border-radius:10px}.exit-button img{display:none}
  .project-workspace .demo-stage,.project-workspace .project-details{border-radius:12px}.project-workspace .project-details{padding:20px}
}
@media(prefers-reduced-motion:reduce){.details-toggle,.project-toolbar .exit-button{transition:none!important}}
