.web-page-shell.web-page-shell--beam-wide {
    grid-template-columns: minmax(0, 1fr);
}

.web-page-shell.web-page-shell--beam-wide .web-sidebar {
    display: none;
}

.beam-workspace {
    display: grid;
    gap: 22px;
    padding-bottom: 32px;
}

.beam-workspace__hero {
    padding: 24px 28px;
    border-radius: 24px;
    border: 1px solid rgba(121, 183, 255, 0.14);
    background:
        linear-gradient(135deg, rgba(16, 26, 35, 0.96), rgba(15, 19, 27, 0.94)),
        radial-gradient(circle at top right, rgba(119, 181, 255, 0.16), transparent 40%);
    box-shadow: 0 18px 48px rgba(5, 9, 13, 0.28);
}

.beam-workspace__hero h1 {
    margin: 6px 0 10px;
    color: #f3f8fd;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.beam-workspace__hero p {
    margin: 0;
    max-width: 74ch;
    color: #acc1d4;
    line-height: 1.65;
}

.beam-workspace__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8fb8dd;
}

.beam-workspace__layout {
    --beam-left-width: calc((100% - 424px) / 2);
    display: grid;
    grid-template-columns: var(--beam-left-width) 10px minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
    align-items: start;
}

.beam-workspace__column {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.beam-workspace__column--middle {
    --beam-middle-top-height: 420px;
    grid-template-rows: var(--beam-middle-top-height) 10px minmax(260px, 1fr);
}

.beam-workspace__column-resizer,
.beam-middle-resizer {
    position: relative;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(26, 34, 44, 0.95), rgba(18, 24, 32, 0.95));
    border: 1px solid rgba(121, 183, 255, 0.12);
    z-index: 2;
}

.beam-workspace__column-resizer {
    width: 10px;
    min-height: 100%;
    cursor: col-resize;
}

.beam-middle-resizer {
    height: 10px;
    cursor: row-resize;
}

.beam-workspace__column-resizer::before,
.beam-middle-resizer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, #7f9ec0 0%, #4f6b86 100%);
    opacity: 0.85;
}

.beam-workspace__column-resizer::before {
    width: 3px;
    height: 56px;
}

.beam-middle-resizer::before {
    width: 56px;
    height: 3px;
}

.beam-workspace__column-resizer:hover::before,
.beam-workspace__column-resizer:focus-visible::before,
.beam-middle-resizer:hover::before,
.beam-middle-resizer:focus-visible::before {
    background: linear-gradient(90deg, #9bc8ff 0%, #6e9fd4 100%);
    opacity: 1;
}

.beam-workspace__column-resizer:focus-visible,
.beam-middle-resizer:focus-visible {
    outline: 2px solid #7eb5ff;
    outline-offset: -2px;
}

.beam-card,
.beam-summary {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(121, 183, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(17, 25, 34, 0.96), rgba(12, 18, 24, 0.96)),
        rgba(7, 12, 17, 0.64);
    box-shadow: 0 16px 42px rgba(5, 9, 13, 0.24);
}

.beam-card--fill {
    min-height: 0;
}

.beam-card--editor {
    min-height: 0;
    overflow: hidden;
}

.beam-card--viewport {
    min-height: 420px;
}

.beam-card__header {
    display: grid;
    gap: 6px;
}

.beam-card__header h2,
.beam-card__header h3 {
    margin: 0;
    color: #eef6ff;
}

.beam-card__header p {
    margin: 0;
    color: #98aec3;
    line-height: 1.5;
}

.beam-card__header--inline {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.beam-card__header--nested {
    padding-bottom: 2px;
}

.beam-field-grid {
    display: grid;
    gap: 12px;
}

.beam-field-grid--product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beam-properties-row {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.beam-field:first-child {
    grid-column: 1 / -1;
}

.beam-field {
    display: grid;
    gap: 6px;
}

.beam-field span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8eaac3;
}

.beam-field input,
.beam-field select,
.beam-table input,
.beam-table select,
.beam-btn {
    min-height: 38px;
    border-radius: 12px;
    font-size: 13px;
}

.beam-field input,
.beam-field select,
.beam-table input,
.beam-table select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(122, 146, 170, 0.28);
    background: rgba(7, 12, 17, 0.52);
    color: #eef6ff;
}

.beam-field input[readonly] {
    color: #c8d9e8;
}

.beam-field--property {
    flex: 1 1 0;
    min-width: 0;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(121, 183, 255, 0.14);
    background: rgba(8, 12, 17, 0.28);
}

.beam-field--property input {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #eef6ff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.beam-field--property input:focus {
    outline: none;
}

.beam-btn {
    padding: 0 14px;
    border: 1px solid rgba(121, 183, 255, 0.18);
    background: rgba(7, 12, 17, 0.48);
    color: #eef6ff;
    font-weight: 700;
    cursor: pointer;
}

.beam-btn--accent {
    border-color: rgba(103, 150, 123, 0.48);
    background: linear-gradient(180deg, rgba(103, 150, 123, 0.98), rgba(83, 130, 130, 0.65));
    color: #1b0f04;
}

.beam-summary__cta,
.beam-row-select.is-active {
    border-color: rgba(185, 116, 52, 0.48);
    background: linear-gradient(180deg, #e1a262, #c77e39);
    color: #1b0f04;
}

.compact-table--beam-cuts .cut-select-btn,
.compact-table--beam-cuts .cut-select-btn.active,
.compact-table--beam-cuts .cut-select-btn:hover {
    border-color: rgba(103, 150, 123, 0.48);
    background: linear-gradient(180deg, rgba(103, 150, 123, 0.98), rgba(83, 130, 130, 0.65));
    color: #1b0f04;
}

.beam-btn--secondary {
    background: rgba(19, 30, 40, 0.84);
}

.beam-table-shell {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(121, 183, 255, 0.14);
    background: rgba(8, 12, 17, 0.28);
}

.beam-table-shell--cuts {
    min-height: 0;
}

.beam-table-shell--editor {
    max-height: 100%;
}

.beam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.beam-table thead th {
    padding: 10px 8px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93b3d2;
    border-bottom: 1px solid rgba(121, 183, 255, 0.14);
    background: rgba(19, 30, 40, 0.8);
    white-space: nowrap;
}

.beam-table tbody td {
    padding: 6px;
    border-bottom: 1px solid rgba(121, 183, 255, 0.1);
    vertical-align: middle;
}

.beam-table tbody tr:last-child td {
    border-bottom: none;
}

.beam-table tbody tr.is-selected {
    background: rgba(121, 183, 255, 0.08);
}

.beam-col-view {
    width: 80px;
}

.beam-col-small {
    width: 62px;
}

.beam-col-medium {
    width: 96px;
}

.beam-col-finish {
    width: 96px;
}

.beam-col-length {
    width: 84px;
}

.beam-col-label {
    width: 92px;
}

.beam-col-face {
    width: 84px;
}

.beam-col-delete {
    width: 46px;
}

.compact-table--beam-cuts .beam-col-view {
    width: 78px;
}

.compact-table--beam-cuts .beam-col-length {
    width: 82px;
}

.compact-table--beam-cuts .beam-col-label {
    width: 76px;
}

.compact-table--beam-cuts .beam-col-finish {
    width: 96px;
}

.compact-table--beam-cuts .beam-col-face {
    width: 88px;
}

.compact-table--beam-cuts input[type="number"],
.compact-table--beam-cuts input[type="text"],
.compact-table--beam-cuts select {
    height: 34px;
    min-height: 34px;
    padding: 6px 8px;
    box-sizing: border-box;
    line-height: 20px;
}

.beam-editor-tabs-panel {
    margin-bottom: 0.2rem;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid rgba(121, 183, 255, 0.16);
    background: #111;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.beam-editor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
    align-items: stretch;
    justify-content: flex-start;
}

.beam-card .tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 calc(((100% - 0.7rem) / 3) * 0.78);
    min-height: 38px;
    width: auto;
    min-width: 0;
    max-width: calc(((100% - 0.7rem) / 3) * 0.78);
    margin: 0;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(126, 154, 184, 0.24);
    background: linear-gradient(180deg, rgba(52, 72, 90, 0.98), rgba(35, 49, 62, 0.98));
    color: #dce9f6;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: filter 0.14s ease, transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.beam-card .tab-button:hover,
.beam-card .tab-button:focus-visible {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.beam-card .tab-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(121, 183, 255, 0.18);
}

.beam-card .tab-button.active {
    background: linear-gradient(180deg, rgba(103, 150, 123, 0.98), rgba(83, 130, 130, 0.65));
    border-color: rgba(185, 116, 52, 0.48);
    color: #1b0f04;
    box-shadow: 0 1rem 2rem rgba(83, 130, 130, 0.18);
}

.beam-editor-panels {
    min-height: 0;
    overflow: hidden;
}

.beam-editor-panel {
    display: grid;
    gap: 14px;
    min-height: 0;
    max-height: 100%;
}

.beam-editor-panel[hidden] {
    display: none;
}

.beam-viewport-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.beam-viewport-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.beam-viewport-tool {
    min-width: 72px;
    padding: 0 12px;
}

.beam-viewport-tool.active {
    border-color: rgba(103, 150, 123, 0.48);
    background: linear-gradient(180deg, rgba(103, 150, 123, 0.98), rgba(83, 130, 130, 0.65));
    color: #1b0f04;
}

.beam-end-plate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.beam-end-plate-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(121, 183, 255, 0.14);
    background: rgba(8, 12, 17, 0.28);
}

.beam-field-grid--endplate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beam-end-plate-card .beam-field select:disabled,
.beam-end-plate-card .beam-field input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.beam-viewport-canvas {
    min-height: 380px;
    border-radius: 18px;
    border: 1px solid rgba(121, 183, 255, 0.12);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(9, 15, 21, 0.98), rgba(13, 20, 28, 0.98));
}

.beam-summary {
    position: sticky;
    top: 118px;
}

.beam-summary__metrics {
    display: grid;
    gap: 10px;
}

.beam-metric {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(121, 183, 255, 0.12);
    background: rgba(8, 12, 17, 0.34);
}

.beam-metric span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8ea8bf;
}

.beam-metric strong {
    color: #eef6ff;
    font-size: 1.1rem;
}

.beam-summary__cta {
    min-height: 46px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.beam-summary__description {
    min-height: 220px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(121, 183, 255, 0.12);
    background: rgba(8, 12, 17, 0.34);
    color: #dce9f6;
    line-height: 1.6;
    white-space: normal;
}

.beam-message {
    min-height: 20px;
    font-size: 13px;
    color: #8ea8bf;
}

.beam-message.is-error {
    color: #ffb6b6;
}

.beam-message.is-success {
    color: #9fe1b2;
}

.beam-empty-row {
    text-align: center;
    color: #8ea8bf;
}

@media (max-width: 1440px) {
    .beam-workspace__layout {
        --beam-left-width: calc((100% - 384px) / 2);
        grid-template-columns: var(--beam-left-width) 10px minmax(0, 1fr) minmax(280px, 320px);
    }
}

@media (max-width: 1180px) {
    .beam-workspace__layout {
        grid-template-columns: 1fr;
    }

    .beam-workspace__column-resizer,
    .beam-middle-resizer {
        display: none;
    }

    .beam-summary {
        position: static;
    }

    .beam-workspace__column--middle {
        grid-template-rows: auto auto;
    }

    .beam-viewport-toolbar {
        align-items: stretch;
        justify-content: flex-start;
    }

    .beam-end-plate-grid,
    .beam-field-grid--endplate {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .beam-workspace__hero,
    .beam-card,
    .beam-summary {
        padding: 16px;
    }

    .beam-field-grid--product {
        grid-template-columns: 1fr;
    }

    .beam-properties-row {
        flex-wrap: wrap;
    }

    .beam-field--property {
        flex: 1 1 calc(50% - 5px);
    }

    .beam-card__header--inline {
        grid-template-columns: 1fr;
    }

    .beam-workspace__hero h1 {
        font-size: 1.9rem;
    }
}