.prorez-cut-editor-shell {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    grid-template-columns: auto 1fr auto;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: var(--prorez-editor-bg, #0f1114);
    color: #e8eaed;
}

.prorez-cut-editor-shell__top {
    grid-column: 1 / -1;
    border-bottom: 1px solid #2a3038;
    background: #15181d;
    padding: 0.4rem 0.75rem;
    z-index: 2;
}

.prorez-cut-editor-shell__options {
    grid-column: 1 / -1;
    border-bottom: 1px solid #2a3038;
    background: #12151a;
    padding: 0 0.75rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
}

.prorez-cut-editor-topbar {
    min-height: 2rem;
    flex-wrap: nowrap !important;
}

.prorez-cut-editor-topbar__sep {
    width: 1px;
    height: 1.4rem;
    background: #2a3038;
    margin: 0 0.2rem;
    flex-shrink: 0;
}

.prorez-cut-editor-popover {
    position: relative;
    display: inline-flex;
}

.prorez-cut-editor-popover__backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.prorez-cut-editor-popover__panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 50;
    min-width: 220px;
    padding: 0.65rem 0.75rem;
    background: #1a1e25;
    border: 1px solid #2a3038;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.prorez-cut-editor-popover__title {
    font-size: 0.75rem;
    color: #9aa0a6;
    margin-bottom: 0.5rem;
}

.prorez-cut-editor-options-bar,
.prorez-cut-editor-precision-panel {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-height: 2rem;
    white-space: nowrap;
}

.prorez-cut-editor-precision-panel .rz-text,
.prorez-cut-editor-options-bar .rz-text {
    margin: 0 !important;
}


.prorez-cut-editor-shell__rail {
    grid-row: 3;
    grid-column: 1;
    width: 56px;
    border-right: 1px solid #2a3038;
    background: #15181d;
    padding: 0.4rem 0.25rem;
    overflow-y: auto;
}

.prorez-cut-editor-shell__canvas {
    grid-row: 3;
    grid-column: 2;
    min-width: 0;
    min-height: 0;
    position: relative;
}

.prorez-cut-editor-shell__ptl {
    grid-row: 3;
    grid-column: 3;
    width: 360px;
    min-width: 280px;
    border-left: 1px solid #2a3038;
    background: #12151a;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.prorez-cut-editor-shell__ptl--collapsed {
    width: 36px;
    min-width: 36px;
}

.prorez-cut-editor-shell__status {
    grid-column: 1 / -1;
    border-top: 1px solid #2a3038;
    background: #15181d;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.prorez-cut-editor-tool-rail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
}

.prorez-cut-editor-tool-rail__btn {
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0 !important;
}

.prorez-cut-editor-tool-rail__group {
    height: 1px;
    background: #2a3038;
    margin: 0.35rem 0.15rem;
}

.prorez-cut-editor-canvas-host {
    width: 100%;
    height: 100%;
}
