:root {
    --e3d-red: #b5121b;
    --e3d-red-dark: #7f0d13;
    --e3d-ink: #15181d;
    --e3d-muted: #727984;
    --e3d-line: #e6e8eb;
    --e3d-panel: rgba(255, 255, 255, .975);
    --e3d-green: #42d679;
    --e3d-amber: #f4b740;
    --e3d-sold: #6c737d;
    --e3d-shadow: 0 24px 70px rgba(8, 12, 18, .24);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
    background: #0d1117;
    color: var(--e3d-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.e3d-app {
    display: block;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.e3d-stage {
    background: linear-gradient(180deg, #98bad1 0%, #d7d5cc 45%, #66766b 100%);
    min-width: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.e3d-scene { inset: 0; position: absolute; z-index: 1; }
.e3d-scene canvas { display: block; height: 100%; outline: 0; width: 100%; }

.e3d-sky-glow {
    background: radial-gradient(circle at 18% 18%, rgba(255, 225, 178, .34), transparent 28%);
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.e3d-brand {
    align-items: flex-start;
    color: #fff;
    display: flex;
    gap: 15px;
    position: relative;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .38);
    z-index: 7;
}

.e3d-back {
    align-items: center;
    background: rgba(10, 14, 18, .6);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 24px;
    height: 44px;
    justify-content: center;
    text-decoration: none;
    transition: .2s ease;
    width: 44px;
}

.e3d-back:hover { background: var(--e3d-red); transform: translateX(-2px); }
.e3d-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.e3d-brand h1 { font-family: Georgia, serif; font-size: clamp(27px, 3vw, 42px); font-weight: 400; letter-spacing: -.035em; line-height: .95; margin: 7px 0 5px; }
.e3d-brand h1 strong { font-weight: 700; }
.e3d-brand p { font-size: 12px; margin: 0; }
.e3d-brand p span { opacity: .72; }

.e3d-modes {
    display: grid;
    gap: 9px;
    margin: 30px 0 0;
}

.e3d-mode {
    backdrop-filter: blur(12px);
    background: rgba(18, 23, 29, .72);
    border: 1px solid rgba(255, 255, 255, .13);
    align-items: center;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    display: grid;
    font-size: 13px;
    gap: 2px 11px;
    grid-template-columns: 34px 1fr;
    font-weight: 750;
    padding: 14px 15px;
    text-align: left;
    transition: .2s ease;
}

.e3d-mode span { font-size: 21px; grid-row: 1 / 3; margin-right: 5px; text-align: center; }
.e3d-mode strong { font-size: 13px; }
.e3d-mode small { font-size: 9px; font-weight: 500; opacity: .68; }
.e3d-mode:hover, .e3d-mode.is-active { background: var(--e3d-red); border-color: var(--e3d-red); transform: translateY(-1px); }

.e3d-kiosk-menu {
    backdrop-filter: blur(24px);
    background: linear-gradient(155deg, rgba(21, 25, 31, .96), rgba(34, 38, 44, .92));
    box-shadow: 24px 0 70px rgba(5, 8, 12, .38);
    color: #fff;
    height: 100vh;
    height: 100dvh;
    left: 0;
    overflow-y: auto;
    padding: 26px 24px 28px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform .34s cubic-bezier(.22, .78, .22, 1);
    width: min(390px, 92vw);
    z-index: 45;
}
.e3d-kiosk-menu.is-open { transform: none; }
.e3d-kiosk-menu .e3d-brand { color: #fff; padding-right: 34px; text-shadow: none; }
.e3d-drawer-close {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 25px;
    height: 44px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 44px;
    z-index: 3;
}
.e3d-drawer-close:hover { background: var(--e3d-red); }

.e3d-edge-toggle {
    align-items: center;
    backdrop-filter: blur(15px);
    background: rgba(19, 23, 29, .86);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 58px;
    padding: 12px 15px;
    position: fixed;
    top: 50%;
    transition: opacity .2s, transform .2s, background .2s;
    z-index: 35;
}
.e3d-edge-toggle:hover { background: var(--e3d-red); }
.e3d-edge-toggle.is-hidden { opacity: 0; pointer-events: none; }
.e3d-edge-toggle strong { font-size: 12px; }
.e3d-menu-toggle { border-radius: 0 16px 16px 0; left: 0; transform: translateY(-50%); }
.e3d-menu-toggle.is-hidden { transform: translate(-100%, -50%); }
.e3d-menu-toggle span { font-size: 20px; }
.e3d-sales-toggle { border-radius: 16px 0 0 16px; flex-direction: column; gap: 2px; right: 0; transform: translateY(-50%); }
.e3d-sales-toggle.is-hidden { transform: translate(100%, -50%); }
.e3d-sales-toggle span { background: var(--e3d-red); border-radius: 99px; font-size: 11px; font-weight: 850; padding: 3px 8px; }

.e3d-floating-panel {
    background: rgba(250, 250, 249, .98);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    box-shadow: var(--e3d-shadow);
    color: var(--e3d-ink);
    max-height: none;
    margin-top: 14px;
    overflow: auto;
    padding: 20px;
    position: relative;
    width: 100%;
}

.e3d-floating-panel[hidden] { display: none; }
.e3d-panel-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.e3d-panel-heading h2 { font-family: Georgia, serif; font-size: 24px; margin: 3px 0 15px; }
.e3d-panel-close { background: #f0f1f2; border: 0; border-radius: 999px; color: #343a42; cursor: pointer; font-size: 22px; height: 34px; line-height: 1; width: 34px; }
.e3d-panel-close:hover { background: var(--e3d-red); color: #fff; }

.e3d-field { display: block; margin: 0 0 14px; }
.e3d-field > span { align-items: center; color: #565d67; display: flex; font-size: 11px; font-weight: 750; justify-content: space-between; margin-bottom: 7px; text-transform: uppercase; }
.e3d-field input[type="date"], .e3d-field select, .e3d-search-row input, .e3d-search-row select {
    background: #fff;
    border: 1px solid #d8dce1;
    border-radius: 10px;
    color: var(--e3d-ink);
    outline: 0;
    padding: 11px 12px;
    width: 100%;
}
.e3d-field input:focus, .e3d-field select:focus, .e3d-search-row input:focus, .e3d-search-row select:focus { border-color: var(--e3d-red); box-shadow: 0 0 0 3px rgba(181, 18, 27, .1); }
.e3d-field input[type="range"] { accent-color: var(--e3d-red); width: 100%; }
.e3d-range-labels { color: #8b9199; display: flex; font-size: 10px; justify-content: space-between; }

.e3d-sun-stats { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 15px 0; }
.e3d-sun-stats div { background: #f0f2f3; border-radius: 11px; padding: 12px; }
.e3d-sun-stats span, .e3d-sun-stats strong { display: block; }
.e3d-sun-stats span { color: var(--e3d-muted); font-size: 10px; text-transform: uppercase; }
.e3d-sun-stats strong { font-size: 19px; margin-top: 3px; }
.e3d-switch { align-items: center; cursor: pointer; display: flex; font-size: 12px; gap: 9px; }
.e3d-switch input { display: none; }
.e3d-switch span { background: #a8aeb6; border-radius: 99px; display: inline-block; height: 22px; position: relative; transition: .2s; width: 39px; }
.e3d-switch span::after { background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); content: ""; height: 16px; left: 3px; position: absolute; top: 3px; transition: .2s; width: 16px; }
.e3d-switch input:checked + span { background: var(--e3d-red); }
.e3d-switch input:checked + span::after { transform: translateX(17px); }
.e3d-disclaimer { color: #777e87; font-size: 10px; line-height: 1.45; margin: 14px 0 0; }

.e3d-coordinates { background: #f1f2f4; border-radius: 9px; color: #656b73; font-family: ui-monospace, Consolas, monospace; font-size: 10px; margin-bottom: 12px; padding: 9px 10px; }
.e3d-reference {
    align-items: center;
    background: #fff;
    border: 1px solid var(--e3d-line);
    border-radius: 11px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    margin-bottom: 8px;
    padding: 11px;
    text-align: left;
    transition: .2s;
    width: 100%;
}
.e3d-reference:hover { border-color: var(--e3d-red); transform: translateX(2px); }
.e3d-reference > span { align-items: center; background: #f8e8e9; border-radius: 50%; color: var(--e3d-red); display: flex; font-size: 10px; font-weight: 800; height: 31px; justify-content: center; }
.e3d-reference strong, .e3d-reference small { display: block; }
.e3d-reference strong { font-size: 12px; }
.e3d-reference small { color: var(--e3d-muted); font-size: 10px; margin-top: 2px; }
.e3d-reference b { color: var(--e3d-red); }
.e3d-streetview { background: var(--e3d-red); border-radius: 10px; color: #fff; display: block; font-size: 12px; font-weight: 800; margin-top: 12px; padding: 12px; text-align: center; text-decoration: none; }
.e3d-streetview:hover { background: var(--e3d-red-dark); }
.e3d-streetview small { display: block; font-size: 9px; font-weight: 500; margin-top: 4px; opacity: .85; }
.e3d-location-panel { left: 18px; margin: 0; max-height: calc(100% - 40px); padding: 17px; position: absolute; top: 20px; width: 350px; z-index: 24; }
.e3d-location-panel .e3d-panel-heading h2 { font-size: 22px; margin-bottom: 8px; }
.e3d-location-panel .e3d-eyebrow { font-size: 8px; }
.e3d-location-actions { display: flex; gap: 4px; }
.e3d-location-actions button { background: #eceff0; border: 0; border-radius: 50%; color: #333b42; cursor: pointer; font-size: 21px; height: 34px; width: 34px; }
.e3d-location-actions button:hover { background: var(--e3d-red); color: white; }
.e3d-location-intro { color: #65717b; font-size: 11px; line-height: 1.55; margin: 4px 0 10px; }
.e3d-location-intro strong { color: #28333b; }
.e3d-location-map { background: #edf2f1; border: 1px solid #dce4e2; border-radius: 12px; margin: 0 0 10px; padding: 10px 6px 7px; }
.e3d-location-map svg { display: block; overflow: visible; width: 100%; }
.e3d-location-map rect { fill: #cbd7d6; stroke: #b4c3c1; stroke-width: 1; }
.e3d-location-map text { fill: #4f6564; font-size: 10px; font-weight: 700; text-anchor: middle; }
.e3d-location-map .e3d-map-lot { fill: #fff; stroke: #b5121b; stroke-dasharray: 3 3; }
.e3d-location-map .e3d-map-eclipse { fill: #b5121b; stroke: #971019; }
.e3d-location-map .e3d-map-brand { fill: #fff; font-size: 12px; }
.e3d-location-map .e3d-map-small { font-size: 7px; }
.e3d-map-entry { fill: none; stroke: #b5121b; stroke-width: 2; }
.e3d-location-map [data-map-reference].is-active rect { fill: #edc5c8; stroke: #b5121b; stroke-width: 2; }
.e3d-location-map [data-map-reference].is-active text { fill: #940e16; }
.e3d-location-map figcaption { color: #75837f; font-size: 8px; margin-top: 6px; text-align: center; }
.e3d-location-choices { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.e3d-location-choices .e3d-reference { border-radius: 9px; gap: 7px; grid-template-columns: 25px 1fr; margin: 0; min-height: 55px; padding: 8px; }
.e3d-location-choices .e3d-reference > span { font-size: 9px; height: 25px; width: 25px; }
.e3d-location-choices .e3d-reference strong { font-size: 10px; }
.e3d-location-choices .e3d-reference small { font-size: 9px; }
.e3d-location-choices .e3d-reference.is-active { background: #fff1f1; border-color: var(--e3d-red); }
.e3d-reference-detail { border-left: 3px solid var(--e3d-red); font-size: 11px; margin: 10px 0; padding: 3px 9px; }
.e3d-reference-detail strong { color: #812029; font-size: 11px; }
.e3d-reference-detail p { color: #68737b; font-size: 10px; line-height: 1.4; margin: 4px 0 0; }
.e3d-location-overview { background: #27373b; border: 0; border-radius: 9px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; min-height: 44px; width: 100%; }
.e3d-location-hint { background: #fff1d9; border-radius: 7px; color: #79551e; font-size: 10px; line-height: 1.45; padding: 8px; }
.e3d-location-coordinates { color: #69777e; font-size: 9px; margin-top: 10px; }
.e3d-location-coordinates summary { cursor: pointer; padding: 3px 0; }
.e3d-location-coordinates div { font-family: Consolas, monospace; margin-top: 5px; }
.e3d-location-panel .e3d-disclaimer { font-size: 9px; margin-top: 7px; }
.e3d-location-menu { background: transparent; border: 0; color: #69777d; cursor: pointer; font-size: 10px; min-height: 32px; margin-top: 5px; width: 100%; }
.e3d-location-menu:hover { color: var(--e3d-red); }
.e3d-location-panel.is-collapsed #e3dLocationBody { display: none; }
.e3d-location-panel.is-collapsed { padding-bottom: 12px; padding-top: 12px; }
.e3d-location-panel.is-collapsed .e3d-panel-heading h2 { margin-bottom: 0; }
.e3d-location-panel.is-collapsed .e3d-location-menu { display: none; }

.e3d-toolbar {
    backdrop-filter: blur(14px);
    background: rgba(16, 20, 25, .78);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    bottom: 22px;
    display: flex;
    gap: 3px;
    left: 50%;
    padding: 7px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 8;
}
.e3d-toolbar button { background: transparent; border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-size: 15px; padding: 10px 13px; }
.e3d-toolbar button span { font-size: 11px; font-weight: 700; margin-left: 3px; }
.e3d-toolbar button:hover, .e3d-toolbar button.is-active { background: rgba(255, 255, 255, .15); }

.e3d-legend {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .88);
    border-radius: 10px;
    bottom: 23px;
    display: flex;
    font-size: 10px;
    gap: 10px;
    padding: 10px 12px;
    position: absolute;
    right: 18px;
    z-index: 7;
}
.e3d-legend span { align-items: center; display: flex; }
.e3d-legend i { border-radius: 50%; display: inline-block; height: 8px; margin-right: 5px; width: 8px; }
.e3d-legend .is-available { background: var(--e3d-green); box-shadow: 0 0 8px var(--e3d-green); }
.e3d-legend .is-selected { background: var(--e3d-red); box-shadow: 0 0 9px rgba(181, 18, 27, .72); }
.e3d-legend .is-reserved { background: var(--e3d-amber); }
.e3d-legend .is-sold { background: var(--e3d-red); border: 1px solid #fff; border-radius: 1px; width: 12px; }

.e3d-compass { --compass-heading: 0deg; backdrop-filter: blur(14px); background: rgba(18, 28, 34, .88); border: 1px solid rgba(255, 255, 255, .25); border-radius: 20px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); color: #fff; padding: 6px; position: absolute; right: 20px; top: 20px; width: 134px; z-index: 8; }
.e3d-compass-face { height: 120px; position: relative; width: 120px; }
.e3d-compass-dial { border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; inset: 3px; position: absolute; will-change: transform; }
.e3d-compass-dial::before { border: 1px dashed rgba(255, 255, 255, .22); border-radius: 50%; content: ''; inset: 20px; position: absolute; }
.e3d-compass-dial > span { align-items: center; display: flex; font-size: 9px; font-weight: 750; height: 23px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 25px; }
.e3d-compass-dial > .is-cardinal { font-size: 14px; font-weight: 900; }
.e3d-compass-dial > .is-north { color: #ff7d82; }
.e3d-compass-index { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid #ff7d82; left: calc(50% - 4px); position: absolute; top: -2px; z-index: 2; }
.e3d-compass-readout { align-items: center; display: flex; flex-direction: column; inset: 38px 22px; justify-content: center; position: absolute; }
.e3d-compass-readout span { color: #adc1c7; font-size: 6px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.e3d-compass-readout strong { font-size: 10px; margin: 3px 0; text-transform: uppercase; }
.e3d-compass-readout small { font-size: 12px; font-variant-numeric: tabular-nums; }
.e3d-compass button { background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, .15); border-radius: 0 0 13px 13px; color: #e5edef; cursor: pointer; font-size: 9px; font-weight: 700; min-height: 40px; width: 100%; }
.e3d-compass button:hover { background: var(--e3d-red); }

.e3d-label-layer { inset: 0; pointer-events: none; position: absolute; z-index: 5; }
.e3d-label-layer:not(.is-visible) { visibility: hidden; }
.e3d-scene-label { align-items: center; backdrop-filter: blur(8px); background: rgba(16, 29, 33, .88); border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; color: #fff; cursor: pointer; display: flex; font-size: 11px; gap: 7px; left: 0; min-height: 40px; opacity: 0; padding: 7px 10px; pointer-events: auto; position: absolute; top: 0; transform: translate(-50%, -100%); transition: opacity .2s, background .2s; white-space: nowrap; }
.e3d-scene-label > span:first-child { background: var(--e3d-red); border-radius: 50%; font-size: 10px; font-weight: 800; padding: 5px; }
.e3d-scene-label.is-active { background: var(--e3d-red); box-shadow: 0 0 0 3px rgba(181, 18, 27, .15); }
.e3d-scene-label.is-active > span:first-child { background: #fff; color: var(--e3d-red); }
.e3d-label-layer.is-visible .e3d-scene-label { opacity: 1; }
.e3d-scene-label::after { background: var(--e3d-red); border-radius: 50%; bottom: -8px; content: ""; height: 7px; left: 50%; position: absolute; transform: translateX(-50%); width: 7px; }

.e3d-toast { background: rgba(16, 19, 24, .92); border-radius: 10px; color: #fff; font-size: 12px; left: 50%; opacity: 0; padding: 11px 15px; pointer-events: none; position: absolute; top: 20px; transform: translate(-50%, -10px); transition: .25s; z-index: 20; }
.e3d-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.e3d-floor-badge {
    backdrop-filter: blur(14px);
    background: rgba(181, 18, 27, .94);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(72, 3, 8, .3);
    color: #fff;
    left: auto;
    opacity: 0;
    padding: 9px 14px;
    pointer-events: none;
    position: absolute;
    right: 18px;
    bottom: 84px;
    transform: translate(8px, -8px);
    transition: .22s ease;
    z-index: 9;
}
.e3d-floor-badge.is-visible { opacity: 1; transform: translate(0, 0); }
.e3d-floor-badge span, .e3d-floor-badge strong { display: block; text-align: center; }
.e3d-floor-badge span { font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.e3d-floor-badge strong { font-family: Georgia, serif; font-size: 17px; margin-top: 2px; }
.e3d-floor-badge small { display: block; font-size: 11px; font-weight: 700; margin-top: 5px; text-align: center; }

.e3d-loader { align-items: center; background: rgba(13, 17, 23, .88); color: #fff; display: flex; flex-direction: column; inset: 0; justify-content: center; position: absolute; transition: opacity .45s, visibility .45s; z-index: 30; }
.e3d-loader.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.e3d-loader i { animation: e3d-spin 1s linear infinite; border: 2px solid rgba(255, 255, 255, .22); border-radius: 50%; border-top-color: #fff; height: 38px; margin-bottom: 15px; width: 38px; }
.e3d-loader strong { font-family: Georgia, serif; font-size: 23px; }
.e3d-loader span { font-size: 11px; margin-top: 5px; opacity: .68; }
@keyframes e3d-spin { to { transform: rotate(360deg); } }

.e3d-sales { background: var(--e3d-panel); box-shadow: -18px 0 55px rgba(9, 13, 18, .28); display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-width: 0; position: fixed; right: 0; top: 0; transform: translateX(105%); transition: transform .34s cubic-bezier(.22, .78, .22, 1); width: min(470px, 94vw); z-index: 46; }
.e3d-sales.is-open { transform: none; }
.e3d-sales-head { border-bottom: 1px solid var(--e3d-line); padding: 22px 22px 15px; }
.e3d-sales-head .e3d-panel-heading h2 { font-size: 27px; margin-bottom: 10px; }
.e3d-sync { align-items: center; background: #edf9f0; border-radius: 9px; color: #23713b; display: flex; font-size: 10px; gap: 7px; line-height: 1.3; padding: 8px 9px; }
.e3d-sync > span { flex: 1; }
.e3d-sync i { background: var(--e3d-green); border-radius: 50%; height: 7px; width: 7px; }
.e3d-sync button { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 15px; }
.e3d-sync.is-loading { background: #f4f1e8; color: #756121; }
.e3d-sync.is-loading i { animation: e3d-pulse 1s infinite; background: var(--e3d-amber); }
.e3d-sync.is-error { background: #fae9ea; color: #8b1c24; }
.e3d-sync.is-error i { background: var(--e3d-red); }
@keyframes e3d-pulse { 50% { opacity: .32; } }

.e3d-kpis { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin: 13px 0; }
.e3d-kpis div { background: #f3f4f5; border-radius: 10px; padding: 9px 10px; }
.e3d-kpis strong, .e3d-kpis span { display: block; }
.e3d-kpis strong { font-size: 19px; }
.e3d-kpis span { color: var(--e3d-muted); font-size: 9px; text-transform: uppercase; }
.e3d-filters { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
.e3d-filters button { background: #f0f1f2; border: 0; border-radius: 999px; color: #555c65; cursor: pointer; flex: 0 0 auto; font-size: 10px; font-weight: 750; padding: 8px 10px; }
.e3d-filters button.is-active { background: var(--e3d-red); color: #fff; }
.e3d-search-row { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.e3d-search-row input, .e3d-search-row select { font-size: 11px; padding: 9px 10px; }

.e3d-table-head, .e3d-unit-row { align-items: center; display: grid; gap: 7px; grid-template-columns: 1.3fr .65fr .7fr 1fr; }
.e3d-table-head { background: #fafafa; border-bottom: 1px solid var(--e3d-line); color: #7a8088; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 9px 22px; text-transform: uppercase; }
.e3d-unit-list { flex: 1; min-height: 120px; overflow: auto; padding: 5px 13px; }
.e3d-unit-row { background: transparent; border: 0; border-bottom: 1px solid #eef0f1; border-radius: 8px; color: var(--e3d-ink); cursor: pointer; font-size: 11px; padding: 10px 9px; text-align: left; transition: .16s; width: 100%; }
.e3d-unit-row:hover { background: #fff5f5; }
.e3d-unit-row.is-active {
    background: linear-gradient(90deg, #ffe3e6 0%, #fff3f4 100%);
    box-shadow: inset 4px 0 0 var(--e3d-red), 0 3px 12px rgba(181, 18, 27, .09);
    color: #850e16;
    font-weight: 700;
}
.e3d-unit-row.is-active strong::after { content: "  ✓"; color: var(--e3d-red); }
.e3d-unit-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e3d-status { align-items: center; display: flex; font-size: 9px; gap: 5px; }
.e3d-status i { border-radius: 50%; flex: 0 0 auto; height: 7px; width: 7px; }
.e3d-status.is-disponivel i { background: var(--e3d-green); box-shadow: 0 0 7px var(--e3d-green); }
.e3d-status.is-reservado i { background: var(--e3d-amber); }
.e3d-status.is-vendido i, .e3d-status.is-indisponivel i { background: var(--e3d-sold); }
.e3d-list-placeholder { color: var(--e3d-muted); font-size: 12px; padding: 35px 15px; text-align: center; }

.e3d-unit-detail { border-top: 1px solid var(--e3d-line); flex: 0 0 auto; max-height: 38vh; overflow: auto; padding: 18px 22px 22px; }
.e3d-detail-empty { color: #717780; padding: 12px 5px; text-align: center; }
.e3d-detail-empty > span { color: var(--e3d-red); display: block; font-size: 22px; }
.e3d-detail-empty strong { color: var(--e3d-ink); display: block; font-family: Georgia, serif; font-size: 19px; margin: 5px 0; }
.e3d-detail-empty p { font-size: 11px; line-height: 1.45; margin: 0 auto; max-width: 290px; }
.e3d-detail-title { align-items: flex-start; display: flex; gap: 10px; justify-content: space-between; }
.e3d-detail-title h3 { font-family: Georgia, serif; font-size: 22px; line-height: 1; margin: 0; }
.e3d-detail-pill { border-radius: 999px; flex: 0 0 auto; font-size: 9px; font-weight: 800; padding: 7px 9px; text-transform: uppercase; }
.e3d-detail-pill.is-disponivel { background: #e7f8ed; color: #227640; }
.e3d-detail-pill.is-reservado { background: #fff4d9; color: #8b6508; }
.e3d-detail-pill.is-vendido, .e3d-detail-pill.is-indisponivel { background: #eceeef; color: #636a73; }
.e3d-detail-grid { display: grid; gap: 7px; grid-template-columns: repeat(2, 1fr); margin: 14px 0; }
.e3d-detail-grid div { background: #f4f5f6; border-radius: 8px; padding: 9px; }
.e3d-detail-grid span, .e3d-detail-grid strong { display: block; }
.e3d-detail-grid span { color: var(--e3d-muted); font-size: 9px; text-transform: uppercase; }
.e3d-detail-grid strong { font-size: 12px; margin-top: 2px; }
.e3d-detail-price { color: var(--e3d-red); font-size: 20px; font-weight: 850; margin: 5px 0 12px; }
.e3d-detail-image { background: #f1f2f2; border-radius: 9px; display: block; max-height: 155px; object-fit: contain; width: 100%; }
.e3d-detail-note { color: var(--e3d-muted); font-size: 9px; line-height: 1.45; margin: 10px 0 0; }

@media (max-width: 1180px) {
    .e3d-toolbar button span { display: none; }
    .e3d-legend { display: none; }
}

@media (max-width: 860px) {
    .e3d-stage { height: 100vh; height: 100dvh; }
    .e3d-back { height: 38px; width: 38px; }
    .e3d-brand h1 { font-size: 28px; }
    .e3d-toolbar { bottom: 18px; left: auto; right: 15px; transform: none; }
    .e3d-compass { right: 17px; top: 20px; }
    .e3d-floor-badge { bottom: 88px; right: 15px; }
}

@media (max-width: 520px) {
    .e3d-location-panel { bottom: 15px; left: 12px; max-height: 58vh; padding: 13px; top: auto; width: calc(100% - 86px); }
    .e3d-location-panel .e3d-panel-heading h2 { font-size: 17px; }
    .e3d-location-panel .e3d-location-actions button { height: 29px; width: 29px; }
    .e3d-kiosk-menu { padding: 22px 18px; }
    .e3d-edge-toggle { min-height: 54px; padding: 10px 12px; }
    .e3d-toolbar { bottom: 70px; flex-direction: column; }
    .e3d-toolbar button { padding: 9px; }
    .e3d-search-row { grid-template-columns: 1fr; }
    .e3d-unit-detail { max-height: 34vh; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
