body { font-family: Arial, Helvetica, sans-serif; background: #0a0a0a; color: #fff; margin: 0; display: flex; height: 100vh; overflow: hidden; }

#sidebar {
    width: 380px; min-width: 380px; max-width: 380px; flex-shrink: 0;
    background: #151515; border-right: 2px solid #333; padding: 20px;
    display: flex; flex-direction: column; gap: 10px; overflow: hidden;
    box-shadow: 10px 0 20px rgba(0,0,0,0.5); z-index: 100; box-sizing: border-box;
}
.sections-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; }

/* --- HEADER (logo, back link, tool identity) --- */
.tool-header { display: flex; flex-direction: column; }
.logo-container { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.logo-container img { max-width: 160px; max-height: 40px; width: auto; height: auto; display: block; }
#back-btn { font-size: 0.65rem; font-weight: 700; color: #666; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 11px; border: 1px solid #444; border-radius: 20px; transition: color 0.2s, border-color 0.2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
#back-btn i { font-size: 0.85rem; }
#back-btn:hover { color: #E60005; border-color: #E60005; }
.tool-identity { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #333; margin-bottom: 6px; }
.tool-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.tool-title { font-size: 0.95rem; color: #E60005; text-transform: uppercase; margin: 0; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }

/* --- COLLAPSIBLE SECTIONS --- */
details { background: #1a1a1a; border: 1px solid #222; border-radius: 4px; overflow: clip; margin-bottom: 5px; }
summary {
    list-style: none; padding: 12px; font-size: 11px; color: #E60005;
    text-transform: uppercase; font-weight: bold; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    background: #222; letter-spacing: 1px; outline: none;
}
summary::-webkit-details-marker { display: none; }
summary:after { content: '▼'; font-size: 8px; transition: transform 0.2s; }
details[open] summary:after { transform: rotate(180deg); }
.section-content { display: flex; flex-direction: column; gap: 10px; padding: 15px; }
.subsection-label {
    font-size: 0.7rem; color: #E60005; text-transform: uppercase; font-weight: 800;
    letter-spacing: 1.5px; margin-top: 4px; display: flex; align-items: center;
}
.subsection-label::after { content: ""; flex: 1; height: 1px; background: #333; margin-left: 10px; }
.subsection-label:first-child { margin-top: 0; }

.control-row { display: flex; flex-direction: column; gap: 5px; }
label { font-size: 0.7rem; color: #888; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.input-wrap { display: flex; gap: 10px; align-items: center; }
input[type="range"] { flex-grow: 1; accent-color: #E60005; cursor: pointer; }
input[type="number"] { width: 65px; background: #000; border: 1px solid #333; color: #fff; padding: 4px; border-radius: 2px; font-size: 11px; }

select { width: 100%; padding: 8px; background: #000; color: white; border: 1px solid #333; border-radius: 2px; font-size: 11px; }
optgroup { font-weight: 800; color: #E60005; background: #111; font-style: normal; }
option { color: #fff; background: #111; padding-left: 10px; }

.stats-box { background: #000; padding: 12px; border-radius: 6px; border-left: 3px solid #E60005; }
.combined-stats-box { border-left: 3px solid; border-image: linear-gradient(#00aaff, #ffaa00) 1; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-item.full { grid-column: span 2; }
.stat-label { font-size: 0.7rem; color: #888; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 15px; font-weight: bold; color: #fff; }

#canvas-container { flex-grow: 1; position: relative; cursor: move; min-width: 0; overflow: hidden; }
/* The 3D canvas is sized by script; keeping it out of the layout flow means a stale (e.g. full-screen)
   canvas size can never stretch the container and push the sidebar/toolbar off-centre. */
#canvas-container > canvas { position: absolute; top: 0; left: 0; display: block; z-index: 0; }
/* Explicit stacking: 3D canvas at the bottom, then the labels, then the toolbar on top. */
#label-layer { z-index: 1; }
#viewer-overlay { z-index: 2; }
#label-layer { position: absolute; top: 0; left: 0; pointer-events: none; width: 100%; height: 100%; }

#viewer-overlay {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.85); color: #fff; padding: 12px 20px;
    border-radius: 8px; border: 1px solid #444; display: flex; gap: 15px;
    align-items: center; font-size: 11px; pointer-events: auto; white-space: nowrap;
}
#viewer-overlay > span { font-size: 10px; color: #999; letter-spacing: 0.2px; cursor: help; }
.overlay-btn { background: #444; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
.overlay-btn:hover { background: #666; }

.overlay-btn.red { background: #E60005; color: #fff; }
.overlay-btn.red:hover { background: #b30004; }

.overlay-btn.blue { background: #00aaff; color: #000; }
.overlay-btn.blue:hover { background: #0088cc; }

.dim-label { color: #fff; background: rgba(0,0,0,0.3); padding: 4px 8px; border: 1px solid #fff; border-radius: 4px; font-size: 13px; font-weight: bold; }
.floor-dist { color: #fff; background: rgba(0,0,0,0.3); border: 1px solid #fff; padding: 2px 6px; border-radius: 3px; font-size: 11px; }
.dim-label-1, .floor-dist-1 { border-color: #00aaff; color: #00aaff; }
.dim-label-2, .floor-dist-2 { border-color: #ffaa00; color: #ffaa00; }

.fixed-back-button {
    position: fixed; bottom: 20px; right: 0px; z-index: 1000;
    width: 60px; height: 50px; background-color: #E60005;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 25% 50%);
    display: flex; align-items: center; justify-content: flex-end;
    padding-right: 20px; text-decoration: none; transition: all 0.2s ease;
}
.fixed-back-button:hover { background-color: #d40000; transform: translateX(5px); }
.fixed-back-button img { width: 24px; height: 24px; object-fit: contain; }

/* --- CONTACT MODAL --- */
#contactModal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center;
}
.modal-content {
    background: #151515; padding: 30px; border-radius: 8px; border: 1px solid #333;
    width: 400px; box-shadow: 0 0 20px rgba(0,0,0,0.5); position: relative;
}
.modal-content h2 { font-size: 18px; margin-top: 0; border: none; color: #E60005; }
.modal-close { position: absolute; top: 15px; right: 20px; color: #aaa; cursor: pointer; font-size: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #ccc; }
.form-group input, .form-group textarea {
    width: 100%; padding: 8px; box-sizing: border-box; background: #000;
    border: 1px solid #333; color: #fff; border-radius: 2px; font-family: inherit;
}
.form-group textarea { height: 80px; resize: vertical; }
.submit-btn {
    width: 100%; background: #E60005; color: white; border: none;
    padding: 10px; border-radius: 6px; font-weight: bold; cursor: pointer;
}
.submit-btn:hover { background: #b90004; }
.submit-btn:disabled { background: #555; cursor: not-allowed; }
.focus-warning { background: #b30004; color: #fff; padding: 8px 10px; border-radius: 4px; font-size: 11px; display: none; margin-top: 6px; }
.toolbar-row { display: flex; gap: 6px; align-items: center; }
.unit-toggle { background: #222; color: #888; border: 1px solid #333; border-radius: 4px; padding: 5px 12px; font-size: 11px; cursor: pointer; font-weight: bold; letter-spacing: 0.5px; }
.unit-toggle.active { background: #E60005; color: #fff; border-color: #E60005; }
.copy-link-btn { flex: 1; background: #222; color: #888; border: 1px solid #333; border-radius: 4px; padding: 5px 10px; font-size: 11px; cursor: pointer; font-weight: bold; }
.copy-link-btn:hover { background: #2a2a2a; color: #fff; }

/* --- Set-up bar (units + mounting), top of the sidebar --- */
.setup-bar { display: flex; flex-direction: column; gap: 8px; background: #1a1a1a; border: 1px solid #222; padding: 10px 12px; border-radius: 4px; flex-shrink: 0; }
.seg-row { display: flex; align-items: center; gap: 10px; }
.seg-label { width: 78px; flex-shrink: 0; font-size: 10px; color: #ccc; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.seg { flex: 1; display: flex; border: 1px solid #333; border-radius: 4px; overflow: hidden; }
.seg button { flex: 1; background: #222; color: #888; border: none; padding: 6px 8px; font-size: 11px; font-weight: bold; cursor: pointer; font-family: inherit; }
.seg button + button { border-left: 1px solid #333; }
.seg button:hover { color: #fff; }
.seg button.active { background: #E60005; color: #fff; }
.fix-btn { width: 100%; margin-top: 6px; }

/* --- Screen size (set & lock) --- */
.size-row { display: flex; gap: 8px; align-items: flex-end; }
.size-row label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.size-row input[type="number"] { width: 100%; box-sizing: border-box; }
.lock-btn { display: flex; align-items: center; gap: 4px; background: #222; color: #888; border: 1px solid #333; border-radius: 4px; padding: 4px 10px; font-size: 11px; font-weight: bold; cursor: pointer; font-family: inherit; height: 24px; }
.lock-btn:hover { color: #fff; }
.lock-btn i { font-size: 13px; }
.lock-btn.active { background: #E60005; border-color: #E60005; color: #fff; }
.size-hint { font-size: 10px; color: #888; line-height: 1.4; min-height: 0; }
.size-hint:empty { display: none; }
.size-hint.locked { color: #7bd88f; }

.dual-toggle-label {
    display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
    font-size: 10px; color: #ccc; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;
    background: #1a1a1a; border: 1px solid #222; padding: 12px; border-radius: 4px; flex-shrink: 0;
}
.dual-toggle-label input[type="checkbox"] { width: auto; cursor: pointer; accent-color: #E60005; }
.rig-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.rig-dot-1 { background: #00aaff; }
.rig-dot-2 { background: #ffaa00; }

.rig-group { display: flex; flex-direction: column; gap: 10px; border: 1px solid; border-radius: 6px; padding: 8px; }
.rig-group-1 { border-color: #00aaff; }
.rig-group-2 { border-color: #ffaa00; }
#rig2Panel, #combinedPanel { display: none; }

@media (max-width: 768px) {
    body { flex-direction: column; height: auto; min-height: 100vh; overflow-y: auto; }
    #sidebar {
        width: 100%; min-width: unset; max-width: 100%; overflow: visible;
        border-right: none; border-bottom: 2px solid #333;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }
    .sections-scroll { overflow: visible; flex: none; }
    #canvas-container { width: 100%; min-height: 56vw; }
    .fixed-back-button { bottom: 10px; }
}

/* Quote request result message (shown inside the quote window instead of a browser popup) */
.quote-status { text-align: center; padding: 10px 0 0; }
.quote-status[hidden], #quoteForm[hidden] { display: none; }
.quote-status-icon {
    width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: bold; color: #fff; background: #1f9d55;
}
.quote-status.is-error .quote-status-icon { background: #E60005; }
.quote-status-title { margin: 0 0 8px; font-size: 16px; color: #fff; }
.quote-status-text { margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: #ccc; }

/* First-visit tips (guided tour) */
.tour-spotlight {
    position: fixed; z-index: 9998; pointer-events: none; border-radius: 8px;
    border: 2px solid #E60005;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    transition: top 0.25s, left 0.25s, width 0.25s, height 0.25s;
}
.tour-tip {
    position: fixed; z-index: 9999; width: 300px; max-width: calc(100vw - 16px); box-sizing: border-box;
    background: #1a1a1a; color: #fff; border: 1px solid #333; border-top: 3px solid #E60005;
    border-radius: 8px; padding: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    font-family: Arial, Helvetica, sans-serif;
}
.tour-step { font-size: 10px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; color: #E60005; margin-bottom: 6px; }
.tour-title { margin: 0 0 8px; font-size: 15px; color: #fff; }
.tour-text { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #ccc; }
.tour-actions { display: flex; align-items: center; gap: 8px; }
.tour-spacer { flex: 1; }
.tour-actions button { border: none; border-radius: 4px; padding: 7px 14px; font-weight: bold; font-size: 12px; cursor: pointer; }
.tour-actions .tour-skip { background: none; color: #888; padding-left: 0; }
.tour-actions .tour-skip:hover { color: #fff; }
.tour-back { background: #444; color: #fff; }
.tour-back:hover { background: #666; }
.tour-back[hidden] { display: none; }
.tour-next { background: #E60005; color: #fff; }
.tour-next:hover { background: #b30004; }
.overlay-btn.tour-help-btn { width: 28px; padding: 6px 0; border-radius: 50%; }

/* --- CINEMATIC MODE (demo / screen recording): only the 3D view, no UI, no cursor --- */
body.cinematic #sidebar,
body.cinematic #viewer-overlay,
body.cinematic .fixed-back-button { display: none !important; }
body.cinematic #canvas-container { cursor: none; }
.cinematic-hint {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 1000;
    background: rgba(0,0,0,0.7); color: #fff; padding: 8px 16px; border-radius: 20px;
    font-size: 12px; letter-spacing: 0.5px; pointer-events: none;
    animation: cinematicHint 3s ease forwards;
}
@keyframes cinematicHint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* Link to another tool with the current set-up (e.g. "Open in Blend Calculator") */
.tool-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; color: #888; text-decoration: none; }
.tool-link:hover { color: #fff; }
.tool-link i { color: #E60005; font-size: 0.9rem; }
.tool-link .ph-arrow-square-out { color: inherit; }
.blend-import-note { background: #0d2a3a; border: 1px solid #00aaff; color: #cfefff; padding: 10px 12px; border-radius: 4px; font-size: 11px; line-height: 1.5; }

/* --- CINEMATIC TITLE CARD & END CARD --- */
.cine-title {
    position: absolute; left: 4%; bottom: 6%; z-index: 900; max-width: min(640px, 92%); box-sizing: border-box;
    padding: 18px 22px 16px; border-left: 3px solid #E60005;
    background: linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.35) 85%, rgba(0,0,0,0));
    color: #fff; font-family: 'Segoe UI', Arial, sans-serif; pointer-events: none;
    opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease;
}
.cine-title.show { opacity: 1; transform: none; }
.cine-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #E60005; margin-bottom: 10px; }
.cine-title-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.cine-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.cine-title-name { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }
.cine-title-sub { font-size: 13px; color: #cfcfcf; margin-top: 2px; }
.cine-title-blend { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 14px; font-weight: 600; color: #fff; }

.cine-end {
    position: absolute; inset: 0; z-index: 950; pointer-events: none; opacity: 0; text-align: center; padding: 0 6%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: radial-gradient(ellipse at center, #1c1c1c 0%, #050505 75%);
    color: #fff; font-family: 'Segoe UI', Arial, sans-serif;
}
.cine-end img { width: min(420px, 60vw); height: auto; }
.cine-end-line { width: 64px; height: 3px; background: #E60005; margin: 6px 0; }
.cine-end-web { font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.cine-end-sub { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #9a9a9a; }

/* --- CINEMATIC MENU (appears on mouse move, hides when the mouse is still) --- */
body.cinematic.cine-menu-open #canvas-container { cursor: default; }
.cine-menu {
    position: fixed; top: 20px; right: 20px; z-index: 1000; width: 230px;
    background: rgba(18,18,18,0.94); border: 1px solid #333; border-radius: 8px; padding: 14px 16px 12px;
    color: #ddd; font-family: Arial, Helvetica, sans-serif; font-size: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.cine-menu.show { opacity: 1; transform: none; pointer-events: auto; }
.cine-menu-head { font-size: 0.7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #E60005; margin-bottom: 6px; }
.cine-menu-group { font-size: 0.65rem; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; color: #777; margin: 10px 0 4px; }
.cine-menu-item { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; color: #ddd; font-size: 12px; text-transform: none; font-weight: normal; }
.cine-menu-item input { accent-color: #E60005; margin: 0; cursor: pointer; }
.cine-menu-speed { display: flex; gap: 4px; }
.cine-menu-speed button, .cine-menu-actions button {
    flex: 1; background: #222; color: #aaa; border: 1px solid #333; border-radius: 4px; padding: 5px 0;
    font-size: 11px; font-weight: bold; cursor: pointer;
}
.cine-menu-speed button.active { background: #E60005; border-color: #E60005; color: #fff; }
.cine-menu-speed button:hover:not(.active), .cine-menu-actions button:hover { background: #2c2c2c; color: #fff; }
.cine-menu-actions { display: flex; gap: 6px; margin-top: 12px; }
.cine-menu-foot { margin-top: 8px; font-size: 10px; color: #666; text-align: center; }

/* Cinematic frame: black around a social-media sized 3D view; text scales with the frame */
body.cinematic { background: #000; }
body.cinematic #canvas-container { container-type: size; }
.cine-title-name { font-size: clamp(14px, 3.4cqmin, 22px); }
.cine-title-sub { font-size: clamp(11px, 2.2cqmin, 13px); }
.cine-title-blend { font-size: clamp(12px, 2.4cqmin, 14px); }
.cine-end img { width: min(420px, 60cqw); }
.cine-end-web { font-size: clamp(15px, 3.6cqmin, 22px); }
.cine-end-sub { font-size: clamp(10px, 2cqmin, 13px); }
.cine-menu-frame button { font-size: 10px; }
.cine-menu-size { margin-top: 5px; font-size: 10px; color: #8a8a8a; text-align: center; }
.cine-menu-size.warn { color: #d9a400; }

/* End screen: tool name above the address */
.cine-end-title { font-size: clamp(22px, 6cqmin, 44px); font-weight: 800; letter-spacing: 3px; text-transform: uppercase; line-height: 1.1; }
.cine-end-web { color: #E60005; letter-spacing: 0.5px; word-break: break-word; }
.cine-end-web { font-size: clamp(13px, 3cqmin, 20px); }

/* --- CINEMATIC: zoom & throw panel (inside the frame, so it is part of the recording) --- */
.cine-lens {
    position: absolute; left: 4%; top: 5%; z-index: 900; width: min(320px, 72%); box-sizing: border-box;
    padding: 12px 16px 10px; border-left: 3px solid #E60005;
    background: linear-gradient(90deg, rgba(0,0,0,0.75), rgba(0,0,0,0.45));
    color: #fff; font-family: 'Segoe UI', Arial, sans-serif;
    opacity: 0; transform: translateY(-8px); transition: opacity 0.8s ease, transform 0.8s ease; pointer-events: none;
}
.cine-lens.show { opacity: 1; transform: none; pointer-events: auto; }
.cine-lens-head { font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #E60005; margin-bottom: 6px; }
.cine-lens-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.cine-lens-row span { width: 46px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #aaa; }
.cine-lens-row input[type="range"] { flex: 1; accent-color: #E60005; min-width: 60px; }
.cine-lens-row input[type="range"]:disabled { opacity: 0.35; }
.cine-lens.no-zoom .cine-lens-row:has(.cine-lens-zoom) { display: none; } /* menu: "Zoom slider in panel" off */
.cine-lens-row b { min-width: 64px; text-align: right; font-size: clamp(12px, 2.4cqmin, 15px); font-variant-numeric: tabular-nums; }
.cine-lens-foot { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.15); font-size: clamp(11px, 2.2cqmin, 13px); color: #cfcfcf; }
body.cinematic.cine-menu-open .cine-lens input { cursor: pointer; }

/* Shadow-zone label on the floor */
.cine-zone-label { background: rgba(160, 0, 0, 0.75); color: #fff; border: 1px solid #ff4d4d; border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: bold; white-space: nowrap; }

/* --- Room & Audience panel --- */
.check-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.7rem; color: #ccc; letter-spacing: 0.5px; }
.check-row input { width: auto; margin: 0; accent-color: #E60005; cursor: pointer; }
.room-note { font-size: 11px; line-height: 1.5; background: #111; border-radius: 4px; padding: 8px 10px; }
.room-note .ok { color: #7bd88f; }
.room-note .warn { color: #ffb347; }

/* Snap note while dragging a projector */
.snap-toast { display: none; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 20; pointer-events: none;
    background: rgba(0,0,0,0.75); color: #ffd400; border: 1px solid #ffd400; border-radius: 4px; padding: 5px 12px; font-size: 12px; font-weight: bold; white-space: nowrap; }

/* Both projectors selected: sliders are linked */
.link-note { display: flex; align-items: center; gap: 6px; background: rgba(255, 212, 0, 0.08); border: 1px solid #ffd400; color: #ffd400; border-radius: 4px; padding: 6px 8px; font-size: 11px; font-weight: bold; }
.link-note i { font-size: 13px; }

/* Ceiling height label (ceiling mount) */
.ceil-label { color: #ddd; border-color: #ddd; }
.zone-depth { color: #ff6b6b; border-color: #ff4d4d; background: rgba(60,0,0,0.6); }

/* Preset views pad (top-right of the 3D view) */
.view-pad { position: absolute; top: 12px; right: 12px; z-index: 15; display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 26px); gap: 3px; }
.view-pad button { background: rgba(0,0,0,0.75); color: #bbb; border: 1px solid #444; border-radius: 4px; font-size: 10px; font-weight: bold; cursor: pointer; padding: 0; font-family: inherit; }
.view-pad button:hover { color: #fff; border-color: #777; }
.view-pad button.active { background: #E60005; border-color: #E60005; color: #fff; }
.view-pad [data-view="top"]   { grid-column: 2; grid-row: 1; }
.view-pad [data-view="left"]  { grid-column: 1; grid-row: 2; }
.view-pad [data-view="3d"]    { grid-column: 2; grid-row: 2; }
.view-pad [data-view="right"] { grid-column: 3; grid-row: 2; }
.view-pad [data-view="front"] { grid-column: 2; grid-row: 3; }
body.cinematic .view-pad { display: none; }

/* Blend Grid controls (Combined Coverage panel) */
.grid-note { font-size: 10px; color: #888; line-height: 1.4; }
#layoutSeg button { padding: 6px 4px; }
