body {
    margin: 0; overflow: hidden; background: #060c13; color: #e6e9ef;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app-shell { position: relative; width: 100vw; height: 100vh; }

button {
    padding: 7px 14px; border-radius: 9px; border: 1px solid rgba(158, 198, 255, 0.2);
    background: rgba(158, 198, 255, 0.08); color: #e6eefc; font: inherit; font-size: 12px; cursor: pointer; transition: all 0.2s;
}

button:hover { background: rgba(158, 198, 255, 0.16); }

#main-canvas { display: block; width: 100%; height: 100%; }

.overlay-hint {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(7, 13, 21, 0.72); padding: 8px 16px; border-radius: 99px;
    font-size: 11px; color: #8ea4c3; letter-spacing: 0.04em; backdrop-filter: blur(8px);
    border: 1px solid rgba(155, 181, 220, 0.12); transition: opacity 0.3s, transform 0.3s;
}

.overlay-hint.is-hidden { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }

.node-editor {
    position: absolute; top: 24px; right: 24px; width: 260px;
    background: rgba(7, 13, 21, 0.85); backdrop-filter: blur(20px);
    border: 1px solid rgba(140, 178, 214, 0.12); border-radius: 12px; padding: 16px;
    z-index: 11; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.style-panel-merged {
    border-top: 1px solid rgba(140, 178, 214, 0.1);
    padding-top: 10px;
}

.style-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.style-item {
    display: flex;
    align-items: center;
}

.color-grid {
    display: flex;
    gap: 4px;
}

.color-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.shape-grid {
    display: flex;
    gap: 4px;
}

.shape-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(158, 198, 255, 0.05);
    border-radius: 4px;
}

#node-size-slider {
    flex: 1;
    height: 2px;
    background: rgba(140, 178, 214, 0.2);
    border-radius: 1px;
    appearance: none;
    outline: none;
}

#node-size-slider::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; background: #8fbaff; border-radius: 50%; cursor: pointer; }

#node-title-field:focus, #node-content-field:focus { outline: none; }

#node-title-field { color: #ffffff; width: 100%; border: none; background: transparent; font-size: 16px; font-weight: bold; margin-bottom: 8px; }

#node-content-field { color: #c9d1d9; width: 100%; border: none; background: transparent; font-size: 13px; line-height: 1.5; resize: none; }

#close-editor {
    position: absolute; top: 8px; right: 8px; background: transparent; border: none;
    color: #8ea4c3; font-size: 18px; cursor: pointer; opacity: 0.6;
}

#close-editor:hover { opacity: 1; }

.waypoint-bar { position: absolute; top: 24px; left: 24px; display: flex; gap: 8px; z-index: 10; }

.waypoint-bar button { background: rgba(7, 13, 21, 0.6); backdrop-filter: blur(8px); border: 1px solid rgba(140, 178, 214, 0.12); font-size: 10px; padding: 6px 12px; }

.breadcrumbs { position: absolute; top: 60px; left: 24px; display: flex; align-items: center; gap: 4px; z-index: 10; color: #8ea4c3; }

.breadcrumbs button { background: transparent; border: none; padding: 4px 8px; font-size: 11px; color: #edf2f9; opacity: 0.8; }

.breadcrumbs button:hover { opacity: 1; text-decoration: underline; }
