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

body,
html {
    width: 100%;
    height: 100%;
    background-color: #f9fafb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* overflow: hidden removed to permit standard browser layout panning on small viewports */
}

#appContainer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#geometryCanvas {
    width: 100%;
    height: 75vh;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

#coordsOverlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

#controlsContainer {
    padding: 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#controlsContainer h3 {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

#inputsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.input-field {
    display: flex;
    flex-direction: column;
}

.input-field label {
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-field input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s;
}

.input-field input:focus {
    border-color: #d97706;
}