/* The existing tile unfolds in place; every format uses the same quiet surface. */
.add-card.is-creating{min-height:340px;overflow:visible;isolation:isolate}
.creation-picker{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,minmax(96px,1fr));position:relative;min-height:340px;height:100%;flex:1;overflow:hidden;border-radius:inherit;animation:creation-enter .32s cubic-bezier(.2,.7,.2,1) both}
.creation-choice{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;position:relative;min-width:0;background:none;color:var(--ink);border:0;font:inherit;font-size:15px;cursor:pointer;transition:background .22s,color .22s}
.creation-choice:nth-child(odd){border-right:1px solid var(--hairline,#deded7)}
.creation-choice:nth-child(-n+6){border-bottom:1px solid var(--hairline,#deded7)}
.creation-choice[data-create-kind=game]{min-height:96px}
.creation-choice svg{width:32px;height:32px;opacity:.66;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s}
.creation-choice:hover{background:color-mix(in srgb,var(--ink) 4%,transparent)}
.creation-choice:hover svg{transform:translateY(-4px);opacity:1}
.creation-choice:focus-visible{outline:2px solid var(--blue);outline-offset:-5px;border-radius:4px}
.creation-close{position:absolute;top:10px;right:10px;width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--paper);color:var(--muted);font:inherit;font-size:20px;cursor:pointer;z-index:2}
.creation-form{display:flex;flex-direction:column;gap:20px;padding:24px;animation:creation-enter .28s cubic-bezier(.2,.7,.2,1) both}
.creation-heading{display:flex;align-items:center;gap:10px;position:relative;min-height:32px;margin-bottom:4px}
.creation-heading .creation-close{top:0;right:0}
.creation-heading h2{font-size:16px!important;letter-spacing:0;display:flex;align-items:center;gap:9px;font-weight:500;margin:0}
.creation-heading h2 svg{width:20px;height:20px}
.creation-back{padding:4px;display:flex;align-items:center}.creation-back svg{width:18px;height:18px}
.creation-form .field{gap:8px}.creation-form .field label{font-size:13px}
.creation-form .field input{padding:13px 14px;font-size:15px;min-width:0;width:100%}
.creation-hint,.creation-progress{color:var(--muted);font-size:12px;line-height:1.6;margin:0}
.creation-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:auto}
.creation-footer .button{padding:12px 16px;gap:14px;font-size:14px;white-space:nowrap;min-height:44px}
.creation-footer .button svg{width:18px;height:18px}
.creation-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:132px;padding:18px;border:1px dashed var(--hairline,#deded7);border-radius:6px;cursor:pointer;overflow:hidden;transition:background .2s,border-color .2s;min-width:0}
.creation-drop svg{width:24px;height:24px;color:var(--muted);margin-bottom:4px}
.creation-drop span{font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.creation-drop small{color:var(--muted);font-size:11px}
.creation-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.creation-drop:hover,.creation-drop.is-dragging{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 6%,transparent)}
.creation-drop:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.creation-thumbs{display:flex;flex-wrap:wrap;gap:8px}.creation-thumbs>div{position:relative;width:56px;height:56px}
.creation-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:4px}
.creation-thumbs button{position:absolute;right:-4px;top:-4px;border:0;width:21px;height:21px;border-radius:50%;background:var(--ink);color:var(--paper);cursor:pointer}
.media-kind{position:absolute;bottom:10px;left:10px;display:flex;align-items:center;gap:6px;padding:6px 9px;border-radius:4px;font-size:11px;color:var(--ink);background:var(--paper);pointer-events:none}
.media-kind svg{width:14px;height:14px}.preview-fallback>.media-fallback-icon svg{width:64px;height:64px;opacity:.45}
.project-media{margin:26px 0 32px;border:1px solid var(--hairline,#deded7);border-radius:8px;overflow:hidden;background:var(--surface)}
.project-media video,.project-media iframe{display:block;width:100%;border:0;aspect-ratio:16/9;background:#10110f}
.project-media video{max-height:70vh;object-fit:contain}
.project-media.is-document iframe{height:65vh;min-height:360px;aspect-ratio:auto;background:var(--surface)}
.media-caption{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 16px;font-size:12px;color:var(--muted)}
.media-caption>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-caption a{color:var(--ink);white-space:nowrap;display:flex;gap:6px;align-items:center}.media-caption svg{width:15px;height:15px}
.media-edit .upload-button input{max-width:100%}
@keyframes creation-enter{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:600px){.creation-form{padding:20px;gap:18px}.creation-picker{min-height:280px}.add-card.is-creating{min-height:280px}.creation-choice{font-size:14px;gap:12px}.creation-choice svg{width:28px;height:28px}.creation-progress{max-width:45%}.project-media.is-document iframe{height:55vh;min-height:280px}.media-caption{padding:12px}}
@media(prefers-reduced-motion:reduce){.creation-picker,.creation-form{animation:none}.creation-choice,.creation-choice svg,.creation-drop{transition:none}}
.document-page{padding:16px;background:color-mix(in srgb,var(--ink) 5%,var(--paper));min-height:180px;max-height:65vh;overflow:auto}
.document-page canvas{display:block;width:100%;height:auto;max-width:100%;background:white;box-shadow:0 2px 12px #00000014}
.document-page canvas[hidden]{display:none}
.document-controls{display:flex;align-items:center;justify-content:center;gap:18px;padding:10px;border-bottom:1px solid var(--hairline,#deded7);font-size:12px;color:var(--muted)}
.document-controls button{min-width:36px;min-height:32px;font-size:18px}.document-controls button:disabled{opacity:.3;cursor:default}
@media(prefers-reduced-motion:no-preference){.creation-choice{animation:creation-quadrant .38s cubic-bezier(.2,.7,.2,1) both}.creation-choice:nth-child(2){animation-delay:35ms}.creation-choice:nth-child(3){animation-delay:65ms}.creation-choice:nth-child(4){animation-delay:95ms}}
@keyframes creation-quadrant{from{opacity:0;transform:scale(.93)}to{opacity:1;transform:scale(1)}}
.related-card .media-kind{display:none}

/* Image collections feel like a small folder of photographic prints. */
.album-preview{--album-back:color-mix(in srgb,var(--blue) 18%,var(--control));--album-front:color-mix(in srgb,var(--blue) 10%,var(--control));background:var(--surface);perspective:800px}
.album-preview:after{display:none}
.album-scene{position:absolute;inset:0;pointer-events:none}
.album-back{position:absolute;left:19%;bottom:14%;width:62%;height:43%;border-radius:5px;background:var(--album-back);box-shadow:0 8px 20px #0000000c}
.album-back:before{content:'';position:absolute;left:0;top:-12%;width:38%;height:20%;border-radius:5px 9px 0 0;background:inherit}
.album-photo{position:absolute;left:33%;top:16%;width:34%;height:58%;padding:3px;border-radius:3px;background:#f5f5f0;box-shadow:0 2px 4px #00000026,0 9px 18px #00000014;transform-origin:50% 90%;transition:transform .55s cubic-bezier(.2,.75,.2,1),box-shadow .5s;overflow:hidden}
.album-photo>svg{position:absolute;left:35%;top:30%;width:30%;height:30%;color:#969b95}
.preview.album-preview .album-photo img{position:relative;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:1px;transform:none!important;background:#f5f5f0;transition:none}
.album-photo-0{z-index:3;transform:translate(0,-2%) rotate(-3deg)}
.album-photo-1{z-index:2;transform:translate(-44%,10%) rotate(-14deg)}
.album-photo-2{z-index:1;transform:translate(43%,7%) rotate(12deg)}
.album-pocket{position:absolute;z-index:4;left:18%;bottom:13%;width:64%;height:32%;display:flex;align-items:flex-end;padding:0 9% 7%;border-radius:4px 4px 6px 6px;background:linear-gradient(165deg,color-mix(in srgb,var(--blue) 17%,var(--control)),var(--album-front) 70%);box-shadow:inset 0 1px 0 #ffffff26,0 5px 7px #0000000b,0 14px 18px #0000000b;transform-origin:center bottom;transition:transform .55s cubic-bezier(.2,.75,.2,1),box-shadow .5s}
.album-label{position:absolute;left:14%;bottom:24%;display:flex;align-items:center;gap:7px;color:var(--ink);font:11px/1.3 'IBM Plex Mono',monospace;white-space:nowrap;opacity:.7}
.album-label svg{width:13px;height:13px}
.album-fold{position:absolute;right:10%;bottom:25%;width:12px;height:12px;background:var(--blue);clip-path:polygon(0 0,100% 0,100% 100%);opacity:.55}
.album-preview .image-zoom-hint{z-index:5;right:8px;bottom:8px;padding:7px;background:var(--paper)}
.album-preview .image-zoom-hint>span{display:none}
:is(.project-button:focus-visible,.related-card:focus-visible,.album-preview:focus-visible,.attachment-folder:focus-visible) .album-photo-0{transform:translate(0,-14%) rotate(0deg)}
:is(.project-button:focus-visible,.related-card:focus-visible,.album-preview:focus-visible,.attachment-folder:focus-visible) .album-photo-1{transform:translate(-60%,-2%) rotate(-19deg)}
:is(.project-button:focus-visible,.related-card:focus-visible,.album-preview:focus-visible,.attachment-folder:focus-visible) .album-photo-2{transform:translate(60%,-6%) rotate(18deg)}
:is(.project-button:focus-visible,.related-card:focus-visible,.album-preview:focus-visible,.attachment-folder:focus-visible) .album-pocket{transform:rotateX(-20deg) translateY(3%)}
@media(hover:hover) and (pointer:fine){
 :is(.project-button:hover,.related-card:hover,.album-preview:hover,.attachment-folder:hover) .album-photo-0{transform:translate(0,-14%) rotate(0deg)}
 :is(.project-button:hover,.related-card:hover,.album-preview:hover,.attachment-folder:hover) .album-photo-1{transform:translate(-60%,-2%) rotate(-19deg)}
 :is(.project-button:hover,.related-card:hover,.album-preview:hover,.attachment-folder:hover) .album-photo-2{transform:translate(60%,-6%) rotate(18deg)}
 :is(.project-button:hover,.related-card:hover,.album-preview:hover,.attachment-folder:hover) .album-photo{box-shadow:0 3px 6px #00000026,0 12px 22px #0000001c}
 :is(.project-button:hover,.related-card:hover,.album-preview:hover,.attachment-folder:hover) .album-pocket{transform:rotateX(-20deg) translateY(3%);box-shadow:inset 0 1px 0 #ffffff26,0 8px 10px #0000000d,0 20px 22px #00000012}
}
.related-card .album-photo{padding:1px;border-radius:1px}.related-card .album-label,.related-card .album-fold{display:none}.related-card .album-back,.related-card .album-pocket{border-radius:2px}
.project-drag-preview .album-label{font-size:9px}.project-drag-preview .album-label svg{width:11px;height:11px}
@media(prefers-reduced-motion:reduce){.album-photo,.album-pocket{transition:none}}

/* Attached images stay collected in a compact folder within project details. */
.attachment-folder{display:flex;align-items:center;gap:24px;width:min(100%,600px);margin:28px 0 0;padding:12px 28px 12px 8px;text-align:left;background:var(--surface);border-radius:6px;transition:background .25s ease}
.attachment-folder-visual{display:block;flex:0 0 46%;min-width:0;aspect-ratio:1.2;background:transparent;perspective:800px}
.attachment-folder-copy{display:flex;flex-direction:column;gap:12px;min-width:0}
.attachment-folder-eyebrow{font:10px/1.5 'IBM Plex Mono',monospace;letter-spacing:1px;color:var(--muted)}
.attachment-folder-copy strong{font-size:20px;font-weight:500;letter-spacing:-.5px;line-height:1.3}
.attachment-folder-action{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted);margin-top:8px;transition:color .2s}
.attachment-folder-action .arrow{width:16px;height:16px;margin:0}
.attachment-folder:is(:hover,:focus-visible) .attachment-folder-action{color:var(--blue)}
.attachment-folder:is(:hover,:focus-visible) .attachment-folder-action .arrow{transform:translate(2px,-2px)}
.attachment-folder .album-label{font-size:10px;gap:5px}.attachment-folder .album-label svg{width:12px;height:12px}
@media(max-width:600px){.attachment-folder{gap:12px;padding:12px 16px 12px 4px}.attachment-folder-visual{flex-basis:48%}.attachment-folder-copy{gap:8px}.attachment-folder-copy strong{font-size:16px}.attachment-folder-eyebrow{font-size:9px;letter-spacing:.7px}.attachment-folder-action{font-size:11px;margin-top:4px;gap:8px}.attachment-folder .album-label{font-size:8px}.attachment-folder .album-label svg{display:none}}
@media(prefers-reduced-motion:reduce){.attachment-folder,.attachment-folder-action,.attachment-folder .arrow{transition:none}}

/* PDFs are separate attachments, preserving the project's image gallery. */
.project-documents-editor .field-label{font-size:14px;font-weight:500;line-height:1.6}.project-documents-editor .field-hint{font-size:12px;font-weight:400}
.document-file-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.document-file-list li,.document-attachment-heading{display:flex;align-items:center;gap:12px;min-width:0}
.document-file-list li{padding:12px 8px 12px 16px;background:var(--surface);border-radius:4px}.document-file-icon{display:grid;place-items:center;flex:0 0 32px;color:var(--muted)}.document-file-icon svg{width:28px;height:28px}
.document-file-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.document-file-copy strong,.document-file-copy h3{font-size:15px;font-weight:500;line-height:1.5;margin:0;overflow-wrap:anywhere}.document-file-copy>span{font-size:12px;line-height:1.5;color:var(--muted)}
.document-remove{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:transparent;color:var(--muted);font-size:22px}.document-remove:hover{background:var(--control);color:var(--ink)}.document-upload-status{font-size:14px;line-height:1.6;color:var(--muted)}
.project-documents{margin-top:32px}.project-documents>h2{font-size:16px;font-weight:500;margin-bottom:16px}.document-attachment{border:1px solid var(--hairline);border-radius:4px;overflow:hidden;margin-top:12px}.document-attachment-heading{padding:16px}.document-open{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex-shrink:0;font-size:14px;color:var(--ink);text-underline-offset:4px}.document-open:hover{text-decoration:underline}.document-attachment-preview{border-top:1px solid var(--hairline)}.document-attachment-preview summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 16px;font-size:14px;color:var(--muted);cursor:pointer;list-style:none}.document-attachment-preview summary::-webkit-details-marker{display:none}.document-attachment-preview summary:before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .2s}.document-attachment-preview[open] summary:before{transform:rotate(45deg)}.document-attachment-preview summary:hover{color:var(--ink)}.document-attachment-preview summary:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}.document-attachment .document-controls{border-bottom:0}.document-attachment .document-controls button{min-width:44px;min-height:44px}
@media(max-width:420px){.document-attachment-heading{flex-wrap:wrap;gap:8px 12px}.document-attachment-heading .document-file-copy{flex-basis:calc(100% - 44px)}.document-open{margin-left:44px}.document-file-list li{padding:8px}}
@media(prefers-reduced-motion:reduce){.document-attachment-preview summary:before{transition:none}}
