.humtron-robots-view {
    max-width: 1240px;
    margin-inline: auto;
    padding: clamp(20px, 4vw, 56px) clamp(14px, 4vw, 48px) 48px;
    color: #edf5ff;
}

.humtron-robots-view a {
    color: #9ad0ff;
    text-underline-offset: .2em;
}

.humtron-robots-view :focus-visible {
    outline: 2px solid #90c8ff;
    outline-offset: 3px;
}

.humtron-robots-header {
    margin-block-end: clamp(20px, 4vw, 38px);
}

.humtron-robots-header a {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    min-height: 44px;
    font-size: .9rem;
}

.humtron-robots-header h1 {
    margin: .4rem 0 0;
    color: #edf5ff;
    font-size: clamp(1.7rem, 5.4vw, 3.35rem);
    letter-spacing: -.045em;
    line-height: 1.13;
}

.humtron-robots-intro {
    margin: .6rem 0 0;
    color: #bdcce1;
    line-height: 1.55;
}

.humtron-robots-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.humtron-robots-filters[open] { flex: 1 0 100%; }

.humtron-robots-filters summary {
    min-height: 44px;
    padding: .6em 1em;
    border: 1px solid #4879b8;
    border-radius: 999px;
    background: #09162a;
    cursor: pointer;
    width: fit-content;
}

.humtron-robots-filter-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
    gap: 12px;
    align-items: end;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #264365;
    border-radius: 12px;
    background: #07101e;
}

.humtron-robots-filter-fields label {
    display: block;
    margin-bottom: 5px;
    color: #bdcce1;
    font-size: .9rem;
}

.humtron-robots-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1 / -1;
}

.humtron-robots-year-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
    gap: 10px;
}

.humtron-robots-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr);
    gap: clamp(18px, 3vw, 36px);
    align-items: start;
}

.humtron-robots-map-area > p:first-child {
    margin: 0 0 12px;
    color: #bdcce1;
    font-size: .95rem;
    line-height: 1.5;
}

#humtron-robots-map {
    width: 100%;
    height: clamp(390px, 62vh, 610px);
    overflow: hidden;
    border: 1px solid #29486c;
    border-radius: 13px;
    background: #09162a;
    font-family: inherit;
}

#humtron-robots-map .leaflet-tile-pane {
    filter: invert(.93) hue-rotate(180deg) saturate(.64) brightness(.85) contrast(1.06);
}

#humtron-robots-map :is(.leaflet-bar, .leaflet-popup-content-wrapper, .leaflet-popup-tip) {
    border-color: #4879b8;
    background: #09162a;
    color: #edf5ff;
}

#humtron-robots-map .leaflet-bar a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-color: #2e4c70;
    background: #09162a;
    color: #edf5ff;
}

#humtron-robots-map .leaflet-bar a:hover {
    background: #102847;
}

#humtron-robots-map .leaflet-bar .leaflet-disabled {
    color: #7990ac;
}

#humtron-robots-map .leaflet-control-attribution {
    max-width: 100%;
    background: #09162a;
    color: #edf5ff;
    font-size: .72rem;
    line-height: 1.6;
}

#humtron-robots-map .leaflet-popup-close-button {
    color: #9ad0ff;
}

.humtron-mobility-ground { --pin-color: #398bf6; }
.humtron-mobility-air { --pin-color: #a38aff; }
.humtron-mobility-water { --pin-color: #31b1b9; }

.humtron-robots-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: #bdcce1;
    font-size: .83rem;
}

.humtron-robots-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.humtron-robots-legend li::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pin-color);
    content: '';
}

.humtron-robots-marker::before,
.humtron-robots-marker::after {
    position: absolute;
    display: block;
    content: '';
}

.humtron-robots-marker::before {
    top: 5px;
    left: 3px;
    width: 22px;
    height: 22px;
    transform: rotate(-45deg);
    border: 2px solid #edf5ff;
    border-radius: 50% 50% 50% 0;
    background: var(--pin-color, #1967bd);
    box-shadow: 0 2px 9px #000b;
}

.humtron-robots-marker::after {
    top: 13px;
    left: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #edf5ff;
}

.humtron-robots-marker-draft::before {
    background: #9ad0ff;
}

.humtron-robots-marker-draft::after {
    background: #09162a;
}

#humtron-robots-map .humtron-robots-tooltip {
    border: 1px solid #4879b8;
    background: #09162a;
    color: #edf5ff;
    white-space: normal;
}

#humtron-robots-map .humtron-robots-tooltip::before {
    border-top-color: #4879b8;
}

.humtron-robots-preview {
    width: max-content;
    max-width: min(205px, 55vw);
    padding: 2px 2px 0;
    overflow-wrap: anywhere;
}

.humtron-robots-preview p {
    margin: .3rem 0;
    white-space: pre-wrap;
}

.humtron-robots-preview strong {
    display: block;
    color: #9ad0ff;
}

.humtron-robots-preview-model {
    font-weight: 600;
}

.humtron-robots-preview-mobility { color: #bdcce1; }

.humtron-robots-preview .humtron-robot-qr-image {
    display: block;
    width: min(100%, 112px);
    height: auto;
    margin-top: .5rem;
    border-radius: 6px;
}

.humtron-robots-preview-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-weight: 600;
}

.humtron-robots-map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-block-start: 12px;
}

.humtron-robots-map-actions a {
    display: inline-flex;
    min-height: 44px;
    margin-inline-start: auto;
    align-items: center;
    font-size: .83rem;
}

.humtron-robots-view button {
    min-height: 44px;
    padding: .5em 1em;
    border: 1px solid #4879b8;
    border-radius: 999px;
    background: #09162a;
    color: #edf5ff;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

.humtron-robots-view button:hover {
    background: #102847;
}

.humtron-robots-view button:disabled {
    opacity: .6;
    cursor: default;
}

.humtron-robots-submission {
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid #264365;
    border-radius: 13px;
    background: #07101e;
}

.humtron-robots-submission h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.humtron-robots-submission label {
    display: block;
    margin-block: 14px 6px;
    font-size: .9rem;
    font-weight: 600;
}

.humtron-robots-tools select,
.humtron-robots-submission :is(input:not([type="hidden"], [type="checkbox"]), textarea, select) {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid #38577d;
    border-radius: 7px;
    background: #050c16;
    color: #edf5ff;
    font: inherit;
    font-size: 1rem;
}

.humtron-robots-view :is(#humtron-robots-add, #humtron-robots-continue) {
    background: #153051;
}

.humtron-robots-view :is(#humtron-robots-add, #humtron-robots-continue):hover {
    background: #1e416d;
}

.humtron-robots-submission textarea {
    resize: vertical;
}

.humtron-robots-submission .humtron-robots-autonomy {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #38577d;
    border-radius: 7px;
    font-weight: 400;
    cursor: pointer;
}

.humtron-robots-autonomy input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #9ad0ff;
}

.humtron-robots-submission button[type="submit"] {
    width: 100%;
    margin-block-start: 14px;
    background: #153051;
}

.humtron-robots-submission button[type="submit"]:hover {
    background: #1e416d;
}

.humtron-robots-note,
.humtron-robots-location,
.humtron-robots-status {
    margin: .6em 0 0;
    color: #bdcce1;
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.5;
}

.humtron-robots-status:empty {
    margin: 0;
}

.humtron-robots-status,
.humtron-robots-location {
    color: #c9e5ff;
}

@media (max-width: 750px) {
    .humtron-robots-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #humtron-robots-map {
        height: clamp(300px, 54vh, 470px);
        height: clamp(300px, 54svh, 470px);
    }
}

@media (max-width: 380px) {
    .humtron-robots-map-actions a {
        margin-inline-start: 0;
    }
}

.humtron-robots-view {
    --ink:#102746; --muted:#425b78; --link:#1355a0; --line:#b9cde5;
    --panel:#f4f8fe; --hover:#e5effd; --primary:#195aa6; --focus:#196bd0;
    color:var(--ink); color-scheme:light;
}
.humtron-robots-view a, .humtron-robots-view a:visited {color:var(--link)}
.humtron-robots-view :focus-visible {outline-color:var(--focus)}
.humtron-robots-header h1 {color:var(--ink)}
.humtron-robots-intro,.humtron-robots-legend,.humtron-robots-map-area>p:first-child,
.humtron-robots-filter-fields label,.humtron-robots-note,.humtron-robots-preview-mobility {color:var(--muted)}
.humtron-robots-location,.humtron-robots-status {color:#234c7c}
.humtron-robots-filter-fields,.humtron-robots-submission {background:var(--panel);border-color:var(--line)}
.humtron-robots-view button,.humtron-robots-filters summary,.humtron-robots-submission .humtron-robots-autonomy {
    color:var(--ink);background:#fff;border-color:#92aed0
}
.humtron-robots-view button:hover,.humtron-robots-filters summary:hover {background:var(--hover)}
.humtron-robots-view :is(#humtron-robots-add,#humtron-robots-continue,#humtron-robots-filter-apply),
.humtron-robots-submission button[type=submit] {background:var(--primary);border-color:var(--primary);color:#fff}
.humtron-robots-view :is(#humtron-robots-add,#humtron-robots-continue,#humtron-robots-filter-apply):hover,
.humtron-robots-submission button[type=submit]:hover {background:#114785}
.humtron-robots-tools select,.humtron-robots-submission :is(input:not([type=hidden],[type=checkbox]),textarea,select) {
    color:var(--ink);background:#fff;border-color:#92aed0
}
.humtron-robots-view :is(input,textarea)::placeholder {color:var(--muted);opacity:1}
.humtron-robots-autonomy input {accent-color:var(--primary)}
#humtron-robots-map {background:#edf4fc;border-color:#a5bfdb}
#humtron-robots-map .leaflet-tile-pane {filter:none}
#humtron-robots-map :is(.leaflet-bar,.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-control-attribution,.humtron-robots-tooltip) {
    background:#fff;color:var(--ink);border-color:var(--line)
}
#humtron-robots-map .leaflet-bar a {background:#fff;color:var(--ink);border-color:var(--line)}
#humtron-robots-map .leaflet-bar a:hover {background:var(--hover)}
#humtron-robots-map .leaflet-bar .leaflet-disabled {color:#6a7e97}
#humtron-robots-map .leaflet-popup-close-button,.humtron-robots-preview strong {color:var(--link)}
#humtron-robots-map .humtron-robots-tooltip::before {border-top-color:var(--line)}
.humtron-mobility-ground {--pin-color:#1b63ba}
.humtron-mobility-air {--pin-color:#6f45bb}
.humtron-mobility-water {--pin-color:#087c83}
.humtron-robots-marker::before {box-shadow:0 2px 6px #0d254e8c}
.humtron-robots-marker-draft::before {background:#123b72}
.humtron-robots-marker-draft::after {background:#fff}
