* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    overflow: hidden;
}

#app {
    width: 100vw;
    height: 100vh;
}

#viewport {
    width: 100%;
    height: 100%;
    position: relative;
}

#canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* HUD Overlay */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

#hud-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.site-logo {
    display: inline-block;
    pointer-events: auto;
}

.site-logo img {
    height: 24px;
    width: auto;
}

#title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#controls-hint {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

#hud-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

#position, #stats {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 8px 12px;
    border-radius: 4px;
}

#position {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.pos-label {
    color: rgba(255,255,255,0.7);
}

.coord-input {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #4fc3f7;
    background: rgba(255,255,255,0.1);
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 2px 6px;
    width: 70px;
    text-align: center;
    transition: all 0.15s ease;
}

.coord-input:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(79,195,247,0.3);
}

.coord-input:focus {
    outline: none;
    background: rgba(79,195,247,0.15);
    border-color: #4fc3f7;
    color: #fff;
}

/* Loading Overlay */
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content h2 {
    color: #fff;
    margin-bottom: 10px;
}

#loading-status {
    color: #888;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

#loading-details {
    font-size: 12px;
    color: #666;
}

/* Start Screen */
#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.start-content {
    text-align: center;
}

.start-content h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 10px;
}

.start-content p {
    color: #888;
    margin-bottom: 30px;
    font-size: 18px;
}

/* Drop Zone */
.drop-zone {
    width: 400px;
    padding: 40px;
    border: 2px dashed #444;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #888;
}

.drop-zone-content svg {
    color: #6366f1;
}

.drop-zone-content p {
    margin: 0;
    color: #ccc;
}

.drop-zone-content .hint {
    font-size: 14px;
    color: #666;
}

.drop-zone input[type="file"] {
    display: none;
}

/* Start Options */
.start-options {
    margin-top: 20px;
}

.modloader-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #aaa;
    font-size: 14px;
}

.modloader-option:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

.modloader-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    cursor: pointer;
}

.modloader-option span {
    user-select: none;
}

.modloader-option .option-hint {
    font-size: 11px;
    color: #666;
    margin-left: 4px;
}

/* Crosshair */
#viewport::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(255,255,255,0.5);
    pointer-events: none;
    font-weight: 100;
}

/* Time/Weather Panel */
#time-panel {
    position: fixed;
    top: 120px;
    left: 20px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 200px;
    z-index: 100;
}

/* Draggable panels */
.draggable-panel {
    position: fixed !important;
    z-index: 100;
    transition: box-shadow 0.2s;
}

.draggable-panel.dragging {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0.95;
}

.panel-header {
    padding: 10px 14px;
    border-bottom: 1px solid #333;
    font-weight: 500;
    color: #fff;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.panel-header:active {
    cursor: grabbing;
}

.panel-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.panel-content {
    padding: 12px 14px;
}

#time-panel-content.collapsed {
    display: none;
}

.time-display {
    text-align: center;
    margin-bottom: 8px;
}

#time-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    font-family: 'Courier New', monospace;
}

#time-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 3px;
    outline: none;
    margin-bottom: 14px;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

#time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#time-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.weather-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-select label {
    font-size: 12px;
    color: #888;
}

#weather-select {
    padding: 8px 10px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

#weather-select:focus {
    outline: none;
    border-color: #6366f1;
}

/* IPL Selection Panel */
#ipl-panel {
    position: fixed;
    top: 120px;
    right: 20px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 280px;
    max-width: 320px;
    z-index: 100;
}

#ipl-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.panel-toggle {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.panel-toggle:hover {
    color: #fff;
}

.panel-toggle.collapsed {
    transform: rotate(-90deg);
}

#ipl-panel-content {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#ipl-panel-content.collapsed {
    max-height: 0;
    padding: 0 14px;
}

.ipl-stats {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    text-align: center;
}

.ipl-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.ipl-btn {
    flex: 1;
    padding: 6px 10px;
    background: #2a2a4a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.ipl-btn:hover {
    background: #3a3a5a;
    border-color: #555;
}

.ipl-btn-primary {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.ipl-btn-primary:hover {
    background: #5558e3;
}

.ipl-search {
    margin-bottom: 10px;
}

.ipl-search input {
    width: 100%;
    padding: 8px 10px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.ipl-search input:focus {
    outline: none;
    border-color: #6366f1;
}

.ipl-search input::placeholder {
    color: #666;
}

.ipl-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a2e;
}

.ipl-list::-webkit-scrollbar {
    width: 6px;
}

.ipl-list::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.ipl-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.ipl-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.ipl-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #2a2a3a;
    cursor: pointer;
    transition: background 0.1s;
}

.ipl-item:last-child {
    border-bottom: none;
}

.ipl-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.ipl-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #6366f1;
}

.ipl-item-info {
    flex: 1;
    min-width: 0;
}

.ipl-item-name {
    font-size: 12px;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ipl-item-count {
    font-size: 10px;
    color: #666;
}

.ipl-item-source {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 6px;
}

.ipl-item-source.text {
    background: #2a4a2a;
    color: #6b9;
}

.ipl-item-source.binary {
    background: #4a2a4a;
    color: #b69;
}

.ipl-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* HUD Top Row */
.hud-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* HUD Buttons */
.hud-btn,
.settings-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.hud-btn:hover,
.settings-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.settings-btn svg {
    transition: transform 0.3s ease;
}

.settings-btn:hover svg {
    transform: rotate(45deg);
}

.hud-btn:hover svg {
    transform: scale(1.1);
}

/* View Mode Buttons */
.view-mode-group {
    display: flex;
    gap: 2px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 2px;
    pointer-events: auto;
}

.view-mode-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.view-mode-btn.active {
    background: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.view-mode-btn svg {
    transition: transform 0.2s;
}

.view-mode-btn:hover svg {
    transform: scale(1.1);
}

/* Prelight Mode Dropdown */
.prelight-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    pointer-events: auto;
    outline: none;
    transition: all 0.2s;
}

.prelight-select:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(99, 102, 241, 0.4);
}

.prelight-select:focus {
    border-color: rgba(99, 102, 241, 0.6);
}

.prelight-select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

/* Modal Base */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    width: 420px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #333;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #2d2d44;
    color: #fff;
}

/* Settings Modal */
.settings-content {
    width: 400px;
}

.settings-content h2 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 8px 0;
    text-align: center;
}

.settings-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
}

.settings-section h3 {
    font-size: 0.75rem;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.setting-row:last-child {
    margin-bottom: 0;
}

.setting-row label {
    font-size: 0.85rem;
    color: #ccc;
}

.setting-row label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #6366f1;
    cursor: pointer;
}

.setting-row label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-group input[type="range"] {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 3px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-group span {
    font-size: 0.8rem;
    color: #888;
    min-width: 40px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Shortcuts Grid */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.shortcut-row kbd {
    background: #2a2a4a;
    border: 1px solid #3d3d5c;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #aaa;
    min-width: 50px;
    text-align: center;
}

.shortcut-row span {
    color: #888;
}

/* Key Bindings */
.keybind-hint {
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.keybind-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keybind-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.keybind-label {
    font-size: 13px;
    color: #ccc;
}

.keybind-btn {
    min-width: 60px;
    padding: 6px 12px;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.keybind-btn:hover {
    background: #2a2a4a;
    border-color: #666;
}

.keybind-btn:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.keybind-btn.listening {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    animation: pulse-border 1s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: #6366f1; }
    50% { border-color: #a5b4fc; }
}

.reset-keybinds-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: #3a2a2a;
    border: 1px solid #5a3a3a;
    border-radius: 4px;
    color: #f88;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-keybinds-btn:hover {
    background: #4a3a3a;
    border-color: #6a4a4a;
}

/* ========== Editor Panel ========== */
#editor-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #444;
    border-radius: 10px;
    min-width: 260px;
    max-width: 300px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.editor-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px 10px 0 0;
    cursor: grab;
    user-select: none;
}

.editor-panel-header:active {
    cursor: grabbing;
}

.editor-panel-header span {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.editor-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.editor-close-btn:hover {
    color: #f44;
}

.editor-panel-content {
    padding: 14px 16px;
}

.editor-info {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 12px;
}

.editor-info div {
    margin-bottom: 4px;
}

.editor-info div:last-child {
    margin-bottom: 0;
}

.editor-info .label {
    color: #888;
    margin-right: 4px;
}

.editor-section {
    margin-bottom: 14px;
}

.editor-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 11px;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.transform-buttons {
    display: flex;
    gap: 6px;
}

.transform-mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    background: #2a2a4a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #aaa;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
}

.transform-mode-btn:hover {
    background: #3a3a5a;
    border-color: #555;
    color: #fff;
}

.transform-mode-btn.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #a5b4fc;
}

.transform-mode-btn svg {
    opacity: 0.7;
}

.transform-mode-btn.active svg,
.transform-mode-btn:hover svg {
    opacity: 1;
}

.transform-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-row label {
    width: 20px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.input-row input[type="number"] {
    flex: 1;
    padding: 6px 8px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.input-row input[type="number"]:focus {
    outline: none;
    border-color: #6366f1;
}

/* Hide number input spinners */
.input-row input[type="number"]::-webkit-outer-spin-button,
.input-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-row input[type="number"] {
    -moz-appearance: textfield;
}

.editor-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #333;
}

.editor-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: #2a4a6a;
    border: 1px solid #3a6a9a;
    border-radius: 6px;
    color: #8cf;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.editor-btn:hover {
    background: #3a5a7a;
    border-color: #4a7aaa;
}

.editor-btn.danger {
    background: #4a2a2a;
    border-color: #6a3a3a;
    color: #f88;
}

.editor-btn.danger:hover {
    background: #5a3a3a;
    border-color: #7a4a4a;
}

/* ========== Model Picker Panel ========== */
#model-picker-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 12px 16px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: none;
}

#model-picker-panel.active {
    display: block;
}

.model-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.model-picker-header span {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
}

.model-search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.model-search input {
    flex: 1;
    padding: 8px 10px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.model-search input:focus {
    outline: none;
    border-color: #6366f1;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.model-item {
    aspect-ratio: 1;
    background: #2a2a4a;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
    text-align: center;
    padding: 4px;
    transition: all 0.2s;
}

.model-item:hover {
    background: #3a3a5a;
    border-color: #6366f1;
    color: #fff;
}

.model-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==============================
   PATH NODE EDITOR PANEL
   ============================== */

#path-panel {
    position: fixed;
    top: 120px;
    left: 240px;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 8px;
    border: 1px solid #333;
    min-width: 240px;
    max-width: 280px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

#path-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#path-panel-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

#path-panel-content::-webkit-scrollbar {
    width: 6px;
}

#path-panel-content::-webkit-scrollbar-track {
    background: #1a1a2e;
}

#path-panel-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

#path-panel-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#path-panel-content.collapsed {
    max-height: 0;
    padding: 0 14px;
}

.path-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.path-tool-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    transition: all 0.15s ease;
}

.path-tool-btn:hover {
    background: #2d2d44;
    color: #e0e0e0;
}

.path-tool-btn.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

.path-actions {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.path-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
    background: #2a2a4a;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.path-btn:hover {
    background: #3a3a5a;
    border-color: #6366f1;
    color: #fff;
}

.path-btn-primary {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.path-btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

.path-stats {
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #aaa;
}

.path-display-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.path-display-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
}

.path-display-options input[type="checkbox"] {
    accent-color: #6366f1;
}

.path-node-props {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.path-node-props .prop-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.path-node-props .prop-row label {
    width: 50px;
    font-size: 11px;
    color: #888;
}

.path-node-props .prop-row input,
.path-node-props .prop-row select {
    flex: 1;
    padding: 4px 6px;
    background: #252538;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 11px;
}

.path-node-props .prop-row input:focus,
.path-node-props .prop-row select:focus {
    border-color: #6366f1;
    outline: none;
}

.path-hint {
    font-size: 11px;
    color: #666;
    text-align: center;
    padding: 8px;
}

.path-props-header {
    font-size: 12px;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #3a3a5c;
}

.path-props-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 4px;
}

.path-props-row span:first-child {
    color: #888;
}

.path-props-row span:last-child {
    color: #e0e0e0;
}

.path-props-section {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3a3a5c;
}

.path-props-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.path-props-subheader {
    font-size: 10px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Property row with checkbox labels */
.path-node-props .prop-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
    width: auto;
}

.path-node-props .prop-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #6366f1;
    cursor: pointer;
    flex-shrink: 0;
}

/* Traffic light and special flag indicators */
.traffic-light-legend {
    display: flex;
    gap: 8px;
    font-size: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.traffic-light-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.traffic-light-legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.path-add-options {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.path-label {
    font-size: 11px;
    color: #888;
}

.path-type-btn {
    flex: 1;
    padding: 4px 8px;
    font-size: 10px;
    background: #2a2a4a;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.15s;
}

.path-type-btn:hover {
    background: #3a3a5a;
    color: #fff;
}

.path-type-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.path-connect-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.path-connect-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
}

.path-connect-options input[type="checkbox"] {
    accent-color: #6366f1;
}

.path-btn-sm {
    padding: 4px 8px;
    font-size: 10px;
}

.path-fla4-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11px;
    color: #aaa;
    background: #2a2a4a;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.path-fla4-toggle:hover {
    border-color: #f59e0b;
    color: #fff;
}

.path-fla4-toggle:has(input:checked) {
    background: #78350f;
    border-color: #f59e0b;
    color: #fcd34d;
}

.path-fla4-toggle input {
    accent-color: #f59e0b;
}

.path-export-options {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.path-preserve-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11px;
    color: #aaa;
    background: #2a2a4a;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.path-preserve-toggle:hover {
    border-color: #22c55e;
    color: #fff;
}

.path-preserve-toggle:has(input:checked) {
    background: #14532d;
    border-color: #22c55e;
    color: #86efac;
}

.path-preserve-toggle input {
    accent-color: #22c55e;
}

.path-mapsize-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.path-select {
    flex: 1;
    padding: 5px 8px;
    font-size: 11px;
    background: #2a2a4a;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
}

.path-select:hover {
    border-color: #6366f1;
}

.path-select:focus {
    border-color: #6366f1;
    outline: none;
}

.path-select option {
    background: #1a1a2e;
    color: #ccc;
}

.path-conn-list {
    margin-top: 8px;
    max-height: 100px;
    overflow-y: auto;
}

.path-conn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    margin-bottom: 2px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 10px;
}

.path-conn-item span {
    color: #aaa;
}

.path-conn-delete {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 12px;
}

.path-conn-delete:hover {
    color: #ef4444;
}

#path-editor-btn.active {
    background: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

/* ========== ENEX Panel ========== */

#enex-panel {
    position: fixed;
    top: 240px;
    right: 10px;
    width: 280px;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 8px;
    border: 1px solid #3a3a5c;
    z-index: 100;
    backdrop-filter: blur(8px);
}

#enex-panel .panel-content {
    padding: 10px 12px;
}

#enex-editor-btn.active {
    background: rgba(234, 179, 8, 0.4);
    color: #fde047;
}

.enex-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.enex-tool-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #2a2a4a;
    border: 1px solid #3a3a5c;
    border-radius: 6px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.15s;
}

.enex-tool-btn:hover {
    background: #3a3a5a;
    border-color: #eab308;
    color: #fde047;
}

.enex-tool-btn.active {
    background: rgba(234, 179, 8, 0.3);
    border-color: #eab308;
    color: #fde047;
}

.enex-stats {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.enex-display-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.enex-display-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
}

.enex-display-options input[type="checkbox"] {
    accent-color: #eab308;
}

.enex-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.enex-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    background: #2a2a4a;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.enex-btn:hover {
    background: #3a3a5a;
    border-color: #eab308;
    color: #fff;
}

.enex-btn-primary {
    background: #854d0e;
    border-color: #eab308;
    color: #fde047;
}

.enex-btn-primary:hover {
    background: #a16207;
}

/* ENEX Properties Panel */
.enex-props {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #3a3a5c;
}

.enex-props-header {
    font-size: 11px;
    font-weight: bold;
    color: #eab308;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.enex-prop-group {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.enex-prop-title {
    font-size: 10px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.enex-prop-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.enex-prop-row:last-child {
    margin-bottom: 0;
}

.enex-prop-row label {
    font-size: 10px;
    color: #888;
    min-width: 40px;
}

.enex-prop-row input[type="text"],
.enex-prop-row input[type="number"] {
    flex: 1;
    padding: 4px 5px;
    font-size: 11px;
    background: #1a1a2e;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    color: #e0e0e0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.enex-prop-row input:focus {
    border-color: #eab308;
    outline: none;
}

.enex-prop-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.enex-prop-row-2 > div {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.enex-prop-row-2 label {
    min-width: 32px;
    flex-shrink: 0;
}

.enex-prop-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.enex-prop-row-3 > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.enex-prop-row-3 label {
    font-size: 9px;
    min-width: auto;
}

.enex-prop-row-3 input {
    width: 100%;
}

.enex-flags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.enex-flags label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #ccc;
    cursor: pointer;
}

.enex-flags input[type="checkbox"] {
    accent-color: #eab308;
    width: 12px;
    height: 12px;
}

.enex-prop-actions {
    margin-top: 10px;
    display: flex;
    gap: 6px;
}

/* ========== BRUSH TOOL PANEL ========== */

#brush-panel {
    position: fixed;
    top: 120px;
    left: 460px;
    background: rgba(26, 46, 26, 0.95);
    border-radius: 8px;
    border: 1px solid #2a5a2a;
    min-width: 240px;
    max-width: 280px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

#brush-panel .panel-header {
    background: rgba(34, 197, 94, 0.15);
    border-bottom: 1px solid #2a5a2a;
}

#brush-panel-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

#brush-panel-content.collapsed {
    max-height: 0;
    padding: 0 14px;
}

#brush-tool-btn.active {
    background: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.brush-section {
    margin-bottom: 12px;
}

.brush-label {
    font-size: 10px;
    font-weight: bold;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.brush-model-row {
    display: flex;
    gap: 6px;
}

.brush-model-row input {
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
    background: #1a2e1a;
    border: 1px solid #2a5a2a;
    border-radius: 4px;
    color: #e0e0e0;
}

.brush-model-row input:focus {
    border-color: #22c55e;
    outline: none;
}

.brush-btn-sm {
    padding: 6px 10px;
    font-size: 11px;
    background: #22c55e;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.brush-btn-sm:hover {
    background: #16a34a;
}

.brush-model-info {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.brush-model-info.active {
    color: #86efac;
}

.brush-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.brush-preset-btn {
    padding: 4px 8px;
    font-size: 10px;
    background: #2a4a2a;
    border: 1px solid #3a6a3a;
    border-radius: 4px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.15s;
}

.brush-preset-btn:hover {
    background: #3a5a3a;
    border-color: #22c55e;
    color: #fff;
}

.brush-preset-btn.active {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    color: #86efac;
}

.brush-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brush-slider-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #2a4a2a;
    border-radius: 3px;
    outline: none;
}

.brush-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.brush-slider-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.brush-slider-row input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.brush-slider-row span {
    font-size: 11px;
    color: #86efac;
    min-width: 30px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.brush-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.brush-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
}

.brush-options input[type="checkbox"] {
    accent-color: #22c55e;
}

.brush-stats {
    font-size: 11px;
    color: #888;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
}

.brush-actions {
    display: flex;
    gap: 6px;
}

.brush-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    background: #2a4a2a;
    border: 1px solid #3a6a3a;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.brush-btn:hover {
    background: #3a5a3a;
    border-color: #22c55e;
    color: #fff;
}

.brush-btn-danger {
    background: #4a2a2a;
    border-color: #6a3a3a;
    color: #f88;
}

.brush-btn-danger:hover {
    background: #5a3a3a;
    border-color: #8a4a4a;
}

.brush-btn-export {
    background: #2a4a6a;
    border-color: #3a6a9a;
    color: #8cf;
}

.brush-btn-export:hover {
    background: #3a5a7a;
    border-color: #4a7aaa;
}

/* Brush cursor indicator */
#brush-cursor {
    position: fixed;
    pointer-events: none;
    border: 2px solid rgba(34, 197, 94, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

#brush-cursor.active {
    display: block;
}

#brush-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ========== EDITORS MODAL ========== */

.editors-content {
    width: 420px;
}

.editors-content h2 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 4px 0;
    text-align: center;
}

.editors-subtitle {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin: 0 0 16px 0;
}

.editor-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.editor-card:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    transform: translateX(4px);
}

.editor-card.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
}

.editor-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.editor-card-icon.path-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.editor-card-icon.enex-icon {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.editor-card-icon.brush-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.editor-card:hover .path-icon {
    background: rgba(99, 102, 241, 0.35);
}

.editor-card:hover .enex-icon {
    background: rgba(234, 179, 8, 0.35);
}

.editor-card:hover .brush-icon {
    background: rgba(34, 197, 94, 0.35);
}

.editor-card-info {
    flex: 1;
    min-width: 0;
}

.editor-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.editor-card-desc {
    font-size: 0.8rem;
    color: #888;
}

.editor-card-key {
    padding: 6px 10px;
    background: #2a2a4a;
    border: 1px solid #3d3d5c;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #aaa;
    flex-shrink: 0;
}

.editor-card:hover .editor-card-key {
    border-color: #6366f1;
    color: #fff;
}

.editors-status {
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.editors-status.active {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

/* Editors button active state */
#editors-btn.active {
    background: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

/* Credits */
footer.credits {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    color: #666;
    text-align: right;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.8);
    padding: 6px 10px;
    border-radius: 4px;
}

footer.credits a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

footer.credits a:hover {
    color: #6366f1;
}

footer.credits a.author {
    color: #6366f1;
    font-weight: 500;
}

footer.credits a.author:hover {
    text-decoration: underline;
}
