/* TG-SAVE1-1110: Studio Save button + share panel (preview ?tgsv=p1110) */
#tees-studio .ts-stage .tgsv-btn{position:absolute;left:12px;top:10px;z-index:6;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid #d6d6d6;border-radius:999px;background:#fff;color:#111;font-weight:600;font-size:14px;line-height:1;font-family:inherit;box-shadow:0 1px 4px rgba(0,0,0,.12);cursor:pointer}
#tees-studio .ts-stage .tgsv-btn:hover{border-color:#111}
#tees-studio .ts-stage .tgsv-btn[disabled]{opacity:.7;cursor:wait}
#tees-studio .ts-stage .tgsv-btn.is-saved{background:#111;color:#fff;border-color:#111}
#tgsv-panel.tgsv-ov{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;justify-content:center}
@media (min-width:700px){#tgsv-panel.tgsv-ov{align-items:center}}
#tgsv-panel .tgsv-sheet{background:#fff;color:#111;width:100%;max-width:440px;max-height:92vh;overflow:auto;border-radius:18px 18px 0 0;padding:16px 16px 20px;box-sizing:border-box;font-size:14px}
@media (min-width:700px){#tgsv-panel .tgsv-sheet{border-radius:18px}}
#tgsv-panel .tgsv-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
#tgsv-panel .tgsv-hd b{font-size:17px}
#tgsv-panel .tgsv-x{width:34px;height:34px;border:0;border-radius:50%;background:#f1f1f1;font-size:22px;line-height:1;cursor:pointer}
#tgsv-panel .tgsv-mk{background:#f4f4f4;border-radius:12px;display:flex;justify-content:center;margin-bottom:10px}
#tgsv-panel .tgsv-mk img{max-width:100%;max-height:34vh;object-fit:contain}
#tgsv-panel .tgsv-sub{margin:0 0 10px;color:#555;line-height:1.4}
#tgsv-panel .tgsv-row{display:flex;gap:8px;flex-wrap:wrap}
#tgsv-panel .tgsv-row input{flex:1 1 180px;min-width:0;height:42px;border:1px solid #ccc;border-radius:10px;padding:0 10px;font-size:14px;background:#fafafa;color:#111}
#tgsv-panel .tgsv-row button,#tgsv-panel .tgsv-acts a,#tgsv-panel .tgsv-acts button{height:42px;padding:0 16px;border-radius:999px;border:1px solid #111;background:#111;color:#fff;font-weight:600;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
#tgsv-panel .tgsv-acts{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
#tgsv-panel .tgsv-acts .tgsv-wa{background:#25d366;border-color:#25d366;color:#fff;flex:1 1 140px}
#tgsv-panel .tgsv-acts .tgsv-more{background:#fff;color:#111;flex:1 1 120px}
#tgsv-panel .tgsv-em{border-top:1px solid #eee;padding-top:12px}
#tgsv-panel .tgsv-em label{display:block;text-align:left;font-weight:600;margin-bottom:6px}
#tgsv-panel .tgsv-em .tgsv-ebtn{background:#fff;color:#111}
#tgsv-panel .tgsv-note{display:block;color:#777;margin-top:6px}
#tgsv-load{position:fixed;inset:0;z-index:2147483001;background:rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center}
#tgsv-load div{display:flex;align-items:center;gap:10px;font-weight:600;color:#111}
#tgsv-load i{width:22px;height:22px;border:3px solid #ddd;border-top-color:#111;border-radius:50%;animation:tgsvspin .8s linear infinite}
@keyframes tgsvspin{to{transform:rotate(360deg)}}
#tgsv-panel .tgsv-sub,#tgsv-panel .tgsv-note{text-align:left}
