:root{font-family:Inter,'Segoe UI',sans-serif;color:#36313f;background:#f4f3ef;font-size:14px;font-synthesis:none}
.muz3Bar{display:flex;gap:16px;align-items:center;width:min(1040px,100%);margin:4px auto 0;color:#786a84;font-size:11px;min-height:30px;flex-wrap:wrap}.muz3Identity{letter-spacing:.18em;font-size:12px}.muz3Identity small{letter-spacing:0;font-size:10px}.muz3Bar select{font:inherit;color:#55455f;border:1px solid #d5ccd9;border-radius:20px;padding:6px 10px;background:#fff6}.muz3Bar select:focus-visible{outline:2px solid #9381ae}.muz3Bar #layoutNotice{margin-left:auto}.resultAccess,.diagnostics{width:min(1040px,100%);margin:8px auto;color:#786a84;font-size:12px}.resultAccess summary,.diagnostics summary{cursor:pointer;min-height:28px;line-height:28px}.resultAccess #resultButtons{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0}.resultAccess button{width:82px;height:78px;border-radius:8px;padding:5px;overflow:hidden;font-size:10px}.resultAccess img{width:100%;height:100%;object-fit:contain}.diagnostics{border-top:1px solid #d5ccd960;padding-top:6px}.diagnostics p{line-height:1.6;max-width:800px}.diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font-size:11px}.diagnostics table{width:100%;border-collapse:collapse;font-size:11px}.diagnostics th,.diagnostics td{text-align:left;padding:7px;border-bottom:1px solid #d5ccd955}.diagnostics td:first-child{max-width:300px}.diagnostics td:not(:first-child){font-variant-numeric:tabular-nums;white-space:nowrap}.diagnostics .tableScroll{overflow-x:auto}.muz3Bar:has(select:disabled){opacity:.8}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input{font:inherit;color:inherit}button{cursor:pointer;min-height:44px;border:1px solid #d5d1de;border-radius:24px;background:#ffffff55;padding:10px 17px}button:hover{background:#fffc;border-color:#9e93b1}button:disabled{opacity:.3;cursor:default}button:focus-visible,input:focus-visible,#stage:focus-visible{outline:2px solid #9381ae;outline-offset:4px}
main{max-width:1600px;min-height:100dvh;margin:auto;padding:25px 34px 12px;display:flex;flex-direction:column}
.searchBar{display:flex;align-items:center;gap:10px;width:min(1040px,100%);margin:0 auto}
#searchForm{display:flex;align-items:center;flex:1;min-width:0;padding:5px;border:1px solid #d5d1df;border-radius:40px;background:#fffa;box-shadow:inset 0 2px 12px #fff,0 7px 28px #8374990b}
#query{flex:1;min-width:0;padding:12px 20px;border:0;background:transparent;border-radius:30px;font-size:18px}#query[readonly]{cursor:default}#query[readonly]::-webkit-search-cancel-button{display:none}
#search{min-width:48px;border:0;background:#51495e;color:#fff;font-size:24px;padding:5px 15px}#newSearch{white-space:nowrap;border-color:transparent;background:transparent;font-size:12px}.backStep{border:0;background:transparent;font-size:25px;padding:6px 12px}
#stage{position:relative;isolation:isolate;height:calc(100dvh - 228px);min-height:370px;max-height:1000px;margin:12px 0 0;overflow:hidden;touch-action:none;cursor:grab;user-select:none;border-radius:25px;background:radial-gradient(ellipse at 50% 45%,#fdfdfb 0,#f6f5f280 48%,#dcdce038 100%)}
#stage:active{cursor:grabbing}#stage[data-playing=true],#stage[data-busy=true]{cursor:progress}#medium,#points{position:absolute;inset:0;width:100%;height:100%}#medium{pointer-events:none}#points{pointer-events:none}
.point{position:absolute;top:0;left:0;min-height:44px;padding:0;border:0;pointer-events:auto;background:transparent;transform:translate(-50%,-50%);cursor:grab;touch-action:none;will-change:left,top,width,height}.point:hover{background:transparent}.point:active{cursor:grabbing}.point:focus-visible{outline:1px dashed #6e688b;outline-offset:2px}
.artworkNav{display:flex;align-items:center;justify-content:center;min-height:92px;margin:0 auto;max-width:100%;padding:7px 16px 13px;border-bottom:1px solid #d2cbd766;border-radius:0 0 50% 50%;background:radial-gradient(ellipse at 50% 100%,#ddd5e650,transparent 70%)}
#artworks{display:flex;justify-content:center;gap:12px;max-width:100%;flex-wrap:wrap}.artShortcut{flex:0 0 64px;width:64px;height:67px;min-height:44px;padding:5px;border:1px solid transparent;border-radius:6px;background:transparent}.artShortcut img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #47405330)}.artShortcut:hover,.artShortcut[aria-pressed=true]{border-color:#a596b7;background:#fffa}
#details{position:absolute;z-index:3000;right:5%;top:16%;width:40%;max-height:75%;overflow:auto;font-size:13px;line-height:1.65;padding:12px 16px 18px;border-radius:16px;background:#f7f5f0e8;box-shadow:0 8px 40px #7060830a;cursor:auto;user-select:text}#details h2{font:400 clamp(24px,2.6vw,38px)/1.13 Georgia,serif;letter-spacing:-.025em;margin:12px 0;overflow-wrap:anywhere}#artDescription{max-height:180px;overflow:auto;margin:12px 0;font-size:12px;overflow-wrap:anywhere}.detailNav{display:flex;align-items:center;gap:4px}.detailNav .back{margin-right:auto;padding:5px 0;border:0;background:none;font-size:12px}.detailNav button:not(.back){font-size:24px;padding:0;width:36px;border:0;background:none}.decisions{display:flex;gap:9px;margin:16px 0}.decisions button{background:#fff9;border-color:#b8adbf}#artSource{font-size:10px;color:#766d80;text-decoration:none}.inspecting #points{pointer-events:none}
#empty{position:absolute;inset:40% 15% auto;text-align:center;pointer-events:none;color:#766d80}#empty p{font:26px Georgia,serif}#empty span{font-size:12px}
#error{margin:14px auto 0;color:#85364c;background:#f6e9eb;border:1px solid #e2c3cd;border-radius:12px;padding:12px;line-height:1.5}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){main{padding:15px 14px 10px}.searchBar{gap:3px}#query{font-size:16px;padding:11px 12px}#newSearch{font-size:11px;padding:8px}#stage{height:calc(100dvh - 248px);min-height:360px}.artworkNav{padding:5px 0 12px}#artworks{gap:4px}.artShortcut{flex-basis:44px;width:44px;height:50px}#details{top:8%;right:3%;width:46%;padding:10px}#details h2{font-size:24px}#artDescription{max-height:125px;font-size:11px}.decisions{gap:4px}.decisions button{padding:8px;font-size:11px}}
@media(max-width:520px){#stage.inspecting{height:360px;min-height:360px;overflow:visible;margin-bottom:315px}#details{top:370px;left:5%;right:5%;width:auto;max-height:295px}.artworkNav{width:100%}#artworks{gap:3px}.artShortcut{flex-basis:40px;width:40px}#stage{border-radius:15px}.backStep{padding:6px 8px}}
  #roundStatus:not(.sr-only){margin:10px auto;text-align:center;color:#665c73;font-size:14px;line-height:1.5}
  .artShortcut canvas{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #47405330)}
  @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.queryOptions{display:flex;align-items:center;gap:18px;min-height:34px;width:min(1040px,100%);margin:3px auto 0;padding:0 18px;font-size:12px;color:#665c73}.queryOptions label{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:34px}.queryOptions input{width:17px;height:17px;margin:0;accent-color:#766186}.queryOptions label:has(:checked){color:#51415e;font-weight:600}#queryLockCount{font-size:11px}
.artworkNav{width:min(1040px,100%);border-radius:0;padding:10px 0 12px;gap:20px;justify-content:flex-start;min-height:90px}.shelfHeading{flex:0 0 auto;font:18px Georgia,serif;color:#655971}.shelfHeading span{font:11px 'Segoe UI',sans-serif;color:#766d80;margin-left:5px}#shelfEmpty{color:#867c8d;font-size:12px;margin:12px 0}#artworks{flex:1;justify-content:flex-start;max-height:148px;overflow:auto;padding:3px}.artShortcut{overflow:hidden;font-size:10px}#shelfPreview{position:absolute;z-index:2500;left:5%;top:8%;width:43%;height:82%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 16px 20px #51405c22)}.shelfInspecting #medium{opacity:.26}.shelfInspecting #empty{visibility:hidden}
@media(max-width:520px){.queryOptions{padding:0 8px;gap:8px;font-size:11px}#queryLockCount{font-size:10px}.artworkNav{gap:12px}.shelfHeading{font-size:16px}#shelfPreview{left:5%;width:90%;top:4%;height:90%}}

.zoomControls{margin-left:auto;display:flex;gap:2px;align-items:center}.zoomControls button{min-width:36px;min-height:34px;padding:3px 8px;border:0;background:transparent;font-size:19px}.zoomControls #zoomReset{min-width:48px;font-size:11px;font-variant-numeric:tabular-nums}.zoomControls button:focus-visible{outline-offset:0}
@media(max-width:520px){.queryOptions{flex-wrap:wrap;column-gap:5px}.zoomControls{gap:0}.zoomControls button{min-width:30px;padding:2px 5px}#queryLockCount:empty{display:none}}

/* Spatial controls stay outside the artwork field. No card displacement. */
.spaceTools{display:flex;align-items:center;gap:16px;width:100%;min-height:35px;margin:2px auto 0;color:#776e80;font-size:11px}
.spaceTools #spaceHint{margin-right:auto}.spaceTools button{min-height:32px;border:0;background:transparent;padding:5px 9px;font-size:11px}
.spaceTools label{display:flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}.spaceTools input{accent-color:#766186;width:14px;height:14px}
#selectionTray{position:absolute;z-index:3100;left:5%;right:5%;bottom:18px;padding:12px 14px;border:1px solid #e2dbe6;border-radius:17px;background:#faf9f5f7;box-shadow:0 12px 44px #30223e23;cursor:auto;user-select:text}
.selectionHeading{display:flex;align-items:center;gap:10px;font-size:12px;color:#64596f}.selectionHeading span{flex:1}.selectionHeading button{border:0;background:transparent;padding:0;min-width:32px;min-height:32px;font-size:23px}
#selectionItems{display:flex;gap:9px;overflow-x:auto;padding:5px 2px 7px;scrollbar-width:thin}
#selectionItems button{flex:0 0 105px;width:105px;min-height:110px;padding:7px;border-radius:9px;background:#fff;border-color:#ddd6e3;text-align:left}
#selectionItems img{display:block;width:100%;height:70px;object-fit:contain;margin-bottom:6px}
#selectionItems span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.35}
#selectionItems button:hover,#selectionItems button:focus-visible{border-color:#8b729e;background:#f4eef8}
#stage{height:calc(100dvh - 263px);background:radial-gradient(ellipse at 47% 37%,#fffefa 0,#f8f7f380 46%,#dcdde540 100%)}
#details{box-shadow:0 16px 45px #50406316;border:1px solid #ffffffb0}
@media(max-width:760px){#stage{height:calc(100dvh - 280px)}.spaceTools{gap:6px;font-size:10px}.spaceTools #spaceHint{max-width:47%;line-height:1.35}.spaceTools button{font-size:10px;padding:5px}.spaceTools label{font-size:10px}}
@media(max-width:520px){.spaceTools{flex-wrap:wrap}.spaceTools #spaceHint{max-width:none;flex:1 1 100%}.spaceTools #homeView{margin-left:auto}#selectionTray{left:3%;right:3%;bottom:10px;padding:8px}#selectionItems button{flex-basis:88px;width:88px}#selectionItems img{height:60px}}
