* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
}

.main-content {
    display: flex;
    gap: 25px;
    align-items: stretch;
}

.controls-panel {
    width: 280px;
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
    flex-shrink: 0;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000;
}

textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    resize: vertical;
    min-height: 88px;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: #000;
}

.helper {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #ddd;
    outline: none;
    border-radius: 999px;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: none;
}

#curveValue,
#radiusValue,
#rotationValue,
#fontSizeValue {
    font-size: 13px;
    color: #000;
    width: 60px;
    text-align: right;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 3px 3px;
    background: #fff;
}

#curveValue:focus,
#radiusValue:focus,
#rotationValue:focus,
#fontSizeValue:focus {
    outline: none;
    border-color: #000;
}

.preview-area {
    flex: 1;
    border: 2px dashed #ccc;
    background: #f9f9f9;
    min-width: 0;
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.preview-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#curveSvg {
    width: 100%;
    height: 100%;
}

#curveText {
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0;
}

.preview-meta {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }

    .controls-panel {
        width: 100%;
    }

    .preview-area {
        min-height: 420px;
    }
}
