html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #080d18;
    color: #f3f6fb;
}

* {
    box-sizing: border-box;
}

.app-shell {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 330px;
    min-width: 330px;
    padding: 20px;
    overflow-y: auto;
    background: rgba(8, 14, 26, 0.97);
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    z-index: 2;
}

.brand h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.brand p,
.note p {
    margin: 0;
    color: #b8c3d9;
    line-height: 1.45;
}

.panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.panel h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.field-label {
    display: block;
    margin-bottom: 7px;
    color: #c9d5ea;
    font-size: 14px;
}

input,
button {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
    font-size: 14px;
}

input {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
}

input[type="range"] {
    min-height: 28px;
    padding: 0;
    cursor: pointer;
}

.range-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.range-label span {
    color: #ffffff;
    font-weight: 700;
}

button {
    border: 0;
    padding: 10px 12px;
    cursor: pointer;
    background: #2c7df0;
    color: #ffffff;
}

button:hover {
    filter: brightness(1.08);
}

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

.facts {
    margin: 0;
}

.facts div {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.facts div:last-child {
    border-bottom: 0;
}

.facts dt {
    color: #94a5c3;
}

.facts dd {
    margin: 0;
    color: #ffffff;
}

.viewer-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

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

.scene-legend {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: calc(100% - 36px);
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(5, 9, 17, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #dbe6ff;
    font-size: 13px;
}

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

    .sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 46vh;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }
}
