.studio-entry{position:fixed;z-index:30;left:50%;bottom:12px;transform:translateX(-50%);padding:7px 11px;border:1px solid #0002;border-radius:20px;background:#ffffffb8;backdrop-filter:blur(8px);color:#333;font-size:11px;cursor:pointer}
.studio-entry:hover{background:#fff}
.studio-action{display:none;position:absolute;z-index:9;bottom:24px;right:24px;padding:12px 18px;border:1px solid #fff6;border-radius:4px;background:#fff;color:#111;font-size:14px;cursor:pointer;box-shadow:0 3px 18px #0002}
.studio-active .studio-action{display:block}
.project-hero-copy{position:relative;z-index:1;width:min(850px,calc(100% - 48px));text-align:center;padding-top:64px}
.project-hero .project-hero-copy .project-heading{margin:0}
.project-description{margin:14px auto 0;max-width:680px;font-size:15px;line-height:1.5;font-weight:400;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.custom-board{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:clamp(44px,8vw,120px);gap:var(--board-gap,16px);grid-auto-flow:row}
.custom-board .board-tile{position:relative;grid-column:span var(--tile-span,6);grid-row:span var(--tile-height,3);min-width:0;min-height:0;overflow:hidden;background:#edf1f1}
.custom-board .board-tile img{display:block;width:100%;height:100%;aspect-ratio:auto;max-width:none;object-fit:cover}
.custom-board .project-photo-slot{grid-column:span 6;grid-row:span 3;aspect-ratio:auto;height:100%}
.studio-access,.studio-editor{color:#141414;font-family:inherit;border:0;box-shadow:0 12px 80px #0003}
.studio-access::backdrop,.studio-editor::backdrop{background:#0009;backdrop-filter:blur(5px)}
.studio-access{width:min(440px,calc(100% - 32px));padding:40px;border-radius:8px}
.studio-access h2{font-size:36px;letter-spacing:-.05em;margin:18px 0 12px}
.studio-access p{font-size:14px;line-height:1.6;color:#666;margin:0 0 28px}
.studio-access p.studio-login-error{color:#a83a32;font-size:12px;margin:14px 0 0}
.studio-login-error:empty{display:none}
.studio-access .studio-logout[hidden],.studio-login-form[hidden]{display:none}
.studio-access-close{position:absolute;right:12px;top:8px;padding:4px 8px;border:0;background:none;font-size:26px;cursor:pointer}
.studio-eyebrow{font-size:10px;font-weight:700;letter-spacing:.13em;color:#666}
.studio-primary,.studio-secondary{border:1px solid #ddd;border-radius:3px;padding:11px 16px;font:inherit;font-size:13px;cursor:pointer;background:#fff;color:#222}
.studio-primary{border-color:#111;background:#111;color:#fff}
.studio-primary:hover{background:#333}
.studio-primary:disabled,.studio-secondary:disabled{opacity:.4;cursor:wait}
.studio-editor{width:calc(100% - 32px);height:calc(100svh - 32px);max-width:1600px;max-height:none;padding:0;border-radius:8px;background:#f5f5f3;overflow:hidden}
.studio-form{height:100%;display:flex;flex-direction:column}
.studio-top{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:18px 28px;background:#fff;border-bottom:1px solid #e4e4e0}
.studio-top h2{font-size:23px;letter-spacing:-.04em;margin:5px 0 0;font-weight:600}
.studio-close{padding:4px 8px;background:none;border:0;font-size:28px;line-height:1;cursor:pointer}
.studio-workspace{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:0;flex:1;overflow:hidden}
.studio-sidebar{background:#fff;border-right:1px solid #e4e4e0;padding:24px;overflow-y:auto;min-height:0}
.studio-field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;font-size:12px;font-weight:600}
.studio-field input,.studio-field textarea,.studio-field select{width:100%;min-width:0;padding:10px 11px;border:1px solid #ddd;border-radius:3px;background:#fff;font:inherit;font-size:13px;font-weight:400;color:#222;line-height:1.4}
.studio-field textarea{resize:vertical}
.studio-editor :is(input,textarea,select,button):focus-visible{outline:2px solid #111;outline-offset:3px}
.studio-upload{display:block;padding:20px 10px;border:1px dashed #999;border-radius:3px;text-align:center;font-size:13px;font-weight:500;cursor:pointer}
.studio-upload:hover{background:#f4f4f0}
.studio-upload input{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.studio-upload:focus-within{outline:2px solid #111;outline-offset:3px}
.studio-hint{font-size:11px;color:#777;line-height:1.5;margin:10px 0 24px}
.studio-image-settings{border-top:1px solid #ddd;padding-top:20px}
.studio-image-settings h3{font-size:13px;font-weight:600;margin:0 0 20px}
.studio-set-cover{width:100%;padding-left:8px;padding-right:8px}
.studio-reorder{display:flex;gap:8px;margin:12px 0}
.studio-reorder button{flex:1;padding:9px 5px;border:1px solid #ddd;border-radius:3px;background:#fff;font-size:12px;cursor:pointer}
.studio-reorder button:disabled{opacity:.35;cursor:default}
.studio-remove{background:none;padding:8px 0;border:0;color:#a83a32;font-size:12px;cursor:pointer}
.studio-preview{padding:28px;overflow-y:auto;min-width:0;min-height:0}
.studio-preview-hero{height:210px;position:relative;display:grid;place-items:center;overflow:hidden;background:#dfe4e0;color:#fff;text-align:center}
.studio-preview-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.45)}
.studio-preview-hero>div{position:relative;z-index:1;width:85%}
.studio-preview-hero h3{margin:0;font-size:clamp(24px,3vw,44px);letter-spacing:-.04em;line-height:1.1}
.studio-preview-hero p{margin:12px auto 0;max-width:600px;font-size:13px;line-height:1.5;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.studio-board-label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:26px 0 18px}
.studio-board-label h3{font-size:14px;font-weight:600;margin:0}
.studio-board-label span{font-size:11px;color:#777}
.studio-board{grid-auto-rows:clamp(32px,6vw,84px)}
.studio-board .board-tile{cursor:grab;outline-offset:-3px;border-radius:2px}
.studio-board .board-tile:active{cursor:grabbing}
.studio-board .board-tile.is-selected{outline:3px solid #1f6b55}
.studio-board .board-tile:focus-visible{outline:3px solid #111;outline-offset:-3px}
.studio-tile-badge{position:absolute;left:10px;top:10px;background:#ffffffe6;color:#111;padding:4px 7px;border-radius:2px;font-size:10px;pointer-events:none}
.studio-empty{padding:60px 20px;text-align:center;color:#777;border:1px dashed #bbb;font-size:13px}
.studio-empty[hidden]{display:none}
.studio-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-top:1px solid #e4e4e0;padding:14px 28px;flex-shrink:0}
.studio-bottom>div{display:flex;gap:10px}
.studio-feedback{font-size:12px;color:#777;margin:0;line-height:1.4}
.studio-feedback.is-error{color:#a83a32}
.studio-editor.is-dragging-files{outline:4px dashed #1f6b55;outline-offset:-6px}
body:has(.studio-editor[open],.studio-access[open]){overflow:hidden}
@media(max-width:760px){
 .studio-editor{width:100%;height:100svh;max-width:none;margin:0;border-radius:0}
 .studio-top{padding:15px 18px}
 .studio-top h2{font-size:21px}
 .studio-workspace{display:block;overflow-y:auto}
 .studio-sidebar{padding:20px;border-right:0;border-bottom:1px solid #ddd;overflow:visible}
 .studio-preview{padding:20px;overflow:visible}
 .studio-preview-hero{height:160px}
 .studio-image-settings:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .studio-image-settings h3{grid-column:1/-1;margin:0}
 .studio-image-settings .studio-field{margin:0}
 .studio-image-settings .studio-set-cover{align-self:end}
 .studio-reorder{margin:0}
 .studio-board-label{align-items:flex-start}
 .studio-board-label span{max-width:150px;text-align:right}
 .studio-bottom{padding:12px 16px;flex-wrap:wrap;gap:8px}
 .studio-bottom>div{margin-left:auto}
 .studio-feedback{font-size:10px}
 .studio-action{bottom:20px;right:16px;font-size:12px}
 .project-description{font-size:12px;margin-top:10px;-webkit-line-clamp:3}
 .project-hero-copy{padding-top:48px}
 .project-hero .project-hero-copy .project-heading{margin:0}
}
