        /* Общие стили для body */
        body {
            font-family: 'Roboto', sans-serif;
            margin: 0;
            overflow: hidden; /* Скрывает полосы прокрутки, если содержимое выходит за границы */
            display: flex;
            flex-direction: column; /* Элементы (main-content-area и bottomBar) располагаются вертикально */
            height: 100vh; /* Body занимает всю высоту viewport */
            background-color: #f0f2f5; /* Цвет фона для всего приложения */
        }

        /* Стиль нижней панели */
        #bottomBar {
            flex-shrink: 0; /* Панель не должна сжиматься по высоте */
        }

        #bottomBarLeft {
            position: absolute;
            left: 10px;
        }

        .bottom-bar-link {
            display: inline-flex;
            align-items: center;
            background: none;
            border: none;
            padding: 0;
            margin: 0;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.25;
            color: #1f2933;
            cursor: pointer;
            font-family: inherit;
            text-decoration: none;
        }

        .bottom-bar-link:hover,
        .bottom-bar-link:focus-visible {
            text-decoration: underline;
        }

        .bottom-bar-checkbox {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: #1f2933;
            cursor: pointer;
        }

        .bottom-bar-checkbox input {
            width: 16px;
            height: 16px;
        }

        /* Основная область содержимого */
        .main-content-area {
            display: flex;
            flex-grow: 1; /* Занимает всю оставшуюся высоту до нижней панели */
            overflow: hidden; /* Скрывает переполнение */
        }

        /* Панель свойств как плавающее окно */
.properties-panel {
    position: absolute;
    left: 10px;
    bottom: 43px;
    width: 270px;
    background-color: #ffffff;
    padding: 11px;
    box-sizing: border-box;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 12px;
    font-style: normal;
}

.model-tree-panel {
    position: absolute;
    left: 10px;
    top: calc(37px + 10px + 10px);
    bottom: calc(43px + 225px + 10px);
    width: 270px;
    background-color: #ffffff;
    padding: 11px;
    box-sizing: border-box;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 12px;
}
.model-tree-panel h3 {
    font-size: 14px;
    margin-bottom: 11px;
            color: #333;
            border-bottom: 1px solid #ccc;
            padding-bottom: 5px;
            font-weight: 400;
            font-style: normal;
        }
.model-tree-panel ul {
    list-style: none;
    padding-left: 11px;
    margin: 0;
}
.model-tree-panel ul ul {
    padding-left: 22px;
}
        .tree-item {
            cursor: pointer;
            display: flex;
            align-items: center;
        }
.tree-leaf-text {
    display: inline-block;
    padding: 1px 0;
            color: #333;
            transition: font-weight 0.1s ease-in-out;
        }
        .tree-leaf-text--interactive {
            cursor: pointer;
        }
        .tree-leaf-text--unused {
            color: #9ca3af;
            cursor: default;
        }
        .tree-leaf-text--active,
        .tree-leaf-text--interactive:hover {
            font-weight: 600;
        }
        .tree-leaf-text--selected {
            font-weight: 600;
            color: #2563eb;
        }
        .tree-arrow {
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 4px 0 4px 6px;
            border-color: transparent transparent transparent #529774;
            margin-right: 4px;
        }
        .tree-arrow.down {
            transform: rotate(90deg);
        }
        .tree-arrow.invisible {
            visibility: hidden;
        }

        /* Контейнер для холста (рабочая область) */
        .canvas-container {
            flex-grow: 1;
            position: relative; /* Для позиционирования тултипа и контекстного меню */
            overflow: hidden;
            background: #F7F7F7;
            width: 100%;
        }

        /* Сам холст */
        canvas {
            display: block;
            background-color: #F7F7F7;
            cursor: default;
            width: 100%; /* Холст занимает 100% ширины своего родителя */
            height: 100%; /* Холст занимает 100% высоты своего родителя */
        }

        .notes-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 2;
        }

        .canvas-note {
            position: absolute;
            display: inline-block;
            background-color: rgba(247, 247, 247, 0.6);
            color: #000;
            font-family: 'Roboto', sans-serif;
            font-weight: 400;
            line-height: 1.2;
            padding: 4px 6px;
            box-sizing: border-box;
            pointer-events: auto;
            user-select: text;
        }

        .canvas-note__text {
            min-width: 2ch;
            min-height: 1em;
            outline: none;
            border: none;
            background: transparent;
            white-space: pre-wrap;
        }

        .element-legend {
            position: absolute;
            right: 16px;
            bottom: 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 6px 8px;
            background-color: transparent;
            color: #343a40;
            font-size: 12px;
            line-height: 1.2;
            pointer-events: none;
            user-select: none;
        }

        .element-legend__item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .element-legend__line {
            width: 32px;
            border-top: 2px solid #343a40;
        }

        .element-legend__line--truss {
            border-top-style: dashed;
        }

        .element-legend__label {
            font-weight: 400;
        }

        /* Стили для элементов внутри панелей */
.properties-panel h3 {
    font-size: 14px;
    margin-bottom: 11px;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    font-weight: 400;
    font-style: normal;
}
.properties-panel h4 {
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}
.property-group {
    margin-bottom: 11px;
    padding: 7px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
}
.property-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 300;
    color: #555;
    font-size: 12px;
}
.property-group input[type="number"] {
    width: 53px;
    height: 18px;
    padding-left: 2px;
    padding-right: 2px;
    border: 0.5px solid #000;
    border-radius: 4px;
    background-color: #FFFFFF;
    font-size: 12px;
    line-height: 12px;
    margin-bottom: 7px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}
        .property-group input[type="number"]:focus {
            outline: none;
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
            border-color: #000;
        }

.coordinates-row {
    display: flex;
    align-items: center;
    gap: 7px;
}
        .coordinates-row label {
            display: inline-block;
            margin-bottom: 0;
        }
        .coordinates-row input[type="number"] {
            margin-bottom: 0;
        }
.property-group .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.property-group .checkbox-group input[type="checkbox"] {
    margin-right: 6px;
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 0.5px solid #000000;
    background-color: #FFFFFF;
    position: relative;
}
.property-group .checkbox-group input[type="checkbox"]:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background-color: #529774;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.properties-panel select {
    width: 100%;
    height: 18px;
    padding-left: 2px;
    padding-right: 15px;
    border-radius: 4px;
    background-color: #FFFFFF;
    border: 0.5px solid #000000;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #000000;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'><path d='M0 0 L4 6 L8 0 Z' fill='%23529774'/></svg>");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 6px 4px;
}
        .properties-panel select:focus {
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        }
.properties-panel select option {
    padding: 5px;
    border: 0;
    font-size: 12px;
    color: #000000;
}

        .load-case-selector {
            margin-bottom: 12px;
        }

        .load-case-selector label {
            display: block;
            margin-bottom: 4px;
            font-weight: 300;
            color: #555555;
            font-size: 12px;
        }

        .load-case-select {
            width: 100%;
            height: 18px;
            padding-left: 2px;
            padding-right: 15px;
            border-radius: 4px;
            background-color: #FFFFFF;
            border: 0.5px solid #000000;
            font-family: 'Roboto', sans-serif;
            font-weight: 300;
            font-size: 12px;
            line-height: 12px;
            color: #000000;
            appearance: none;
            -moz-appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'><path d='M0 0 L4 6 L8 0 Z' fill='%23529774'/></svg>");
            background-repeat: no-repeat;
            background-position: right 2px center;
            background-size: 6px 4px;
        }

        .load-case-select:focus {
            outline: none;
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        }

        .beam-load-case-selector {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 9px;
        }

        .beam-load-case-selector label {
            font-weight: 300;
            color: #555555;
            font-size: 12px;
        }

        .properties-panel .beam-load-case-select {
            width: 99px;
            height: 18px;
            padding-left: 2px;
            padding-right: 2px;
            border-radius: 4px;
            background-color: #FFFFFF;
            border: 0.5px solid #000000;
            font-family: 'Roboto', sans-serif;
            font-weight: 300;
            font-size: 12px;
            line-height: 12px;
            color: #000000;
            appearance: none;
            -moz-appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'><path d='M0 0 L4 6 L8 0 Z' fill='%23529774'/></svg>");
            background-repeat: no-repeat;
            background-position: right 2px center;
            background-size: 6px 4px;
        }

        .properties-panel .beam-load-case-select:focus {
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        }

        .properties-panel button {
            width: 48px;
            height: 17px;
            border-radius: 8px;
            background-color: #BABCBB;
            color: #000000;
            border: none;
            cursor: pointer;
            font-family: 'Roboto', sans-serif;
            font-weight: 300;
            font-size: 12px;
        }
        .properties-panel button:hover {
            border: 0.3px solid #000000;
        }
        .properties-panel button:active {
            background-color: #E1F6EF;
            color: #529774;
            border: 0.3px solid #529774;
        }

        /* Панели для отображения результатов */
        .analysis-panel {
            position: absolute;
            right: 10px;
            width: 200px;
            background-color: #FFFFFF;
            border-radius: 10px;
            box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25);
            padding: 14px 16px;
            box-sizing: border-box;
            font-family: 'Roboto', sans-serif;
            font-weight: 300;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 11;
        }

        .results-panel {
            top: calc(50% - 255px);
            height: 300px;
        }

        .stresses-panel {
            top: calc(50% + 55px);
            height: 200px;
        }

        .analysis-panel__title {
            margin: 0;
            font-size: 1.2em;
            font-weight: 400;
            color: #000000;
        }

        .analysis-panel__divider {
            height: 1px;
            background-color: #BABCBB;
            transform: scaleY(0.5);
            transform-origin: center;
        }

        .analysis-panel__field {
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 12px;
            font-weight: 300;
            color: #000000;
        }

        .analysis-panel__label {
            font-size: 12px;
            font-weight: 300;
        }

        .analysis-panel__select {
            width: 100%;
            height: 28px;
            padding: 2px 24px 2px 6px;
            border-radius: 6px;
            background-color: #FFFFFF;
            border: 0.5px solid #000000;
            font-family: 'Roboto', sans-serif;
            font-weight: 300;
            font-size: 13px;
            color: #000000;
            appearance: none;
            -moz-appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'><path d='M0 0 L4 6 L8 0 Z' fill='%23529774'/></svg>");
            background-repeat: no-repeat;
            background-position: right 6px center;
            background-size: 8px 6px;
        }

        .analysis-panel__select:focus {
            outline: none;
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        }

        .analysis-panel__subtitle {
            font-size: 14px;
            font-weight: 300;
            color: #000000;
            margin-top: 4px;
        }

        .analysis-panel__button-row {
            display: flex;
            gap: 8px;
        }

        .analysis-panel__button {
            flex: 1;
            height: 28px;
            border-radius: 8px;
            border: 0.5px solid #529774;
            background-color: #FFFFFF;
            color: #529774;
            font-family: 'Roboto', sans-serif;
            font-weight: 300;
            font-size: 12px;
            cursor: pointer;
            transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }

        .analysis-panel__button:hover {
            border-color: #3A6F56;
            color: #3A6F56;
        }

        .analysis-panel__button:focus-visible {
            outline: none;
        }

        .analysis-panel__button.active {
            background-color: #E1F6EF;
            border-color: #529774;
            color: #2F5D46;
            box-shadow: 0 0 0 1px rgba(82, 151, 116, 0.25);
        }

        .stresses-panel__labels {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            column-gap: 12px;
            font-size: 14px;
            font-weight: 300;
            color: #000000;
            text-transform: lowercase;
        }

        .stresses-panel__label {
            text-align: left;
        }

        .stresses-panel__content {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            column-gap: 12px;
            flex: 1;
            align-items: center;
        }

        .stresses-panel__fiber {
            display: grid;
            grid-template-rows: repeat(4, max-content);
            justify-items: center;
            row-gap: 8px;
            flex: 1;
        }

        .stresses-panel__fiber-square {
            width: 32px;
            height: 32px;
            border: 3px solid #BABCBB;
            border-radius: 4px;
        }

        .stresses-panel__divider {
            width: 1px;
            align-self: stretch;
            background-color: #BABCBB;
            transform: scaleX(0.5);
            transform-origin: center;
        }

        .stresses-panel__components {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;
            flex: 1;
        }

        .analysis-radio {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 300;
            color: #000000;
        }

        .analysis-radio--with-text {
            justify-content: flex-start;
        }

        .analysis-radio--extrem {
            margin-top: -2px;
        }

        .analysis-radio input[type="radio"] {
            appearance: none;
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border: 1px solid #529774;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background-color: #FFFFFF;
            cursor: pointer;
        }

        .analysis-radio input[type="radio"]::after {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #529774;
            transform: scale(0);
            transition: transform 0.15s ease-in-out;
        }

        .analysis-radio input[type="radio"]:checked::after {
            transform: scale(1);
        }

        .analysis-radio input[type="radio"]:focus-visible {
            outline: 2px solid #E1F6EF;
            outline-offset: 2px;
        }

        .analysis-radio__text {
            font-size: 12px;
            font-weight: 300;
        }

        .sigma-label {
            display: inline-flex;
            align-items: flex-end;
            gap: 2px;
        }

        .sigma-symbol {
            font-size: 12px;
            font-weight: 400;
        }

        .sigma-subscript {
            font-size: 8px;
            font-weight: 300;
            line-height: 1;
        }

        .properties-panel button.restriction-icon-btn {
            width: 30px;
            height: 30px;
            border-radius: 4px;
            padding: 4px;
            box-sizing: border-box;
            background-color: #ffffff;
        }

        .restriction-icon-btn {
            background-color: #ffffff;
            border: 1px solid #cbd5e0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease-in-out;
            margin: 3px;
        }
        .restriction-icon-btn:hover {
            background-color: #d1d9e2;
            border-color: #a0aec0;
        }
        .restriction-icon-btn.active {
            background-color: #a7d9f7; /* Цвет активной кнопки */
            border-color: #3490dc;
            box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.4);
        }
        .restriction-icon-btn img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* Убедиться, что SVG вписывается */
        }
        .restriction-icon-btn .no-restriction-text {
            font-size: 2em; /* Размер символа "Ø" */
            font-weight: bold;
            color: #666;
        }

        .restriction-grid {
            display: grid;
            grid-template-columns: repeat(3, max-content);
            gap: 7px;
            align-items: start;
        }
        .restriction-icons-col {
            display: flex;
            flex-direction: column;
        }
        .restriction-checkboxes-col {
            display: flex;
            flex-direction: column;
        }
                
        .visibility-toggle-btn {
            background-color: #e2e8f0;
            border: 1px solid #cbd5e0;
            border-radius: 6px;
            padding: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            transition: background-color 0.2s, border-color 0.2s;
            margin: 2px;
        }
        .visibility-toggle-btn:hover {
            background-color: #d1d9e2;
            border-color: #a0aec0;
        }
        .visibility-toggle-btn.active {
            background-color: #a7d9f7;
            border-color: #3490dc;
            box-shadow: 0 0 0 3px rgba(52,144,220,0.4);
        }
        .visibility-toggle-btn img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
                .load-input-group {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            gap: 8px; /* Добавляем отступ между элементами группы */
        }
        .load-input-group input[type="number"] {
            margin-bottom: 0;
        }
        .load-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            border-bottom: 1px solid #eee;
        }
        .load-item:last-child {
            border-bottom: none; /* Убираем границу у последнего элемента */
        }
        .load-item button {
            margin-left: 8px;
        }

        .beam-loads-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 8px;
        }

        .beam-loads-coord-system {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;
            align-items: center;
            gap: 12px;
        }

        .beam-loads-coord-system label {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: #4a5568;
        }

        .beam-loads-coord-system input[type="radio"] {
            margin: 0;
        }

        /* Стили для элементов управления в нижней панели */
        #bottomBar label,
        #bottomBar input,
        #bottomBar select,
        #bottomBar button {
            font-family: 'Roboto', sans-serif;
            font-weight: 300; /* Roboto Light */
            font-size: 13px;
            color: #000000;
        }

        #bottomBar input,
        #bottomBar select {
            width: 60px;
            height: 23px;
            padding-left: 3px;
            padding-right: 3px;
            border-radius: 4px;
            background-color: #FFFFFF;
            border: 0.5px solid #000000;
            font-size: 14px;
            line-height: 15px;
        }

        #bottomBar select {
            appearance: none;
            -moz-appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'><path d='M0 0 L4 6 L8 0 Z' fill='%23529774'/></svg>");
            background-repeat: no-repeat;
            background-position: right 3px center;
            background-size: 8px 6px;
        }

        #bottomBar select option {
            padding: 7px;
            border: 0;
            font-size: 14px;
            color: #000000;
        }

        #bottomBar select:focus {
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        }

        #bottomBar input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            margin-right: 3px;
            border: 0.5px solid #000000;
            background-color: #FFFFFF;
            position: relative;
        }

        #bottomBar input[type="checkbox"]:checked::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 9px;
            height: 9px;
            background-color: #529774;
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }

        #bottomBar button { 
            background-color: #007bff; 
            color:white; 
            cursor: pointer; 
            border-color: #007bff;
        }
#bottomBar button:hover { background-color: #0056b3; border-color: #0056b3; }
#bottomBar #clearCanvasBtn { background-color: #dc3545; border-color: #dc3545;}
#bottomBar #clearCanvasBtn:hover { background-color: #c82333; border-color: #bd2130;}

/* Контейнер элементов нижней панели */
#bottomBarContent {
    display: flex;
    align-items: center;
    gap: 10px;
}

        /* Стили для тултипа и контекстного меню */
        .tooltip {
            position: absolute;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 6px 10px;
            border-radius: 4px;
            font-size: 14px;
            pointer-events: none;
            white-space: pre;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        .context-menu {
            position: absolute;
            background-color: white;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
            padding: 5px 0;
            z-index: 1001;
            min-width: 160px;
        }
        .context-menu-item {
            padding: 8px 15px;
            cursor: pointer;
            font-size: 14px;
        }
        .context-menu-item.disabled {
            color: #9ca3af;
            cursor: not-allowed;
            pointer-events: none;
        }
        .context-menu-item:hover {
            background-color: #f0f0f0;
        }
        .context-menu-item.disabled:hover {
            background-color: inherit;
        }

        /* Модальное окно */
        #materialsModal {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.6);
            /*display: none;*/
            align-items: center;
            justify-content: center;
            z-index: 50;
        }
        #materialsModal > div { /* Внутренний контейнер модального окна */
            background-color: #fff;
            padding: 0.7rem;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
            max-width: none;
            height: 450px;
            overflow: hidden;
            position: relative;
        }

        #sectionsModal {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.6);
            align-items: center;
            justify-content: center;
            z-index: 50;
        }
        #sectionsModal > div {
            background-color: #fff;
            padding: 2rem;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        #clearAllModal {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.6);
            /* display removed to allow Tailwind's hidden class */
            align-items: center;
            justify-content: center;
            z-index: 50;
        }
        #clearAllModal > .clear-modal-content {
            position: relative;
            background-color: #FFFFFF;
            border-radius: 10px;
            box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25);
            font-family: 'Roboto', sans-serif;
            font-weight: 300;
            font-size: 14px;
            padding: 20px;
            text-align: center;
            width: 250px;
        }
        #clearAllModal .modal-close {
            position: absolute;
            top: 8px;
            right: 8px;
            background: none;
            border: none;
            font-size: 16px;
            cursor: pointer;
        }
        #clearAllModal .modal-buttons {
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        #clearAllModal .modal-button {
            width: 64px;
            height: 22px;
            border-radius: 10px;
            background-color: #BABCBB;
            color: #000000;
            border: none;
            cursor: pointer;
        }
        #clearAllModal .modal-button:hover {
            border: 0.3px solid #000000;
        }
        #clearAllModal .modal-button:active {
            background-color: #E1F6EF;
            color: #529774;
            border: 0.3px solid #529774;
        }


.floating-panel {
    position: fixed;
    top: 10px;
    background-color: #FFFFFF;
    border-radius: 10px;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 12px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25);
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    box-sizing: border-box;
    height: 37px;
    display: flex;
    align-items: center;
    z-index: 101;
}
.floating-panel.left {
    width: 390px;
    left: 10px;
}

.floating-panel.center {
    width: 570px;
    left: 61%;
    transform: translateX(-50%);
}
.floating-panel.right {
    width: 150px;
    right: 10px;
    background-color: #F3F4F6;
}

.left-panel-logo {
    height: 90%;
    width: auto;
}

.left-panel-separator {
    margin-left: 10px;
    margin-right: 10px;
    width: 1px;
    height: 100%;
    background-color: #BABCBB;
}

.left-panel-input {
    margin-left: 0px;
    width: 135px;
    background-color: #FFFFFF;
    border: none;
    font-size: 12px;
    outline: none;
}

.project-controls {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: 7px;
    color: #4A4A4A;
    font-size: 12px;
}

.undo-redo-group {
    display: flex;
    gap: 5px;
}

.undo-redo-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid #BABCBB;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #333333;
}

.undo-redo-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.undo-redo-btn:not(:disabled):hover {
    background-color: #E1F6EF;
    border-color: #529774;
    color: #529774;
}

.file-menu {
    position: relative;
    margin-left: 0px;
    padding: 0;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
}

.file-menu .menu-title {
    color: #000000;
    padding: 0 8px;
}

.file-menu:hover .menu-title {
    color: #529774;
    text-decoration: underline;
    text-decoration-thickness: 9%;
}

.file-menu:hover {
    background-color: #E1F6EF;
}

.file-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    
}

.file-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25);
    padding: 8px 4px 8px 4px;
    width: max-content;   /* ширина равна самой широкой строке */
    white-space: nowrap;  /* чтобы элементы не переносились */
    z-index: 102;
}

.file-menu:hover .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.file-menu .dropdown-menu div {
    padding: 4px 0;
    white-space: nowrap;
    text-align: center;
}

.file-menu .dropdown-menu div.disabled {
    color: #9CA3AF;
    pointer-events: none;
    cursor: default;
}

.file-menu .dropdown-menu div.disabled:hover {
    background-color: transparent;
    color: #9CA3AF;
    text-decoration: none;
}

.file-menu .dropdown-menu div:hover {
    background-color: #E1F6EF;
    color: #529774;
    text-decoration: underline;
    text-decoration-thickness: 9%;
}

.file-menu .dropdown-menu div.active {
    background-color: #a7d9f7;
    color: #529774;
    text-decoration: underline;
    text-decoration-thickness: 9%;
}

.share-menu {
    margin-left: 0px;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
}

.share-menu .menu-title {
    color: #000000;
    padding: 0 8px;
}

.share-menu:hover .menu-title {
    color: #529774;
    text-decoration: underline;
    text-decoration-thickness: 9%;
}

.share-menu:hover {
    background-color: #E1F6EF;
}

.disabled-menu {
    pointer-events: none;
    cursor: default;
}

.disabled-menu .menu-title {
    color: #9CA3AF;
    text-decoration: none;
}

.disabled-menu:hover {
    background-color: transparent;
}

.share-menu.disabled-menu .menu-title {
    color: #9CA3AF;
}

.account-menu.disabled-menu .account-logo {
    background-color: #E5E7EB;
    border-color: #9CA3AF;
    color: #9CA3AF;
}

.account-menu.disabled-menu .dropdown-menu {
    display: none;
}

.account-menu {
    position: relative;
    margin-left: 0px;
    padding: 0 8px;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
}

.account-menu:hover {
    background-color: #E1F6EF;
}

.account-logo {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background-color: #E1F6EF;
    border: 0.5px solid #529774;
    color: #529774;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

.account-menu:hover .account-logo {
    border-width: 1.5px;
}

.account-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25);
    padding: 8px 4px 8px 4px;
    width: max-content;
    white-space: nowrap;
    z-index: 102;
}

.account-menu:hover .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.account-menu .dropdown-menu div {
    padding: 4px 0;
    white-space: nowrap;
    text-align: center;
}

.account-menu .dropdown-menu div:hover {
    background-color: #E1F6EF;
    color: #529774;
    text-decoration: underline;
    text-decoration-thickness: 9%;
}

.account-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 10px;
    background-color: transparent;
}

/* Getting started modal */
#helpModal .help-modal-content {
    width: 1000px;
    max-width: calc(100vw - 48px);
    height: calc(100vh * 0.7);
    max-height: calc(100vh - 80px);
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #1f2933;
}

#helpModal .help-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #1f2933;
}

#helpModal .help-modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    gap: 24px;
}

#helpModal .help-modal-window-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

#helpModal .help-modal-layout {
    display: flex;
    gap: 24px;
    flex: 1;
    overflow: hidden;
}

#helpModal .help-tab-list {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 8px;
}

#helpModal .help-tab-button {
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    padding: 8px 12px;
    border: none;
    border-left: 3px solid transparent;
    background-color: transparent;
    color: #1f2933;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#helpModal .help-tab-button:hover,
#helpModal .help-tab-button:focus-visible {
    background-color: #EEF2FF;
    outline: none;
}

#helpModal .help-tab-button.active {
    border-color: #5A8DEE;
    background-color: #F5F7FA;
}

#helpModal .help-tab-panels {
    flex: 1;
    border-radius: 12px;
    background-color: #F9FAFB;
    padding: 24px;
    overflow-y: auto;
}

#helpModal .help-tab-panel {
    display: none;
}

#helpModal .help-tab-panel.active {
    display: block;
}

#helpModal .help-tab-panel h3 {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 16px 0;
}

#helpModal .help-tab-panel p {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

#helpModal .help-feature-list {
    list-style: disc;
    margin: 0 0 12px 18px;
    padding-left: 0;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
}

#helpModal .help-feature-list li {
    margin: 0;
}

#helpModal .help-feature-list li::marker {
    content: "• ";
    font-weight: 400;
    color: #000000;
}

#helpModal .help-section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

#helpModal .help-section-column {
    flex: 1 1 0;
}

#helpModal .help-section-row--status .help-section-column--image {
    flex: 0 0 260px;
}

#helpModal .help-section-row--status .help-section-column--text {
    flex: 1 1 320px;
}

#helpModal .help-section-column--image {
    display: flex;
    justify-content: center;
}

#helpModal .help-section-column--image img {
    max-width: 300px;
}

#materialsModal .modal-content {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
}
#materialsModal .modal-content h2,
#materialsModal .modal-content h3 {
    font-weight: 400;
    font-size: 1.2em;
}
#materialsModal .standard-button {
    min-width: 64px;
    height: 22px;
    padding: 0 10px;
    border-radius: 10px;
    background-color: #BABCBB;
    color: #000000;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
}
#materialsModal .standard-button:hover {
    border: 0.3px solid #000000;
}
#materialsModal .standard-button:active {
    background-color: #E1F6EF;
    color: #529774;
    border: 0.3px solid #529774;
}

#materialsModal .modal-close {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    color: #000000;
}

/* Styles for Section Manager modal */
#sectionsModal .modal-content {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
}

#sectionsModal .section-select-control {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

#customSectionBlock .space-y-3 > div + div {
    margin-top: 0.4rem;
}

#customSectionBlock label,
#customSectionBlock input,
#customSectionBlock input::placeholder {
    font-size: 13px;
}

#customSectionBlock input {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

#sectionsModal .modal-content h2,
#sectionsModal .modal-content h3 {
    font-weight: 400;
    font-size: 1.2em;
}

#sectionPropertiesBlock .space-y-2 > :not([hidden]) ~ :not([hidden]) {
    margin-top: calc(0.5rem / 1.5);
}

#sectionPropertiesBlock .space-y-2 .mb-2 {
    margin-bottom: calc(0.5rem / 1.5);
}

#sectionPropertiesBlock .section-properties-list {
    font-size: 13px;
    line-height: 1.2;
}

#sectionsModal .standard-button { 
    min-width: 64px;
    height: 22px;
    padding: 0 10px;
    border-radius: 10px;
    background-color: #BABCBB;
    color: #000000;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
}

#sectionsModal .standard-button:hover {
    border: 0.3px solid #000000;
}

#sectionsModal .standard-button:active {
    background-color: #E1F6EF;
    color: #529774;
    border: 0.3px solid #529774;
}

#sectionsModal #modelSectionList .model-section-item {
    transition: background-color 0.2s ease;
}

#sectionsModal #modelSectionList .model-section-item:hover {
    background-color: #F3F4F6;
}

#sectionsModal #modelSectionList .model-section-item.selected {
    background-color: #E1F6EF;
    border-color: #529774;
}

#sectionsModal #sectionUnitToggle.active,
#sectionsModal #sectionUnitToggle[aria-pressed="true"] {
    background-color: #529774;
    color: #ffffff;
    border: 0.3px solid #529774;
}

#sectionsModal .modal-close {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    color: #000000;
}

#loadCasesModal .modal-close {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    color: #000000;
}

#loadCasesModal,
#loadCasesModal * {
    font-family: 'Roboto', sans-serif;
}

#loadCasesModal button,
#loadCasesModal input,
#loadCasesModal select,
#loadCasesModal label,
#loadCasesModal li,
#loadCasesModal span,
#loadCasesModal p,
#loadCasesModal div,
#loadCasesModal ul,
#loadCasesModal ol {
    font-size: 12px;
    font-weight: 300;
}

#loadCasesModal h2,
#loadCasesModal h3,
#loadCasesModal .load-case-title,
#loadCasesModal .load-combination-title {
    font-size: 14px;
    font-weight: 400;
}

.load-cases-name-input {
    width: 75%;
    flex-grow: 0;
    font-size: 12px;
    font-weight: 300;
}

#materialsModal #materialSelectionBlock {
    flex: 0 0 150px;
    width: 150px;
}
#materialsModal #selectedMaterialBlock {
    flex: 0 0 260px;
    width: 260px;
}
#materialsModal #modelMaterialsBlock {
    flex: 0 0 260px;
    width: 260px;
}
#materialsModal #customMaterialBlock {
    flex: 0 0 210px;
    width: 210px;
}
#materialsModal #closeMaterialsModalBtnBottom {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}


























/* Elastic support inputs */
.property-group .checkbox-group input.elastic-input {
    width: 60px;
    margin-left: 8px;
}
.property-group .checkbox-group input.elastic-input:disabled {
    background-color: #e5e7eb;
}
.property-group .checkbox-group .k-unit {
    margin-left: 4px;
    font-size: 0.8em;
}
#connectorsModal .connectors-dialog {
    position: relative;
    width: 240px;
    min-width: 240px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 24px 16px 16px;
}

#connectorsModal .connectors-close {
    position: absolute;
    top: 8px;
    left: 8px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
}

#connectorsModal .connectors-close:hover {
    color: #111827;
}

#connectorsModal .connectors-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#connectorsModal .connectors-node-label {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

#connectorsModal .connectors-stiffness-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#connectorsModal .connectors-input {
    width: 100px;
    padding: 3px 6px;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    background-color: #f9fafb;
    font-size: 13px;
    color: #111827;
}

#connectorsModal .connectors-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background-color: #ffffff;
}

#connectorsModal .connectors-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#connectorsModal .connectors-my-label {
    font-size: 13px;
    color: #374151;
}

#connectorsModal .connectors-unit {
    margin-left: auto;
    font-size: 12px;
    color: #4b5563;
}

#connectorsModal .connectors-attached-label {
    font-size: 13px;
    color: #1f2937;
    margin-top: 4px;
}

#connectorsModal .connectors-elements-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    min-height: 56px;
    align-items: center;
}

#connectorsModal .connectors-radio-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #1f2937;
}

#connectorsModal .connectors-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

#connectorsModal .connectors-delete {
    background-color: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#connectorsModal .connectors-delete:disabled {
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: not-allowed;
}

#connectorsModal .connectors-delete:not(:disabled):hover {
    background-color: #dc2626;
    color: #ffffff;
}

#connectorsModal .connectors-apply {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

#connectorsModal .connectors-apply:hover:not(:disabled) {
    background-color: #1d4ed8;
}

#connectorsModal .connectors-apply:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Custom notification modal styles */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.notification-modal.show {
    opacity: 1;
}

.notification-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.notification-modal.show .notification-content {
    transform: scale(1);
}

.notification-icon {
    margin: 0 auto 20px;
    width: 48px;
    height: 48px;
}

.notification-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.notification-message {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.notification-button {
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-button:hover {
    background-color: #059669;
}

.notification-button:active {
    transform: scale(0.98);
}

/* Mobile device warning styles */
.mobile-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.mobile-warning-content {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.mobile-warning-icon {
    margin: 0 auto 24px;
    width: 64px;
    height: 64px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.mobile-warning-title {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.mobile-warning-message {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.mobile-warning-subtitle {
    margin: 0 0 28px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.mobile-warning-subtitle strong {
    color: #3b82f6;
    font-weight: 600;
}

.mobile-warning-button {
    display: inline-block;
    background-color: #0077b5;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-bottom: 20px;
}

.mobile-warning-button:hover {
    background-color: #006399;
}

.mobile-warning-button:active {
    transform: scale(0.98);
}

.mobile-warning-footer {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}

