body {
    font-family: Arial, sans-serif;
    margin: 40px;
    background: #f7f7f7;
}

.container {
    background: #fff;
    padding: 24px 32px 32px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 16px #0001;
    max-width: 98vw;
    max-height: 98vh;
    margin: auto;
    overflow: auto;
    box-sizing: border-box;
}

h1 {
    text-align: left;
    margin-bottom: 24px;
}

.main-layout {
    display: flex;
    gap: 32px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.sidebar {
    min-width: 240px;
    max-width: 280px;
    background: #f3f6fa;
    border-radius: 8px;
    padding: 24px 18px 18px 18px;
    box-shadow: 0 1px 8px #0001;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: fit-content;
    box-sizing: border-box;
}

.property-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.property-list label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap: 1px;
}

.property-list input {
    padding: 3px 6px;
    font-size: 13px;
    border: 1px solid #bbb;
    border-radius: 4px;
    width: 100%;
}

.property-row-grid {
    display: grid;
    grid-template-columns: 50px 60px 50px 60px;
    align-items: center;
    gap: 8px;
}

.actions {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-small {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-small:hover {
    background: #125ea7;
}

canvas {
    display: block;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 6px;
    box-shadow: 0 1px 8px #0002;
    max-width: 100vw;
    max-height: 90vh;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .inputs {
        flex-direction: column;
        align-items: stretch;
    }
}
