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

body,
html {
    -webkit-user-select: none;
    background-color: #050508;
    color: #e0e0e0;
    font-family: system-ui, -apple-system, sans-serif;
    height: 100%;
    overflow: hidden;
    user-select: none;
    width: 100%
}

#starmap {
    cursor: grab;
    display: block;
    height: 100%;
    touch-action: none;
    width: 100%
}

#crosshair {
    height: 24px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    z-index: 5
}

#crosshair::before,
#crosshair::after {
    background-color: #fff6;
    content: '';
    position: absolute
}

#crosshair::before {
    height: 1px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%
}

#crosshair::after {
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1px
}

#ui-overlay {
    left: 15px;
    pointer-events: none;
    position: absolute;
    text-shadow: 1px 1px 3px #000c;
    top: 15px;
    z-index: 10
}

#ui-location-text,
#ui-time-text {
    color: #ffffffe6;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px
}

#coord-val {
    background: #0a0f1999;
    border: 1px solid #ffffff1a;
    border-radius: 4px;
    font: 13px monospace;
    padding: 4px 8px;
    pointer-events: none;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10
}

#control-panel {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: #0f121cd9;
    border: 1px solid #ffffff1a;
    border-radius: 8px;
    bottom: 20px;
    box-shadow: 0 8px 32px #0006;
    left: 20px;
    padding: 18px;
    position: absolute;
    width: 280px;
    z-index: 10
}

.control-group {
    margin-bottom: 12px
}

.control-group:last-child {
    margin-bottom: 0
}

.panel-divider {
    background: #ffffff1a;
    border: 0;
    height: 1px;
    margin: 14px 0
}

label {
    color: #b0b5c0;
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px
}

.checkbox-label {
    align-items: center;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0
}

.checkbox-label input[type="checkbox"] {
    accent-color: #46a0dc;
    cursor: pointer;
    height: 16px;
    margin-right: 10px;
    width: 16px
}

.names-dropdown-wrapper {
    margin-left: 26px;
    margin-top: 8px
}

select,
input[type="number"],
input[type="datetime-local"] {
    background-color: #1c1d29;
    border: 1px solid #ffffff26;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    padding: 8px 12px;
    transition: border-color .2s ease;
    width: 100%
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 12px;
    cursor: pointer;
    padding-right: 32px
}

select:hover,
input[type="number"]:hover,
input[type="datetime-local"]:hover {
    border-color: #ffffff4d
}

select:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus {
    border-color: #46a0dc;
    outline: none
}

select option {
    background-color: #151620;
    color: #fff
}

.custom-inputs {
    background: #0003;
    border: 1px solid #ffffff0d;
    border-radius: 6px;
    margin-top: 8px;
    padding: 10px
}

.input-row {
    display: flex;
    gap: 10px
}

.input-row div {
    flex: 1
}

::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1)
}

#info-drawer {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: #0c0e14f2;
    border-left: 1px solid #ffffff1a;
    box-shadow: -4px 0 20px #00000080;
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    position: absolute;
    right: -400px;
    top: 0;
    transition: right .3s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 400px;
    z-index: 20
}

#info-drawer.open {
    right: 0
}

#close-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 15px
}

#close-btn:hover {
    color: #fff
}

#obj-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-right: 30px
}

.drawer-detail {
    border-bottom: 1px solid #ffffff0d;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 8px
}

.drawer-detail strong {
    color: #46a0dc;
    display: inline-block;
    width: 85px
}

.drawer-desc {
    color: #aaa;
    font-size: 13.5px;
    line-height: 1.5;
    margin-top: 16px
}

@media (max-width: 600px) {
    #control-panel {
        bottom: 10px;
        left: 10px;
        padding: 15px;
        width: calc(100% - 20px)
    }

    #info-drawer {
        border-left: none;
        right: -100%;
        width: 100%
    }
}