/* Garage Reframe — Design Studio app */
.studio-body{background:var(--primer);min-height:100vh;display:flex;flex-direction:column}
.st-hdr{border-bottom:1px solid var(--hair);background:var(--primer);position:sticky;top:0;z-index:20}
.st-hdr-in{max-width:1400px;margin:0 auto;padding:0 20px;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.st-nav{display:flex;gap:20px;align-items:center}.st-nav a{text-decoration:none;font-size:14px}
@media(max-width:1023px){.st-nav a{display:none}}
.st-main{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 380px;max-width:1400px;width:100%;margin:0 auto;min-height:calc(100vh - 60px)}
@media(max-width:1023px){.st-main{grid-template-columns:1fr}}
.st-chat{display:flex;flex-direction:column;min-height:calc(100vh - 60px);padding:0 20px}
.st-intro{padding:40px 0 8px;max-width:62ch}
.st-intro h1{font-size:clamp(30px,4.5vw,48px);margin-bottom:12px}
.st-intro .lead{font-size:16px}
.st-messages{flex:1;display:flex;flex-direction:column;gap:14px;padding:16px 0 24px;max-width:760px;width:100%}
.msg{display:flex;flex-direction:column;gap:8px;max-width:92%;animation:rise .28s var(--ease) both}
.msg.user{align-self:flex-end;align-items:flex-end}
.msg .b{padding:12px 16px;border-radius:10px;font-size:15.5px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}
.msg.assistant .b{background:var(--white);border:1px solid var(--hair);border-top-left-radius:3px}
.msg.user .b{background:var(--ink);color:var(--primer);border-top-right-radius:3px}
.msg .who{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.msg .chips{margin-top:0}
.msg .chips .chip{background:var(--white)}
.msg .chips .chip.primary{background:var(--clay);color:var(--primer);border-color:var(--clay)}
.msg-card{border:1px solid var(--hair);border-radius:8px;background:var(--white);padding:14px 16px;font-size:14px;width:100%}
.msg-card .code{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.msg-card b{font-family:var(--serif);font-size:20px;display:block;margin:4px 0 6px;font-weight:500}
.msg-card .lines{list-style:none;padding:0;margin:8px 0 0}
.msg-card .lines li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--hair-2)}
.msg-card .big{font-family:var(--serif);font-size:26px;letter-spacing:-.02em}
.st-pkgs{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;width:100%}
@media(max-width:600px){.st-pkgs{grid-template-columns:1fr}}
.st-pkg{border:1px solid var(--hair);border-radius:8px;padding:12px;background:var(--white);font-size:13px;display:flex;flex-direction:column;gap:4px;cursor:pointer}
.st-pkg:hover,.st-pkg.on{border-color:var(--ink)}
.st-pkg b{font-family:var(--serif);font-size:17px;font-weight:500}
.st-pkg .code{font-family:var(--mono);font-size:10px;letter-spacing:.08em;color:var(--muted)}
.st-pkg .st-price{font-family:var(--mono);font-size:12px;color:var(--clay)}
.st-pkg p{margin:0;color:var(--muted)}
.st-pkg a{font-size:12px}
.typing{display:inline-flex;gap:4px;padding:12px 16px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.st-composer-wrap{position:sticky;bottom:0;background:linear-gradient(to top,var(--primer) 70%,rgba(244,240,230,0));padding:12px 0 calc(12px + env(safe-area-inset-bottom));max-width:760px;width:100%}
.st-composer{background:var(--white);border:1px solid var(--hair);border-radius:12px;padding:10px 10px 8px;display:flex;flex-direction:column;gap:8px;box-shadow:0 8px 24px rgba(23,32,46,.08)}
.st-composer textarea{border:0;resize:none;font:inherit;font-size:16px;line-height:1.4;padding:6px 6px;max-height:160px;background:transparent;color:var(--ink);width:100%}
.st-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.st-fine{font-size:12px;color:var(--muted);margin:8px 0 0}
.st-side{border-left:1px solid var(--hair);background:var(--white)}
.st-side-in{position:sticky;top:60px;max-height:calc(100vh - 60px);overflow:auto;padding:20px;display:flex;flex-direction:column;gap:14px}
@media(max-width:1023px){.st-side{position:fixed;inset:60px 0 0 0;z-index:25;transform:translateX(100%);transition:transform .25s var(--ease);border-left:0}.st-side.open{transform:none}.st-side-in{max-height:none;height:100%}}
.st-card{border:1px solid var(--hair);border-radius:8px;padding:14px;font-size:14px}
.st-card h3{font-size:17px;margin:0 0 8px;font-family:var(--serif);font-weight:500}
.st-card .k{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:6px}
.st-card .row{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid var(--hair-2)}
.st-card .row:first-of-type{border-top:0}
.st-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.st-thumbs img{aspect-ratio:1;object-fit:cover;border-radius:4px;width:100%;cursor:pointer;border:2px solid transparent}
.st-thumbs img.sel{border-color:var(--clay)}
.st-thumbs .add{aspect-ratio:1;border:1px dashed var(--hair);border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:24px;color:var(--muted);background:none}
.st-design{border:1px solid var(--hair);border-radius:6px;padding:8px;margin-top:8px}
.st-design img{border-radius:4px;width:100%}
.st-design .k{margin:4px 0 0}
.st-sheet{position:fixed;inset:0;background:rgba(23,32,46,.45);z-index:60;display:flex;align-items:flex-end;justify-content:center}.st-sheet[hidden]{display:none}
@media(min-width:768px){.st-sheet{align-items:center}}
.st-sheet-in{background:var(--primer);width:100%;max-width:520px;border-radius:12px 12px 0 0;padding:24px;position:relative;max-height:92vh;overflow:auto}
@media(min-width:768px){.st-sheet-in{border-radius:12px}}
.st-close{position:absolute;top:10px;right:12px;border:0;background:none;font-size:26px;cursor:pointer;color:var(--muted);width:44px;height:44px}
.st-sheet h2{font-size:26px;margin-bottom:8px}
.st-sheet .form{max-width:none}
.pay-methods{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.pay-methods button{border:1px solid var(--hair);border-radius:6px;padding:12px;background:var(--white);font:inherit;font-weight:600;min-height:48px;color:var(--ink);cursor:not-allowed;opacity:.55}
.pay-methods .wide{grid-column:1/-1}
.st-upload-progress{font-size:13px;color:var(--muted)}
.st-error{color:var(--clay-deep);font-size:13px}
