/* roomflow-canvas-region-wip.css — companion of the region-card tool in
   roomflow-tool-shared-wip.js (2026-09-30). Loaded only inside the
   `!empty($roomflow_is_wip)` gate, so every rule is scoped to
   body[data-nav-wip]. The floating editor sits inside .canvas-wrapper next to
   the selected card. Visual language matches roomflow-inline-edit-wip.css:
   white / #111827 keys, 12-14px radius, soft shadow; dark variant follows the
   .dt-canvas-bar palette (#1f1f22 / #2a2a2e / #f5f5f6). */
body[data-nav-wip] .dt-rc-editor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 14;
    width: 236px;
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 10px 12px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    color: #111827;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 12px 32px rgba(15, 23, 42, .18);
    font-size: 13px;
    line-height: 1.4;
    backdrop-filter: blur(8px);
    transition: opacity .14s ease;
}
body[data-nav-wip] .dt-rc-editor[hidden] { display: none !important; }
/* [WIP 2026-10-01] out of the way while its card is dragged / resized */
body[data-nav-wip] .dt-rc-editor.is-dragging {
    opacity: 0;
    pointer-events: none;
}
body[data-nav-wip] .dt-rc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
body[data-nav-wip] .dt-rc-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #6b7280;
    text-transform: uppercase;
}
body[data-nav-wip] .dt-rc-del {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}
body[data-nav-wip] .dt-rc-del svg { width: 16px; height: 16px; }
body[data-nav-wip] .dt-rc-del:hover { background: #fef2f2; color: #dc2626; }
body[data-nav-wip] .dt-rc-text {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 66px;
    max-height: 140px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    font: inherit;
    font-size: 13px;
    resize: vertical;
    outline: none;
}
body[data-nav-wip] .dt-rc-text::placeholder { color: #9ca3af; }
body[data-nav-wip] .dt-rc-text:focus { border-color: #111827; background: #ffffff; box-shadow: 0 0 0 3px rgba(17, 24, 39, .08); }
body[data-nav-wip] .dt-rc-count {
    margin: 4px 2px 8px;
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
}
body[data-nav-wip] .dt-rc-imgrow { display: flex; flex-direction: column; gap: 6px; }
body[data-nav-wip] .dt-rc-imglabel { font-size: 12px; font-weight: 500; color: #374151; }
body[data-nav-wip] .dt-rc-imgbtns { display: flex; gap: 6px; }
body[data-nav-wip] .dt-rc-imgbtns[hidden] { display: none !important; }
body[data-nav-wip] .dt-rc-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
body[data-nav-wip] .dt-rc-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
body[data-nav-wip] .dt-rc-btn:hover { background: #111827; border-color: #111827; color: #ffffff; }
body[data-nav-wip] .dt-rc-thumb {
    position: relative;
    width: 100%;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}
body[data-nav-wip] .dt-rc-thumb[hidden] { display: none !important; }
body[data-nav-wip] .dt-rc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body[data-nav-wip] .dt-rc-thumb-x {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, .78);
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    padding: 0;
    cursor: pointer;
}
body[data-nav-wip] .dt-rc-thumb-x:hover { background: #dc2626; }

/* the region tool button (rect button re-skinned while a region mode is active) */
body[data-nav-wip] .canvas-tool-btn[data-rc="1"].active { background: #111827; }
body[data-nav-wip] .canvas-tool-btn[data-rc="1"].active svg { stroke: #ffffff; }
body.dark-mode[data-nav-wip] .dt-canvas-bar .canvas-tool-btn[data-rc="1"].active { background: #f5f5f6 !important; color: #111827 !important; }

/* dark */
body.dark-mode[data-nav-wip] .dt-rc-editor {
    background: rgba(31, 31, 34, .97);
    color: #f5f5f6;
    box-shadow: 0 0 0 1px #2a2a2e, 0 12px 32px rgba(0, 0, 0, .5);
}
body.dark-mode[data-nav-wip] .dt-rc-title { color: #a1a1aa; }
body.dark-mode[data-nav-wip] .dt-rc-del { color: #a1a1aa; }
body.dark-mode[data-nav-wip] .dt-rc-del:hover { background: rgba(220, 38, 38, .18); color: #f87171; }
body.dark-mode[data-nav-wip] .dt-rc-text {
    border-color: #2a2a2e;
    background: #161618;
    color: #f5f5f6;
}
body.dark-mode[data-nav-wip] .dt-rc-text::placeholder { color: #71717a; }
body.dark-mode[data-nav-wip] .dt-rc-text:focus { border-color: #f5f5f6; background: #1f1f22; box-shadow: 0 0 0 3px rgba(245, 245, 246, .12); }
body.dark-mode[data-nav-wip] .dt-rc-count { color: #71717a; }
body.dark-mode[data-nav-wip] .dt-rc-imglabel { color: #d4d4d8; }
body.dark-mode[data-nav-wip] .dt-rc-btn { border-color: #2a2a2e; background: #1f1f22; color: #f5f5f6; }
body.dark-mode[data-nav-wip] .dt-rc-btn:hover { background: #f5f5f6; border-color: #f5f5f6; color: #111827; }
body.dark-mode[data-nav-wip] .dt-rc-thumb { background: #161618; }
