/* Personal trays, deliberately separate browse and arrange interactions. */
body:not([data-layout=canvas]){background:#f6f3ee}#trayShelf{position:absolute;left:20px;right:20px;top:87px;height:58px;display:flex;align-items:center;gap:12px;overflow-x:auto;scrollbar-width:none;padding:3px 5px;z-index:12}#trayShelf::-webkit-scrollbar{display:none}.tray-chip{position:relative;flex:none;width:47px;height:45px;border-radius:15px;background:var(--tray-color,#fffdf7);border:2px solid transparent;display:grid;place-items:center;box-shadow:0 3px 0 #444b3414;font-size:22px;transition:transform .16s,box-shadow .16s}.tray-chip.active{border-color:#526e68;box-shadow:0 3px 0 #526e6830}.tray-chip small{position:absolute;right:-2px;bottom:-4px;font-size:9px;border-radius:8px;padding:2px 4px;background:#fffdf7;color:#728079}.tray-chip.new-tray{background:transparent;border:1.5px dashed #bec8bd;box-shadow:none;color:#92a191}.tray-chip.tray-drop{transform:translateY(-4px) scale(1.14);box-shadow:0 0 0 6px #789e8f33;border-color:#547e6f}
body:not([data-layout=canvas]) #structured{top:160px;bottom:123px;padding:0 12px;mask-image:linear-gradient(to bottom,transparent,black 8px,black calc(100% - 8px),transparent)}body[data-layout=slalom] #structured{top:155px;padding:0;bottom:123px}
.arrangement.grid{max-width:620px;background:var(--mat-color);border-radius:34px;padding:25px!important;border:1px solid #fff9;box-shadow:inset 0 3px 0 #fff7,inset 0 -5px 0 #52684608;gap:21px;margin:6px auto 15px;min-height:240px}.grid .structured-face{background:transparent!important;border-radius:50%;box-shadow:none;border:0}.grid .structured-face img{inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);border:4px solid #fffdf6;box-shadow:0 5px 6px #3e513f22,0 12px 18px #3e513f0c}.grid .structured-face.picked{outline:3px solid #648477;outline-offset:3px}.grid .structured-face:hover{transform:translateY(-4px) rotate(-2deg)}.arrangement.blank{background:var(--mat-color);border-radius:34px;padding:27px!important;min-height:255px;margin-top:6px}.empty-slot{background:transparent!important;border-radius:50%;border:1.5px dashed #99aa9855;box-shadow:none}.empty-slot i{border:none}.empty-slot span{background:#8fa88d;width:80%;height:80%}
.arrangement.stack{padding-top:22px;padding-bottom:40px}.stack .structured-face{background:var(--mat-color)!important;box-shadow:0 4px 0 #fff9,0 9px 15px #3f543b1b;margin-bottom:-22px;border-radius:24px}.stack .structured-face:nth-child(even){filter:brightness(1.025)}
#arrangeToggle{position:absolute;top:26px;right:79px;width:42px;height:42px;border-radius:15px;background:#e9e9df;display:grid;place-items:center;color:#8c9689;z-index:15}#arrangeToggle[aria-pressed=true]{background:#56796d;color:white;box-shadow:0 3px 0 #34534340}body:not(.arranging) .structured-face{touch-action:pan-y;cursor:grab}body[data-layout=slalom]:not(.arranging) .structured-face{touch-action:pan-x}body.arranging .structured-face{touch-action:none}body.arranging .structured-face:not(.drag-source){outline:1.5px dashed #7e99885c;outline-offset:4px}.is-dragging #arrangeToggle{pointer-events:none;opacity:.4}.is-dragging #trayShelf{opacity:1!important}.is-dragging .landing-slot{border-radius:50%;z-index:10;background:#fff7;box-shadow:inset 0 0 0 6px #a7c0b422;border:2px dashed #537e70}.is-dragging .stack .landing-slot{border-radius:24px}
#moveBar{bottom:max(27px,env(safe-area-inset-bottom));height:74px;padding:8px 18px;border-radius:38px;gap:12px}#moveBar button{width:43px;height:43px}#structuredMore{bottom:45px}#structuredDock{box-shadow:0 7px 21px #475d4114}#structuredAdd{background:#d39e84!important}#layoutModes{background:#e8e8de}
.tray-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;max-height:50dvh;overflow:auto;padding:8px}.tray-picker button{position:relative;aspect-ratio:1;padding:3px;border:2px solid transparent;border-radius:50%;background:#eceee2;opacity:.5}.tray-picker button[aria-pressed=true]{border-color:#749483;opacity:1}.tray-picker img{width:100%;height:100%;object-fit:cover;border-radius:50%}.tray-picker span{display:none;position:absolute;right:0;bottom:0;width:20px;height:20px;border-radius:50%;background:#698b7b;color:white;font-size:13px}.tray-picker [aria-pressed=true] span{display:grid;place-items:center}.tray-picker-actions{display:flex;justify-content:center;gap:16px;margin-top:24px}.tray-picker-actions button{min-width:56px;font-size:22px}.tray-customize{display:grid;justify-items:center;gap:20px;padding:10px}.tray-customize input{width:84px;height:76px;border-radius:24px;font-size:32px;text-align:center;background:#fffdf6}.tray-customize .swatches{gap:12px}.tray-customize .swatches button{width:32px;height:32px}
@media(max-width:600px){.arrangement.grid{padding:19px!important;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}#structuredDock{gap:15px}#layoutModes{left:18px}#layoutModes button{width:39px}#trayShelf{left:15px;right:15px}.tray-picker{grid-template-columns:repeat(4,1fr)}}
@media(prefers-reduced-motion:reduce){.structured-face,.tray-chip,.landing-slot{transition:none!important}}
