*{box-sizing:border-box} :root{color-scheme:dark;--bg:#141414;--panel:#1d1d1d;--text:#eeeeea;--muted:#999994;--line:#363635;--pad:clamp(16px,3.5vw,64px)}
html{background:var(--bg);scroll-behavior:smooth}body{margin:0;color:var(--text);font:15px/1.5 Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:none;border:0}button:disabled{opacity:.25;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #d7d7ba;outline-offset:4px}button:hover:not(:disabled),a:hover{color:white}button[hidden],[hidden]{display:none!important}svg{width:22px;height:22px}input{background:#242424;color:var(--text);border:1px solid #444;border-radius:0;padding:14px 16px;min-width:0}input::placeholder{color:#93938f}input[type=checkbox]{accent-color:#eee;width:19px;height:19px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:400}h1{letter-spacing:-.04em}.brand{text-decoration:none;display:inline-block}.brand h1,.brand span{font-size:clamp(27px,5.6vw,76px);font-weight:400;letter-spacing:-.045em;white-space:nowrap;margin:0}.masthead{padding:56px var(--pad) 42px}.filterbar{position:sticky;top:0;z-index:10;background:rgba(20,20,20,.98);padding:0 var(--pad);border-bottom:1px solid var(--line)}.filter-top{display:flex;align-items:center;position:relative;min-height:64px;gap:8px}.filter-groups{display:flex;gap:26px;overflow:auto;scrollbar-width:none;flex:1}.filter-groups button{padding:20px 0;white-space:nowrap}.filter-groups span{margin-left:8px;color:#848480}.filter-groups button[aria-expanded=true]{color:#ddd9b8}.icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;font-size:30px;line-height:1;border-radius:50%}.icon:hover{background:#ffffff0d}.search-form{position:absolute;inset:0;background:var(--bg);display:flex;align-items:center;gap:8px}.search-form input{width:100%;border:none;background:transparent;font-size:18px;outline:none}.filter-options,.selected{display:flex;flex-wrap:wrap;gap:8px;padding:5px 0 18px}.chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #454543;border-radius:100px;padding:8px 15px;line-height:1.2;text-decoration:none;font-size:14px;white-space:nowrap;background:transparent}.chip:hover{background:#2a2a28}.chip.active,.chip[aria-pressed=true]{background:#e0e0d7;border-color:#e0e0d7;color:#191919}.selected .chip{font-size:12px;padding:7px 12px}.selected .reset{color:var(--muted);padding:4px 10px}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 18px;margin:28px var(--pad) 0;align-items:start}.gallery.masonry{display:block;position:relative}.gallery.masonry .card{position:absolute;top:0;left:0}.card{display:block;text-decoration:none;min-width:0}.card img{width:100%;height:auto;display:block;background:#222}.card:hover img{filter:brightness(1.05)}.caption{display:block;color:#aaa9a3;font-size:12px;line-height:1.45;margin-top:9px;overflow-wrap:anywhere}.card:hover .caption{color:var(--text)}footer{margin:64px var(--pad) 25px;color:#747470;font-size:12px}footer a{text-decoration:none}.pagination{display:flex;gap:24px;margin:32px var(--pad)}.js .pagination{display:none}.empty{padding:90px 24px;text-align:center}.empty h2{font-size:26px}.text-page{max-width:750px;margin:30px var(--pad) 120px}.text-page h1{font-size:40px}.text-page p{color:#b7b7b0}.eyebrow{letter-spacing:.15em}.server-work{margin:40px auto;padding:24px;max-width:900px}.server-work img{max-width:100%;display:block;margin:24px 0}.js #server-work{display:none}dialog{color:var(--text);background:var(--bg);border:0;padding:0}dialog::backdrop{background:#000b}dialog[open]{max-width:none;max-height:none;width:100%;height:100%;height:100dvh;margin:0;inset:0;position:fixed}.dialog-top{display:flex;align-items:center;justify-content:space-between;padding:24px var(--pad);border-bottom:1px solid var(--line)}.dialog-top h2{font-size:32px;margin:0}.author-inner{max-width:700px;margin:30px auto;padding:0 24px}.author-inner>input{width:100%;position:sticky;top:0;z-index:1;background:var(--panel)}#author-list{margin-top:22px}#author-list label{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #292929;cursor:pointer}#author-list label:hover{color:#d7d7ba}#author-empty{margin-top:24px;color:var(--muted)}.viewer-close{position:fixed;right:22px;top:18px;z-index:5;background:#161616cc}.work-arrow{position:fixed;top:50%;z-index:4;background:#1c1c1cbb}.work-arrow.prev{left:15px}.work-arrow.next{right:15px}.viewer-item{display:none;grid-template-columns:minmax(0,1fr) 340px;gap:48px;padding:64px 80px 40px;min-height:100dvh;max-width:1800px;margin:auto;align-items:center}.viewer-item.active{display:grid}.art-area{position:relative;min-width:0}.photos{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y}.photos::-webkit-scrollbar{display:none}.photo{flex:0 0 100%;min-width:0;scroll-snap-align:start;height:calc(100dvh - 145px);display:grid;place-items:center}.photo img{width:100%;height:100%;object-fit:contain;display:block;min-height:0;min-width:0}.photo-prev,.photo-next{position:absolute;top:50%;z-index:2;background:#1c1c1cb0;font-size:24px}.photo-prev{left:8px}.photo-next{right:8px}.dots{display:flex;justify-content:center;align-items:center;gap:3px;min-height:28px;margin-top:10px}.dot{width:24px;height:24px;display:grid;place-items:center}.dot:before{content:'';width:5px;height:5px;border-radius:50%;background:#555}.dot[aria-current=true]:before{background:#eee}.label-panel{align-self:center;max-height:calc(100dvh - 130px);overflow-y:auto;scrollbar-width:thin;padding-right:8px}.museum{display:grid;grid-template-rows:minmax(64px,auto) minmax(64px,auto) minmax(30px,auto) minmax(48px,auto) minmax(32px,auto) minmax(58px,auto);gap:0}.museum .authors{font-size:22px;line-height:1.2}.authors a{text-underline-offset:4px;text-decoration-thickness:1px;display:inline}.museum .work-title{font-size:20px;line-height:1.35;margin:0;font-weight:400}.museum .year,.museum .material,.museum .size{color:#a5a59e;font-size:14px}.museum .tags{display:flex;flex-wrap:wrap;gap:7px;align-content:start;padding-top:12px}.museum .tags .chip{font-size:12px;padding:7px 12px}.description{font-size:14px;color:#bcbcb5;margin-top:24px}.description summary{cursor:pointer;color:#ddd}.description p{margin-bottom:12px}.share{display:flex;width:100%;align-items:center;justify-content:space-between;padding:21px 0;margin-top:32px;border-top:1px solid var(--line);font-size:13px;color:#c6c6bd}.share span:last-child{font-size:23px}#toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);z-index:100;background:#e3e3d9;color:#191919;border-radius:6px;padding:12px 22px;box-shadow:0 8px 35px #0007;max-width:90vw}.admin{max-width:820px;padding:36px 24px;margin:auto}.admin h1{font-size:36px}.admin label{display:block;margin-top:18px}.admin input{width:100%;margin:6px 0 18px}.admin .chip{margin:8px 0}.notice{padding:18px;border:1px solid #494943;color:#cfcfc6;margin:20px 0}.admin pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#222;padding:16px}.admin table{width:100%;border-collapse:collapse;font-size:13px}.admin td,.admin th{text-align:left;padding:10px;border-bottom:1px solid #444}.admin progress{width:100%;accent-color:#ddd;height:5px}.muted{color:var(--muted)}
@media(max-width:900px) and (min-width:701px){.viewer-item{grid-template-columns:minmax(0,1fr) 270px;gap:24px;padding:70px 56px 30px}.label-panel{padding-right:0}}
@media(max-width:700px){:root{--pad:12px}.masthead{padding:30px 16px 26px}.brand h1,.brand span{font-size:clamp(25px,7.5vw,46px)}.filter-top{min-height:55px}.filter-groups{gap:16px}.filter-groups button{font-size:12px;padding:17px 0}.filter-groups span{margin-left:3px}.filterbar{padding:0 12px}.icon{width:38px;height:38px;flex-basis:38px}.filter-options,.selected{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:12px}.chip{font-size:12px;flex-shrink:0;padding:8px 12px}.search-form input{font-size:14px;padding-left:2px}.gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:10px 0 0}.caption{display:none}.card{margin:0}.card img{border:0}.viewer-item,.viewer-item.active{display:block;padding:0;min-height:100dvh;scroll-snap-align:start}.viewer-item{padding-top:0}.viewer[open]{overflow:hidden}.viewer #viewer-stream{height:100%;overflow-y:auto;scroll-snap-type:y proximity;overscroll-behavior-y:contain}.photo{height:64dvh}.viewer-close{top:max(10px,env(safe-area-inset-top));right:10px;background:#171717bd}.photo-prev,.photo-next{display:none}.dots{margin-top:0;min-height:22px}.label-panel{padding:22px 22px max(35px,env(safe-area-inset-bottom));max-height:none;overflow:visible}.museum{grid-template-rows:minmax(42px,auto) minmax(42px,auto) 26px minmax(34px,auto) 26px minmax(44px,auto)}.museum .authors{font-size:20px}.museum .work-title{font-size:18px}.museum .tags{padding-top:8px}.share{margin-top:22px;padding:16px 0}.description{margin-top:16px}.work-arrow{display:none}.dialog-top{padding:18px 20px}.dialog-top h2{font-size:28px}.author-inner{margin-top:18px;padding:0 20px}.text-page h1{font-size:32px}footer{margin:36px 16px 24px}}
.description-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#bcbcb5;font-size:14px;margin:22px 0 8px}.description-preview+.description{margin-top:4px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{scroll-behavior:auto!important}}

/* UI update: bounded desktop viewer and one-work mobile navigation. */
@media (min-width:701px) {
  .caption { font-size:14px; }
  .viewer[open] {
    width:calc(100vw - 112px);
    max-width:1320px;
    height:calc(100vh - 80px);
    height:calc(100dvh - 80px);
    max-height:900px;
    margin:auto;
    padding:0;
    overflow:hidden;
    background:#1b1b1b;
    border:1px solid #424242;
    border-radius:12px;
    box-shadow:0 24px 100px #000b;
  }
  .viewer::backdrop { background:rgba(0,0,0,.82); }
  .viewer #viewer-stream { height:100%; overflow:hidden; }
  .viewer .viewer-item {
    grid-template-columns:minmax(0,1fr) minmax(270px,32%);
    gap:0;
    padding:0;
    margin:0;
    width:100%;
    max-width:none;
    height:100%;
    min-height:0;
    align-items:stretch;
  }
  .viewer .art-area {
    display:flex;
    flex-direction:column;
    height:100%;
    min-height:0;
    padding:24px;
    background:#111;
  }
  .viewer .photos { flex:1; min-height:0; }
  .viewer .photo { height:100%; }
  .viewer .dots { flex-shrink:0; }
  .viewer .label-panel {
    align-self:stretch;
    min-height:0;
    max-height:none;
    padding:64px 28px 28px;
    border-left:1px solid #383838;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    overflow-wrap:anywhere;
  }
  .viewer .label-panel > .description {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-width:thin;
    margin:20px 0 0;
    padding:0 6px 0 0;
    white-space:normal;
  }
  .viewer .label-panel > .description > :last-child { margin-bottom:0; }
  .viewer .museum {
    flex:0 0 auto;
    grid-template-rows:minmax(52px,auto) minmax(52px,auto) minmax(28px,auto) minmax(44px,auto) minmax(28px,auto) minmax(58px,auto);
  }
  .viewer .viewer-close { position:absolute; right:12px; top:12px; }
  .viewer .share { display:none; }
}
@media (max-width:700px) {
  .viewer[open] { padding:0; overflow:hidden; touch-action:pan-x pinch-zoom; }
  .viewer #viewer-stream {
    height:100%;
    overflow:hidden;
    scroll-snap-type:none;
    touch-action:pan-x pinch-zoom;
  }
  .viewer .viewer-item {
    display:none;
    height:100%;
    min-height:0;
    padding:0;
    margin:0;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto;
    gap:0;
    overflow:hidden;
    scroll-snap-align:none;
  }
  .viewer .viewer-item.active { display:grid; }
  .viewer .art-area { display:flex; flex-direction:column; min-height:0; height:100%; }
  .viewer .photos { flex:1; min-height:0; touch-action:pan-x pinch-zoom; }
  .viewer .photo { height:100%; scroll-snap-stop:always; }
  .viewer .dots { flex-shrink:0; }
  .viewer .label-panel {
    align-self:stretch;
    min-height:0;
    max-height:none;
    overflow:hidden;
    overscroll-behavior:contain;
    touch-action:pan-x pinch-zoom;
    padding:10px 16px max(10px,env(safe-area-inset-bottom));
  }
  .viewer .label-panel .museum {
    grid-template-rows:38px 38px 18px 32px 18px 32px;
    gap:2px;
  }
  .viewer .label-panel .authors,
  .viewer .label-panel .work-title,
  .viewer .label-panel .material {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    overflow-wrap:anywhere;
  }
  .viewer .label-panel .authors { font-size:17px; line-height:19px; }
  .viewer .label-panel .work-title { font-size:16px; line-height:19px; }
  .viewer .label-panel .material { font-size:13px; line-height:16px; }
  .viewer .label-panel .year,
  .viewer .label-panel .size { font-size:13px; line-height:18px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .viewer .label-panel .tags { padding-top:2px; gap:5px; overflow:hidden; }
  .viewer .label-panel .tags .chip { font-size:12px; padding:5px 10px; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
  .viewer .label-panel > .description,
  .viewer .label-panel > .description-preview { display:none; }
  .viewer .label-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:4px; }
  .viewer .label-more { display:block; padding:8px 0; font-size:13px; color:#c6c6bd; min-height:36px; }
  .viewer .label-actions .share { width:auto; gap:10px; padding:4px 0; margin:0 0 0 auto; border:0; min-height:36px; }
}
.label-actions { display:contents; }
.label-more { display:none; }
.work-info-dialog[open] { overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y pinch-zoom; }
.work-info-close { display:block; position:sticky; top:0; width:100%; padding:16px; text-align:left; background:var(--bg); border-bottom:1px solid var(--line); z-index:1; }
.work-info-content { padding:20px 16px max(24px,env(safe-area-inset-bottom)); max-width:700px; margin:auto; overflow-wrap:anywhere; }
.work-info-content .museum { grid-template-rows:none; gap:10px; }
.work-info-content .museum .chip { white-space:normal; }
.work-info-content .description { margin-top:24px; }

/* Image header: fluid desktop size, constrained to the mobile content width. */
.masthead { padding:clamp(24px,3vw,44px) var(--pad) 24px; }
.brand.brand-image { display:block; width:clamp(420px,48vw,880px); max-width:100%; }
.brand-image h1,
.brand-image > span { display:block; margin:0; font-size:inherit; line-height:0; white-space:normal; }
.brand-image .brand-logo { display:block; width:100%; max-width:100%; height:auto; }
@media (max-width:700px) {
  .masthead { padding:24px var(--pad) 20px; }
  .brand.brand-image { width:100%; }
}

/* Only the author list scrolls; confirmation stays above it. */
#authors-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
#authors-dialog .dialog-top {
  flex:0 0 auto;
  gap:16px;
  padding-top:max(18px,env(safe-area-inset-top));
  background:var(--bg);
}
#authors-dialog .dialog-top h2 { margin:0; }
#authors-dialog .author-inner {
  flex:1 1 auto;
  min-height:0;
  width:100%;
  margin:0 auto;
  padding-top:18px;
  padding-bottom:max(24px,env(safe-area-inset-bottom));
  overflow-y:auto;
  overscroll-behavior:contain;
}
.author-confirm {
  flex-shrink:0;
  min-width:64px;
  min-height:44px;
  padding:10px 18px;
  border:1px solid #e0e0d7;
  border-radius:100px;
  background:#e0e0d7;
  color:#191919;
  font-size:15px;
}
.author-confirm:hover:not(:disabled) { background:#fff; color:#191919; }

/* Keep room for the independently scrolling description on short desktops. */
@media (min-width:701px) and (max-height:650px) {
  .viewer .label-panel { padding:48px 20px 16px; }
  .viewer .label-panel .museum {
    grid-template-rows:minmax(30px,auto) minmax(30px,auto) minmax(22px,auto) minmax(24px,auto) minmax(22px,auto) minmax(40px,auto);
  }
  .viewer .label-panel > .description { margin-top:12px; }
}

/* Visitor accounts and favourites, 2026-09-26. */
.card { position:relative; }
.card > a { display:block; text-decoration:none; }
.favorite-heart { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border:1px solid #666; border-radius:50%; color:#eee; background:#181818db; }
.favorite-heart svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; }
.favorite-heart[aria-pressed=true] { color:#eee4c5; }
.favorite-heart[aria-pressed=true] svg { fill:currentColor; }
.card > .favorite-heart { position:absolute; top:6px; right:6px; z-index:1; }
#favorites-filter[aria-pressed=true], .account-open.signed-in { color:#eee4c5; }
.account-open { margin-left:4px; }
.account-dialog[open] { width:min(460px,calc(100vw - 24px)); height:auto; max-height:calc(100dvh - 32px); margin:auto; padding:24px; overflow:auto; border:1px solid #555; border-radius:12px; background:#1d1d1d; box-shadow:0 24px 100px #000b; touch-action:pan-y; }
.account-dialog-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.account-dialog-top h2 { margin:0; font-size:24px; }
.account-dialog p { font-size:14px; color:#bbb; }
#login-form > label { display:block; margin-bottom:6px; }
#login-email { display:block; width:100%; font-size:16px; }
#login-form .logout-others { display:flex; align-items:center; gap:10px; margin:18px 0; cursor:pointer; font-size:14px; }
.logout-others input { flex-shrink:0; margin:0; }
.account-dialog .primary { background:#e0e0d7; color:#191919; min-height:44px; }
#account-message { margin:16px 0 0; overflow-wrap:anywhere; }
#account-email { overflow-wrap:anywhere; }
#favorite-notice { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:110; display:flex; align-items:center; gap:14px; max-width:calc(100vw - 24px); padding:12px 16px; border-radius:8px; background:#e3e3d9; color:#191919; font-size:14px; }
#favorite-notice button { color:#191919; text-decoration:underline; min-height:36px; }
.login-landing { max-width:640px; padding:48px 24px; margin:0 auto; }
@media(min-width:701px) {
  .viewer .label-actions { display:flex; flex:0 0 auto; padding-top:12px; }
  .viewer .label-actions .favorite-heart { margin-left:auto; }
}
@media(max-width:700px) {
  .card > .favorite-heart { width:32px; height:32px; top:3px; right:3px; }
  .card > .favorite-heart svg { width:18px; height:18px; }
  .viewer .label-actions { gap:12px; }
  .viewer .label-actions .favorite-heart { width:36px; height:36px; flex-basis:36px; }
  .account-dialog[open] { padding:18px; }
}

/* Hearts: quieter gallery controls and dedicated work actions. */
.favorite-heart[aria-pressed=true],
.favorite-heart[aria-pressed=true]:hover:not(:disabled) { color:#ff4058; }
.card > .favorite-heart { background:rgba(24,24,24,.28); border-color:rgba(255,255,255,.22); color:rgba(255,255,255,.65); transition:opacity .15s,background-color .15s,color .15s; }
.card > .favorite-heart[aria-pressed=true] { color:#ff4058; }
.card > .favorite-heart:hover:not(:disabled),
.card > .favorite-heart:focus-visible { background:rgba(24,24,24,.55); }
.viewer .work-favorite-actions { display:flex; align-items:center; flex:0 0 auto; }
.viewer .work-favorite-actions .favorite-heart { width:44px; height:44px; flex-basis:44px; padding:0; margin:0 0 0 -8px; border:0; border-radius:0; background:transparent; }
.viewer .work-favorite-actions .favorite-heart svg { width:26px; height:26px; }
@media (min-width:701px) and (hover:hover) and (pointer:fine) {
  .card > .favorite-heart[aria-pressed=false] { opacity:0; pointer-events:none; }
  .card:hover > .favorite-heart[aria-pressed=false],
  .card:focus-within > .favorite-heart[aria-pressed=false] { opacity:1; pointer-events:auto; }
  .card > .favorite-heart:disabled { pointer-events:none; }
}
@media (min-width:701px) {
  .viewer .work-favorite-actions { order:3; border-top:1px solid var(--line); margin-top:16px; padding-top:8px; }
  .viewer .label-actions { display:none; }
}
@media (max-width:700px) {
  .viewer .label-panel { padding-top:0; }
  .viewer .work-favorite-actions { margin-bottom:2px; }
}
@media (prefers-reduced-motion:reduce) {
  .card > .favorite-heart { transition:none; }
}

/* Small filled hearts; transparent 44px tap targets. */
.card > .favorite-heart,
.card > .favorite-heart:hover:not(:disabled),
.card > .favorite-heart:focus-visible,
.viewer .work-favorite-actions .favorite-heart {
  width:44px; height:44px; flex-basis:44px; padding:0;
  border:0; border-radius:0; background:transparent;
}
.card > .favorite-heart { top:0; right:0; }
.favorite-heart svg,
.card > .favorite-heart svg,
.viewer .work-favorite-actions .favorite-heart svg {
  width:20px; height:20px; fill:currentColor; stroke:none; opacity:.65;
}
.favorite-heart,
.card > .favorite-heart,
.favorite-heart:hover:not(:disabled),
.card > .favorite-heart:hover:not(:disabled) { color:#b5b5b5; }
.favorite-heart[aria-pressed=true],
.card > .favorite-heart[aria-pressed=true],
.favorite-heart[aria-pressed=true]:hover:not(:disabled),
.card > .favorite-heart[aria-pressed=true]:hover:not(:disabled) { color:#ff4058; }

/* Faceted chip filters and responsive panels, 2026-09-27. */
.filter-top { gap:8px; }
.filter-groups { gap:8px; min-width:0; align-items:center; }
.filter-settings,.filter-pill { flex-shrink:0; border:1px solid #454543; border-radius:24px; background:#242424; color:#eee; }
.filter-settings { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; }
.filter-settings svg circle { fill:#242424; }
.filter-settings.is-active svg circle { fill:#e0e0d7; }
.filter-pill { display:inline-flex; align-items:center; height:42px; }
.filter-groups .filter-pill button { font-size:14px; padding:10px 16px; min-height:42px; }
.filter-groups .filter-pill .filter-clear { font-size:22px; padding:4px 10px 4px 0; min-width:32px; }
.filter-pill.is-active,.filter-settings.is-active { background:#e0e0d7; color:#191919; border-color:#e0e0d7; }
.filter-pill.is-active button:hover:not(:disabled),.filter-settings.is-active:hover { color:#191919; }
.filter-top > .icon { flex:0 0 36px; width:36px; height:44px; margin-left:0; }
#favorites-filter[aria-pressed=true] svg { fill:currentColor; }
.filter-dialog[open] { display:flex; flex-direction:column; width:min(420px,calc(100vw - 24px)); height:auto; max-height:min(680px,calc(100dvh - var(--filter-top,90px) - 16px)); top:var(--filter-top,90px); left:var(--filter-left,24px); right:auto; bottom:auto; margin:0; padding:0; background:#242424; border:1px solid #454543; border-radius:18px; box-shadow:0 24px 80px #0008; overflow:hidden; }
.filter-dialog::backdrop { background:transparent; }
.filter-dialog.all-filters[open] { width:min(640px,calc(100vw - 32px)); max-height:calc(100dvh - 64px); inset:0; margin:auto; }
.filter-dialog.all-filters::backdrop { background:#0009; }
.filter-dialog-header { flex:0 0 auto; padding:16px 20px 12px; }
.filter-dialog-title { display:flex; align-items:center; gap:8px; }
.filter-dialog-title h2 { flex:1; font-size:22px; margin:0; }
.filter-dialog-title .icon { flex:0 0 44px; width:44px; height:44px; }
.sheet-handle { display:none; }
#author-search-row { padding-top:12px; }
#author-search-row input { width:100%; box-sizing:border-box; border-radius:12px; font-size:16px; }
.filter-panel-content { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:4px 20px 20px; scrollbar-width:thin; }
.filter-values { display:flex; flex-wrap:wrap; gap:8px; }
.filter-values .chip { white-space:normal; text-align:left; min-height:40px; }
.filter-section + .filter-section { margin-top:24px; }
.filter-section h3 { font-size:16px; margin:0 0 12px; }
.authors-link { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:48px; border:1px solid #454543; border-radius:12px; padding:10px 14px; text-align:left; }
.filter-dialog #author-list { margin:0; }
.filter-dialog #author-list label { min-height:48px; padding:10px 0; gap:12px; border:0; }
.filter-dialog #author-list input { flex-shrink:0; }
.filter-dialog .unavailable { opacity:.35; }
.filter-dialog-footer { flex:0 0 auto; padding:10px 20px; border-top:1px solid #383838; }
.filter-dialog-footer button { min-height:44px; font-size:14px; }
#authors-all { margin-top:12px; }
@media(max-width:700px) {
  .filter-top { gap:4px; }
  .filter-groups { gap:6px; }
  .filter-settings { width:38px; flex-basis:38px; height:40px; }
  .filter-pill { height:38px; }
  .filter-groups .filter-pill button { font-size:13px; padding:8px 12px; min-height:38px; }
  .filter-top > .icon { width:32px; flex-basis:32px; }
  .filter-dialog[open],.filter-dialog.all-filters[open] { width:100%; max-width:100%; height:auto; max-height:85dvh; left:0; right:0; top:auto; bottom:0; margin:0; border-radius:22px 22px 0 0; border-bottom:0; box-sizing:border-box; }
  .filter-dialog::backdrop { background:#0009; }
  .sheet-handle { display:block; width:40px; height:4px; background:#666; border-radius:4px; margin:0 auto 12px; }
  .filter-dialog-header { padding-top:10px; }
  .filter-dialog-footer { padding-bottom:max(10px,env(safe-area-inset-bottom)); }
}

/* Mobile gallery glyph only; keep the existing 44px tap target. */
@media(max-width:700px) {
  .card > .favorite-heart svg { width:10px; height:10px; opacity:.8; transform:translate(10px,-10px); }
}
.viewer .work-favorite-actions .favorite-heart svg { opacity:1; }

/* Keep desktop work actions at the bottom even without a description. */
@media(min-width:701px) {
  .viewer .work-favorite-actions { margin-top:auto; }
}

/* Public favourites account controls */
.account-share{border-top:1px solid #444;border-bottom:1px solid #444;margin:20px 0;padding:18px 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.account-share h3,.account-share p{margin:0}.account-share p{font-size:13px;color:#aaa;line-height:1.5}
.share-url{font:inherit;color:inherit;background:#292929;border:1px solid #555;border-radius:10px;padding:12px;text-align:left;overflow-wrap:anywhere;max-width:100%;cursor:pointer}
.account-share [hidden]{display:none}

/* Minimal catalogue context; keep the existing artwork viewer unchanged. */
.collection-context{font-size:13px;color:var(--muted);margin:10px 0 0}
/* Page titles share the gallery's horizontal rhythm and have room below filters. */
.entity-heading{font-size:clamp(26px,3vw,40px);line-height:1.2;font-weight:400;letter-spacing:-.025em;margin:40px var(--pad) 24px;max-width:1100px;overflow-wrap:anywhere;text-wrap:balance}
@media(max-width:700px){.entity-heading{font-size:26px;margin:24px var(--pad) 18px}}

/* Collective members are a caption beneath the collective's name. */
.collective-members,.entity-members{font-size:13px;line-height:1.5;font-weight:400;letter-spacing:0;color:var(--muted);overflow-wrap:anywhere}
.museum .authors .collective-members{font-size:13px;margin-top:2px}
.collective-members a,.entity-members a{text-decoration:none;text-underline-offset:3px}
.collective-members a:hover,.entity-members a:hover{text-decoration:underline}
.entity-members{margin:0 var(--pad) 24px;max-width:1100px}
.entity-heading:has(+ .entity-members:not([hidden])){margin-bottom:4px}
@media(max-width:700px){.collective-members,.entity-members,.museum .authors .collective-members{font-size:12px}.entity-members{margin:0 var(--pad) 18px}}

/* Let the collective name and its full membership form one caption block. */
.viewer .label-panel .authors:has(.collective-members){display:block;overflow:visible;-webkit-line-clamp:unset;white-space:normal;min-height:0;padding-bottom:12px}
.viewer .label-panel .authors .collective-members{margin-top:2px;white-space:normal;overflow:visible}
@media(min-width:701px){
 .viewer .museum:has(.collective-members){grid-template-rows:auto minmax(52px,auto) minmax(28px,auto) minmax(44px,auto) minmax(28px,auto) minmax(58px,auto)}
}
@media(min-width:701px) and (max-height:650px){
 .viewer .museum:has(.collective-members){grid-template-rows:auto minmax(30px,auto) minmax(22px,auto) minmax(24px,auto) minmax(22px,auto) minmax(40px,auto)}
}
@media(max-width:700px){
 .viewer .label-panel .museum:has(.collective-members){grid-template-rows:auto 38px 18px 32px 18px 32px}
 .viewer .label-panel .authors:has(.collective-members){padding-bottom:10px}
}
