/* One shared surface. Only the editor draws boundaries around individual pieces. */
.public-profile-page .profile-showcase { overflow: visible; padding: 24px 0 32px; }
.profile-showcase > header { margin-bottom: 20px; }
.profile-showcase h2 { letter-spacing: -.035em; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.showcase-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: end; gap: 8px; }
.public-profile-page .profile-showcase > header button { min-height: 42px; border: 1px solid #d8d0c6; border-radius: 99px; background: #fffaf3; color: #514b43; font-size: 12px; font-weight: 700; }
.public-profile-page .profile-showcase > header #editShowcaseButton { background: #343b32; border-color: #343b32; color: #fffdf7; }
.showcase-curate-action { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.showcase-new-slot { color: #72634c; font-size: 10px; font-weight: 600; }
.showcase-viewport { max-width: 100%; overflow: auto; border-radius: 20px; scrollbar-width: thin; scrollbar-color: #b8afa0 #f1ede5; }
.showcase-workspace { position: relative; }
.showcase-inventory { position: fixed; top: 16px; left: 12px; z-index: 20000; display: flex; flex-direction: column; box-sizing: border-box; width: 288px; max-height: min(720px, calc(100dvh - 32px)); overflow: hidden; padding: 18px; border: 1px solid #ddd6ca; border-radius: 16px; background: #fffdf9f5; color: #4f493e; box-shadow: 0 12px 40px #37302518; backdrop-filter: blur(14px); }
.showcase-inventory[hidden], .showcase-item-actions[hidden], .showcase-inventory-edge[hidden], .showcase-inventory [data-inventory-add-slot][hidden] { display: none; }
.showcase-inventory-edge { position: fixed; left: 0; top: 50%; z-index: 12000; display: grid; justify-items: center; gap: 2px; min-width: 36px; padding: 12px 5px; border: 1px solid #d8d0c6; border-left: 0; border-radius: 0 12px 12px 0; background: #fffdf8; box-shadow: 2px 3px 14px #37302512; color: #65533c; font-size: 10px; transform: translateY(-50%); }
.showcase-inventory-edge > :first-child { font-size: 24px; line-height: 1; }
.showcase-inventory.is-dragging { opacity: .25; }
.showcase-inventory header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-shrink: 0; }
.showcase-inventory h3 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.025em; }
.showcase-inventory header .social-kicker { padding: 0; background: transparent; color: #847a6b; transform: none; font-size: 8px; letter-spacing: .13em; }
.showcase-inventory [data-inventory-close] { min-width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 50%; background: #eee9e0; box-shadow: none; color: #655b4f; font-size: 24px; }
.showcase-inventory p { flex-shrink: 0; margin: 12px 0 16px; font-size: 12px; line-height: 1.5; color: #847a6b; }
.showcase-inventory .showcase-inventory-note { margin-bottom: 0; padding-top: 14px; border-top: 1px solid #e9e3d9; font-size: 11px; }
.showcase-inventory [data-inventory-add-slot] { flex-shrink: 0; width: 100%; margin-top: 12px; min-height: 42px; padding: 10px 14px; border: 1px dashed #b9aa8d; border-radius: 10px; background: #f8f3e9; color: #63543f; box-shadow: none; font-size: 12px; }
.showcase-inventory-tabs { display: flex; flex-shrink: 0; gap: 4px; padding: 3px; margin-bottom: 12px; border-radius: 10px; background: #eee8dd; }
.showcase-inventory-tabs button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #807463; font-size: 12px; font-weight: 650; padding: 6px; }
.showcase-inventory-tabs [aria-selected="true"] { background: #fffdf8; color: #514936; box-shadow: 0 1px 4px #37302512; }
.showcase-inventory-list { display: grid; align-content: start; gap: 6px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8bca5 transparent; padding: 2px; }
.showcase-inventory-description { flex: 1; min-width: 0; }
.showcase-inventory-stack { align-self: flex-start; padding: 3px 5px; border-radius: 6px; background: #e7dfd0; color: #756449; font-size: 10px; font-weight: 700; white-space: nowrap; }
.showcase-inventory .showcase-inventory-empty { padding: 16px 0; text-align: center; }
.showcase-inventory .showcase-inventory-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: #f3eee6; box-shadow: none; color: #514936; text-align: left; touch-action: none; cursor: grab; }
.showcase-inventory .showcase-inventory-item.is-placed { background: transparent; }
.showcase-inventory .showcase-inventory-item:hover, .showcase-inventory .showcase-inventory-item.is-selected { background: #f3eee6; border-color: #cbbd9f; }
.showcase-inventory-item strong { display: block; font-size: 12px; font-weight: 650; }
.showcase-inventory-item small { display: block; margin-top: 4px; color: #8b806e; font-size: 10px; }
.showcase-inventory-thumbnail { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 50px; border-radius: 5px; font-size: 25px; color: #9e8b6f; }
.showcase-inventory-thumbnail img { max-width: 100%; max-height: 50px; object-fit: contain; }
.showcase-inventory-thumbnail.is-card-slot { border: 1px dashed #b9a98c; width: 28px; flex-basis: 30px; margin: 0 7px; }
.showcase-item-actions { position: absolute; z-index: 40; display: flex; gap: 3px; padding: 4px; border: 1px solid #cec0aa; border-radius: 99px; background: #fffdf8; box-shadow: 0 6px 20px #37302525; white-space: nowrap; }
.profile-showcase .showcase-item-actions button { min-height: 34px; padding: 7px 12px; border: 0; border-radius: 99px; background: transparent; box-shadow: none; color: #63533e; font-size: 11px; font-weight: 650; }
.profile-showcase .showcase-item-actions [data-object-configure] { background: #65533c; color: #fffdf4; }
.showcase-inventory button:focus-visible, .showcase-item-actions button:focus-visible { outline: 3px solid #8060c5; outline-offset: 2px; }
@media (pointer: coarse) { .showcase-inventory .showcase-inventory-item { touch-action: pan-y; cursor: pointer; } }
.showcase-view-tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 0 0 10px; color: #756b5d; font-size: 12px; }
.profile-showcase .showcase-view-tools button { min-height: 36px; padding: 7px 12px; border: 1px solid #d8d0c6; border-radius: 99px; background: #fffaf3; box-shadow: none; font-size: 12px; font-weight: 650; }
.showcase-canvas[hidden], .showcase-canvas [hidden] { display: none !important; }
.showcase-canvas {
    --scene-bg: #f1eee8;
    --scene-ink: #675f52;
    --scene-highlight: #fffcf7;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: radial-gradient(ellipse at 28% 12%, var(--scene-highlight), transparent 72%), var(--scene-bg);
    color: var(--scene-ink);
    isolation: isolate;
}
.showcase-canvas[data-theme="midnight"] { --scene-bg: #252d31; --scene-ink: #d6dfd7; --scene-highlight: #384448; }
.showcase-canvas[data-theme="rose"] { --scene-bg: #eddfdb; --scene-ink: #745c54; --scene-highlight: #fff5ed; }
.showcase-object, .card-display-slot { box-sizing: border-box; position: absolute; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; transform-origin: top left; }
.showcase-object-label { display: none; }
.showcase-object-content { position: relative; width: 100%; min-width: 0; }
.showcase-object-content > #profileFridge,
.showcase-object-content > #profilePS2,
.showcase-object-content > #profileShelf, .showcase-object-content > [data-showcase-instance] { position: absolute; top: 0; left: 0; max-width: none; min-width: 0; margin: 0; transform-origin: top left; }
.showcase-object-content .fridge-preview { margin: 0; }
.showcase-canvas .shelf-edit { opacity: 0; pointer-events: none; }
.showcase-object:hover .shelf-edit, .showcase-object:focus-within .shelf-edit { opacity: 1; pointer-events: auto; }
.showcase-object[data-layout-key="card-display"],
.showcase-object[data-layout-key="card-display"] > .showcase-object-content,
#showcaseCardDisplay, #showcaseCardGrid { display: contents; }
.showcase-card-stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
#showcaseCardGrid .collection-card-button { position: absolute; display: block; width: max-content; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform-origin: top left; }
#showcaseCardGrid .trading-card { zoom: 1; }
/* Let the artwork determine intrinsic width even when its separate caption is long. */
#showcaseCardGrid .collectible-caption { box-sizing: border-box; width: 0; min-width: 100%; color: #25252d; }
#showcaseCardGrid .collection-card-button:focus-visible { outline: 4px solid #8060c5; outline-offset: 9px; }
.card-display-slot.is-empty { display: grid; place-items: center; border: 1px dashed #a3947d; border-radius: 6px; color: var(--scene-ink); font-size: 11px; }
.showcase-canvas:not(.is-arranging) .card-display-slot.is-empty { display: none; }
.showcase-canvas.is-arranging { background-image: radial-gradient(#8e806247 1px, transparent 1px), radial-gradient(ellipse at 28% 12%, var(--scene-highlight), transparent 72%); background-size: 20px 20px, 100% 100%; }
.is-arranging :is(.showcase-object, .card-display-slot):not([data-layout-key="card-display"]) { outline: 1px dashed #9f927b99; outline-offset: 5px; cursor: grab; touch-action: none; }
.is-arranging :is(.showcase-object, .card-display-slot).is-selected { outline: 2px solid #927147; }
.is-arranging :is(.showcase-object-content, .showcase-card-stage) { pointer-events: none; }
.is-arranging .showcase-object[data-layout-key="card-display"] > .showcase-object-content { pointer-events: auto; }
.profile-showcase .showcase-move { position: absolute; top: 0; left: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; min-width: 34px; min-height: 30px; max-width: 180px; padding: 4px 9px; border: 1px solid #b4a790; border-radius: 99px; background: #fffdf4; box-shadow: 0 2px 8px #24211a14; color: #65533c; font-size: 10px; font-weight: 650; white-space: nowrap; transform: translateX(-50%) scale(calc(1 / var(--layout-scale, 1))); transform-origin: top center; cursor: grab; touch-action: none; }
.profile-showcase .is-selected > .showcase-move { background: #65533c; border-color: #65533c; color: #fffdf4; }
.showcase-move:focus-visible { outline: 3px solid #8060c5; outline-offset: 3px; }
.showcase-layout-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #d8d0c6; border-radius: 14px; background: #fffdf8; }
.showcase-layout-tools label { display: grid; gap: 7px; flex: 1 1 115px; min-width: 105px; max-width: 180px; color: #635c50; font-size: 11px; font-weight: 650; }
.showcase-layout-tools select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 26px 8px 10px; border: 1px solid #d8d0c6; border-radius: 8px; background: #fff; color: #38382f; font: inherit; font-size: 13px; }
.showcase-layout-tools [data-inventory-toggle] { align-self: center; }
.showcase-layout-tools [data-inventory-count] { margin-left: 6px; padding: 2px 6px; border-radius: 9px; background: #eae3d5; font-size: 10px; }
.showcase-layout-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.profile-showcase .showcase-layout-tools button { min-height: 42px; padding: 9px 13px; border: 1px solid #d8d0c6; border-radius: 8px; background: #fff; box-shadow: none; font-size: 12px; font-weight: 650; }
.profile-showcase .showcase-layout-tools [data-layout-save] { border-color: #343b32; background: #343b32; color: #fffdf7; }
.profile-showcase .showcase-layout-tools [data-layout-reset] { border-color: transparent; background: transparent; color: #71665a; }
.showcase-layout-tools [role="status"], .showcase-layout-hint { flex-basis: 100%; margin: 0; color: #776d5f; font-size: 12px; line-height: 1.5; }
.showcase-layout-tools [role="status"] { color: #a02d3e; }
.showcase-layout-tools [role="status"]:empty { display: none; }
.showcase-layout-tools :is(button, select, input):focus-visible, .showcase-heading-actions button:focus-visible { outline: 2px solid #8060c5; outline-offset: 3px; }
.showcase-layout-tools :disabled { opacity: .6; cursor: wait; }
.showcase-slot-count { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 13px; }
.showcase-slot-count select { padding: 8px 10px; border: 1px solid #b9a5ca; border-radius: 6px; background: white; }
.profile-showcase > #showcaseEmpty { padding: 36px 24px; border: 1px dashed #d4ccbf; border-radius: 18px; background: #fbf9f3; color: #756b5d; text-align: center; font-size: 14px; }
.profile-showcase .showcase-empty-action { display: block; margin: 16px auto 0; padding: 10px 16px; border: 1px solid #343b32; border-radius: 99px; background: #343b32; box-shadow: none; color: #fffdf7; font-size: 12px; }
@media (max-width: 760px) {
    .showcase-inventory { top: 12px; left: 8px; width: min(280px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 14px; }
    .showcase-inventory h3 { font-size: 18px; }
    .showcase-inventory .showcase-inventory-item { min-height: 58px; }
    .showcase-heading-actions { justify-content: flex-start; }
    .showcase-viewport { border-radius: 12px; }
    .showcase-canvas:not(.is-zoomed) .shelf-edit { visibility: hidden; }
    .showcase-canvas.is-zoomed .shelf-edit { opacity: 1; pointer-events: auto; }
    .showcase-layout-tools { gap: 10px; padding: 12px; }
    .showcase-layout-tools label { flex: 1 1 110px; max-width: none; }
    .showcase-layout-actions { margin-left: 0; width: 100%; }
    .showcase-layout-actions [data-layout-save] { margin-left: auto; }
}
