/* ============================================================
   360 PANORAMA STUDIO - CORE STYLESHEET
   ============================================================ */

/* --- Global Reset & Root Layout --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #121212;
    color: #eee;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
}

/* --- 3D Viewport & Canvas Area --- */
#canvas-container {
    flex: 1;
    min-width: 0; /* required so the container can shrink back when the rail returns */
    height: 100vh;
    position: relative;
    cursor: crosshair;
    transition: width 0.2s ease;
    /* Pointer/touch input: disables browser scroll & pinch gestures on the canvas */
    touch-action: none;
}

#canvas3d {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Floating Viewport Toolbar --- */
#viewport-toolbar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 22, 26, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 5px 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.v-btn {
    background: transparent;
    color: #bbb;
    border: none;
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.15s;
    white-space: nowrap;
}

.v-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.v-btn.active {
    background: #007acc;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 152, 255, 0.6);
}

/* Active indicator when Screen 2 is running */
#btn-dual-screen.active-dual {
    background: #238636 !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(35, 134, 54, 0.7);
}

/* --- Tool Rail (slim, always visible) + overlay panel --- */
#sidebar {
    width: 52px;
    min-width: 52px;
    height: 100vh;
    background: #17171a;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 50;
    overflow: visible;
    flex-shrink: 0;
    cursor: default;
}

/* Detached Mode: Hides rail + panel so canvas expands to 100% width */
#sidebar.detached {
    display: none !important;
}

#rail {
    width: 52px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 0 10px;
    background: #17171a;
}

.rail-btn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
    padding: 0;
}

.rail-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(-2px);
}

.rail-btn.active {
    background: #007acc;
    border-color: #0098ff;
    box-shadow: 0 0 14px rgba(0, 152, 255, 0.55);
}

.rail-spacer { flex: 1; }

/* Floating panel: overlays the canvas instead of shrinking it */
#side-panel {
    position: absolute;
    top: 0;
    right: 52px;
    bottom: 0;
    width: 344px;
    background: #1e1e1e;
    border-right: 1px solid #333;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    transform: translateX(16px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, visibility 0.22s;
    box-shadow: -16px 0 36px rgba(0, 0, 0, 0.55);
}

#side-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

#panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: #232326;
    border-bottom: 1px solid #333;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00d9ff;
    flex-shrink: 0;
}

#panel-close {
    background: none;
    border: 1px solid transparent;
    color: #889;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 8px;
}

#panel-close:hover { color: #fff; background: #3a3a3a; border-color: #555; }

.sidebar-content {
    width: 100%;
    padding: 16px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #383838;
    border-radius: 3px;
}

h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

/* --- Brush Cursor --- */
#brush-cursor {
    position: absolute;
    top: 0;
    left: 0;
    border: 1.5px dashed #00ffff;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
    z-index: 20;
    will-change: transform;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

/* --- 3D Transform Gizmo Overlay --- */
#gizmo-overlay {
    position: absolute;
    border: 2px dashed #00d9ff;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.45);
    z-index: 25;
    display: none;
    transform-origin: center center;
    cursor: move;
}

#gizmo-canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* 8 Resize Handles + Rotation Pin */
.gizmo-handle {
    position: absolute;
    width: 11px;
    height: 11px;
    background: #ffffff;
    border: 2px solid #007acc;
    border-radius: 3px;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    z-index: 26;
}

.gizmo-handle:hover {
    background: #00ffff;
    transform: translate(-50%, -50%) scale(1.3);
}

.h-tl { top: 0; left: 0; cursor: nwse-resize; }
.h-tr { top: 0; left: 100%; cursor: nesw-resize; }
.h-bl { top: 100%; left: 0; cursor: nesw-resize; }
.h-br { top: 100%; left: 100%; cursor: nwse-resize; }
.h-t  { top: 0; left: 50%; cursor: ns-resize; }
.h-b  { top: 100%; left: 50%; cursor: ns-resize; }
.h-l  { top: 50%; left: 0; cursor: ew-resize; }
.h-r  { top: 50%; left: 100%; cursor: ew-resize; }

.gizmo-rot-stem {
    position: absolute;
    width: 2px;
    height: 20px;
    background: #00d9ff;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.gizmo-rot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffea00;
    border: 2px solid #111;
    border-radius: 50%;
    pointer-events: auto;
    top: -26px;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 27;
}

#gizmo-actions {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    pointer-events: auto;
    white-space: nowrap;
    z-index: 28;
}

.gizmo-act-btn {
    background: #222;
    border: 1px solid #555;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.gizmo-act-btn:hover {
    background: #007acc;
}

/* --- Common Buttons & Controls --- */
.btn {
    background: #2d2d2d;
    color: #eee;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    display: block;
    width: 100%;
    transition: 0.15s;
    text-decoration: none;
}

.btn:hover {
    background: #3a3a3a;
}

.btn.active {
    background: #007acc;
    border-color: #0098ff;
    color: #fff;
}

.btn-success {
    background: #238636;
    border-color: #2ea043;
    color: #fff;
}

.btn-success:hover {
    background: #2ea043;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

/* Icon-only action grids: one glyph per action (label kept for screen readers + tooltips) */
.ico-grid {
    display: grid;
    gap: 6px;
    width: 100%;
}

.ico-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.ico-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.ico-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.ico-grid.c6 { grid-template-columns: repeat(6, 1fr); }

.btn-ico {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    padding: 9px 2px;
}

.btn-ico .lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.shape-library-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
}

.shape-card {
    background: #272727;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 2px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: 0.15s;
}

.shape-card span {
    font-size: 10px;
    color: #bbb;
}

.shape-card:hover {
    background: #353535;
    border-color: #666;
}

.shape-card.active {
    background: #005a9e;
    border-color: #00ffff;
    color: #fff;
}

.shape-card.active span {
    color: #fff;
    font-weight: bold;
}

.btn-group {
    display: flex;
    gap: 6px;
    width: 100%;
}

.btn-group .btn {
    flex: 1;
    padding: 8px 4px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    align-items: center;
}

input[type="range"] {
    width: 100%;
    accent-color: #00ffff;
    cursor: pointer;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    background: #262626;
    color: #eee;
    border: 1px solid #444;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}

.palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: 100%;
}

.swatch {
    width: 100%;
    height: 26px;
    border-radius: 4px;
    border: 1px solid #555;
    cursor: pointer;
}

/* --- Layers Panel --- */
#layers-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
    background: #18181b;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 4px;
}

.layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: #26262b;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.1s;
    border: 1px solid transparent;
}

.layer-item:hover {
    background: #323238;
}

.layer-item.active {
    background: #005a9e;
    border-color: #00d9ff;
    color: #fff;
    font-weight: bold;
}

.layer-item-actions {
    display: flex;
    gap: 4px;
}

.layer-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 12px;
    padding: 0 3px;
}

.layer-btn:hover {
    color: #fff;
}

/* --- Status Bar --- */
#status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(5px);
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-top: 1px solid #333;
    z-index: 10;
    pointer-events: none;
}

input[type="file"] {
    display: none;
}

/* --- Numeric Object Inspector --- */
.insp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

.insp-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    color: #889;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insp-field input {
    width: 100%;
    background: #262626;
    color: #eee;
    border: 1px solid #444;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}

.insp-field input:focus {
    border-color: #00d9ff;
}

/* --- Toast Notifications --- */
#toast-host {
    position: fixed;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 200;
    pointer-events: none;
}

.toast {
    background: rgba(28, 30, 38, 0.97);
    border: 1px solid #3d4458;
    color: #eee;
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    animation: toast-in 0.25s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-width: 70vw;
    text-align: center;
}

.toast-ok { border-color: #238636; }
.toast-err { border-color: #b62324; }
.toast-out { opacity: 0; transform: translateY(8px); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Sidebar Sections (Accordion) --- */
.sidebar-section {
    width: 100%;
    background: #232326;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a2e;
    border: none;
    color: #00d9ff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.section-header:hover { background: #313138; color: #00ffff; }

.sidebar-section .section-body {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 12px;
    border-top: 1px solid #333;
}

.sidebar-section.open .section-body { display: flex; }

.chev { color: #889; font-size: 10px; transition: transform 0.15s; }
.sidebar-section.open .chev { transform: rotate(180deg); }

/* --- Toolbar Paint Flyout --- */
#viewport-toolbar {
    flex-wrap: nowrap;
    max-width: calc(100vw - 24px);
    justify-content: center;
}

/* Icon-only toolbar: compact, never wraps to a second row */
#viewport-toolbar .v-btn {
    padding: 8px 10px;
    font-size: 15px;
    line-height: 1;
}

.v-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 2px;
    flex-shrink: 0;
}

#btn-more { font-weight: bold; letter-spacing: 2px; }

.v-flyout-wrap { position: relative; display: flex; }
.flyout-caret { font-size: 9px; opacity: 0.8; margin-left: 2px; }

.v-flyout {
    position: absolute;
    top: calc(100% + 8px);
    /* Open leftward from the button: growing right, the menu slides under the
       right-hand tool rail on narrow windows and the rail swallows the clicks */
    right: 0;
    left: auto;
    background: rgba(22, 22, 26, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 60;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    min-width: 184px;
}

.v-flyout-wrap.open .v-flyout { display: flex; }

.flyout-item { width: 100%; justify-content: flex-start; border-radius: 10px; }
.flyout-item.active {
    background: #007acc;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 152, 255, 0.5);
}

/* --- Orientation Minimap --- */
#minimap {
    position: absolute;
    left: 12px;
    bottom: 38px;
    width: 204px;
    background: rgba(22, 22, 26, 0.93);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 6px;
    z-index: 22;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

#minimap.visible { display: block; }

.mm-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #00d9ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

#minimap-canvas { width: 100%; height: auto; display: block; border-radius: 6px; background: #111; }
.mm-legend { font-size: 9px; color: #889; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.mm-dot { width: 6px; height: 6px; background: #fff; border: 1px solid #00d9ff; display: inline-block; border-radius: 1px; }

/* --- Measurement --- */
#measure-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 23;
    display: none;
}

#measure-readout {
    font-size: 12px;
    color: #00ffff;
    background: #18181b;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 10px;
}

#measure-known { width: 100%; flex: 2; }

/* --- History Panel --- */
#history-list {
    max-height: 170px;
    overflow-y: auto;
    background: #18181b;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #aaa;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s;
    border: 1px solid transparent;
}

.hist-item:hover { background: #2f3545; color: #fff; }
.hist-item.current { background: #005a9e; border-color: #00d9ff; color: #fff; font-weight: bold; }
.hist-item.future { opacity: 0.5; font-style: italic; }
.hist-tag { color: #00d9ff; font-size: 9px; }
.hist-item.current .hist-tag { color: #fff; }

/* --- Shortcuts & Feature Guide Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(3px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#help-modal {
    width: min(880px, 94vw);
    max-height: 88vh;
    background: #1b1b1f;
    border: 1px solid #3d4458;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: toast-in 0.2s ease;
}

#help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #232326;
    border-bottom: 1px solid #333;
    color: #00d9ff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#help-close {
    background: none;
    border: 1px solid transparent;
    color: #889;
    font-size: 15px;
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 9px;
}

#help-close:hover { color: #fff; background: #3a3a3a; border-color: #555; }

#help-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    padding: 18px;
    overflow-y: auto;
}

.help-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00ffff;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.help-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #bbb;
    padding: 4px 0;
}

.help-row kbd {
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
    background: #2a2a2e;
    border: 1px solid #4a4a52;
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: inherit;
    color: #fff;
}

#help-foot {
    padding: 10px 18px;
    font-size: 11px;
    color: #889;
    background: #232326;
    border-top: 1px solid #333;
}

/* --- First-run Welcome Tour --- */
#tour-spot {
    position: fixed;
    border: 2px solid #00ffff;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 255, 255, 0.6);
    z-index: 280;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#tour-card {
    position: fixed;
    width: 300px;
    background: #1b1b1f;
    border: 1px solid #00d9ff;
    border-radius: 12px;
    padding: 14px 16px;
    z-index: 320;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#tour-step {
    font-size: 10px;
    color: #00ffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

#tour-title { font-size: 14px; font-weight: bold; color: #fff; margin-bottom: 6px; }
#tour-text { font-size: 12px; color: #bbb; line-height: 1.5; margin-bottom: 12px; }
#tour-actions { display: flex; justify-content: space-between; gap: 8px; }

#tour-never {
    background: none;
    border: none;
    color: #889;
    font-size: 10.5px;
    cursor: pointer;
    margin-top: 10px;
    padding: 0;
    text-align: left;
}

#tour-never:hover { color: #00ffff; text-decoration: underline; }

/* =====================================================================
   PRESENT / GALLERY MODE — all chrome hidden, gallery-style viewing
   ===================================================================== */
#present-bar {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(18, 18, 22, 0.82);
    border: 1px solid #3a3a42;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    z-index: 500;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.present-hint {
    font-size: 11px;
    color: #9aa;
    white-space: nowrap;
}

.present-btn {
    background: #26262c;
    border: 1px solid #45454e;
    color: #dde;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.present-btn:hover { background: #33333a; border-color: #00d9ff; color: #fff; }

#present-rotate.active { border-color: #28ff28; color: #9f9; }

/* Hide every tool surface while presenting */
body.present-mode #viewport-toolbar,
body.present-mode #sidebar,
body.present-mode #status-bar,
body.present-mode #minimap,
body.present-mode #gizmo-overlay,
body.present-mode #brush-cursor,
body.present-mode #measure-overlay,
body.present-mode #help-overlay,
body.present-mode #tour-card,
body.present-mode #tour-spot {
    display: none !important;
}

body.present-mode #present-bar {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: presentBarFade 5s ease forwards; /* fade out, but keep clickable */
}

body.present-mode #present-bar:hover,
body.present-mode #present-bar:focus-within {
    opacity: 1;
    animation: none;
}

@keyframes presentBarFade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0.15; }
}

body.present-mode #canvas3d { cursor: grab; }
body.present-mode #canvas3d:active { cursor: grabbing; }
