/* 장수보다 디자인 폭을 우선한다. 명함의 원래 9:5 비율로 세로 스크롤한다. */
.card-studio[data-view=templates]{overflow:hidden}
.card-studio[data-view=templates] .studio-shell{display:flex;flex-direction:column;height:100dvh;max-width:480px;padding:0}
.card-studio[data-view=templates] .studio-top{flex:none;margin:0;padding:6px 10px;min-height:52px;gap:8px}
.card-studio[data-view=templates] .studio-top h1{font-size:18px}
.card-studio[data-view=templates] .studio-kicker{display:none}
.card-studio[data-view=templates] .studio-top-actions{flex:none;gap:5px}
.card-studio #studioFlowBack{min-width:44px;min-height:40px;padding:6px;font-size:12px}
.card-studio .studio-top>div:not(.studio-top-actions){min-width:0;flex:1}
.card-studio .studio-top .studio-kicker{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-studio[data-view=templates] .studio-top-actions>button:not(#studioClose){display:none}
@media(max-width:390px){.card-studio .studio-top h1{font-size:14px;white-space:nowrap}.card-studio .studio-top-actions{gap:3px}.card-studio .studio-top{gap:6px;padding-inline:10px}}
.card-studio #studioTemplatePicker{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
.template-picker-intro{display:none}
.template-picker-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:6px;scroll-padding:6px}
@media(max-width:699px){.template-picker-list{scrollbar-width:none}.template-picker-list::-webkit-scrollbar{display:none}}
.template-picker-item{position:relative;margin:0 0 12px}
.card-studio .template-picker-card{display:block;position:relative;width:100%;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:2px;background:transparent;cursor:pointer}
.card-studio .template-picker-share{position:absolute;z-index:1;top:6px;right:6px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:8px;display:grid;place-items:center;background:transparent;color:#20372c;border:0;border-radius:50%;box-shadow:none;cursor:pointer}
.template-picker-share svg{display:block;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.65;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff)}
.card-studio .template-picker-share:focus-visible{outline:2px solid #8e713d;outline-offset:1px}
.template-picker-share:is(:hover,:focus-visible) svg{opacity:.9}
.template-picker-share:disabled svg{opacity:.35}
.template-picker-footer small{font-size:10px;text-align:center;color:#647168;margin-bottom:4px}
.card-studio .template-picker-card[aria-pressed=true]{outline:2px solid #8e713d;outline-offset:2px}
.card-studio .template-picker-card:focus-visible{outline:3px solid #8e713d;outline-offset:2px}
.template-picker-card canvas{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:9/5;object-fit:contain;box-shadow:0 2px 6px #20372c20;border-radius:2px}
/* 이름은 버튼의 aria-label로 유지하고 화면에는 명함 디자인만 표시한다. */
.template-picker-card strong{display:none}
.template-picker-footer{display:flex;flex:none;flex-direction:column;padding:6px 10px max(6px,env(safe-area-inset-bottom));border-top:1px solid #a6b1a744}
.template-picker-footer span{display:none}
.card-studio .template-picker-footer button{min-height:36px;padding:6px 10px;font-size:12px}
.card-studio[data-view=templates] #studioStatus{position:absolute;bottom:100px;left:16px;right:16px;pointer-events:none}
@media(min-width:700px){.card-studio[data-view=templates] .studio-shell{height:calc(100dvh - 28px);margin:14px auto;border-radius:19px;overflow:hidden}}
