*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: ui-sans-serif, system-ui, sans-serif;
    overflow: hidden;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#map {
    position: fixed;
    inset: 0;
    z-index: 0;
    cursor: crosshair;
}
#map .maplibregl-canvas,
#map .maplibregl-canvas-container.maplibregl-interactive {
    cursor: crosshair !important;
}

#map-magnifier {
    position: fixed;
    z-index: 1;
    width: 176px;
    height: 176px;
    border: 3px solid rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(var(--lens-x, -999px), var(--lens-y, -999px), 0);
    transition: opacity 120ms ease;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(17, 24, 39, 0.35);
    background: #e5e7eb;
}
#map-magnifier.visible {
    opacity: 1;
}
#map-magnifier-map {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    transform-origin: 0 0;
}
#map-magnifier .maplibregl-control-container {
    display: none;
}
.map-magnifier-reticle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        linear-gradient(
            to right,
            transparent calc(50% - 0.5px),
            rgba(17, 24, 39, 0.62) 50%,
            transparent calc(50% + 0.5px)
        ),
        linear-gradient(
            to bottom,
            transparent calc(50% - 0.5px),
            rgba(17, 24, 39, 0.62) 50%,
            transparent calc(50% + 0.5px)
        );
}
.map-magnifier-reticle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(17, 24, 39, 0.75);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.35);
}

#app {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
#app.editor-night {
    color-scheme: dark;
}
.map-loading {
    position: fixed;
    left: calc(50vw + var(--map-panel-half-width, 0px));
    top: calc(50vh + 22px);
    z-index: 2;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.map-loading-text {
    display: block;
    font-family: "Honk", system-ui, sans-serif;
    font-size: 24pt;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-shadow: 0 3px 12px rgba(15, 23, 42, 0.22);
    transform-origin: center;
    animation: map-loading-wiggle 200ms ease-in-out infinite;
}
.map-loading-fade-enter-active,
.map-loading-fade-leave-active {
    transition: opacity 140ms ease;
}
.map-loading-fade-enter-from,
.map-loading-fade-leave-to {
    opacity: 0;
}
.map-loading-fade-enter-to,
.map-loading-fade-leave-from {
    opacity: 1;
}
@keyframes map-loading-wiggle {
    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }
    20% {
        transform: translateX(-1.5px) rotate(-1deg);
    }
    40% {
        transform: translateX(1.5px) rotate(1deg);
    }
    60% {
        transform: translateX(-1px) rotate(-0.6deg);
    }
    80% {
        transform: translateX(1px) rotate(0.6deg);
    }
}
.toolbar {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e5e7eb;
}
.toolbar-title {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #111827;
    white-space: nowrap;
}
.toolbar-title-brand {
    font-family: "Honk", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}
.toolbar-title-rest {
    font-size: 14px;
    font-weight: 400;
}
.toolbar-spacer {
    flex: 1;
}
.toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.toolbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 29px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
}
.toolbar-icon-btn:hover:not(:disabled) {
    background: #f9fafb;
    color: #111827;
}
.toolbar-icon-btn.active {
    background: #374151;
    border-color: #374151;
    color: #fff;
}
.toolbar-download-btn {
    height: 29px;
}
.floating-controls {
    position: fixed;
    top: 56px;
    right: 12px;
    z-index: 3;
    width: min(320px, calc(100vw - 24px));
    pointer-events: all;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.floating-global-transform {
    padding: 8px 10px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
}
.style-select {
    width: 100%;
}
.style-drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    color: #6b7280;
    background: rgba(249, 250, 251, 0.78);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.style-drop-zone.active,
.style-drop-zone:hover {
    border-color: #6b7280;
    background: rgba(243, 244, 246, 0.94);
    color: #374151;
}
.style-drop-zone input {
    display: none;
}
.floating-message {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}
.toolbar select,
.floating-controls select {
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
    color: #374151;
}
.btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: #111827;
    color: #fff;
}
.btn-primary:hover:not(:disabled) {
    background: #000;
}
.btn-primary:disabled {
    background: #9ca3af;
    color: #111827;
    cursor: default;
    opacity: 1;
}
.btn-ghost {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
}
.btn-ghost:hover {
    background: #f9fafb;
}
.btn-ghost.active {
    background: #374151;
    border-color: #374151;
    color: #fff;
}
.btn-ghost:disabled {
    opacity: 0.45;
    cursor: default;
}
.btn-ghost:hover:disabled {
    background: transparent;
}
.action-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--action-icon) center / contain no-repeat;
    mask: var(--action-icon) center / contain no-repeat;
}
.action-icon-loupe {
    --action-icon: url("/assets/layer-icons/magnifying_glass.svg");
}
.action-icon-reset {
    --action-icon: url("/assets/layer-icons/chainsaw.svg");
}
.mode-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}
.mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 27px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid #d1d5db;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
.mode-icon-btn {
    width: 34px;
    padding: 0;
}
.mode-icon {
    display: inline-block;
    width: 17px;
    height: 17px;
    background: currentColor;
    -webkit-mask: var(--mode-icon) center / contain no-repeat;
    mask: var(--mode-icon) center / contain no-repeat;
}
.mode-icon-day {
    --mode-icon: url("/assets/layer-icons/sun-svgrepo-com.svg");
}
.mode-icon-night {
    --mode-icon: url("/assets/layer-icons/moon-svgrepo-com.svg");
}
.mode-btn:last-child {
    border-right: 0;
}
.mode-btn:hover:not(:disabled) {
    background: #f9fafb;
    color: #111827;
}
.mode-btn.active {
    background: #374151;
    color: #fff;
}
.mode-btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
}
.icon-btn:hover:not(:disabled) {
    background: #f9fafb;
    color: #111827;
}
.icon-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.icon-btn svg {
    width: 13px;
    height: 13px;
    stroke-width: 1.8;
}
.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 22px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #9ca3af;
    cursor: grab;
    flex-shrink: 0;
    font:
        14px/1 ui-monospace,
        monospace;
}
.drag-handle:not(.disabled):hover {
    background: #eef0f3;
    color: #4b5563;
}
.drag-handle.disabled {
    opacity: 0.25;
    cursor: default;
}
.drag-handle:active {
    cursor: grabbing;
}

.main {
    flex: 1;
    display: flex;
    overflow: hidden;
}
.map-spacer {
    flex: 1;
    pointer-events: none;
}

.side-panel {
    pointer-events: all;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.layer-panel {
    border-right: 1px solid #e5e7eb;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.04);
    position: relative;
}
.panel-title {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f9fafb;
    flex-shrink: 0;
}
.editor-tabbar {
    height: 36px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    padding: 0 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}
.editor-tabs {
    display: inline-flex;
    align-items: end;
    gap: 3px;
    height: 100%;
}
.editor-tab {
    align-self: end;
    height: 30px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    background: transparent;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.editor-tab:hover:not(:disabled) {
    color: #111827;
    background: rgba(255, 255, 255, 0.7);
}
.editor-tab.active {
    background: #fff;
    border-color: #e5e7eb;
    color: #111827;
}
.editor-tab:disabled {
    opacity: 0.45;
    cursor: default;
}
.editor-tab-actions,
.json-bottom-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.editor-tab-actions {
    align-self: center;
}
.invisible {
    visibility: hidden;
    pointer-events: none;
}
.mini-btn {
    padding: 2px 7px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}
.mini-btn-primary,
.mini-btn.active {
    background: #374151;
    border-color: #374151;
    color: #fff;
}
.mini-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 22px;
    padding: 0;
}
.mini-icon-btn .action-icon {
    width: 13px;
    height: 13px;
}
.mini-btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.editor-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 11px;
    flex-shrink: 0;
}
.editor-status {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.layer-filter-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 7px 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.layer-filter {
    width: 100%;
    height: 28px;
    padding: 4px 28px 4px 9px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    outline: none;
    color: #374151;
    background: #fff;
    font-size: 12px;
}
.layer-filter:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.14);
}
.layer-filter-key {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font:
        11px/1 ui-monospace,
        monospace;
    pointer-events: none;
}
.layer-list-scroll {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.editor-pane {
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #fff;
    flex-shrink: 0;
}
.resize-h {
    height: 5px;
    flex-shrink: 0;
    cursor: row-resize;
    background: #e5e7eb;
}
.resize-h:hover,
.resize-h.resizing {
    background: #9ca3af;
}
.panel-resize-v {
    width: 5px;
    flex-shrink: 0;
    cursor: col-resize;
    pointer-events: all;
    background: transparent;
}
.panel-resize-v:hover,
.panel-resize-v.resizing {
    background: rgba(0, 0, 0, 0.07);
}
.editor-scroll {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.json-editor-block {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.json-editor {
    flex: 1;
    min-height: 180px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    resize: none;
    outline: none;
    font:
        11px/1.45 ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;
    color: #111827;
    background: #fff;
    tab-size: 2;
}
.json-hint,
.json-status,
.json-error {
    padding: 7px 12px;
    font-size: 11px;
    border-bottom: 1px solid #f3f4f6;
}
.json-hint {
    color: #9ca3af;
}
.json-status {
    color: #047857;
    background: #ecfdf5;
}
.json-error {
    color: #b91c1c;
    background: #fef2f2;
}

.panel-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}
.panel-hint svg {
    opacity: 0.35;
}

.global-transform-block {
    padding: 8px 12px 9px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}
.global-transform-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.global-control-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}
.global-control-row label {
    color: #374151;
    font-size: 11px;
    font-family: ui-monospace, monospace;
}
.global-control-row input[type="range"] {
    width: 100%;
    accent-color: #6b7280;
}
.global-control-row input[type="range"]:disabled {
    opacity: 0.45;
}
.global-control-row span {
    color: #6b7280;
    font-size: 10px;
    font-family: ui-monospace, monospace;
    text-align: right;
}

.layer-block {
    border-bottom: 1px solid #f3f4f6;
}
.layer-name {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    background: #f9fafb;
    padding: 5px 12px;
    border-bottom: 1px solid #f3f4f6;
}
.layer-type {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.empty-props {
    font-size: 11px;
    color: #9ca3af;
    padding: 8px 12px;
}

.prop-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 12px;
}
.prop-name {
    flex: 1;
    font-size: 11px;
    color: #374151;
    font-family: ui-monospace, monospace;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prop-expr {
    font-size: 10px;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 3px;
    padding: 2px 5px;
    flex-shrink: 0;
}
.prop-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}
.color-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
input[type="color"] {
    width: 28px;
    height: 20px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    cursor: pointer;
    background: none;
}
input[type="range"] {
    appearance: none;
    height: 14px;
    background: transparent;
    accent-color: #9ca3af;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 999px;
    background: #e5e7eb;
}
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    margin-top: -3.5px;
    border: 1px solid #9ca3af;
    border-radius: 50%;
    background: #f9fafb;
}
input[type="range"]::-moz-range-track {
    height: 3px;
    border-radius: 999px;
    background: #e5e7eb;
}
input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 1px solid #9ca3af;
    border-radius: 50%;
    background: #f9fafb;
}
input[type="range"]:disabled {
    opacity: 0.42;
}
.hex-val {
    font-size: 10px;
    font-family: ui-monospace, monospace;
    color: #6b7280;
    width: 50px;
}
.alpha-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.alpha-wrap input[type="range"] {
    width: 68px;
    accent-color: #6b7280;
}
.alpha-val {
    font-size: 10px;
    font-family: ui-monospace, monospace;
    color: #6b7280;
    width: 30px;
    text-align: right;
}
.row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.layer-list {
    display: flex;
    flex-direction: column;
}
.layer-row {
    display: grid;
    grid-template-columns: 20px 24px 24px 18px minmax(0, 1fr) 62px;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 8px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    cursor: pointer;
}
.layer-row:hover {
    background: #f9fafb;
}
.layer-row.selected {
    background: #eef0f3;
    box-shadow: inset 3px 0 0 #374151;
}
.layer-row.hit {
    background: #f3f4f6;
}
.layer-row.dragging {
    opacity: 0.45;
}
.layer-row.drop-target {
    box-shadow: inset 0 2px 0 #6b7280;
}
.layer-row.hidden-layer .layer-row-name,
.layer-row.hidden-layer .layer-row-type,
.layer-row.zoom-muted .layer-row-name,
.layer-row.zoom-muted .layer-row-type {
    color: #c4c9d1;
}
.layer-row.zoom-muted:not(.selected):not(.hit) {
    background: #fafafa;
}
.layer-kind-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    color: #6b7280;
    background: currentColor;
    -webkit-mask: var(--kind-icon) center / contain no-repeat;
    mask: var(--kind-icon) center / contain no-repeat;
    justify-self: center;
}
.kind-way {
    --kind-icon: url("/assets/layer-icons/way.svg");
}
.kind-text,
.kind-symbol-text-icon {
    --kind-icon: url("/assets/layer-icons/text.svg");
}
.kind-polygon {
    --kind-icon: url("/assets/layer-icons/polygon.svg");
}
.kind-point,
.kind-symbol {
    --kind-icon: url("/assets/layer-icons/pin.svg");
}
.kind-symbol-icon {
    --kind-icon: url("/assets/layer-icons/icon.svg");
}
.kind-raster,
.kind-background {
    --kind-icon: url("/assets/layer-icons/circle.svg");
}
.layer-row.hidden-layer .layer-kind-icon,
.layer-row.zoom-muted .layer-kind-icon {
    color: #c4c9d1;
}
.layer-row-name {
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.layer-row-type {
    font-size: 10px;
    color: #9ca3af;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #374151;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}
.hit-badge.empty {
    background: transparent;
    color: transparent;
}

.panel-footer {
    border-top: 1px solid #e5e7eb;
    padding: 7px 12px;
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}
.edits-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    margin-right: 4px;
    vertical-align: middle;
}

#app.editor-night .toolbar,
#app.editor-night .side-panel,
#app.editor-night .editor-pane,
#app.editor-night .layer-filter-wrap,
#app.editor-night .global-transform-block,
#app.editor-night .layer-row,
#app.editor-night .editor-tab.active {
    background: #111827;
}
#app.editor-night .toolbar,
#app.editor-night .floating-controls {
    background: rgba(17, 24, 39, 0.94);
}
#app.editor-night .toolbar,
#app.editor-night .floating-controls,
#app.editor-night .layer-panel,
#app.editor-night .editor-pane,
#app.editor-night .panel-title,
#app.editor-night .layer-name,
#app.editor-night .panel-footer,
#app.editor-night .editor-tabbar,
#app.editor-night .editor-tab.active,
#app.editor-night .editor-bottom-bar,
#app.editor-night .layer-filter-wrap,
#app.editor-night .global-transform-block,
#app.editor-night .layer-row,
#app.editor-night .layer-block {
    border-color: #273244;
}
#app.editor-night .toolbar-title,
#app.editor-night .prop-name,
#app.editor-night .global-control-row label,
#app.editor-night .layer-filter,
#app.editor-night .layer-row-name {
    color: #d1d5db;
}
#app.editor-night .toolbar-check {
    color: #d1d5db;
}
#app.editor-night .toolbar select,
#app.editor-night .floating-controls select,
#app.editor-night .mode-toggle,
#app.editor-night .btn-ghost,
#app.editor-night .icon-btn,
#app.editor-night .toolbar-icon-btn,
#app.editor-night .mini-btn,
#app.editor-night .layer-filter,
#app.editor-night .json-editor {
    background: #111827;
    border-color: #374151;
    color: #d1d5db;
}
#app.editor-night .mode-btn {
    border-color: #374151;
    color: #d1d5db;
}
#app.editor-night .mode-btn.active,
#app.editor-night .btn-ghost.active,
#app.editor-night .toolbar-icon-btn.active,
#app.editor-night .mini-btn-primary,
#app.editor-night .mini-btn.active {
    background: #d1d5db;
    color: #111827;
    border-color: #d1d5db;
}
#app.editor-night .btn-primary {
    background: #f9fafb;
    color: #111827;
}
#app.editor-night .btn-primary:hover:not(:disabled) {
    background: #d1d5db;
}
#app.editor-night .btn-primary:disabled {
    background: #4b5563;
    border-color: #4b5563;
    color: #f9fafb;
    opacity: 1;
}
#app.editor-night .btn-ghost:hover,
#app.editor-night .mode-btn:hover:not(:disabled),
#app.editor-night .icon-btn:hover:not(:disabled),
#app.editor-night .toolbar-icon-btn:hover:not(:disabled),
#app.editor-night .editor-tab:hover:not(:disabled),
#app.editor-night .drag-handle:not(.disabled):hover {
    background: #1f2937;
    color: #f9fafb;
}
#app.editor-night .panel-title,
#app.editor-night .editor-tabbar,
#app.editor-night .layer-name,
#app.editor-night .prop-expr {
    background: #1f2937;
    color: #9ca3af;
}
#app.editor-night .editor-tab.active {
    color: #d1d5db;
}
#app.editor-night .layer-row:hover,
#app.editor-night .layer-row.hit {
    background: #1f2937;
}
#app.editor-night .layer-row.selected {
    background: #273244;
    box-shadow: inset 3px 0 0 #d1d5db;
}
#app.editor-night .layer-row.zoom-muted:not(.selected):not(.hit) {
    background: #0f172a;
}
#app.editor-night .layer-kind-icon {
    color: #9ca3af;
}
#app.editor-night .layer-row.hidden-layer .layer-kind-icon,
#app.editor-night .layer-row.zoom-muted .layer-kind-icon {
    color: #4b5563;
}
#app.editor-night .panel-hint,
#app.editor-night .empty-props,
#app.editor-night .layer-filter-key,
#app.editor-night .hex-val,
#app.editor-night .alpha-val,
#app.editor-night .global-transform-head,
#app.editor-night .global-control-row span,
#app.editor-night .json-hint,
#app.editor-night .layer-row-type,
#app.editor-night .panel-footer,
#app.editor-night .editor-bottom-bar {
    color: #9ca3af;
}
#app.editor-night .json-status {
    color: #86efac;
    background: #123524;
    border-color: #1f5b3b;
}
#app.editor-night .json-error {
    color: #fca5a5;
    background: #3f1d1d;
    border-color: #5b2626;
}
#app.editor-night .hit-badge {
    background: #d1d5db;
    color: #111827;
}
#app.editor-night .hit-badge.empty {
    background: transparent;
    color: transparent;
}
#app.editor-night .style-drop-zone {
    background: rgba(31, 41, 55, 0.68);
    border-color: #374151;
    color: #9ca3af;
}
#app.editor-night .style-drop-zone.active,
#app.editor-night .style-drop-zone:hover {
    background: rgba(55, 65, 81, 0.68);
    border-color: #6b7280;
    color: #d1d5db;
}
#app.editor-night .floating-message {
    color: #9ca3af;
}
#app.editor-night input[type="range"]::-webkit-slider-runnable-track {
    background: #273244;
}
#app.editor-night input[type="range"]::-webkit-slider-thumb {
    border-color: #6b7280;
    background: #111827;
}
#app.editor-night input[type="range"]::-moz-range-track {
    background: #273244;
}
#app.editor-night input[type="range"]::-moz-range-thumb {
    border-color: #6b7280;
    background: #111827;
}
#app.editor-night .resize-h {
    background: #273244;
}
#app.editor-night .resize-h:hover,
#app.editor-night .resize-h.resizing {
    background: #374151;
}
#app.editor-night .panel-resize-v:hover,
#app.editor-night .panel-resize-v.resizing {
    background: rgba(255, 255, 255, 0.07);
}
