/* Appearance references extend the existing Deskforge design system. */
.df-workspace-gallery{min-width:0;scroll-margin-top:120px}
.df-workspace-gallery h3{font:600 20px/1.35 var(--display);margin:0 0 8px}
.df-workspace-gallery .df-gallery-intro{font:13px/1.65 var(--sans);color:var(--muted);margin:0 0 18px}
.df-gallery-stage{display:block;position:relative;border:1px solid var(--line-soft);border-radius:14px;overflow:hidden;background:var(--bg-soft);aspect-ratio:8/5}
.df-gallery-stage img{display:block;width:100%;height:100%;object-fit:contain}
.df-gallery-enlarge{position:absolute;right:10px;bottom:10px;padding:8px 11px;border:1px solid #4b6c69;border-radius:7px;background:#081216ed;color:var(--text);font:11px/1.4 var(--sans)}
.df-gallery-caption{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:12px 0 14px;color:var(--text);font:13px/1.5 var(--sans)}
.df-gallery-caption [data-gallery-count]{color:var(--accent);font:12px/1.5 var(--mono);white-space:nowrap}
.df-gallery-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 16px}
.df-gallery-choice{display:block;min-width:0;min-height:44px;border:1px solid var(--line-soft);border-radius:8px;overflow:hidden;background:var(--bg-soft);color:var(--muted);text-align:center;transition:border-color .18s,color .18s;cursor:pointer}
.df-gallery-choice img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;opacity:.78;transition:opacity .18s}
.df-gallery-choice span{display:block;padding:5px 3px;font:11px/1.4 var(--mono)}
.df-gallery-choice:hover,.df-gallery-choice[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
.df-gallery-choice:hover img,.df-gallery-choice[aria-pressed=true] img{opacity:1}
.df-gallery-choice[aria-pressed=true]{box-shadow:0 0 0 1px var(--accent)}
.df-workspace-gallery .df-gallery-note{font:12px/1.75 var(--sans);color:var(--muted);margin:0 0 16px}
.df-gallery-stage:focus-visible,.df-gallery-choice:focus-visible,.df-gallery-modal button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.df-workspace-gallery>.btn{min-height:46px;white-space:normal;text-align:center;font-size:12px}
.df-gallery-open{overflow:hidden}
.df-gallery-modal{box-sizing:border-box;width:min(1440px,96vw);max-width:96vw;max-height:94dvh;margin:auto;padding:14px;border:1px solid var(--line-soft);border-radius:16px;background:var(--bg-soft);color:var(--text);overflow:auto}
.df-gallery-modal::backdrop{background:#020609e8;backdrop-filter:blur(5px)}
.df-gallery-modal:not([open]){display:none}
.df-gallery-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.df-gallery-modal h3{margin:0;font:600 16px/1.5 var(--sans)}
.df-gallery-modal button{font:13px/1.5 var(--sans);min-width:44px;min-height:44px;padding:9px 13px;border:1px solid var(--line-soft);border-radius:8px;background:var(--bg);color:var(--text);cursor:pointer}
.df-gallery-modal button:hover{border-color:var(--accent)}
.df-gallery-modal img{display:block;width:100%;height:auto;max-height:calc(94dvh - 160px);object-fit:contain;border-radius:8px}
.df-gallery-modal-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.df-gallery-modal-nav span{font:12px/1.5 var(--mono);color:var(--accent)}
@media(max-width:620px){.df-gallery-choices{gap:7px}.df-workspace-gallery h3{font-size:20px}.df-gallery-caption{font-size:12px}.df-gallery-modal{width:98vw;max-width:98vw;padding:10px;border-radius:12px}.df-gallery-modal h3{font-size:14px}.df-gallery-modal img{max-height:calc(94dvh - 150px)}.df-gallery-modal-nav{gap:7px}.df-gallery-modal-nav button{font-size:12px;padding:9px}}
@media(prefers-reduced-motion:reduce){.df-gallery-choice,.df-gallery-choice img{transition:none}}
