body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    padding: 8px 16px;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-subtitle {
    font-size: 0.85em;
    opacity: 0.8;
}

#main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

#toolbar {
    width: 260px;
    border-right: 1px solid #ccc;
    padding: 8px;
    box-sizing: border-box;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#toolbar button {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

#toolbar button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

#editor-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

#svg-container {
    flex: 1;
    background: #eee;
}

#svg-canvas {
    width: 100%;
    height: 100%;
    user-select: none;
}

#bottom-bar {
    padding: 6px 10px;
    background: #f0f0f0;
    border-top: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

#plans-list {
    flex: 0 0 220px;
    border-left: 1px solid #ccc;
    padding: 8px;
    box-sizing: border-box;
    background: #fafafa;
    overflow-y: auto;
}

#plans-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#plans-list li {
    padding: 4px 6px;
    border-radius: 3px;
    cursor: pointer;
}

#plans-list li:hover {
    background: #e0e0e0;
}

#plans-list li.active {
    background: #007bff;
    color: white;
}

input[type="text"] {
    padding: 4px 6px;
    width: 100%;
    box-sizing: border-box;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 8px 0;
}

#properties-panel {
    font-size: 0.85em;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    background: #fff;
}

#properties-panel-label {
    margin-top: 4px;
    display: block;
}

#prop-show-label-wrapper {
    margin-top: 4px;
}

.hint {
    font-size: 0.8em;
    color: #555;
}


