/* roomflow-asset-wip.css — companion of roomflow-asset-wip.js (2026-09-29 step
   3). Loaded after roomflow-inline-edit-wip.css; only WIP routes render
   <body data-nav-wip>. Visual language ported from SnapRender's own asset
   rail (snaprender-panel-wip.css ~2782-3061, 3902-4020, 4765-4840), renamed
   dt-rf-* to match this page's own prefix and simplified to a single-tab
   panel (no Results rail - see roomflow-asset-wip.js header). */

/* the panel pushes the picture/tools/edit field left the way the toolbar
   already transitions them (roomflow-panel-wip.css / roomflow-inline-edit-wip.css) */
body[data-nav-wip] .wr-lists.result,
body[data-nav-wip] .dt-rs-tools,
body[data-nav-wip] .dt-rf-bar {
    transition: padding .28s cubic-bezier(.2, .8, .2, 1), left .28s cubic-bezier(.2, .8, .2, 1), width .28s cubic-bezier(.2, .8, .2, 1);
}
body.dt-rf-as-open[data-nav-wip] .wr-lists.result {
    padding-right: 296px !important;
    box-sizing: border-box !important;
}
body.dt-rf-as-open[data-nav-wip] .dt-rs-tools,
body.dt-rf-as-open[data-nav-wip] .dt-rf-bar {
    left: calc(50% - 148px);
}

body[data-nav-wip] .dt-rf-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 16;
    width: 280px;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    border-left: 1px solid rgba(17, 24, 39, .06);
    background: #ffffff;
}
body[data-nav-wip] .dt-rf-side::-webkit-scrollbar { width: 0; }
body[data-nav-wip] .dt-rf-side[hidden] { display: none !important; }
body.dark-mode[data-nav-wip] .dt-rf-side { background: #161618; border-left-color: #2a2a2e; }
body[data-nav-wip] .dt-rf-side.is-file-over { box-shadow: inset 0 0 0 2px #2563eb; }

body[data-nav-wip] .dt-rf-side-head {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 10px 6px 14px;
    flex: 0 0 auto;
}
body[data-nav-wip] .dt-rf-side-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-right: auto;
}
body.dark-mode[data-nav-wip] .dt-rf-side-title { color: #f5f5f6; }
body[data-nav-wip] .dt-rf-side-clear {
    height: 26px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
body[data-nav-wip] .dt-rf-side-clear:hover { background: #e5e7eb; color: #111827; }
body.dark-mode[data-nav-wip] .dt-rf-side-clear { background: #2a2a2e; color: #d4d4d8; }
body.dark-mode[data-nav-wip] .dt-rf-side-clear:hover { background: #34343a; color: #f5f5f6; }
body[data-nav-wip] .dt-rf-side-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
body[data-nav-wip] .dt-rf-side-close:hover { background: #f3f4f6; color: #111827; }
body.dark-mode[data-nav-wip] .dt-rf-side-close { color: #a1a1aa; }
body.dark-mode[data-nav-wip] .dt-rf-side-close:hover { background: #2a2a2e; color: #f5f5f6; }

body[data-nav-wip] .dt-rf-mat-hint {
    margin: 0;
    padding: 0 14px 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
}
body.dark-mode[data-nav-wip] .dt-rf-mat-hint { color: #8b8b94; }

body[data-nav-wip] .dt-rf-mat-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px 12px;
    flex: 0 0 auto;
}
body[data-nav-wip] .dt-rf-mat-cat {
    height: 28px;
    padding: 0 11px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: transparent;
    color: #4b5563;
    font-size: 12.5px;
    cursor: pointer;
}
body[data-nav-wip] .dt-rf-mat-cat:hover { border-color: #cbd2da; color: #111827; }
body[data-nav-wip] .dt-rf-mat-cat.is-on { border-color: #2563eb; background: #eff4ff; color: #1d4ed8; font-weight: 600; }
body.dark-mode[data-nav-wip] .dt-rf-mat-cat { border-color: #3f3f46; color: #a1a1aa; }
body.dark-mode[data-nav-wip] .dt-rf-mat-cat:hover { border-color: #52525b; color: #f5f5f6; }
body.dark-mode[data-nav-wip] .dt-rf-mat-cat.is-on { border-color: #3b82f6; background: rgba(59, 130, 246, .16); color: #93c5fd; }

body[data-nav-wip] .dt-rf-mat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 12px 16px;
}
body[data-nav-wip] .dt-rf-mat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: center;
    min-width: 0;
}
body[data-nav-wip] .dt-rf-mat-item:not(.is-ph) { cursor: grab; }
body[data-nav-wip] .dt-rf-mat-face {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 12px;
    background: #f3f4f6;
    color: #9ca3af;
    overflow: hidden;
    transition: box-shadow .15s ease;
}
body[data-nav-wip] .dt-rf-mat-face img { width: 100%; height: 100%; object-fit: contain; }
body[data-nav-wip] .dt-rf-mat-item.is-ph .dt-rf-mat-face { border: 1.5px dashed #d1d5db; background: transparent; }
body[data-nav-wip] .dt-rf-mat-item:hover .dt-rf-mat-face { box-shadow: 0 0 0 2px #2563eb inset; }
body[data-nav-wip] .dt-rf-mat-name {
    font-size: 11.5px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.dark-mode[data-nav-wip] .dt-rf-mat-face { background: #232326; color: #71717a; }
body.dark-mode[data-nav-wip] .dt-rf-mat-item.is-ph .dt-rf-mat-face { border-color: #3f3f46; }
body.dark-mode[data-nav-wip] .dt-rf-mat-name { color: #a1a1aa; }

/* ── My assets: + tile, uploads in progress, delete-on-hover, Undo line ──── */
body[data-nav-wip] .dt-rf-mine-up .dt-rf-mat-face {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed #c7ccd4;
    background: transparent !important;
    color: #6b7280;
    box-sizing: border-box;
}
body[data-nav-wip] .dt-rf-mine-up:hover .dt-rf-mat-face { border-color: #2563eb; color: #2563eb; }
body.dark-mode[data-nav-wip] .dt-rf-mine-up .dt-rf-mat-face { border-color: #3f3f46; color: #a1a1aa; }
body.dark-mode[data-nav-wip] .dt-rf-mine-up:hover .dt-rf-mat-face { border-color: #3b82f6; color: #93c5fd; }
body[data-nav-wip] .dt-rf-mine,
body[data-nav-wip] .dt-rf-mine-pending { position: relative; }
body[data-nav-wip] .dt-rf-mine .dt-rf-mat-face img { object-fit: contain; }
body[data-nav-wip] .dt-rf-mine-pending img { opacity: .45; object-fit: contain; }
body[data-nav-wip] .dt-rf-mine-spin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2563eb;
    border-right-color: transparent;
    border-radius: 50%;
    animation: dtRfMineSpin .8s linear infinite;
}
@keyframes dtRfMineSpin { to { transform: rotate(360deg); } }
body[data-nav-wip] .dt-rf-mine-x {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(17, 24, 39, .72);
    color: #ffffff;
    cursor: pointer;
}
body[data-nav-wip] .dt-rf-mine:hover .dt-rf-mine-x,
body[data-nav-wip] .dt-rf-mine:focus-visible .dt-rf-mine-x { display: flex; }
body[data-nav-wip] .dt-rf-mine-x:hover { background: #dc2626; }
body[data-nav-wip] .dt-rf-mine-undo {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 6px 6px 10px;
    border-radius: 10px;
    background: #111827;
    color: #f3f4f6;
    font-size: 12px;
}
body[data-nav-wip] .dt-rf-mine-undo span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body[data-nav-wip] .dt-rf-mine-undo-btn {
    flex: 0 0 auto;
    padding: 4px 10px;
    border: 0;
    border-radius: 7px;
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
body.dark-mode[data-nav-wip] .dt-rf-mine-undo { background: #e5e7eb; color: #111827; }
body.dark-mode[data-nav-wip] .dt-rf-mine-undo-btn { background: #111827; color: #ffffff; }

/* ── the Assets tool + divider in the centred result toolbar
   (roomflow-panel-wip.js RS_ITEMS) ── */
body[data-nav-wip] .wr-title .dt-rs-div {
    width: 1px;
    align-self: stretch;
    margin: 4px 2px;
    background: rgba(17, 24, 39, .08);
}
body[data-nav-wip] .wr-title .dt-rs-div[hidden] { display: none !important; }
body.dark-mode[data-nav-wip] .wr-title .dt-rs-div { background: rgba(255, 255, 255, .1); }
body[data-nav-wip] .wr-title .dt-rs-tool.is-on {
    background: #111827;
    color: #ffffff;
}
body[data-nav-wip] .wr-title .dt-rs-tool.is-on:hover { background: #1f2937; box-shadow: none; }
body.dark-mode[data-nav-wip] .wr-title .dt-rs-tool.is-on { background: #e5e7eb; color: #111827; }
body.dark-mode[data-nav-wip] .wr-title .dt-rs-tool.is-on:hover { background: #ffffff; }

@media (max-width: 900px) {
    body[data-nav-wip] .dt-rf-side { width: 240px; }
    body.dt-rf-as-open[data-nav-wip] .wr-lists.result { padding-right: 256px !important; }
    body.dt-rf-as-open[data-nav-wip] .dt-rs-tools,
    body.dt-rf-as-open[data-nav-wip] .dt-rf-bar { left: calc(50% - 128px); }
}
