    main {
        position: relative;
        height: calc(100vh - 60px);
        overflow: hidden;
    }
    #axis-reference {
        position: absolute;
        bottom: 10px;
        left: 70px;
        pointer-events: none;
    }
    #ruler-corner,
    #ruler-corner-right {
        position: absolute;
        width: 30px;
        height: 30px;
        background: #000;
        z-index: 11;
        pointer-events: none;
    }

    #ruler-corner {
        top: 0;
        left: 40px;
    }

    #ruler-corner-right {
        top: 0;
        right: 380px;
    }

    #horizontal-ruler-canvas,
    #vertical-ruler-canvas,
    #vertical-ruler-canvas-right {
        position: absolute;
        background: #000;
        z-index: 11;
        pointer-events: none;
    }

    #horizontal-ruler-canvas {
        top: 0;
        left: 70px;
        width: calc(100% - 70px - 30px - 380px);
        height: 30px;
    }

    #vertical-ruler-canvas {
        top: 30px;
        left: 40px;
        width: 30px;
        height: calc(100% - 30px);
    }

    #vertical-ruler-canvas-right {
        top: 30px;
        right: 380px;
        width: 30px;
        height: calc(100% - 30px);
    }

    #properties-panel {
        position: absolute;
        top: 0px;
        right: 0px;
        background-color: rgba(255, 255, 255, 0.9);
        width: 360px;
        border: 1px solid #ccc;
        padding: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 60px);
        overflow: auto;
        z-index: 10;
    }

    #properties-panel h3 {
        margin: 0 0 10px;
        font-size: 1.1rem;
    }

    .properties-source {
        margin: 0 0 12px;
        font-size: 0.68rem;
        color: #5d5d5d;
        font-style: italic;
    }

    .property-accordion {
        border: 1px solid #d9d9d9;
        border-radius: 8px;
        background: #f8f8f8;
        margin-bottom: 8px;
        overflow: hidden;
    }

    .property-accordion summary {
        list-style: none;
        cursor: pointer;
        padding: 8px 10px;
        font-weight: 600;
        color: #222;
        background: #efefef;
        user-select: none;
    }

    .property-accordion summary::-webkit-details-marker {
        display: none;
    }

    .property-accordion[open] summary {
        border-bottom: 1px solid #d9d9d9;
        background: #e8edf7;
    }

    .property-group {
        display: grid;
        gap: 6px;
        padding: 8px 8px 10px;
        background: #fff;
    }

    .property-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 6px;
    }

    .property-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .property-meta {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }

    .property-name {
        font-size: 0.78rem;
        font-weight: 600;
        color: #222;
    }

    .property-description {
        font-size: 0.6rem;
        color: #666;
        line-height: 1.2;
        margin-top: 2px;
    }

    .property-value {
        font-size: 0.76rem;
        font-weight: 700;
        color: #1b4d8c;
        text-align: right;
        white-space: nowrap;
        min-width: 96px;
    }

    #grid-canvas {
        position: absolute;
        top: 30px;
        left: 70px;
        width: calc(100% - 70px - 30px - 360px);
        height: calc(100% - 30px);
    }
    #toolbar {
        position: absolute;
        top: 0px;
        right: 0px;
        left: 0px;
        background-color: #282c3b;
        width: 30px;
        border: unset;
        padding: 5px;
        height: calc(100vh - 60px);
        overflow: auto;
        z-index: 10;
    }
    .toolbar-btn-square {
        width: 30px;
        height: 30px;
        margin: 0;
        padding: 0;
    }
    @media (max-width: 600px) {
        #section-mobile-menu {
            pointer-events: auto;
            max-width: calc(100vw - 8px);
        }

        #section-mobile-menu .btn-default,
        #section-mobile-menu .main-btn {
            display: flex !important;
            min-height: 36px;
            width: 100%;
            white-space: nowrap;
            touch-action: manipulation;
        }

        html,
        body {
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }

        header {
            width: 100%;
            height: 40px;
            min-height: 40px;
            padding: 4px 8px;
            gap: 6px;
            overflow: hidden;
        }

        #left-group,
        #modify-section-buttons,
        #result-section-buttons,
        #right-group {
            min-width: 0;
        }

        #left-group {
            flex: 1 1 auto;
            overflow: hidden;
        }

        #modify-section-buttons,
        #result-section-buttons {
            gap: 6px !important;
            max-width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            white-space: nowrap;
            scrollbar-width: thin;
        }

        #modify-section-buttons .logo img,
        #result-section-buttons .logo img {
            max-height: 30px;
            width: auto;
        }

        #modify-section-buttons .btn-default,
        #result-section-buttons .btn-default {
            flex: 0 0 auto;
            min-height: 32px;
            max-height: none;
            padding: 6px 8px;
            font-size: 11px;
        }

        #right-group {
            flex: 0 0 auto;
            gap: 5px;
        }

        #right-group #clear-storage-btn,
        #right-group #subscription {
            display: none;
        }

        #right-group #compute-param-btn {
            min-height: 32px;
            padding: 6px 8px;
            font-size: 11px;
            white-space: nowrap;
        }

        #right-group #user-icon {
            flex: 0 0 32px;
            width: 32px;
            height: 32px;
        }

        main {
            height: calc(100dvh - 40px);
            min-height: 0;
            overflow: hidden;
        }

        #ruler-corner,
        #ruler-corner-right,
        #horizontal-ruler-canvas,
        #vertical-ruler-canvas,
        #vertical-ruler-canvas-right {
            display: none;
        }

        #grid-canvas {
            top: 0;
            left: 0;
            width: 100%;
            height: 55%;
            touch-action: none;
        }

        #toolbar {
            top: 8px;
            left: 8px;
            right: auto;
            width: auto;
            height: auto;
            display: flex;
            flex-direction: row;
            gap: 5px;
            padding: 0;
            background: transparent;
        }

        .toolbar-btn-square {
            width: 38px;
            height: 38px;
            font-size: 1rem;
        }

        #axis-reference {
            left: 8px;
            bottom: 47%;
            width: 58px;
            height: 58px;
        }

        #properties-panel {
            top: 55%;
            right: 0;
            width: 100%;
            height: 45%;
            max-height: 45%;
            padding: 10px 12px 24px;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        #properties-panel h3 {
            margin-bottom: 6px;
            font-size: 1rem;
        }

        .properties-source {
            margin-bottom: 8px;
            font-size: 0.72rem;
            line-height: 1.3;
        }

        .property-accordion {
            margin-bottom: 6px;
        }

        .property-accordion summary {
            padding: 9px 10px;
            font-size: 0.85rem;
        }

        .property-group {
            gap: 5px;
            padding: 8px;
        }

        .property-row {
            align-items: flex-start;
            gap: 6px;
            padding-bottom: 6px;
        }

        .property-name {
            font-size: 0.78rem;
        }

        .property-description {
            font-size: 0.68rem;
            line-height: 1.25;
        }

        .property-value {
            min-width: 78px;
            font-size: 0.75rem;
            white-space: normal;
            overflow-wrap: anywhere;
        }
    }