.controlButton {
    position: fixed;
    padding: 5px 10px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

[hidden] {
    display: none !important;
}

#toggleButton {
    top: 10px;
    right: 10px;
}

#clearButton {
    top: 40px;
    right: 10px;
}

#deleteExistingButton {
    top: 70px;
    right: 10px;
}

.polygonModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: rgba(10, 12, 14, 0.68);
}

.polygonForm {
    width: min(420px, calc(100vw - 32px));
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #3b444d;
    background: #161b20;
    color: #f5f6f7;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.polygonForm h3 {
    margin: 0;
    font-size: 1.25em;
}

.polygonForm label {
    display: grid;
    gap: 6px;
    font-size: 0.9em;
}

.polygonForm input,
.polygonForm select {
    width: 100%;
    border: 1px solid #3b444d;
    background: #0f1215;
    color: #f5f6f7;
    padding: 9px;
}

.polygonForm input:disabled {
    opacity: 0.65;
}

.drawModeOptions {
    display: grid;
    gap: 10px;
}

.drawModeOptions button {
    display: grid;
    gap: 5px;
    width: 100%;
    border: 1px solid #3b444d;
    background: #222a31;
    color: #f5f6f7;
    cursor: pointer;
    padding: 12px;
    text-align: left;
}

.drawModeOptions button:hover {
    background: #2c363f;
}

.drawModeOptions strong,
.drawModeOptions span {
    display: block;
}

.drawModeOptions span {
    color: #c3ccd4;
    font-size: 0.9em;
}

.colorInputs {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 8px;
}

.colorInputs input[type="color"] {
    height: 38px;
    padding: 2px;
}

.polygonActions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.polygonActions button {
    border: 1px solid #3b444d;
    background: #222a31;
    color: #f5f6f7;
    cursor: pointer;
    padding: 8px 12px;
}

#polygonMessage {
    min-height: 18px;
    margin: 0;
    color: #f3cb6b;
    font-size: 0.9em;
}

#deleteTurfSummary {
    margin: 0;
    line-height: 1.4;
}

#deleteTurfMessage {
    min-height: 18px;
    margin: 0;
    color: #f3cb6b;
    font-size: 0.9em;
}

.dangerAction {
    border-color: #733535 !important;
    background: #3a1d20 !important;
    color: #ffd5d5 !important;
}
