html,
body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

.app-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 100%;
}

.panel {
    padding: 20px;
    background: #f7f7f5;
    border-right: 1px solid #d8d8d2;
}

.panel h1 {
    margin: 0 0 20px;
    font-size: 24px;
}

.panel label {
    display: block;
    margin-bottom: 14px;
    font-weight: 700;
}

.panel .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel .checkbox input {
    width: auto;
    margin: 0;
}

.panel input,
.panel select,
.panel button {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    font-size: 15px;
}

.panel button {
    cursor: pointer;
    border: 0;
    background: #176b5d;
    color: #fff;
    font-weight: 700;
}

.panel .secondary-button,
.settings-panel .secondary-button {
    background: #ffffff;
    border: 1px solid #176b5d;
    color: #176b5d;
}

.app-quote {
    margin: 16px 0;
    padding-left: 12px;
    border-left: 3px solid #176b5d;
    color: #333;
    font-size: 13px;
    line-height: 1.45;
}

.app-quote p {
    margin: 0 0 10px;
}

.app-quote cite {
    display: block;
    color: #176b5d;
    font-style: normal;
    font-weight: 700;
}

#status {
    min-height: 44px;
    color: #333;
}

.settings-link {
    display: inline-block;
    color: #176b5d;
    font-weight: 700;
}

#map {
    min-height: 100%;
}

.settings-shell {
    min-height: 100%;
    padding: 24px;
    background: #f7f7f5;
}

.settings-panel {
    max-width: 520px;
}

.settings-panel label,
.settings-panel input,
.settings-panel select,
.settings-panel button {
    box-sizing: border-box;
    display: block;
    width: 100%;
}

.settings-panel label {
    margin-bottom: 14px;
    font-weight: 700;
}

.settings-panel input,
.settings-panel select,
.settings-panel button {
    margin-top: 6px;
    padding: 10px;
    font-size: 15px;
}

@media (max-width: 760px) {
    .app-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .panel {
        display: contents;
        border-right: 0;
    }

    .controls {
        order: 1;
        padding: 20px;
        background: #f7f7f5;
        border-bottom: 1px solid #d8d8d2;
    }

    .app-quote {
        order: 3;
        margin: 0;
        padding: 20px;
        border-left: 0;
        border-top: 1px solid #d8d8d2;
        background: #f7f7f5;
    }

    #map {
        order: 2;
        min-height: 65vh;
    }
}
