/* Image-to-URL workspace. Uses Link Studio's existing light/dark design tokens. */
.tool-tabs{max-width:100%;flex-wrap:wrap}.tool-tabs a{white-space:nowrap}
.image-workspace{grid-template-columns:1fr 1.02fr}.image-workspace .panel-heading{margin-bottom:24px}
.image-limit{margin-left:auto;font:10px Consolas,monospace;color:var(--muted);white-space:nowrap}
.image-drop{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;min-height:256px;border:1.5px dashed #aebcda;border-radius:15px;background:var(--bg);color:var(--navy);padding:22px 16px;transition:background .18s,border-color .18s,box-shadow .18s}
.image-drop:hover,.image-drop.is-dragging{background:var(--soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.image-drop:disabled{cursor:wait;opacity:.7}.image-drop strong{font-size:16px;letter-spacing:-.4px}.drop-subtitle{font-size:12px;color:var(--muted);margin-top:5px}.drop-chip{display:inline-block;font-size:10px;font-weight:600;border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:7px 12px;margin-top:17px}
.upload-art{display:block;width:140px;height:100px;margin-bottom:12px}.upload-art svg{width:100%;height:100%;overflow:visible}.art-back{fill:var(--soft);stroke:var(--line)}.art-card{fill:var(--surface);stroke:#adbbd9}.art-landscape{stroke:#7790c8;stroke-width:1.6;stroke-linejoin:round;fill:var(--soft)}.art-sun{fill:#c7d2eb}.art-badge{fill:var(--accent);stroke:var(--surface);stroke-width:4}.art-arrow{stroke:var(--bg);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.selected-file{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;margin-top:16px;padding:10px;background:var(--bg)}.selected-thumb{width:45px;height:45px;border:1px solid var(--line);background:var(--surface);border-radius:7px;display:grid;place-items:center;flex-shrink:0;overflow:hidden}.selected-thumb img{width:100%;height:100%;object-fit:cover}.selected-thumb span{font:9px Consolas,monospace;color:var(--muted)}.selected-info{min-width:0;flex:1}.selected-info strong{display:block;font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-info>span{font-size:10px;color:var(--muted);display:block;margin-top:3px}.remove-file{border:0;border-radius:7px;background:transparent;flex-shrink:0;width:36px;height:36px;font-size:22px;color:var(--muted)}.remove-file:hover{background:var(--soft);color:var(--navy)}
.format-details{font-size:10px;color:var(--muted);margin-top:9px}.format-details summary{display:inline-flex;gap:9px;align-items:center;cursor:pointer;font-weight:500;list-style:none;min-height:30px}.format-details summary:after{content:'+';font-size:15px}.format-details[open] summary:after{content:'−'}.format-details summary::-webkit-details-marker{display:none}.format-details p{line-height:1.8;padding:6px 0}.image-workspace .generate{margin-top:20px}.image-workspace .generate:disabled{cursor:not-allowed;opacity:.45}.image-workspace .privacy-note{margin-top:10px}.privacy-note svg{width:19px;height:22px;flex-shrink:0;stroke:var(--accent);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;margin-top:2px}
.image-output-panel{display:flex;flex-direction:column}.image-empty{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:360px;padding:35px 0}.image-empty-art{position:relative;width:210px;height:147px;margin-bottom:30px}.empty-photo{position:absolute;left:36px;top:0;width:138px;height:106px;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;transform:rotate(-7deg);box-shadow:0 13px 24px -18px #081d6360}.empty-photo svg{width:100%;height:100%;stroke:#9badd0;stroke-width:1.2}.empty-photo svg circle{fill:var(--soft)}.empty-link{position:absolute;bottom:1px;left:6px;display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:13px 12px;transform:rotate(3deg);box-shadow:0 10px 25px -16px #081d6360}.empty-link>svg{width:19px;height:19px;stroke:var(--accent);stroke-width:1.5;stroke-linecap:round}.empty-link>span{font:11px Consolas,monospace;color:var(--muted)}.empty-link>i{height:6px;width:6px;border-radius:50%;background:var(--green);margin-left:12px}.image-empty h3{font-size:20px;letter-spacing:-.6px}.image-empty>p{max-width:285px;font-size:12px;color:var(--muted);margin-top:11px}.preview-note{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:auto;padding-top:24px;font-size:10px;color:var(--muted)}.preview-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);flex-shrink:0}
.image-preview-wrap{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface)}.image-preview-frame{height:256px;display:grid;place-items:center;overflow:hidden;background-color:var(--surface);background-image:linear-gradient(45deg,var(--surface-alt) 25%,transparent 25%),linear-gradient(-45deg,var(--surface-alt) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--surface-alt) 75%),linear-gradient(-45deg,transparent 75%,var(--surface-alt) 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.image-preview-frame>img{max-height:100%;width:100%;height:100%;object-fit:contain}.preview-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 14px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}#preview-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#preview-tag{font:8px Consolas,monospace;letter-spacing:.7px;white-space:nowrap}.preview-fallback{text-align:center;padding:24px}.preview-fallback>span{display:inline-block;border:1px solid var(--line);border-radius:12px;padding:19px;color:var(--accent);background:var(--surface);font:20px Consolas,monospace;margin-bottom:17px}.preview-fallback>p{font-size:12px;color:var(--muted);max-width:290px}
.image-output .result-caption{margin-top:24px}.image-link-field{display:flex;align-items:stretch;border:1px solid var(--line);background:var(--surface);border-radius:8px;overflow:hidden}.image-link-field input{border:0;border-radius:0;min-width:0;font-size:11px;color:var(--navy);padding:11px 12px;min-height:46px}.image-link-field input:focus-visible{outline-offset:-3px}.image-link-field button{background:var(--soft);border:0;border-left:1px solid var(--line);padding:9px 13px;color:var(--navy);font-size:10px;font-weight:650;flex-shrink:0}.image-result-actions{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.image-result-actions .button{padding:12px 10px;justify-content:center;text-align:center;font-size:11px}.image-output-bottom{display:flex;justify-content:space-between;gap:15px;margin-top:14px}.image-output-bottom button{background:transparent;border:0;padding:7px 0;font-size:10px;color:var(--muted);text-align:left}.image-output-bottom button:hover{text-decoration:underline;text-underline-offset:4px}.image-output-bottom #delete-image:hover{color:#b64040}[data-theme=dark] .image-output-bottom #delete-image:hover{color:#ffabab}.image-output>.field-hint:last-child{font-size:10px;margin-top:7px}
.image-progress{margin-top:17px;display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.image-progress progress{height:5px;width:90px;accent-color:var(--accent)}
.service-retry{border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--accent);padding:9px 13px;font-size:11px;margin:0 0 12px}
@media(max-width:760px){.image-workspace{grid-template-columns:1fr}.image-empty{min-height:290px}.image-preview-frame{height:280px}}
@media(max-width:480px){.tool-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;border-radius:15px;gap:3px}.tool-tabs a{display:flex;align-items:center;justify-content:center;white-space:normal;padding:10px 5px;font-size:10px;border-radius:10px;line-height:1.4;min-height:45px}.image-drop{min-height:240px}.image-workspace .input-panel,.image-workspace .output-panel{padding:22px}.image-workspace .panel-heading h2{font-size:13px}.image-preview-frame{height:220px}.image-result-actions .button{font-size:10px}.image-link-field input{font-size:10px}.image-link-field button{padding:9px}.image-drop strong{font-size:15px}.preview-footer{gap:8px}.preview-note{font-size:9px}}
@media(prefers-reduced-motion:reduce){.image-drop{transition:none}}
