/* A quiet, compact layer for gallery discovery and local favorites. */
.tz-explorer { border-bottom:1px solid var(--line); background:var(--bg); }
.tz-explorer-panel { padding:0; }
.tz-explorer-summary { cursor:pointer; padding:13px 0; color:var(--ink); font-size:14px; font-weight:600; }
.tz-explorer-summary::marker, .tz-saved-panel > summary::marker { color:var(--blue); }
.tz-explorer-total { margin-left:12px; color:var(--muted); font-size:12px; font-weight:400; white-space:nowrap; }
.tz-explorer-content { padding:2px 0 18px; }
.tz-explorer-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:9px; }
.tz-explorer-link { display:flex; flex-direction:column; gap:3px; padding:13px 14px; border:1px solid var(--line); border-radius:13px; color:var(--ink); background:var(--card); transition:border-color .16s, background-color .16s; min-width:0; }
.tz-explorer-link:hover { border-color:var(--blue); background:var(--alt); }
.tz-explorer-link strong { font-size:14px; font-weight:600; }
.tz-explorer-link span { font-size:12px; color:var(--muted); line-height:1.45; }
.tz-explorer-link small { color:var(--blue); font-size:12px; margin-top:3px; }
.tz-saved-panel { margin-top:16px; border-top:1px solid var(--line); padding-top:12px; }
.tz-saved-panel > summary { cursor:pointer; padding:3px 0; font-size:14px; font-weight:600; }
.tz-saved-list { margin-top:10px; }
.tz-saved-empty, .tz-explorer-storage, .tz-explorer-feedback { color:var(--muted); font-size:13px; line-height:1.5; }
.tz-saved-empty { margin:0; }
.tz-explorer-storage { margin:11px 0 0; }
.tz-explorer-feedback { margin:7px 0 0; }
.tz-explorer-feedback:empty { display:none; }
.tz-saved-item { display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.tz-saved-item:first-child { border-top:0; }
.tz-saved-link { flex:1; min-width:0; overflow-wrap:anywhere; font-size:14px; }
.tz-saved-remove, .tz-favorite { font:inherit; cursor:pointer; border:1px solid var(--line); border-radius:999px; color:var(--blue); background:var(--card); }
.tz-saved-remove { flex:none; padding:7px 12px; font-size:12px; min-height:34px; }
.tz-favorite { display:inline-flex; align-items:center; justify-content:center; min-height:36px; margin-top:12px; padding:7px 12px; font-size:12px; line-height:1.4; }
.tz-favorite[aria-pressed="true"] { background:var(--alt); color:var(--ink); }
.tz-favorite:hover, .tz-saved-remove:hover { border-color:var(--blue); }
.tz-explorer summary:focus-visible, .tz-explorer a:focus-visible, .tz-explorer button:focus-visible, .tz-favorite:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.tz-explorer-panel[open] > .tz-explorer-content { animation:tz-explorer-in .18s ease-out; }
@keyframes tz-explorer-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media(max-width:560px) {
  .tz-explorer-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tz-explorer-link { padding:12px; }
  .tz-explorer-summary { padding:12px 0; }
  .tz-explorer-total { margin-left:7px; }
  .tz-saved-item { align-items:flex-start; }
  .tz-favorite { min-height:40px; }
}
@media(prefers-reduced-motion:reduce) {
  .tz-explorer-panel[open] > .tz-explorer-content { animation:none; }
  .tz-explorer-link { transition:none; }
}
@media print { .tz-explorer, .tz-favorite { display:none!important; } }
