.constructor-page .workspace-column { min-width: 0; }
.constructor-page .roll-layout { min-width: 0; padding: 12px 10px; color: #eee9df; background: #0e0f0e; border-top: 1px solid #57462d; }
.roll-layout-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.roll-layout-head h2 { margin: 0 0 3px; font-size: 14px; line-height: 1.3; color: #f2d49d; }
.roll-layout-head span, .roll-layout-controls { font-size: 11px; color: #bdb9ae; }
.roll-layout-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.roll-layout-controls label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.roll-layout-controls input[type="checkbox"] { width: 14px; height: 14px; min-height: 0; margin: 0; accent-color: #dfbd7c; }
.roll-layout-controls input[type="number"] { width: 43px; height: 28px; min-height: 0; padding: 3px; border: 1px solid #6a5635; border-radius: 3px; background: #191a16; color: #fff; font-size: 11px; }
.roll-layout-controls input[type="range"] { width: 68px; min-height: 0; margin: 0; accent-color: #dfbd7c; }
.roll-layout .roll-layout-zoom > span { font-size: 20px; }
.roll-layout-sheets { min-width: 0; }
.roll-layout-sheet { margin-bottom: 8px; }
.roll-layout-sheet-title { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 10px; color: #b8b4a9; }
.roll-layout-viewport { overflow: auto; scrollbar-width: thin; scrollbar-color: #8a754e #10110f; padding: 2px 0 6px; }
.roll-layout-paper { position: relative; width: calc(100% * var(--roll-zoom, 1)); min-width: 720px; padding-left: 14px; }
.roll-layout-paper::before { content: ''; position: absolute; top: 0; bottom: 24px; left: 0; width: 14px; border: 1px solid #9b9f96; border-radius: 50%; background: linear-gradient(90deg,#191e1c,#a4aba6 35%,#434e48 68%,#131816); }
.roll-layout-svg { display: block; width: 100%; height: auto; border: 1px solid #899286; background: linear-gradient(180deg,#666e641f,#dbe6cc26 15%,#4c5b4829 65%,#bec6b331),#121812; }
.roll-layout-grid { stroke: #c2c8b3; stroke-opacity: .14; stroke-width: 1; vector-effect: non-scaling-stroke; }
.roll-layout-shape { fill: #c9ac6870; stroke: #f2d49d; stroke-width: 1; vector-effect: non-scaling-stroke; }
.roll-layout-allowance { fill: #bda66828; stroke: #d2b97c50; stroke-linejoin: round; }
.roll-layout-item { cursor: pointer; }
.roll-layout-item:hover .roll-layout-shape, .roll-layout-item:focus .roll-layout-shape,
.roll-layout-item.is-active .roll-layout-shape { fill: #48ab8c99; stroke: #96ecd0; }
.roll-layout-item:focus { outline: none; }
.roll-layout-item text { fill: #fff1cf; font-family: Arial, sans-serif; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #151b16; stroke-width: 12; stroke-linejoin: round; }
.roll-layout-end { stroke: #eac480; stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.roll-layout-ruler { height: 24px; display: flex; justify-content: space-between; color: #a6aa9e; font-size: 10px; padding-top: 4px; }
.roll-layout-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; min-height: 18px; font-size: 11px; color: #cac7bd; }
.roll-layout-summary strong { color: #f1d49c; }
.roll-layout-note, .roll-layout-warning { margin: 7px 0 0; font-size: 10px; line-height: 1.5; color: #918f84; }
.roll-layout-warning { color: #f4b982; }
.roll-layout [hidden] { display: none; }
.roll-layout[aria-busy="true"] .roll-layout-sheets { opacity: .55; pointer-events: none; }
@media (min-width: 861px) {
    .constructor-page .workspace-column { grid-column: 1; grid-row: 2; align-self: start; display: flex; flex-direction: column; gap: 10px; }
    .constructor-page .workspace-column .workspace-stage { flex: 0 0 auto; }
    .constructor-page .roll-layout { border: 1px solid #4b3d29; border-radius: 5px; }
}
@media (max-width: 600px) {
    .roll-layout-head { align-items: flex-start; }
    .roll-layout-controls { gap: 8px; }
    .roll-layout-note { max-width: 320px; }
}
