:root {
  --ink: #121611;
  --muted: #6f736b;
  --paper: #fbf7ed;
  --panel: #fffdf7;
  --line: #ddd3bd;
  --dark: #112117;
  --dark-2: #1d2d22;
  --green: #25d889;
  --orange: #f7a634;
  --danger: #c84444;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #f3efe6; font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
input, select, button, textarea { font: inherit; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
small, .help-text { color: var(--muted); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #eef5df, #f7f0df 52%, #e9e1d1); }
.auth-card { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 18px 60px rgba(17,33,23,.14); }
.auth-card-wide { width: min(560px, 100%); }
.brand-lockup { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.brand-lockup span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 10px; background: var(--orange); color: #08120c; font-size: 20px; font-weight: 900; }
.brand-lockup h1 { margin: 0; }
.login-copy { color: var(--muted); font-weight: 700; line-height: 1.5; }
.eyebrow { margin: 0 0 4px; color: #98701d; text-transform: uppercase; letter-spacing: 0; font-weight: 800; font-size: 11px; }
h1, h2, h3, p { margin-top: 0; }
.admin-body { background: #f6f7fb; }
.admin-app { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); transition: grid-template-columns .2s ease; }
.admin-nav-collapsed .admin-app { grid-template-columns: 72px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: #111827; color: #fff; padding: 20px 16px; display: flex; flex-direction: column; gap: 26px; }
.admin-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.admin-brand span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--orange); color: #111827; border-radius: 8px; font-weight: 900; }
.admin-nav-collapsed .admin-sidebar { padding-inline: 10px; align-items: center; }
.admin-nav-collapsed .admin-brand strong,
.admin-nav-collapsed .side-nav a { font-size: 0; width: 46px; min-height: 42px; display: grid; place-items: center; padding: 0; }
.admin-nav-collapsed .side-nav a::before { content: attr(data-short); font-size: 15px; font-weight: 900; }
.side-nav { display: grid; gap: 8px; }
.side-nav a { color: #dbe4ee; padding: 12px 14px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.side-nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-content { min-width: 0; }
.topbar { min-height: 82px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid #e7e9ef; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 28px; position: sticky; top: 0; z-index: 5; }
.topbar h1 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.topbar nav, .toolbar, .strip-actions, .actions, .project-actions, .dialog-actions, .zoom-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.shell { width: min(1500px, calc(100% - 32px)); margin: 18px auto 48px; }
.panel, .hero-panel { background: #fff; border: 1px solid #e7e9ef; border-radius: 8px; padding: 18px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.panel h2 { margin-bottom: 12px; font-size: 20px; line-height: 1.15; }
.hero-panel { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.hero-panel h2 { margin: 0; max-width: 760px; }
.btn { border: 1px solid #dfe3ea; border-radius: 7px; background: #fff; color: var(--ink); padding: 10px 14px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; }
.btn:hover { filter: brightness(.98); }
.btn.primary, .btn.dark, .btn.tool.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn.tool.active:not(.warm) { background: #1d6b56; border-color: #1d6b56; color: #fff; }
.btn.primary { background: var(--green); border-color: var(--green); color: #06110b; }
.btn.accent { background: #2fb6a3; border-color: #2fb6a3; color: #03120f; }
.btn.soft { background: #f8fafc; border-color: #dfe7ee; color: #223129; }
.btn.warm, .btn.tool.active.warm { background: #ffe4ad; border-color: #efbd68; color: #553711; }
.btn.accent-soft { background: #edf8f5; border-color: #bde6dc; color: #145346; }
.btn.small { padding: 7px 10px; min-height: 32px; font-size: 12px; }
.btn.square { width: 42px; padding: 0; }
.btn.danger-soft { color: var(--danger); background: #fff2ef; border-color: #f0cfc6; }
.file-btn input { display: none; }
.grid.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: #fff; border-radius: 8px; padding: 18px; }
.metric span { color: #aeb7ad; font-weight: 800; }
.metric strong { display: block; font-size: 30px; margin-top: 8px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2 { margin: 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px; border-bottom: 1px solid #eee3cf; text-align: left; vertical-align: top; }
.pill { display: inline-flex; background: #edf6e6; border: 1px solid #cbdcbd; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.stack { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.wide-form { max-width: 980px; }
.sub-panel { border: 1px solid #eadfc9; border-radius: 8px; padding: 14px; background: #fffaf0; }
.project-price-masters { display: grid; gap: 12px; }
.project-price-card { display: grid; gap: 11px; padding: 14px; border: 1px solid #e3d6bd; border-radius: 8px; background: #fff; }
.price-field-list { display: grid; gap: 8px; }
.price-field-row { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; align-items: center; }
.check-row { display: flex; grid-template-columns: none; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #eadfc9; border-radius: 7px; background: #fff; }
.check-row input { width: auto; }
.project-list { display: grid; gap: 12px; }
.project-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; justify-content: space-between; gap: 18px; align-items: center; background: #fffaf0; }
.notice { border-radius: 6px; padding: 12px; font-weight: 700; }
.notice.success { background: #e7f7e8; color: #12612a; }
.notice.error { background: #fff0ed; color: #a53128; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.editor-main { position: relative; min-width: 0; }
.editor-crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; background: #fff; border: 1px solid #e7e9ef; border-radius: 8px; padding: 10px 12px; box-shadow: 0 8px 22px rgba(15,23,42,.04); }
.editor-crumbs div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; font-weight: 700; }
.editor-crumbs strong { color: var(--ink); }
.editor-crumbs b { color: #b7aa91; }
.side-collapsed .editor-layout { grid-template-columns: 1fr; }
.side-collapsed .editor-side { display: none; }
.editor-focus .admin-sidebar,
.editor-focus .topbar,
.editor-focus .project-strip,
.editor-focus .editor-side,
.editor-focus .help-text { display: none; }
.editor-focus .admin-app { display: block; }
.editor-focus .shell { width: 100%; margin: 0; }
.editor-focus .editor-layout { display: block; }
.editor-focus .toolbar-panel { position: fixed; left: 12px; top: 12px; z-index: 40; margin: 0; max-height: calc(100vh - 24px); }
.editor-focus .editor-zoom-strip { position: fixed; right: 14px; top: 14px; left: 78px; z-index: 39; box-shadow: 0 14px 42px rgba(15,23,42,.18); }
.editor-focus .canvas-shell { height: 100vh; min-height: 0; border-radius: 0; border: 0; margin: 0; padding-top: 82px; }
.editor-focus .map-navigator { display: block !important; position: fixed; left: 92px; bottom: 18px; z-index: 41; margin: 0; }
.editor-workbench .admin-sidebar,
.editor-workbench .topbar { display: none; }
.editor-workbench .admin-app { display: block; min-height: 100vh; }
.editor-workbench .shell { width: 100%; margin: 0; padding: 10px; background: linear-gradient(90deg, #edf7f2 0, #f7f8fb 18%, #f7f8fb 82%, #fff6e8 100%); }
.editor-workbench .editor-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 8px; align-items: stretch; height: calc(100vh - 20px); overflow: hidden; }
.editor-workbench .editor-main { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 8px; min-height: 0; }
.editor-workbench .editor-crumbs { grid-column: 1 / -1; margin: 0; min-height: 48px; padding: 8px 10px; }
.editor-workbench .editor-back-btn { background: #f8fafc; border-color: #dfe7ee; }
.editor-workbench .map-tools-bar { grid-column: 1; grid-row: 2 / 4; position: sticky; top: 10px; z-index: 9; margin: 0; align-self: start; padding: 6px; max-height: calc(100vh - 84px); overflow: visible; background: linear-gradient(180deg, #ecfbf6, #fff8ea); border-color: #cae9dd; box-shadow: 0 12px 30px rgba(23,99,58,.08); }
.editor-workbench .tool-title { display: none; }
.editor-workbench .map-tools-bar .toolbar { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 0; border: 0; background: transparent; }
.editor-workbench .map-tools-bar .toolbar .btn,
.editor-workbench .map-tools-bar .toolbar .file-btn { width: 40px; min-width: 40px; min-height: 36px; border-radius: 9px; padding: 0; }
.editor-workbench .map-tools-bar .toolbar .icon-tool > span { font-size: 14px; }
.editor-workbench .map-tools-bar .toolbar > * { width: 62px; min-width: 0; }
.editor-workbench .map-tools-bar .toolbar > span { display: block; padding: 4px 2px; color: #31443b; font-size: 10px; font-weight: 800; line-height: 1.15; text-align: center; }
.editor-workbench .map-tools-bar .toolbar label { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 5px 3px; font-size: 10px; text-align: center; }
.editor-workbench .map-tools-bar .toolbar .scale-control input { width: 50px; padding: 5px; text-align: center; }
.editor-workbench .map-tools-bar .toolbar .zoom-slider-control { min-width: 0; min-height: 180px; background: rgba(255,255,255,.78); }
.editor-workbench .map-tools-bar .toolbar .zoom-slider-control input { width: 24px; height: 142px; writing-mode: vertical-lr; direction: rtl; }
.editor-workbench .map-tools-bar .toolbar #previewToggleBtn { margin-top: 3px; background: #fff4dc; border-color: #efc46f; }
.editor-workbench .map-tools-bar .toolbar #segmentReadout,
.editor-workbench .map-tools-bar .toolbar #saveStatus,
.editor-workbench .map-tools-bar .toolbar #zoomLabel { box-sizing: border-box; width: 62px; min-width: 0; padding: 7px 3px; border: 1px solid #dbe7e0; border-radius: 7px; background: rgba(255,255,255,.88); text-align: center; overflow: hidden; }
.editor-workbench .map-tools-bar .toolbar #saveStatus { color: #17663e; }
.editor-workbench .map-tools-bar .toolbar #zoomLabel { display: block; color: #173c2e; font-size: 11px; }
.editor-workbench .editor-zoom-strip { display: flex; flex-wrap: nowrap; gap: 5px; overflow-x: auto; }
.editor-workbench .editor-zoom-strip .btn,
.editor-workbench .editor-zoom-strip .file-btn { flex: 0 0 38px; width: 38px; min-width: 38px; min-height: 34px; padding: 0; }
.editor-workbench .icon-tool::after { left: calc(100% + 8px); bottom: 50%; transform: translateY(50%) translateX(-4px); }
.editor-workbench .icon-tool::before { left: calc(100% + 2px); bottom: 50%; transform: translateY(50%); border-top-color: transparent; border-right-color: #111827; }
.editor-workbench .icon-tool:hover::after,
.editor-workbench .icon-tool:focus-visible::after { transform: translateY(50%) translateX(0); }
.editor-workbench .editor-zoom-strip { grid-column: 2; grid-row: 2; justify-self: stretch; align-self: center; max-width: none; background: #fff; border: 1px solid #e7e9ef; border-radius: 8px; padding: 6px; overflow: hidden; }
.editor-workbench .canvas-shell { grid-column: 2; grid-row: 3; height: auto; min-height: 0; padding: 10px; border-radius: 8px; }
.editor-workbench .help-text { grid-column: 2; grid-row: 4; margin: 0; font-size: 12px; }
.editor-workbench .editor-side { top: 10px; max-height: calc(100vh - 20px); gap: 8px; padding: 7px; border-radius: 10px; background: linear-gradient(180deg, #fff7e8, #eef8f3); border: 1px solid #eadfc9; align-content: start; grid-auto-rows: max-content; overflow-x: hidden; }
.editor-workbench .editor-side .panel { padding: 12px; border-color: #e6ddcb; box-shadow: 0 8px 22px rgba(80,62,24,.06); }
.editor-workbench .editor-side .panel h2 { font-size: 17px; }
.editor-workbench .editor-side label { font-size: 12px; gap: 5px; }
.editor-workbench .editor-side input,
.editor-workbench .editor-side select,
.editor-workbench .editor-side textarea { padding: 8px 10px; font-size: 13px; }
.editor-workbench .panel-group-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 9px; background: linear-gradient(135deg, #173f35, #102018); color: #fff; box-shadow: 0 12px 28px rgba(10,30,20,.18); }
.editor-workbench .panel-group-header span { display: block; color: #89dec6; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.editor-workbench .panel-group-header strong { display: block; margin-top: 2px; font-size: 12px; line-height: 1.2; }
.editor-workbench .panel-group-header .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.editor-workbench .selected-panel { position: relative; top: auto; z-index: 12; min-height: 160px; max-height: none; overflow: visible; height: auto; }
.editor-workbench .selected-panel #plotForm { max-height: none; overflow: visible; padding-right: 0; }
.editor-workbench .project-info-panel { position: relative; z-index: 1; }
.editor-workbench .editor-secondary-panel { display: none; }
.editor-workbench .project-info-panel .viewer-settings-form h3 { font-size: 15px; margin: 2px 0 8px; }
.editor-workbench .guide-list { font-size: 12px; }
.editor-workbench.side-collapsed .editor-layout { grid-template-columns: minmax(0, 1fr); }
.project-strip { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.project-editor-bar { position: sticky; top: 92px; z-index: 4; }
.project-editor-bar .compact-zoom { grid-column: 1 / -1; }
.toolbar-panel { display: grid; gap: 9px; padding: 12px; background: rgba(255,253,247,.98); backdrop-filter: blur(16px); }
.map-tools-bar { position: sticky; top: 92px; z-index: 4; margin-bottom: 16px; }
.map-tools-bar .toolbar { display: flex; flex-wrap: wrap; gap: 7px; background: #fbfcfd; border-color: #e4eaf0; padding: 7px; }
.map-tools-bar .toolbar .btn { width: auto; min-width: 42px; min-height: 36px; justify-content: center; border-radius: 9px; box-shadow: inset 0 -1px 0 rgba(15,23,42,.04); }
.map-tools-bar .toolbar .file-btn { min-width: 42px; }
.map-tools-bar .toolbar #focusMapBtn { min-width: 42px; background: #fff4dc; border-color: #efc46f; }
.icon-tool { position: relative; width: 42px; min-width: 42px; padding-inline: 0; }
.icon-tool > span { display: block; width: 100%; text-align: center; font-size: 16px; line-height: 1; }
.icon-tool::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px); z-index: 50; width: max-content; max-width: 190px; padding: 6px 9px; border-radius: 7px; background: #111827; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; box-shadow: 0 10px 28px rgba(15,23,42,.24); opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease; }
.icon-tool::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); border: 5px solid transparent; border-top-color: #111827; opacity: 0; pointer-events: none; transition: opacity .14s ease; }
.icon-tool:hover::after, .icon-tool:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.icon-tool:hover::before, .icon-tool:focus-visible::before { opacity: 1; }
.project-side-form { display: grid; gap: 12px; }
.tool-title { margin-bottom: 0; }
.tool-title h2 { font-size: 16px; margin: 0; }
.toolbar { display: grid; grid-template-columns: 1fr 1fr; background: #f8fafc; border: 1px solid #e6eaf0; border-radius: 7px; padding: 8px; }
.toolbar #quickSaveBtn,
.toolbar .file-btn,
.toolbar #focusMapBtn { grid-column: 1 / -1; }
.toolbar .btn { width: 100%; min-height: 34px; padding: 7px 10px; justify-content: flex-start; font-size: 12.5px; }
.zoom-row { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; background: #f8fafc; border-radius: 6px; padding: 8px; }
.compact-zoom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; background: transparent; min-width: 0; }
.compact-zoom .scale-control, .compact-zoom #cursorReadout, .compact-zoom #segmentReadout, .compact-zoom #saveStatus { grid-column: auto; }
.compact-zoom #cursorReadout { width: 74px; min-width: 0; }
.compact-zoom #segmentReadout { width: 78px; min-width: 0; }
.compact-zoom #saveStatus { width: 72px; min-width: 0; }
.compact-zoom .scale-control { width: 132px; }
.compact-zoom #panelToggleBtn,
.compact-zoom #quickSaveBtn,
.compact-zoom #quickLiveBtn,
.compact-zoom #fitBtn { width: 34px; min-width: 34px; flex: 0 0 34px; padding: 0; }
.compact-zoom .btn.square { width: 30px; min-height: 30px; padding: 5px; }
.compact-zoom .btn { min-height: 32px; padding: 7px 10px; font-size: 12px; }
.compact-zoom .icon-tool > span { font-size: 13px; }
.compact-zoom #zoomLabel { text-align: center; font-size: 12px; width: 38px; }
#cursorReadout, #segmentReadout, #saveStatus { font-weight: 700; font-size: 11px; background: #fff; border-radius: 5px; padding: 6px 8px; min-width: 112px; border: 1px solid #eadfc9; line-height: 1.2; }
#segmentReadout { min-width: 112px; }
#saveStatus { color: #17633a; }
#saveStatus.dirty { color: #9b6512; background: #fff3d5; border-color: #f1d18e; }
.scale-control { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #eadfc9; border-radius: 5px; padding: 5px 8px; white-space: nowrap; font-size: 11px; }
.scale-control input { width: 48px; padding: 5px 7px; }
.zoom-slider-control { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #dce5ef; border-radius: 5px; padding: 5px 8px; min-width: 170px; white-space: nowrap; font-size: 11px; }
.zoom-slider-control input { width: 118px; accent-color: #14b8a6; }
.canvas-shell { position: relative; height: min(82vh, 980px); min-height: 700px; overflow: auto; border-radius: 8px; background: #0e1a12; border: 1px solid #243829; padding: 16px; touch-action: none; }
.canvas-stage { width: max-content; height: max-content; transform-origin: 0 0; }
#mapSvg { display: block; background: #0e1a12; user-select: none; cursor: crosshair; }
.map-navigator { position: sticky; left: 12px; bottom: 12px; z-index: 8; width: 258px; margin-top: -172px; margin-left: 10px; padding: 9px; border-radius: 9px; background: rgba(8,20,13,.86); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 14px 38px rgba(0,0,0,.32); backdrop-filter: blur(14px); pointer-events: auto; cursor: crosshair; }
.map-navigator-title { color: #fff; font-size: 10px; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; letter-spacing: 0; }
#navigatorSvg { display: block; width: 240px; height: 150px; border-radius: 6px; overflow: hidden; background: #13251a; }
.nav-bg { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.18); stroke-width: 1; }
.nav-window { fill: rgba(255,166,43,.18); stroke: #ffa62b; stroke-width: 1.6; }
.nav-cursor { fill: #25d889; stroke: #fff; stroke-width: 1; }
.plot-shape { fill: rgba(37,216,137,.32); stroke: #22e69a; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: grab; }
.plot-shape.reserved { fill: rgba(255,183,65,.35); stroke: #ffbd49; }
.plot-shape.hold { fill: rgba(93,170,255,.28); stroke: #5daaff; }
.plot-shape.sold { fill: rgba(255,85,98,.28); stroke: #ff5666; }
.plot-shape.selected { stroke: #fff; stroke-width: 3; }
.map-layer-shape { vector-effect: non-scaling-stroke; cursor: grab; paint-order: stroke fill; filter: drop-shadow(0 4px 8px rgba(15,23,42,.16)); }
.map-layer-shape.selected { filter: drop-shadow(0 0 8px rgba(255,255,255,.85)); }
.selection-inactive { opacity: .24 !important; filter: grayscale(.72) !important; pointer-events: none !important; }
.selection-lock-target { filter: drop-shadow(0 0 7px rgba(255,196,61,.9)); }
#keepSelectedBtn.active { background: #173c2e; color: #fff; border-color: #173c2e; }
.map-layer-road { stroke-linecap: round; stroke-linejoin: round; }
.map-layer-road-border,
.map-layer-road-surface,
.map-layer-road-hit { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-layer-road-border,
.map-layer-road-surface { pointer-events: none; }
.map-layer-road-hit { stroke: transparent; pointer-events: stroke; cursor: grab; }
.map-layer-road-group:hover .map-layer-road-surface { filter: brightness(1.12) drop-shadow(0 6px 12px rgba(15,23,42,.22)); }
.map-layer-road-group.selected .map-layer-road-surface { filter: brightness(1.16) drop-shadow(0 0 10px rgba(245,158,11,.95)); }
.map-layer-road-group.selected .map-layer-road-hit { cursor: grabbing; }
.map-layer-garden { stroke-dasharray: 8 5; }
.map-layer-boundary { stroke-dasharray: 12 7; }
.boundary-curve-guide { stroke: #f59e0b; stroke-width: 1.25; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.boundary-curve-handle { fill: #fbbf24; stroke: #ffffff; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: grab; filter: drop-shadow(0 2px 5px rgba(15,23,42,.35)); }
.boundary-curve-handle:hover { fill: #fde68a; stroke: #173c2e; }
.boundary-selection-hit { fill: none; stroke: transparent; pointer-events: stroke; cursor: grab; vector-effect: non-scaling-stroke; }
.boundary-vertex-handle { fill: #ffffff; stroke: #173c2e; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; filter: drop-shadow(0 2px 4px rgba(15,23,42,.28)); }
.boundary-vertex-handle.selected { fill: #22c55e; stroke: #ffffff; stroke-width: 3; }
.layer-order-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; border: 1px solid #dce6df; border-radius: 7px; background: #f7faf8; }
.layer-order-controls > strong { grid-column: 1 / -1; color: #173c2e; font-size: 11px; text-transform: uppercase; }
.layer-order-controls .btn { min-width: 0; padding: 7px 5px; font-size: 10px; }
.shape-selected-edge { stroke: #ff2f7d; stroke-width: 3.2; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; pointer-events: none; filter: drop-shadow(0 0 7px rgba(255,47,125,.85)); }
.shape-edge-adjuster { stroke: transparent; stroke-width: 18px; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: move; }
.map-layer-gate { stroke-width: 3 !important; }
.map-layer-label { fill: #123226; stroke: #fffaf0; stroke-width: 3px; paint-order: stroke; font-size: 12px; font-weight: 900; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.road-layer-label { fill: #111827; stroke: #fffaf0; stroke-width: 4px; font-size: 13px; letter-spacing: .02em; }
.shape-draft-line { stroke-width: 5; }
.plot-label { fill: #fff; font-weight: 900; pointer-events: none; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #06100b; stroke-width: 2.2px; font-size: 13px; }
.plot-label.dark-label { text-shadow: 0 1px 2px rgba(255,255,255,.7); }
.point-handle { fill: #fff; stroke: #102018; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: move; }
.point-handle.active { fill: var(--orange); }
.point-handle.edge-selected { fill: #f59e0b; stroke: #fff; stroke-width: 2.6; filter: drop-shadow(0 0 7px rgba(245,158,11,.9)); }
.draft-line { fill: rgba(20,184,166,.12); stroke: #14b8a6; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 5 5; filter: drop-shadow(0 0 5px rgba(20,184,166,.35)); }
.draft-finish-action { cursor: pointer; filter: drop-shadow(0 5px 10px rgba(3, 21, 16, .24)); }
.draft-finish-action rect { fill: #f7c65b; stroke: #8f6413; stroke-width: 1; vector-effect: non-scaling-stroke; }
.draft-finish-action text { fill: #10251d; font-family: Inter, Arial, sans-serif; font-weight: 900; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.draft-finish-action:hover rect { fill: #ffd878; stroke: #173c2e; }
.road-side-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid #d8dfda; border-radius: 7px; background: #f7faf8; }
.road-side-colors > strong { grid-column: 1 / -1; font-size: 12px; color: #173c2e; }
.road-side-colors label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 11px; }
.road-side-colors input[type="color"] { width: 42px; min-height: 30px; padding: 2px; }
.dimension-line { stroke: #fff; stroke-width: .45; vector-effect: non-scaling-stroke; opacity: .72; }
.selected-edge-line { stroke: #ff2f7d; stroke-width: 3.2; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; pointer-events: none; filter: drop-shadow(0 0 7px rgba(255,47,125,.85)); }
.edge-adjuster { stroke: transparent; stroke-width: 14px; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: move; }
#dimArrow path, #viewerDimArrow path { fill: #fff; stroke: none; }
.dimension-text { fill: #111; font-size: 6px; font-weight: 900; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: 1.7px; }
.road-text { fill: #ff384b; font-size: 7px; font-weight: 900; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: 2.1px; }
.plot-facing-label, .plot-area-label { fill: #fff; font-size: 6px; font-weight: 900; pointer-events: none; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(5,14,9,.9); stroke-width: 1.7px; }
.plot-facing-label.dark-label, .plot-area-label.dark-label { text-shadow: 0 1px 2px rgba(255,255,255,.65); }
.editor-side { position: sticky; top: 98px; display: grid; gap: 14px; max-height: calc(100vh - 114px); overflow: auto; padding-right: 3px; }
.selected-panel { max-height: calc(100vh - 126px); overflow: auto; }
.mini-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.muted-box { color: var(--muted); background: #f7f2e8; border: 1px solid #eadfc9; border-radius: 6px; padding: 14px; }
.point-card { background: #f8f1e5; border: 1px solid #eadbc0; border-radius: 7px; padding: 12px; display: grid; gap: 10px; }
.point-card.active { outline: 2px solid var(--orange); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.point-nav { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; background: #102018; color: #fff; border-radius: 7px; padding: 10px; font-size: 13px; }
.share-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.guide-list { color: var(--muted); line-height: 1.7; padding-left: 22px; }
.status-style-form { display: grid; gap: 10px; margin-bottom: 10px; }
.panel-note { display: block; color: #6f736b; background: #f8fafc; border: 1px solid #e3e8ef; border-radius: 7px; padding: 9px 10px; margin: -4px 0 12px; font-size: 12px; font-weight: 700; line-height: 1.35; }
.status-style-row { display: grid; grid-template-columns: 1.2fr 62px 82px auto; gap: 8px; align-items: end; border: 1px solid #eadfc9; background: #fffaf0; border-radius: 7px; padding: 10px; }
.status-style-row input[type="color"] { height: 42px; padding: 4px; }
.price-picker { display: grid; gap: 10px; padding: 10px; border: 1px solid #e9dcc2; border-radius: 8px; background: #fffaf1; }
.plot-media-box { display: grid; gap: 10px; padding: 11px; border: 1px solid #d7eadf; border-radius: 8px; background: #f7fffb; }
.plot-media-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plot-media-head strong { font-size: 13px; }
.plot-gallery-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plot-media-thumb { position: relative; aspect-ratio: 1.18; overflow: hidden; border: 1px solid #dbe6df; border-radius: 7px; background: #f8fafc; }
.plot-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-remove { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.75); background: rgba(16,24,18,.78); color: #fff; cursor: pointer; font-weight: 900; line-height: 1; }
.media-link { display: inline-flex; width: max-content; max-width: 100%; padding: 7px 10px; border-radius: 999px; background: #fff7df; border: 1px solid #ead8aa; color: #64440c; font-size: 12px; font-weight: 800; }
.villa-box { background: #fffaf2; border-color: #eadfc9; }
.muted-box.compact { padding: 9px 10px; font-size: 12px; }
.price-master-form { display: grid; gap: 10px; margin-bottom: 10px; }
.price-master-card { display: grid; gap: 10px; padding: 11px; border: 1px solid #eadfc9; border-radius: 8px; background: #fffaf0; }
.price-master-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-master-head strong { font-size: 12px; line-height: 1.25; }
.rights-grid { grid-template-columns: minmax(320px, 440px) 1fr; align-items: start; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 800; line-height: 1.35; }
.check-row input { width: auto; }
.inline-check { margin: 0; white-space: nowrap; }
.compact-title { align-items: center; margin-bottom: 8px; }
.permission-pills { display: flex; flex-wrap: wrap; gap: 5px; max-width: 520px; }
.permission-pills span { display: inline-flex; padding: 5px 7px; border-radius: 999px; background: #eef8f3; border: 1px solid #cfe9dc; color: #17633a; font-size: 10.5px; font-weight: 800; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #e9fff4; color: #12623a; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.status-pill.disabled { background: #fff0ef; color: #b52a2a; }
.project-website-builder { display: grid; gap: 10px; background: linear-gradient(180deg, #f8fffb, #fffaf1); border: 1px solid #dcecdf; border-radius: 10px; padding: 14px; }
.project-website-builder textarea { resize: vertical; min-height: 78px; }
.project-price-masters { display: grid; gap: 10px; }
.project-price-card { display: grid; gap: 10px; padding: 12px; border: 1px solid #eadfc9; border-radius: 9px; background: #fffdf8; }
.price-field-list { display: grid; gap: 8px; }
.price-field-row { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; align-items: center; }
.price-master-head small { color: #17633a; margin-left: 8px; font-weight: 900; }

.viewer-page { background: #020806; color: #fff; min-height: 100vh; overflow: hidden; }
.viewer-map-wrap { position: fixed; inset: 0; overflow: auto; display: block; background: #020806; padding: 62px 0 30px; cursor: grab; touch-action: none; overscroll-behavior: contain; }
#viewerSvg { width: 100vw; max-width: none; height: auto; display: block; margin: 0; }
.viewer-title { position: fixed; top: 18px; left: 22px; z-index: 3; display: inline-flex; align-items: center; gap: 12px; color: #fff; text-shadow: 0 2px 8px #000; }
.viewer-title h1 { margin: 0; color: #fff; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.05; background: rgba(7,17,12,.74); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 10px 18px; backdrop-filter: blur(14px); }
.viewer-title p { margin: 0; color: #e5ebe6; font-weight: 700; font-size: 12px; background: rgba(7,17,12,.54); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 9px 13px; backdrop-filter: blur(14px); }
.viewer-panel { position: fixed; left: 18px; bottom: 24px; z-index: 4; width: min(328px, calc(100vw - 36px)); background: rgba(7,17,12,.82); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; backdrop-filter: blur(20px); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.34); }
.filter-toggle { width: 100%; padding: 12px 15px; background: rgba(0,0,0,.26); color: #fff; border: 0; text-align: left; font-size: 12px; letter-spacing: 0; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.viewer-panel-body { padding: 14px; display: grid; gap: 10px; max-height: 58vh; overflow: auto; font-size: 12px; }
.viewer-panel.collapsed .viewer-panel-body { display: none; }
.viewer-panel.collapsed { width: 190px; }
.available-chip { width: max-content; padding: 9px 13px; border: 1px solid rgba(247,166,52,.45); border-radius: 12px; font-size: 18px; color: var(--green); font-weight: 800; background: rgba(0,0,0,.18); }
.viewer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.viewer-stats div, .detail-grid div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 10px; }
.viewer-stats span, .detail-grid span { color: #aab2aa; text-transform: uppercase; font-size: 11px; font-weight: 800; }
.viewer-stats strong, .detail-grid strong { display: block; margin-top: 5px; font-size: 16px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.filter-grid button { border: 1px solid rgba(255,255,255,.13); color: #fff; background: rgba(255,255,255,.07); border-radius: 10px; padding: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.filter-grid button.active { color: #09110d; background: var(--orange); }
.viewer-plot-group { transition: transform .16s ease, opacity .16s ease; transform-box: fill-box; transform-origin: center; }
.viewer-plot-group:hover, .viewer-plot-group.hot, .viewer-plot-group.active { transform: scale(1.028); }
.viewer-plot { fill: rgba(37,216,137,.28); stroke: #21e28c; stroke-width: 3; stroke-dasharray: 9 7; cursor: pointer; vector-effect: non-scaling-stroke; transition: filter .16s ease, stroke-width .16s ease; }
.viewer-plot-group:hover .viewer-plot, .viewer-plot-group.hot .viewer-plot { filter: drop-shadow(0 0 10px rgba(37,216,137,.55)); stroke-width: 4; }
.viewer-plot-group.active .viewer-plot { filter: drop-shadow(0 0 15px rgba(255,205,69,.86)); stroke: #236dff !important; stroke-width: 5 !important; }
.viewer-plot.status-sold { fill: rgba(255,82,93,.32); stroke: #ff5968; }
.viewer-plot.status-hold { fill: rgba(96,173,255,.32); stroke: #62adff; }
.viewer-plot.status-reserved { fill: rgba(247,166,52,.32); stroke: var(--orange); }
.viewer-plot.dimmed { opacity: .12; }
.viewer-label { fill: var(--center-text, #fff); font-family: var(--map-font, Arial, Helvetica, sans-serif); font-weight: 900; text-anchor: middle; dominant-baseline: middle; font-size: var(--center-font-size, 13px); pointer-events: none; paint-order: stroke; stroke: var(--center-stroke, #06100b); stroke-width: calc(var(--text-stroke-width, 1.7px) + .5px); }
.label-theme-dark .viewer-label { text-shadow: 0 1px 3px rgba(255,255,255,.65); }
.viewer-facing-label, .viewer-area-label { fill: var(--center-text, #fff); font-family: var(--map-font, Arial, Helvetica, sans-serif); font-weight: 900; text-anchor: middle; dominant-baseline: middle; font-size: var(--detail-font-size, 5.8px); pointer-events: none; paint-order: stroke; stroke: var(--center-stroke, rgba(3,10,7,.9)); stroke-width: var(--text-stroke-width, 1.6px); }
.viewer-plot-readout { opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.viewer-plot-group:hover .viewer-plot-readout, .viewer-plot-group.hot .viewer-plot-readout, .viewer-plot-group.active .viewer-plot-readout { opacity: 1; }
.viewer-meta-pill, .viewer-meta-main, .viewer-meta-sub { text-anchor: middle; dominant-baseline: middle; fill: #fff; paint-order: stroke; stroke: rgba(3,8,5,.9); stroke-width: 3px; font-weight: 900; letter-spacing: 0; }
.viewer-meta-pill { font-size: 8px; text-transform: uppercase; }
.viewer-meta-main { font-size: 10px; }
.viewer-meta-sub { font-size: 8px; }
.label-theme-dark .viewer-meta-pill, .label-theme-dark .viewer-meta-main, .label-theme-dark .viewer-meta-sub { fill: #111827; stroke: rgba(255,255,255,.92); }
.viewer-dim-guide { opacity: 0; stroke: #fff; stroke-width: .48; vector-effect: non-scaling-stroke; pointer-events: none; transition: opacity .16s ease; }
.viewer-side-dim { opacity: 0; fill: var(--dimension-text, #111); font-family: var(--map-font, Arial, Helvetica, sans-serif); font-weight: 900; text-anchor: middle; dominant-baseline: middle; font-size: var(--detail-font-size, 6px); pointer-events: none; paint-order: stroke; stroke: var(--dimension-stroke, #fff); stroke-width: var(--dimension-stroke-width, var(--text-stroke-width, 1.7px)); transition: opacity .16s ease, font-size .16s ease; }
.viewer-road-label { opacity: 0; fill: var(--road-text, #ff394f); font-family: var(--map-font, Arial, Helvetica, sans-serif); font-weight: 900; text-anchor: middle; dominant-baseline: middle; font-size: var(--road-font-size, 7px); pointer-events: none; paint-order: stroke; stroke: var(--road-stroke, #fff); stroke-width: var(--road-stroke-width, calc(var(--text-stroke-width, 1.7px) + .35px)); transition: opacity .16s ease, font-size .16s ease; }
.viewer-map-shape { vector-effect: non-scaling-stroke; pointer-events: none; }
.viewer-map-road,
.viewer-map-road-border { stroke-linecap: round; stroke-linejoin: round; }
.viewer-map-garden { stroke-dasharray: 8 5; }
.viewer-map-boundary { stroke-dasharray: 12 7; }
.viewer-map-layer-label { fill: #123226; stroke: #fffaf0; stroke-width: 3px; paint-order: stroke; font-family: var(--map-font, Arial, Helvetica, sans-serif); font-size: calc(var(--detail-font-size, 6px) + 4px); font-weight: 950; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.viewer-map-road-label { fill: #111827; stroke: #fffaf0; stroke-width: 4px; font-size: calc(var(--detail-font-size, 6px) + 5px); }
.viewer-plot-group:hover .viewer-side-dim, .viewer-plot-group.hot .viewer-side-dim, .viewer-plot-group.active .viewer-side-dim,
.viewer-plot-group:hover .viewer-road-label, .viewer-plot-group.hot .viewer-road-label, .viewer-plot-group.active .viewer-road-label,
.viewer-plot-group:hover .viewer-dim-guide, .viewer-plot-group.hot .viewer-dim-guide, .viewer-plot-group.active .viewer-dim-guide { opacity: .96; }
.viewer-plot-group.active .viewer-side-dim { font-size: calc(var(--detail-font-size, 6px) + 2px); }
.viewer-plot-group.active .viewer-road-label { font-size: calc(var(--road-font-size, 7px) + 2px); }
.dimension-mode-always .viewer-side-dim, .dimension-mode-always .viewer-road-label, .dimension-mode-always .viewer-dim-guide { opacity: .76; }
.dimension-mode-hide .viewer-side-dim, .dimension-mode-hide .viewer-road-label, .dimension-mode-hide .viewer-dim-guide { opacity: 0 !important; }
.plot-dialog { position: fixed; z-index: 8; right: 18px; bottom: 24px; left: auto; top: auto; width: min(520px, calc(100vw - 36px)); max-height: calc(100vh - 108px); overflow: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: linear-gradient(135deg, rgba(6,16,11,.96), rgba(13,29,20,.94)); color: #fff; padding: 16px; box-shadow: 0 25px 90px rgba(0,0,0,.5); backdrop-filter: blur(18px); }
.plot-dialog::backdrop { background: transparent; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.13); color: #fff; cursor: pointer; font-size: 20px; }
.dialog-grid { display: grid; grid-template-columns: 185px 1fr; gap: 14px; align-items: start; }
.sketch-box { background: radial-gradient(circle at top, rgba(255,255,255,.08), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px; min-height: 190px; }
#sketchSvg { width: 100%; height: 155px; background: #102017; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
#sketchSvg polygon { filter: drop-shadow(0 10px 18px rgba(0,0,0,.22)); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.badges span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 7px 11px; font-weight: 800; text-transform: uppercase; font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0; }
.plot-extra { grid-column: 1 / -1; display: grid; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px; }
.plot-extra p { margin: 0; color: #e7ece8; font-size: 12px; line-height: 1.45; }
.plot-gallery-public { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.plot-gallery-public a { display: block; aspect-ratio: 1.15; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.plot-gallery-public img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plot-floor-link { display: inline-flex; width: max-content; max-width: 100%; padding: 7px 11px; border-radius: 999px; background: rgba(37,216,137,.15); border: 1px solid rgba(37,216,137,.35); color: #86f0bc; font-size: 12px; font-weight: 900; }
.plot-extra {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.plot-extra > span {
  display: block;
  margin-bottom: 9px;
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plot-extra > strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}
.plot-extra p {
  margin: 0 0 10px;
  color: #d8efe5;
  font-size: 12px;
  line-height: 1.45;
}
.plot-gallery-feature {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: #102017;
}
.plot-gallery-feature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plot-gallery-public {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 38%);
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.plot-gallery-public button {
  position: relative;
  min-height: 98px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  scroll-snap-align: start;
  opacity: .76;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}
.plot-gallery-public button.active,
.plot-gallery-public button:hover {
  opacity: 1;
  border-color: rgba(247,198,102,.85);
  transform: translateY(-1px);
}
.plot-gallery-public button img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 98px;
  object-fit: cover;
}
.plot-gallery-public button em {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(6,16,11,.76);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plot-hover-card {
  position: fixed;
  z-index: 7;
  width: min(270px, calc(100vw - 28px));
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(7,17,12,.94), rgba(15,39,28,.9));
  color: #fff;
  box-shadow: 0 20px 58px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.plot-hover-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.plot-hover-card span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37,216,137,.18);
  color: #8cf3c1;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.plot-hover-card strong,
.plot-hover-card em,
.plot-hover-card small {
  display: block;
}
.plot-hover-card strong {
  font-size: 22px;
  line-height: 1;
}
.plot-hover-card em {
  margin-top: 8px;
  color: #e9fff4;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}
.plot-hover-card small {
  margin-top: 8px;
  color: #f7c866;
  font-size: 11px;
  font-weight: 900;
}
.plot-more-btn {
  position: fixed;
  z-index: 6;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: #f7c866;
  color: #111;
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}
.plot-more-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.plot-more-btn:hover {
  filter: brightness(.96);
}
.viewer-action-dock { position: fixed; z-index: 5; right: 18px; top: 122px; display: grid; gap: 8px; background: rgba(5,14,9,.42); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 7px; backdrop-filter: blur(18px); box-shadow: 0 18px 60px rgba(0,0,0,.28); }
.viewer-action-dock button { border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; min-width: 38px; height: 38px; padding: 0; font-size: 0; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.viewer-action-dock span { font-size: 14px; line-height: 1; }
.viewer-action-dock em { display: none; font-style: normal; }
.viewer-action-dock button:hover { background: var(--orange); color: #111; }

@media (max-width: 920px) {
  body.admin-body:not(.editor-workbench) .admin-app { display: block; }
  body.admin-body:not(.editor-workbench) .admin-sidebar { position: sticky; top: 0; height: auto; z-index: 30; padding: 10px; gap: 10px; }
  body.admin-body:not(.editor-workbench) .admin-brand { justify-content: center; }
  body.admin-body:not(.editor-workbench) .side-nav { display: flex; gap: 6px; overflow-x: auto; }
  body.admin-body:not(.editor-workbench) .side-nav a { white-space: nowrap; padding: 9px 11px 9px 38px; }
  body.admin-body:not(.editor-workbench) .topbar { position: static; padding: 14px; }
  body.admin-body:not(.editor-workbench) .shell { width: calc(100% - 18px); margin-top: 10px; }
  body.admin-body:not(.editor-workbench) .grid.cards,
  body.admin-body:not(.editor-workbench) .admin-grid,
  body.admin-body:not(.editor-workbench) .rights-grid { grid-template-columns: 1fr; }
  .project-site-nav { align-items: flex-start; flex-direction: column; }
  .project-site-hero, .site-two-col { grid-template-columns: 1fr; min-height: auto; padding: 44px 0; }
  .site-card-grid, .site-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-enquiry { align-items: flex-start; flex-direction: column; }
  .admin-app { display: block; }
  .admin-sidebar { position: sticky; top: 0; height: auto; padding: 10px; gap: 10px; z-index: 20; }
  .admin-brand { justify-content: center; }
  .side-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .side-nav a { text-align: center; padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  .topbar { position: static; align-items: flex-start; flex-direction: column; padding: 14px; }
  .topbar nav { width: 100%; }
  .topbar nav .btn { flex: 1; }
  .shell { width: calc(100% - 18px); margin-top: 10px; }
  .grid.cards, .admin-grid, .editor-layout, .project-strip, .dialog-grid, .share-box { grid-template-columns: 1fr; }
  .project-editor-bar, .map-tools-bar { position: static; }
  .admin-nav-collapsed .admin-app { display: block; }
  .admin-nav-collapsed .admin-sidebar { display: none; }
  .editor-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .side-collapsed .editor-side { display: none; }
  .editor-crumbs { position: sticky; top: 0; z-index: 13; }
  .canvas-shell { min-height: 560px; height: 72vh; padding: 10px; }
  .map-navigator { width: 218px; margin-top: -148px; }
  #navigatorSvg { width: 200px; height: 124px; }
  .project-card, .hero-panel { align-items: stretch; flex-direction: column; }
  .viewer-map-wrap { padding: 54px 0 78px; }
  #viewerSvg { width: auto; height: 100vh; min-width: 0; }
  .viewer-title { top: 10px; left: 12px; right: 74px; gap: 7px; align-items: flex-start; flex-direction: column; }
  .viewer-title h1 { font-size: 17px; padding: 8px 12px; }
  .viewer-title p { font-size: 11px; padding: 7px 10px; }
  .viewer-panel { left: 12px; right: 12px; bottom: 76px; width: auto; border-radius: 16px; }
  .viewer-panel.collapsed { left: 50%; right: auto; transform: translateX(-50%); width: 188px; }
  .viewer-panel-body { max-height: 54vh; }
  .filter-toggle { text-align: center; padding: 13px; }
  .plot-dialog { left: 10px; right: 10px; bottom: 68px; width: auto; max-height: 74vh; padding: 13px; border-radius: 16px; }
  .dialog-grid { grid-template-columns: 1fr; }
  .viewer-action-dock { top: 78px; right: 10px; gap: 6px; padding: 6px; }
  .viewer-action-dock button { width: 40px; min-width: 40px; height: 38px; }
  .toolbar .btn { flex: 1 1 145px; }
  .zoom-row { align-items: stretch; }
  .compact-zoom { grid-template-columns: 1fr 1fr; }
  .compact-zoom .scale-control, .compact-zoom #cursorReadout, .compact-zoom #segmentReadout, .compact-zoom #saveStatus { grid-column: 1 / -1; }
  #cursorReadout, #segmentReadout, #saveStatus { flex: 1 1 150px; min-width: 0; }
  .scale-control { flex: 1 1 180px; }
  .detail-grid, .viewer-stats, .filter-grid { grid-template-columns: 1fr; }
  .viewer-action-dock button span { font-size: 17px; }
  .status-style-row { grid-template-columns: 1fr 58px; }
  .status-style-row label:first-child, .status-style-row .btn { grid-column: 1 / -1; }
  .rights-grid, .permission-grid, .price-field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .project-site-page main { width: calc(100% - 20px); }
  .project-site-nav { padding: 10px; }
  .project-site-nav nav { width: 100%; }
  .project-site-nav nav a:not(.btn) { display: none; }
  .project-site-nav nav .btn { flex: 1; }
  .project-site-hero h1 { font-size: 34px; }
  .project-site-hero p { font-size: 14px; }
  .site-card-grid, .site-gallery { grid-template-columns: 1fr; }
  .site-hero-card { grid-template-columns: 1fr auto; }
  .auth-page { padding: 12px; }
  .auth-card { padding: 20px; }
  .brand-lockup { align-items: flex-start; }
  .brand-lockup span { width: 48px; height: 48px; }
  .topbar h1 { font-size: 20px; }
  .panel, .hero-panel { padding: 14px; }
  .grid.cards { gap: 10px; }
  .metric strong { font-size: 24px; }
  .toolbar { gap: 7px; grid-template-columns: 1fr; }
  .map-tools-bar .toolbar .btn { width: auto; min-width: 42px; flex: 0 0 42px; }
  .map-tools-bar .toolbar { justify-content: flex-start; }
  .toolbar .btn { flex: 1 1 126px; padding: 8px 10px; min-height: 36px; font-size: 12px; }
  .canvas-shell { min-height: 520px; height: 72vh; }
  .map-navigator { display: none; }
  .selected-panel { max-height: none; }
  .point-nav { grid-template-columns: 1fr 1fr; }
  .point-nav strong { grid-column: 1 / -1; }
  .mini-grid, .two { grid-template-columns: 1fr; }
  .project-card { padding: 14px; }
  .project-actions { align-items: stretch; }
  .project-actions .btn, .project-actions form { width: 100%; }
  .project-actions form button { width: 100%; }
  .available-chip { font-size: 17px; width: 100%; justify-content: center; display: flex; }
  .plot-dialog { max-height: 78vh; overflow: auto; padding: 12px; border-radius: 16px; }
  .plot-dialog h2 { font-size: 21px; margin-bottom: 4px; }
  .dialog-grid { gap: 10px; }
  .sketch-box { min-height: 142px; padding: 9px; }
  .sketch-box p { font-size: 12px; margin-bottom: 8px; }
  #sketchSvg { height: 112px; }
  .badges span { padding: 6px 9px; font-size: 10px; }
  .detail-grid { gap: 7px; margin: 10px 0; }
  .detail-grid div { padding: 9px; }
  .detail-grid strong { font-size: 15px; }
  .plot-gallery-public { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plot-gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-actions { display: grid; grid-template-columns: 1fr; }
  .compact-zoom { grid-template-columns: 1fr 1fr 1fr; }
  .compact-zoom .scale-control, .compact-zoom #cursorReadout, .compact-zoom #segmentReadout, .compact-zoom #saveStatus { grid-column: 1 / -1; }
}

.editor-focus .map-navigator { display: block !important; }
.editor-focus .zoom-slider-control { flex: 1 1 230px; min-width: 180px; }
.editor-focus .zoom-slider-control input { width: 100%; min-width: 140px; }
.navigator-hidden .map-navigator { display: none !important; }
body.editor-focus.editor-workbench { overflow: hidden; }
body.editor-focus.editor-workbench .canvas-shell {
  height: 100vh;
  min-height: 0;
  padding-top: 82px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
}
body.editor-focus.editor-workbench .editor-zoom-strip {
  position: fixed;
  right: 14px;
  top: 14px;
  left: 78px;
  z-index: 39;
}
body.editor-focus.editor-workbench .toolbar-panel {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 40;
}

body.admin-body:not(.editor-workbench) {
  --admin-sidebar: #17213a;
  --admin-sidebar-soft: #202c49;
  --admin-accent: #22c55e;
  --admin-teal: #14b8a6;
  --admin-amber: #f59e0b;
  background: #f3f6fb;
  color: #111827;
  font-size: 13px;
}
body.admin-body:not(.editor-workbench) .admin-app {
  grid-template-columns: 248px minmax(0, 1fr);
}
body.admin-body:not(.editor-workbench) .admin-sidebar {
  background: linear-gradient(180deg, var(--admin-sidebar), #101827);
  padding: 18px 14px;
  gap: 20px;
  box-shadow: 8px 0 28px rgba(15,23,42,.08);
}
body.admin-body:not(.editor-workbench) .admin-brand {
  min-height: 64px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  font-size: 16px;
}
body.admin-body:not(.editor-workbench) .admin-brand span {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f7a634, #ffd166);
  font-size: 14px;
  overflow: hidden;
}
body.admin-body:not(.editor-workbench) .admin-brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
body.admin-body:not(.editor-workbench) .admin-brand strong {
  font-size: 18px;
  letter-spacing: 0;
}
body.admin-body:not(.editor-workbench) .side-nav {
  gap: 5px;
}
body.admin-body:not(.editor-workbench) .side-nav a {
  position: relative;
  padding: 10px 12px 10px 42px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}
body.admin-body:not(.editor-workbench) .side-nav a::before {
  content: attr(data-short);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: #dbeafe;
  font-size: 11px;
}
body.admin-body:not(.editor-workbench) .side-nav a:hover {
  background: var(--admin-sidebar-soft);
}
body.admin-body:not(.editor-workbench) .topbar {
  min-height: 68px;
  padding: 12px 24px;
  background: rgba(255,255,255,.9);
  border-bottom-color: #e6ebf3;
}
body.admin-body:not(.editor-workbench) .topbar h1 {
  font-size: clamp(20px, 2vw, 25px);
}
body.admin-body:not(.editor-workbench) .topbar > nav {
  position: relative;
  gap: 8px;
}
body.admin-body:not(.editor-workbench) .project-switcher {
  position: relative;
}
body.admin-body:not(.editor-workbench) .project-switcher summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  box-shadow: 0 8px 18px rgba(15,23,42,.055);
}
body.admin-body:not(.editor-workbench) .project-switcher summary::-webkit-details-marker {
  display: none;
}
body.admin-body:not(.editor-workbench) .project-switcher summary::after {
  content: "⌄";
  color: #64748b;
  font-size: 15px;
}
body.admin-body:not(.editor-workbench) .project-switcher summary strong {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e7f8f4;
  color: #047857;
  font-size: 11px;
}
body.admin-body:not(.editor-workbench) .project-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  width: min(360px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 110px));
  overflow: auto;
  padding: 10px;
  border: 1px solid #dde6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15,23,42,.18);
}
body.admin-body:not(.editor-workbench) .project-switcher:not([open]) .project-switcher-menu {
  display: none;
}
body.admin-body:not(.editor-workbench) .project-switcher-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
body.admin-body:not(.editor-workbench) .project-switcher-head a,
body.admin-body:not(.editor-workbench) .project-switcher-all {
  color: #0f766e;
  font-weight: 950;
  text-decoration: none;
}
body.admin-body:not(.editor-workbench) .project-switcher-menu > a:not(.project-switcher-all) {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #111827;
  text-decoration: none;
}
body.admin-body:not(.editor-workbench) .project-switcher-menu > a:not(.project-switcher-all):hover,
body.admin-body:not(.editor-workbench) .project-switcher-menu > a.active {
  background: #effbf7;
}
body.admin-body:not(.editor-workbench) .project-switcher-menu > a span {
  font-size: 14px;
  font-weight: 950;
}
body.admin-body:not(.editor-workbench) .project-switcher-menu > a small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}
body.admin-body:not(.editor-workbench) .project-switcher-empty {
  padding: 18px 12px;
  color: #64748b;
  font-weight: 800;
}
body.admin-body:not(.editor-workbench) .project-switcher-all {
  display: block;
  margin-top: 8px;
  padding: 11px 12px;
  border-top: 1px solid #eef2f7;
}
@media (max-width: 920px) {
  body.admin-body:not(.editor-workbench) .topbar > nav {
    width: 100%;
  }
  body.admin-body:not(.editor-workbench) .project-switcher {
    flex: 1 1 180px;
  }
  body.admin-body:not(.editor-workbench) .project-switcher summary {
    width: 100%;
    justify-content: center;
  }
  body.admin-body:not(.editor-workbench) .project-switcher-menu {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 28px));
  }
}
body.admin-body:not(.editor-workbench) .shell {
  width: min(1440px, calc(100% - 36px));
  margin-top: 16px;
}
body.admin-body:not(.editor-workbench) .panel,
body.admin-body:not(.editor-workbench) .hero-panel {
  border-color: #e6ebf3;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15,23,42,.055);
}
body.admin-body:not(.editor-workbench) .panel h2,
body.admin-body:not(.editor-workbench) .hero-panel h2 {
  font-size: 18px;
}
body.admin-body:not(.editor-workbench) .hero-panel {
  background: linear-gradient(135deg, #ffffff, #f0fbf7);
  border-left: 4px solid var(--admin-teal);
}
body.admin-body:not(.editor-workbench) .metric {
  background: #fff;
  color: #111827;
  border: 1px solid #e6ebf3;
  box-shadow: 0 10px 30px rgba(15,23,42,.055);
}
body.admin-body:not(.editor-workbench) .metric span {
  color: #64748b;
  font-size: 12px;
}
body.admin-body:not(.editor-workbench) .metric strong {
  color: #0f172a;
  font-size: 28px;
}
body.admin-body:not(.editor-workbench) .metric:nth-child(1) { border-top: 3px solid var(--admin-teal); }
body.admin-body:not(.editor-workbench) .metric:nth-child(2) { border-top: 3px solid var(--admin-amber); }
body.admin-body:not(.editor-workbench) .metric:nth-child(3) { border-top: 3px solid var(--admin-accent); }
body.admin-body:not(.editor-workbench) .btn {
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}
body.admin-body:not(.editor-workbench) .btn.primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
body.admin-body:not(.editor-workbench) .btn.dark {
  background: #17213a;
  border-color: #17213a;
}
body.admin-body:not(.editor-workbench) .btn.accent {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #fff;
}
body.admin-body:not(.editor-workbench) input,
body.admin-body:not(.editor-workbench) select,
body.admin-body:not(.editor-workbench) textarea {
  border-color: #d9e1ec;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
}
body.admin-body:not(.editor-workbench) label {
  color: #1f2937;
  font-size: 12px;
}
body.admin-body:not(.editor-workbench) th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
}
body.admin-body:not(.editor-workbench) th,
body.admin-body:not(.editor-workbench) td {
  padding: 11px 12px;
  border-bottom-color: #edf1f6;
}
body.admin-body:not(.editor-workbench) .project-card {
  background: #fff;
  border-color: #e6ebf3;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
body.admin-body:not(.editor-workbench) .sub-panel {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.project-site-page {
  background: #f5f7fb;
  color: #111827;
  font-size: 14px;
}
.project-site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e6ebf3;
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; }
.site-brand span, .site-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: #f59e0b; color: #111827; }
.project-site-nav nav, .site-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-site-nav nav a { color: #475569; font-weight: 800; font-size: 13px; }
.project-site-page main { width: min(1180px, calc(100% - 32px)); margin: 0 auto 54px; }
.project-site-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 28px;
}
.project-site-hero h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1; margin-bottom: 16px; }
.project-site-hero p { max-width: 680px; color: #475569; font-size: 17px; font-weight: 700; }
.site-hero-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; padding: 22px; border-radius: 16px; background: #111827; color: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.22); }
.site-hero-card span { color: #a7f3d0; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.site-hero-card strong { font-size: 26px; text-align: right; }
.site-section { padding: 42px 0; border-top: 1px solid #e6ebf3; }
.site-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 28px; align-items: start; }
.site-section h2, .site-enquiry h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.site-section p { color: #475569; font-weight: 650; }
.site-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.site-card-grid article, .site-list p, .site-link-panel {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,.045);
}
.site-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.site-gallery img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 12px; border: 1px solid #e6ebf3; background: #fff; }
.site-list { display: grid; gap: 10px; }
.site-list p { margin: 0; }
.site-link-panel { display: flex; flex-wrap: wrap; gap: 10px; align-items: start; }
.site-enquiry {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #0f3c32);
  color: #fff;
}
.site-enquiry p { color: #d1fae5; margin-bottom: 0; }

@media (max-width: 920px) {
  body.admin-body:not(.editor-workbench) .admin-app,
  body.admin-body:not(.editor-workbench) .admin-grid,
  body.admin-body:not(.editor-workbench) .rights-grid,
  .project-site-hero,
  .site-two-col {
    grid-template-columns: 1fr;
  }
  body.admin-body:not(.editor-workbench) .admin-sidebar {
    position: sticky;
    top: 0;
    height: auto;
  }
  body.admin-body:not(.editor-workbench) .topbar,
  .project-site-nav,
  .site-enquiry {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-site-hero {
    min-height: auto;
    padding: 44px 0;
  }
  .site-card-grid,
  .site-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.admin-body:not(.editor-workbench) .admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
body.admin-body:not(.editor-workbench) .admin-breadcrumb a {
  color: #0f766e;
}
body.admin-body:not(.editor-workbench) .admin-breadcrumb strong {
  color: #334155;
}
body.admin-body:not(.editor-workbench) .side-nav a.active {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20,184,166,.18);
}
body.admin-body:not(.editor-workbench) .side-nav a.active::before {
  background: rgba(255,255,255,.18);
  color: #fff;
}
body.admin-body:not(.editor-workbench) .admin-filterbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  background: #f8fafc;
}
body.admin-body:not(.editor-workbench) .project-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body.admin-body:not(.editor-workbench) .project-card:hover {
  transform: translateY(-2px);
  border-color: #b7d6ff;
  box-shadow: 0 18px 42px rgba(15,23,42,.09);
}
body.admin-body:not(.editor-workbench) .project-card[hidden] {
  display: none;
}
body.admin-body:not(.editor-workbench) .pill.status-live {
  background: #e8fff4;
  border-color: #b7efd3;
  color: #047857;
}
body.admin-body:not(.editor-workbench) .pill.status-draft {
  background: #eef5ff;
  border-color: #c7dcff;
  color: #1d4ed8;
}
body.admin-body:not(.editor-workbench) .pill.status-paused {
  background: #fff7e6;
  border-color: #f5d28c;
  color: #92400e;
}
body.admin-body:not(.editor-workbench) tr.hot {
  background: #f8fafc;
}
body.admin-body:not(.editor-workbench) .admin-section {
  transition: box-shadow .16s ease, border-color .16s ease;
}
body.admin-body:not(.editor-workbench) .admin-section > [data-section-toggle] {
  cursor: pointer;
}
body.admin-body:not(.editor-workbench) .admin-section > [data-section-toggle]::after {
  content: "Hide";
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid #d9e1ec;
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}
body.admin-body:not(.editor-workbench) .admin-section.collapsed > [data-section-toggle]::after {
  content: "Show";
}
body.admin-body:not(.editor-workbench) .admin-section.collapsed > *:not([data-section-toggle]) {
  display: none;
}
body.admin-body:not(.editor-workbench) .project-actions {
  justify-content: flex-end;
}

.rich-hero {
  position: relative;
  width: min(1180px, calc(100vw - 32px));
  min-height: 680px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  color: #fff;
  box-shadow: 0 30px 90px rgba(15,23,42,.24);
}
.rich-hero .hero-slider {
  position: absolute;
  inset: 0;
}
.rich-hero .hero-slider figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform 1.2s ease;
}
.rich-hero .hero-slider figure.active {
  opacity: 1;
  transform: scale(1);
}
.rich-hero .hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rich-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,13,24,.82), rgba(8,13,24,.38) 56%, rgba(8,13,24,.62));
}
.rich-hero .hero-content,
.rich-hero .site-hero-card {
  position: relative;
  z-index: 2;
}
.rich-hero .hero-content {
  align-self: end;
  padding: clamp(26px, 5vw, 64px);
}
.rich-hero .hero-content h1,
.rich-hero .hero-content p {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.32);
}
.rich-hero .site-hero-card {
  align-self: end;
  margin: 0 clamp(18px, 3vw, 42px) clamp(22px, 4vw, 50px) 0;
  background: rgba(8,13,24,.78);
  backdrop-filter: blur(16px);
}
.site-menu-btn { display: none; }
.site-spec-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.site-spec-strip div {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6ebf3;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.site-spec-strip span,
.site-highlight-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.site-spec-strip strong,
.site-highlight-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}
.site-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.site-highlight-grid article {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6ebf3;
  box-shadow: 0 10px 30px rgba(15,23,42,.045);
}
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.amenity-grid article {
  min-height: 150px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid #e6ebf3;
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}
.amenity-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
}
.amenity-grid strong,
.plan-card-grid h3 {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
}
.amenity-grid p {
  font-size: 13px;
}
.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.plan-card-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 38px rgba(15,23,42,.14);
}
.plan-card-grid p,
.plan-card-grid span {
  color: #cbd5e1;
  margin: 0;
}
.plan-card-grid strong {
  color: #86efac;
  font-size: 18px;
}
.plan-card-grid a {
  margin-top: 8px;
  color: #fcd34d;
  font-weight: 900;
}
.floor-plan-tabs {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6ebf3;
  box-shadow: 0 14px 38px rgba(15,23,42,.06);
}
.tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tab-buttons button {
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  background: #f8fafc;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.tab-buttons button.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.floor-plan-panel {
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 18px;
  align-items: center;
}
.floor-plan-panel.active {
  display: grid;
}
.floor-plan-panel img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 14px;
  background: #f8fafc;
}
.rich-gallery button {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #111827;
}
.rich-gallery button img {
  transition: transform .25s ease, opacity .25s ease;
}
.rich-gallery button:hover img {
  transform: scale(1.04);
  opacity: .78;
}
.rich-gallery button span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 900;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.site-timeline {
  display: grid;
  gap: 10px;
}
.site-timeline article {
  position: relative;
  padding: 14px 14px 14px 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6ebf3;
}
.site-timeline article::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 0 5px #ccfbf1;
}
.site-timeline time {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.site-timeline strong {
  display: block;
  margin: 4px 0;
}
.site-timeline span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}
.testimonial-slider {
  position: relative;
  min-height: 230px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #115e59);
  color: #fff;
  overflow: hidden;
}
.testimonial-slider article {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.testimonial-slider article.active {
  opacity: 1;
  transform: translateY(0);
}
.testimonial-slider p {
  color: #fff;
  font-size: 18px;
  margin: 0;
}
.testimonial-slider strong {
  color: #a7f3d0;
}
.faq-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}
.site-enquiry-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: min(680px, 100%);
}
.site-enquiry-form input {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 10px;
}
.site-enquiry-form input::placeholder {
  color: rgba(255,255,255,.7);
}
.site-lightbox {
  width: min(860px, calc(100vw - 26px));
  border: 0;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.site-lightbox::backdrop {
  background: rgba(15,23,42,.68);
  backdrop-filter: blur(8px);
}
.site-lightbox img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}
.site-lightbox button {
  float: right;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 920px) {
  body.admin-body:not(.editor-workbench).admin-nav-collapsed .admin-sidebar {
    display: none;
  }
  body.admin-body:not(.editor-workbench) .admin-filterbar {
    grid-template-columns: 1fr;
  }
  body.admin-body:not(.editor-workbench) .project-card {
    align-items: stretch;
  }
  body.admin-body:not(.editor-workbench) .project-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body.admin-body:not(.editor-workbench) .topbar nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
  }
  body.admin-body:not(.editor-workbench) .topbar nav .btn {
    padding-inline: 8px;
  }
  body.admin-body:not(.editor-workbench) .admin-breadcrumb {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .project-site-page main { width: calc(100% - 20px); }
  .project-site-nav { padding: 10px; }
  .project-site-nav nav { width: 100%; }
  .project-site-nav nav a:not(.btn) { display: none; }
  .project-site-nav nav .btn { flex: 1; }
  .project-site-hero h1 { font-size: 34px; }
  .project-site-hero p { font-size: 14px; }
  .site-card-grid,
  .site-gallery,
  .price-field-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .editor-focus .editor-zoom-strip { left: 72px; right: 8px; top: 8px; max-height: 38vh; overflow: auto; }
  .editor-focus .toolbar-panel { left: 8px; top: 8px; }
  .editor-focus .map-tools-bar .toolbar .btn,
  .editor-focus .map-tools-bar .toolbar .file-btn { width: 44px; min-width: 44px; min-height: 38px; }
  .editor-focus .map-navigator { left: 78px; bottom: 12px; width: 218px; }
  .editor-focus #navigatorSvg { width: 200px; height: 124px; }
}

@media (max-width: 980px) {
  .rich-hero {
    width: min(100% - 22px, 760px);
    min-height: 620px;
    border-radius: 18px;
  }
  .rich-hero::after {
    background: linear-gradient(180deg, rgba(8,13,24,.42), rgba(8,13,24,.84));
  }
  .rich-hero .hero-content {
    padding: 26px;
  }
  .rich-hero .site-hero-card {
    width: calc(100% - 52px);
    margin: 0 26px 26px;
  }
  .site-spec-strip,
  .amenity-grid,
  .plan-card-grid,
  .site-enquiry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-two-col,
  .faq-section,
  .floor-plan-panel.active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .project-site-nav {
    position: sticky;
    top: 0;
  }
  .site-menu-btn {
    display: inline-flex;
  }
  .project-site-nav .site-nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }
  .site-menu-open .project-site-nav .site-nav-links {
    display: grid;
    gap: 8px;
  }
  .site-menu-open .project-site-nav .site-nav-links a {
    display: block;
  }
  .rich-hero {
    min-height: 600px;
    margin-top: 10px;
  }
  .rich-hero .hero-content h1 {
    font-size: 34px;
  }
  .site-spec-strip,
  .amenity-grid,
  .plan-card-grid,
  .site-highlight-grid,
  .site-enquiry-form {
    grid-template-columns: 1fr;
  }
  .site-section {
    padding-block: 38px;
  }
  .site-enquiry {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .site-enquiry-form {
    min-width: 0;
  }
}

.website-manager {
  display: grid;
  gap: 18px;
}
.website-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
  border: 1px solid #dbeafe;
}
.website-manager-head h2 {
  margin: 4px 0 8px;
}
.website-manager-head p {
  max-width: 760px;
  margin: 0;
}
.website-manager-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.website-manager-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}
.website-tabs {
  position: sticky;
  top: 16px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #0f2f25;
  box-shadow: 0 16px 38px rgba(15,47,37,.16);
}
.website-tabs button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #dffcf1;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}
.website-tabs button.active,
.website-tabs button:hover {
  background: #fff;
  color: #0f2f25;
}
.website-tab-panel {
  display: none;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6ebf3;
  box-shadow: 0 12px 34px rgba(15,23,42,.055);
}
.website-tab-panel.active {
  display: grid;
}
.website-tab-panel h3 {
  margin: 0;
  font-size: 22px;
}
.manager-section-title,
.manager-repeat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.manager-section-title h3 {
  margin: 0;
}
.manager-repeat-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}
.manager-repeat-head strong {
  font-size: 15px;
}
.manager-repeat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.manager-repeat-grid label {
  display: grid;
  gap: 6px;
}
.media-spec-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 800;
}
.amenity-grid article img,
.plan-card-grid article img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.amenity-grid article {
  text-align: center;
}
.amenity-line-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  background: transparent;
  color: #4b5563;
  border-radius: 0;
}
.amenity-line-icon svg {
  width: 58px;
  height: 58px;
}
.villa-thumb-row,
.video-carousel {
  grid-column: 1 / -1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 260px);
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scroll-snap-type: x mandatory;
}
.villa-thumb-row button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
}
.villa-thumb-row img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e6ebf3;
}
.video-carousel article {
  min-width: 280px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf3;
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
}
.video-carousel iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0f172a;
}
.video-carousel strong,
.video-carousel p {
  display: block;
  padding: 0 14px;
}
.video-carousel strong {
  padding-top: 12px;
}
.video-carousel p {
  padding-bottom: 14px;
  font-size: 13px;
}
.plan-card-grid article img {
  aspect-ratio: 1.35;
}
.update-image-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.update-image-row img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
  border-radius: 10px;
}
.testimonial-slider article img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.7);
}
.testimonial-slider article span {
  color: #ccfbf1;
  font-size: 12px;
  font-weight: 800;
}
.testimonial-slider article a {
  color: #fcd34d;
  font-weight: 900;
}
.project-site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 20px;
  background: #0f172a;
  color: #fff;
}
.project-site-footer iframe {
  width: min(360px, 100%);
  aspect-ratio: 1.7;
  border: 0;
  border-radius: 14px;
}
.project-site-footer p,
.project-site-footer address {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-style: normal;
}
.project-site-footer a {
  display: inline-block;
  margin: 6px 12px 0 0;
  color: #86efac;
  font-weight: 850;
}

@media (max-width: 980px) {
  .website-manager-head,
  .project-site-footer {
    flex-direction: column;
  }
  .website-manager-grid {
    grid-template-columns: 1fr;
  }
  .website-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .website-manager-head,
  .website-tab-panel {
    padding: 14px;
  }
  .website-manager-actions,
  .website-manager-actions .btn {
    width: 100%;
  }
  .website-tabs,
  .manager-repeat-grid,
  .update-image-row,
  .villa-thumb-row,
  .video-carousel {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }
}

/* Prestige-inspired premium website polish */
.project-site-page {
  background: #f7f5ef;
  color: #171717;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.project-site-page .eyebrow {
  color: #9b7a35;
  letter-spacing: .12em;
  font-size: 11px;
}
.project-site-nav {
  width: min(1180px, calc(100% - 32px));
  top: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(155,122,53,.18);
}
.site-brand {
  gap: 10px;
}
.site-brand span {
  background: #121212;
  color: #d9b970;
  border: 1px solid rgba(217,185,112,.48);
  box-shadow: inset 0 0 0 4px rgba(217,185,112,.08);
}
.site-brand strong {
  color: #141414;
  font-size: 15px;
}
.site-nav-links a:not(.btn) {
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 800;
}
.site-nav-links a:not(.btn):hover {
  color: #111;
  background: #f3ead8;
}
.project-site-page .btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 12px 24px rgba(17,17,17,.14);
}
.project-site-page .btn.soft {
  background: #fbf7ed;
  color: #5f4520;
  border-color: #e7d5ad;
}
.rich-hero {
  width: min(1220px, calc(100% - 32px));
  min-height: min(760px, calc(100vh - 98px));
  margin-top: 20px;
  border-radius: 28px;
  background: #111;
}
.rich-hero::after {
  background:
    linear-gradient(90deg, rgba(10,10,10,.78), rgba(10,10,10,.26) 58%, rgba(10,10,10,.54)),
    linear-gradient(0deg, rgba(10,10,10,.55), transparent 45%);
}
.rich-hero .hero-content {
  max-width: 690px;
  padding-bottom: clamp(42px, 7vw, 84px);
}
.rich-hero .hero-content h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .96;
  font-weight: 500;
}
.rich-hero .hero-content p {
  max-width: 620px;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.7;
}
.rich-hero .site-hero-card {
  width: min(310px, calc(100% - 42px));
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: #111;
  border: 1px solid rgba(255,255,255,.45);
}
.rich-hero .site-hero-card span {
  color: #8b6b2f;
  font-size: 10px;
  letter-spacing: .12em;
}
.rich-hero .site-hero-card strong {
  color: #111;
}
.site-spec-strip {
  margin-top: -28px;
}
.site-spec-strip div,
.site-highlight-grid article,
.floor-plan-tabs,
.faq-list details {
  border-color: #e6dac1;
  box-shadow: 0 18px 42px rgba(91,70,32,.07);
}
.site-section {
  width: min(1180px, calc(100% - 32px));
  padding-block: 76px;
}
.site-section h2 {
  color: #151515;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: 0;
}
.site-section p {
  color: #5d5d5d;
  line-height: 1.75;
}
.section-title {
  margin-bottom: 28px;
}
.section-title h2 {
  margin-top: 3px;
}
.amenity-carousel {
  border-color: #ded4c0;
  border-radius: 0;
  background: #fff;
  grid-auto-columns: minmax(220px, 1fr);
}
.amenity-carousel article {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 26px 18px;
}
.amenity-line-icon {
  color: #555;
}
.amenity-line-icon svg {
  stroke-width: 1.25;
}
.amenity-carousel article strong {
  max-width: 150px;
  margin: 0 auto;
  color: #555;
  font-weight: 500;
}
.property-plan-showcase {
  grid-template-columns: 300px minmax(0, 1fr);
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  border-color: #e6dac1;
  box-shadow: 0 24px 60px rgba(91,70,32,.08);
}
.plan-tab-list button {
  border-color: #e6dac1;
  background: #fbfaf7;
  border-radius: 4px;
  padding: 16px;
}
.plan-tab-list button.active {
  background: #111;
  border-color: #111;
}
.plan-detail-copy {
  border-radius: 4px;
  border-color: #e6dac1;
  background: #fbfaf7;
}
.plan-detail-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.plan-detail-copy th,
.plan-detail-copy td {
  border-color: #eadfc9;
}
.plan-media-carousel img,
.rich-gallery button,
.video-carousel article,
.testimonial-carousel article,
.site-timeline article {
  border-radius: 4px;
}
.carousel-actions button {
  color: #111;
  background: #fff;
  border-color: #cbb982;
}
.carousel-actions button:hover {
  color: #fff;
  background: #111;
  border-color: #111;
}
.video-carousel,
.timeline-carousel,
.testimonial-carousel,
.rich-gallery {
  gap: 18px;
}
.video-carousel article,
.site-timeline article {
  background: #fff;
  border-color: #e6dac1;
}
.testimonial-carousel article {
  background: #111;
}
.site-enquiry {
  width: min(1180px, calc(100% - 32px));
  border-radius: 28px;
  background: #111;
  box-shadow: 0 24px 70px rgba(17,17,17,.22);
}
.site-enquiry h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.project-site-footer {
  border-radius: 28px;
  background: #111;
}

/* Backend website manager refinement */
body.admin-body:not(.editor-workbench) .website-manager {
  background: #f7f5ef;
  border-color: #e6dac1;
}
body.admin-body:not(.editor-workbench) .website-manager-head {
  background: #111;
  color: #fff;
  border-color: #111;
  border-radius: 22px;
}
body.admin-body:not(.editor-workbench) .website-manager-head h2 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
body.admin-body:not(.editor-workbench) .website-manager-head p {
  color: #d6d0c4;
}
body.admin-body:not(.editor-workbench) .website-tabs {
  background: #fff;
  border: 1px solid #e6dac1;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(91,70,32,.07);
}
body.admin-body:not(.editor-workbench) .website-tabs button {
  background: transparent;
  color: #555;
  border: 0;
  border-radius: 999px;
  min-height: 38px;
}
body.admin-body:not(.editor-workbench) .website-tabs button.active,
body.admin-body:not(.editor-workbench) .website-tabs button:hover {
  background: #111;
  color: #fff;
}
body.admin-body:not(.editor-workbench) .website-tab-panel,
body.admin-body:not(.editor-workbench) .manager-repeat-card {
  border-color: #e6dac1;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(91,70,32,.055);
}
body.admin-body:not(.editor-workbench) .website-tab-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

@media (max-width: 920px) {
  .project-site-nav {
    border-radius: 22px;
  }
  .rich-hero {
    min-height: 650px;
  }
  .property-plan-showcase {
    grid-template-columns: 1fr;
  }
  .plan-tab-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .project-site-nav {
    top: 0;
    width: 100%;
    border-radius: 0;
  }
  .rich-hero {
    width: calc(100% - 20px);
    min-height: 610px;
    border-radius: 22px;
  }
  .rich-hero .hero-content h1 {
    font-size: 42px;
  }
  .site-section {
    width: calc(100% - 22px);
    padding-block: 46px;
  }
  .site-section h2 {
    font-size: 34px;
  }
  .property-plan-showcase,
  .site-enquiry,
  .project-site-footer {
    width: calc(100% - 22px);
    border-radius: 20px;
  }
}

.inquiry-list {
  display: grid;
  gap: 10px;
}
.inquiry-list article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e6ebf3;
}
.inquiry-list span,
.inquiry-list time {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.inquiry-list p {
  margin: 0;
}

.project-site-nav {
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 34px rgba(15,23,42,.07);
}
.site-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #14532d, #14b8a6);
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
}
.site-nav-links a:not(.btn) {
  padding: 8px 10px;
  border-radius: 999px;
}
.site-nav-links a:not(.btn):hover {
  background: #f1f5f9;
}
.carousel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel-actions button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
}
.carousel-actions button:hover {
  border-color: #14b8a6;
  color: #0f766e;
}
.carousel-actions.inline {
  flex-wrap: wrap;
  margin-top: 14px;
}
.amenity-carousel,
.rich-gallery,
.timeline-carousel,
.testimonial-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  background: #fff;
}
.amenity-carousel article {
  min-height: 184px;
  border-radius: 0;
  border: 0;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
  background: #fff;
  scroll-snap-align: start;
}
.amenity-carousel article p {
  display: none;
}
.amenity-carousel article strong {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.35;
}
.property-plan-showcase {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 44px rgba(15,23,42,.075);
}
.plan-tab-list {
  display: grid;
  align-content: start;
  gap: 8px;
}
.plan-tab-list button {
  display: grid;
  gap: 5px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.plan-tab-list button span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.plan-tab-list button strong {
  color: #0f172a;
  font-size: 15px;
}
.plan-tab-list button.active {
  background: #0f2f25;
  border-color: #0f2f25;
}
.plan-tab-list button.active span,
.plan-tab-list button.active strong {
  color: #fff;
}
.plan-detail-panel {
  display: none;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr);
  gap: 18px;
  align-items: stretch;
}
.plan-detail-panel.active {
  display: grid;
}
.plan-media-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72%, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.plan-media-carousel button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
}
.plan-media-carousel img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 16px;
}
.plan-detail-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.plan-detail-copy h3 {
  margin: 0;
  font-size: 26px;
}
.plan-detail-copy table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}
.plan-detail-copy th,
.plan-detail-copy td {
  padding: 11px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}
.plan-detail-copy th {
  width: 92px;
  color: #64748b;
}
.rich-gallery {
  grid-auto-columns: minmax(290px, 420px);
  gap: 12px;
  border: 0;
  background: transparent;
}
.rich-gallery button {
  scroll-snap-align: start;
}
.timeline-carousel {
  grid-auto-columns: minmax(280px, 360px);
  border: 0;
  background: transparent;
  gap: 12px;
}
.timeline-carousel article {
  scroll-snap-align: start;
}
.testimonial-carousel {
  grid-auto-columns: minmax(290px, 390px);
  border: 0;
  background: transparent;
  gap: 12px;
}
.testimonial-carousel article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 245px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #115e59);
  color: #fff;
  scroll-snap-align: start;
}
.testimonial-carousel img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.72);
}
.testimonial-carousel p {
  color: #fff;
  font-size: 16px;
  margin: 0;
}
.testimonial-carousel strong {
  color: #a7f3d0;
}
.testimonial-carousel span {
  color: #ccfbf1;
  font-size: 12px;
  font-weight: 850;
}
.testimonial-carousel a {
  color: #fcd34d;
  font-weight: 900;
}
.cost-modal {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(15,23,42,.35);
}
.cost-modal::backdrop {
  background: rgba(15,23,42,.62);
  backdrop-filter: blur(8px);
}
.modal-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  cursor: pointer;
}
.modal-form {
  grid-template-columns: 1fr;
  min-width: 0;
}
.modal-form input {
  color: #0f172a;
  background: #fff;
  border-color: #dbe4ef;
}
.modal-form input::placeholder {
  color: #64748b;
}

@media (max-width: 860px) {
  .property-plan-showcase,
  .plan-detail-panel.active {
    grid-template-columns: 1fr;
  }
  .plan-tab-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .section-title {
    align-items: stretch;
  }
  .carousel-actions {
    justify-content: flex-end;
  }
  .amenity-carousel,
  .rich-gallery,
  .timeline-carousel,
  .testimonial-carousel,
  .plan-media-carousel {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(82%, 1fr);
  }
  .property-plan-showcase {
    padding: 10px;
    border-radius: 16px;
  }
}

/* Frontend stabilization pass: wide, premium, predictable project website layout. */
.project-site-page {
  --site-max: 1500px;
  --site-pad: clamp(18px, 3vw, 44px);
  --ink: #161412;
  --muted: #6d665b;
  --line: #e7decd;
  --paper: #fbfaf6;
  --card: #ffffff;
  --gold: #b58a3a;
  overflow-x: hidden;
}
.project-site-page main {
  width: 100%;
  margin: 0 auto 64px;
}
.project-site-nav,
.rich-hero,
.site-spec-strip,
.site-section,
.site-enquiry,
.project-site-footer {
  width: min(var(--site-max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.project-site-nav {
  min-height: 60px;
  padding: 8px 14px 8px 10px;
  align-items: center;
}
.site-brand strong,
.site-nav-links a:not(.btn),
.project-site-page .btn {
  font-size: 13px;
}
.site-menu-btn {
  display: none;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav-links a:not(.btn) {
  padding: 9px 12px;
  color: #47413a;
}
.rich-hero {
  min-height: clamp(590px, 74vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  align-items: end;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(42px, 6vw, 82px);
  overflow: hidden;
}
.rich-hero .hero-content {
  align-self: end;
  padding: 0;
}
.rich-hero .hero-content h1 {
  max-width: 15ch;
  font-size: clamp(54px, 6.1vw, 104px);
  line-height: .94;
}
.rich-hero .hero-content p {
  max-width: 760px;
  font-size: 17px;
}
.rich-hero .site-hero-card {
  align-self: end;
  width: 100%;
  padding: 24px;
}
.site-spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}
.site-spec-strip div {
  min-height: 70px;
  border-radius: 10px;
}
.site-section {
  padding-block: clamp(72px, 7vw, 112px);
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-title h2,
.site-section h2 {
  max-width: 880px;
}
.site-two-col {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(36px, 7vw, 96px);
}
.site-two-col > div:first-child p {
  max-width: 780px;
}
.site-highlight-grid {
  align-self: center;
}
.amenity-carousel {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  border: 0;
  background: transparent;
}
.amenity-carousel article {
  min-height: 205px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 24, 15, .055);
}
.amenity-line-icon {
  width: 52px;
  height: 52px;
  color: #14765e;
  background: #edf8f2;
  border-radius: 999px;
}
.amenity-carousel article strong {
  color: #393530;
  font-size: 16px;
}
.property-plan-showcase {
  grid-template-columns: minmax(245px, 310px) minmax(0, 1fr);
  padding: 24px;
  gap: 24px;
}
.plan-detail-panel.active {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 24px;
}
.plan-media-carousel {
  grid-auto-columns: minmax(48%, 1fr);
  min-height: 420px;
}
.plan-media-carousel img {
  height: 100%;
  min-height: 420px;
  aspect-ratio: 1.55;
}
.plan-detail-copy {
  align-content: start;
  padding: 28px;
}
.plan-detail-copy h3 {
  font-size: clamp(28px, 2.4vw, 42px);
}
.video-carousel,
.rich-gallery,
.timeline-carousel,
.testimonial-carousel {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-color: #c3ad7b transparent;
}
.video-carousel {
  grid-auto-columns: minmax(360px, 520px);
  gap: 18px;
}
.video-carousel article {
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 18px 44px rgba(30, 24, 15, .08);
}
.video-carousel iframe,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(21, 19, 16, .75), rgba(12, 62, 50, .62)),
    url("https://images.unsplash.com/photo-1600607687644-c7171b42498f?auto=format&fit=crop&w=1200&q=80") center/cover;
  color: #fff;
}
.video-placeholder span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.42);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}
.video-placeholder strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}
.video-carousel article > strong,
.video-carousel article > p {
  display: block;
  padding-inline: 18px;
}
.video-carousel article > strong {
  padding-top: 16px;
  font-size: 18px;
}
.video-carousel article > p {
  padding-bottom: 18px;
}
.rich-gallery {
  grid-auto-columns: minmax(360px, 470px);
  gap: 16px;
}
.rich-gallery button {
  height: 430px;
  background: #121212;
  scroll-snap-align: start;
  box-shadow: 0 18px 44px rgba(30, 24, 15, .08);
}
.rich-gallery button img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
  border-radius: inherit;
}
.rich-gallery button span {
  left: 18px;
  right: 18px;
  bottom: 18px;
  font-size: 18px;
}
.timeline-carousel {
  grid-auto-columns: minmax(320px, 390px);
  gap: 16px;
}
.timeline-carousel article {
  min-height: 270px;
  padding: 24px;
  scroll-snap-align: start;
}
.update-image-row img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
}
.testimonial-carousel {
  grid-auto-columns: minmax(340px, 430px);
  gap: 16px;
}
.testimonial-carousel article {
  min-height: 310px;
  padding: 28px;
}
.faq-section {
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
}
.site-enquiry {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 30px;
  padding: clamp(28px, 4vw, 48px);
}
.site-enquiry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.site-enquiry-form input,
.site-enquiry-form button {
  width: 100%;
}
.site-enquiry-form button {
  grid-column: span 2;
}
.project-site-footer {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
}

@media (max-width: 1180px) {
  .rich-hero,
  .site-two-col,
  .site-enquiry,
  .project-site-footer {
    grid-template-columns: 1fr;
  }
  .rich-hero .site-hero-card {
    max-width: 420px;
  }
  .plan-detail-panel.active {
    grid-template-columns: 1fr;
  }
  .plan-media-carousel {
    min-height: 330px;
  }
  .plan-media-carousel img {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  .project-site-nav,
  .rich-hero,
  .site-spec-strip,
  .site-section,
  .site-enquiry,
  .project-site-footer {
    width: calc(100% - 24px);
  }
  .project-site-nav {
    top: 8px;
    border-radius: 20px;
    flex-wrap: wrap;
  }
  .site-menu-btn {
    display: inline-grid;
    place-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 900;
  }
  .project-site-nav .site-nav-links {
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
  }
  .site-menu-open .project-site-nav .site-nav-links {
    display: grid;
  }
  .site-nav-links a {
    text-align: center;
  }
  .rich-hero {
    min-height: 640px;
    padding: 28px;
    border-radius: 24px;
  }
  .rich-hero .hero-content h1 {
    font-size: clamp(40px, 13vw, 64px);
  }
  .site-spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
  }
  .site-section {
    padding-block: 54px;
  }
  .section-title {
    align-items: start;
    flex-direction: column;
  }
  .amenity-carousel {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 48%);
    overflow-x: auto;
  }
  .property-plan-showcase {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .plan-tab-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    overflow-x: auto;
  }
  .plan-media-carousel,
  .video-carousel,
  .rich-gallery,
  .timeline-carousel,
  .testimonial-carousel {
    grid-auto-columns: minmax(88%, 1fr);
  }
  .plan-media-carousel,
  .plan-media-carousel img {
    min-height: 260px;
  }
  .rich-gallery button {
    height: 330px;
  }
  .faq-section,
  .site-enquiry,
  .site-enquiry-form {
    grid-template-columns: 1fr;
  }
  .site-enquiry-form button {
    grid-column: auto;
  }
}

/* Public inventory active-label cleanup. */
.viewer-plot-group.active .viewer-plot-readout {
  opacity: 0;
}
.viewer-plot-group.active .viewer-side-dim,
.viewer-plot-group.active .viewer-road-label {
  font-size: var(--detail-font-size, 6px);
}
.viewer-plot-group.active .viewer-road-label {
  font-size: var(--road-font-size, 7px);
}
.viewer-plot-group.active .viewer-label {
  font-size: calc(var(--center-font-size, 13px) * .86);
}
.viewer-plot-group.active .viewer-facing-label,
.viewer-plot-group.active .viewer-area-label {
  font-size: calc(var(--detail-font-size, 5.8px) * .82);
}
.plot-more-btn {
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid rgba(68,43,0,.24);
  font-size: 9px;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

/* Public inventory hover should stay lightweight: only plot number + status. */
.plot-hover-card {
  width: auto;
  min-width: 142px;
  max-width: min(190px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6,14,10,.95), rgba(17,35,26,.93));
  box-shadow: 0 16px 44px rgba(0,0,0,.34);
}
.plot-hover-card > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(247,200,102,.18);
  color: #f7c866;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}
.plot-hover-card > strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}
.plot-hover-card .plot-hover-head,
.plot-hover-card .plot-hover-grid,
.plot-hover-card em,
.plot-hover-card .plot-hover-gallery {
  display: none;
}
.plot-more-btn {
  display: inline-grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 950;
  line-height: 1;
}

/* Final public inventory hover: no floating card, no ugly status readout. */
.plot-hover-card,
.plot-hover-card.visible {
  display: none !important;
  opacity: 0 !important;
}
.viewer-plot-group:hover .viewer-plot-readout,
.viewer-plot-group.hot .viewer-plot-readout,
.viewer-plot-group.active .viewer-plot-readout {
  opacity: 0 !important;
}
.viewer-plot-group:hover .viewer-label,
.viewer-plot-group.hot .viewer-label,
.viewer-plot-group.active .viewer-label {
  font-size: calc(var(--center-font-size, 13px) * .92);
}
.viewer-plot-group:hover .viewer-facing-label,
.viewer-plot-group.hot .viewer-facing-label,
.viewer-plot-group.active .viewer-facing-label,
.viewer-plot-group:hover .viewer-area-label,
.viewer-plot-group.hot .viewer-area-label,
.viewer-plot-group.active .viewer-area-label {
  font-size: calc(var(--detail-font-size, 5.8px) * .9);
}
.plot-more-btn {
  width: auto;
  min-width: 66px;
  height: 24px;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(68,43,0,.22);
  border-radius: 999px;
  background: #f7c866;
  color: #111;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
  font-family: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 460px) {
  .site-spec-strip,
  .amenity-carousel {
    grid-template-columns: none;
  }
  .rich-hero {
    padding: 22px;
    min-height: 590px;
  }
  .rich-hero .site-hero-card {
    padding: 18px;
  }
  .video-carousel,
  .rich-gallery,
  .timeline-carousel,
  .testimonial-carousel {
    grid-auto-columns: minmax(92%, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .project-site-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 12px 18px 14px;
    border-radius: 26px;
  }
  .site-nav-links {
    justify-content: center;
  }
  .rich-hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 46px;
  }
  .rich-hero .hero-content h1 {
    font-size: clamp(52px, 8vw, 74px);
  }
  .rich-hero .site-hero-card {
    max-width: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 18px;
  }
  .rich-hero .site-hero-card span,
  .rich-hero .site-hero-card strong {
    text-align: center;
  }
  .site-spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
  }
}

/* Premium containment pass: avoid stretched, scattered frontend on wide screens. */
.project-site-page {
  --site-max: 1188px;
  --site-pad-x: clamp(16px, 2.3vw, 30px);
  background:
    radial-gradient(circle at 14% 0%, rgba(190, 157, 93, .10), transparent 28%),
    linear-gradient(180deg, #f7f4ec 0%, #f3efe7 100%);
}
.project-site-page main {
  margin-bottom: 42px;
}
.project-site-nav,
.rich-hero,
.site-spec-strip,
.site-section,
.site-enquiry,
.project-site-footer {
  width: min(var(--site-max), calc(100% - 40px));
}
.project-site-nav {
  top: 12px;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 18px;
}
.site-brand span,
.site-brand img {
  width: 34px;
  height: 34px;
  font-size: 11px;
}
.site-brand strong {
  font-size: 13px;
}
.site-nav-links a:not(.btn) {
  padding: 8px 10px;
  font-size: 12px;
}
.project-site-page .btn {
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 12px;
}
.rich-hero {
  min-height: clamp(500px, 62vh, 640px);
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 22px;
}
.rich-hero .hero-content h1 {
  max-width: 12.5ch;
  font-size: clamp(46px, 5.4vw, 74px);
  letter-spacing: 0;
}
.rich-hero .hero-content p {
  max-width: 610px;
  font-size: 15px;
  line-height: 1.65;
}
.rich-hero .site-actions {
  margin-top: 18px;
}
.rich-hero .site-hero-card {
  padding: 22px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 20px;
}
.rich-hero .site-hero-card strong {
  font-size: 24px;
}
.site-spec-strip {
  gap: 10px;
  margin-top: -24px;
}
.site-spec-strip div {
  min-height: 62px;
  border-radius: 8px;
  padding: 14px 16px;
}
.site-spec-strip span,
.site-highlight-grid span,
.project-site-page .eyebrow {
  font-size: 10px;
}
.site-spec-strip strong {
  font-size: 17px;
}
.site-section {
  padding-block: clamp(52px, 5.2vw, 78px);
  border-top-color: rgba(98, 76, 40, .10);
}
.site-section h2 {
  font-size: clamp(31px, 3.4vw, 48px);
  line-height: 1.06;
}
.section-title {
  margin-bottom: 22px;
}
.site-two-col {
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 44px;
}
.site-highlight-grid {
  gap: 10px;
}
.site-highlight-grid article {
  min-height: 74px;
  border-radius: 10px;
  padding: 14px 16px;
}
.amenity-carousel {
  grid-auto-columns: calc((100% - 48px) / 5);
  padding: 2px 2px 14px;
}
.amenity-carousel article {
  min-height: 155px;
  border-radius: 12px;
  padding: 20px 14px;
}
.amenity-line-icon {
  width: 44px;
  height: 44px;
}
.amenity-carousel article strong {
  font-size: 13px;
}
.carousel-actions button {
  min-width: 34px;
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.plan-detail-copy .carousel-actions.inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.plan-detail-copy .carousel-actions.inline .btn {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 8px 10px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
.project-site-page [data-carousel] {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.project-site-page [data-carousel]::-webkit-scrollbar,
.project-site-page .plan-tab-list::-webkit-scrollbar {
  display: none;
}
.project-site-page .plan-tab-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.plan-media-frame {
  position: relative;
  min-width: 0;
}
.plan-media-actions {
  position: absolute;
  inset: 50% 14px auto 14px;
  transform: translateY(-50%);
  justify-content: space-between;
  pointer-events: none;
}
.plan-media-actions button {
  pointer-events: auto;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.price-breakup {
  border: 1px solid #eadfc9;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffaf1;
}
.price-breakup summary {
  cursor: pointer;
  font-weight: 900;
}
.price-breakup span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #eadfc9;
}
.price-breakup em {
  color: #6b7280;
  font-style: normal;
}
.price-breakup .price-breakup-total {
  margin-top: 4px;
  border-top-color: #111;
}
.price-breakup .price-breakup-total em,
.price-breakup .price-breakup-total strong {
  color: #111;
  font-weight: 900;
}
.cost-master-preview {
  max-height: 210px;
  overflow: auto;
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid #eadfc9;
  border-radius: 12px;
  background: #fffaf1;
  color: #1f2937;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
}
.property-plan-showcase {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
}
.plan-tab-list {
  gap: 8px;
}
.plan-tab-list button {
  min-height: 68px;
  border-radius: 10px;
  padding: 12px;
}
.plan-tab-list button span {
  font-size: 9px;
}
.plan-tab-list button strong {
  font-size: 13px;
}
.plan-detail-panel.active {
  grid-template-columns: minmax(0, 1.18fr) 300px;
  gap: 14px;
}
.plan-media-carousel {
  min-height: 300px;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.plan-media-carousel > button {
  scroll-snap-align: start;
}
.plan-media-carousel img {
  min-height: 300px;
  border-radius: 12px;
  width: 100%;
  object-fit: cover;
}
.plan-detail-copy {
  padding: 20px;
  border-radius: 12px;
}
.plan-detail-copy h3 {
  font-size: clamp(24px, 2.2vw, 32px);
}
.plan-detail-copy th,
.plan-detail-copy td {
  padding: 9px 10px;
  font-size: 12px;
}
.video-carousel {
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  scroll-snap-type: x mandatory;
}
.video-carousel article {
  min-height: 260px;
  border-radius: 12px;
  scroll-snap-align: start;
}
.video-placeholder strong {
  font-size: 20px;
}
.video-carousel article > strong {
  font-size: 15px;
}
.video-carousel article > p {
  font-size: 12px;
}
.rich-gallery {
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  scroll-snap-type: x mandatory;
}
.gallery-showcase {
  display: grid;
  gap: 14px;
}
.gallery-feature {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(300px, 34vw, 390px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #111;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .14);
}
.gallery-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.16) 55%, rgba(0,0,0,.04));
}
.gallery-feature:hover img {
  transform: scale(1.035);
}
.gallery-feature span {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 8px;
  max-width: 520px;
  padding: 28px;
  text-align: left;
}
.gallery-feature em {
  color: #d7b56d;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gallery-feature strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 500;
}
.gallery-feature small {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 700;
}
.rich-gallery button {
  height: 210px;
  border-radius: 12px;
  scroll-snap-align: start;
  transition: transform .22s ease, box-shadow .22s ease;
}
.rich-gallery button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(30, 24, 15, .12);
}
.rich-gallery button span {
  left: 14px;
  right: 14px;
  bottom: 14px;
  font-size: 13px;
}
.site-lightbox {
  position: relative;
  width: min(1040px, calc(100vw - 28px));
  border: 0;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15,23,42,.38);
}
.site-lightbox img {
  width: 100%;
  max-height: 72vh;
  border-radius: 16px;
  object-fit: contain;
  background: #111;
}
.site-lightbox strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
}
.site-lightbox p {
  margin: 4px 0 0;
}
.video-modal {
  width: min(980px, calc(100vw - 28px));
  border: 0;
  border-radius: 22px;
  padding: 18px;
  background: #0b0b0b;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}
.video-modal::backdrop {
  background: rgba(8,8,7,.72);
  backdrop-filter: blur(8px);
}
.video-modal-frame {
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-modal-frame iframe,
.video-modal-frame video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 30px;
  line-height: 1;
}
.lightbox-arrow.prev {
  left: 28px;
}
.lightbox-arrow.next {
  right: 28px;
}
.timeline-carousel {
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  scroll-snap-type: x mandatory;
}
.timeline-carousel article {
  min-height: 210px;
  padding: 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  scroll-snap-align: start;
}
.timeline-carousel article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(30, 24, 15, .10);
}
.timeline-carousel article strong {
  font-size: 14px;
}
.timeline-carousel article span {
  font-size: 11px;
}
.testimonial-carousel {
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  scroll-snap-type: x mandatory;
}
.testimonial-carousel article {
  min-height: 235px;
  padding: 20px;
  border-radius: 12px;
  scroll-snap-align: start;
}
.testimonial-carousel img {
  width: 48px;
  height: 48px;
}
.testimonial-carousel p {
  font-size: 13px;
  line-height: 1.55;
}
.faq-section {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
}
.faq-list details {
  border-radius: 10px;
}
.site-enquiry {
  grid-template-columns: 310px minmax(0, 1fr);
  padding: 30px;
  border-radius: 16px;
}
.site-enquiry h2 {
  font-size: 30px;
}
.site-enquiry-form input {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
}
.project-site-footer {
  border-radius: 16px;
  padding: 22px 26px;
}
.update-modal {
  width: min(900px, calc(100vw - 28px));
  border: 0;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(15,23,42,.35);
}
.update-modal::backdrop {
  background: rgba(15,23,42,.62);
  backdrop-filter: blur(8px);
}
.update-modal h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 500;
}
.update-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.update-modal-gallery button {
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.update-modal-gallery img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  display: block;
}
.section-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.section-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6dac1;
  border-radius: 12px;
  background: #fff;
  font-weight: 900;
}
.section-switch input {
  width: 18px;
  height: 18px;
}

.project-site-page .gallery-showcase {
  display: grid;
  gap: 14px;
}
.project-site-page .gallery-feature {
  min-height: clamp(300px, 34vw, 390px);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .14);
}
.project-site-page .gallery-feature span {
  padding: 28px;
}
.project-site-page .gallery-feature strong {
  font-size: clamp(30px, 4.2vw, 48px);
}
.project-site-page .rich-gallery {
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
}
.project-site-page .rich-gallery button {
  height: 190px;
  border-radius: 12px;
}
.project-site-page .rich-gallery button span {
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .rich-hero,
  .site-two-col,
  .site-enquiry,
  .project-site-footer {
    grid-template-columns: 1fr;
  }
  .rich-hero .site-hero-card {
    max-width: 420px;
    grid-template-columns: 1fr auto;
  }
  .property-plan-showcase,
  .plan-detail-panel.active {
    grid-template-columns: 1fr;
  }
  .plan-tab-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    overflow-x: auto;
  }
  .video-carousel,
  .rich-gallery,
  .timeline-carousel,
  .testimonial-carousel {
    grid-auto-columns: minmax(300px, 42%);
  }
}

@media (max-width: 720px) {
  .project-site-nav,
  .rich-hero,
  .site-spec-strip,
  .site-section,
  .site-enquiry,
  .project-site-footer {
    width: calc(100% - 22px);
  }
  .project-site-nav {
    top: 6px;
    display: flex;
    border-radius: 16px;
  }
  .site-menu-btn {
    display: inline-grid;
  }
  .project-site-nav .site-nav-links {
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-menu-open .project-site-nav .site-nav-links {
    display: grid;
  }
  .rich-hero {
    min-height: 560px;
    padding: 24px;
  }
  .rich-hero .hero-content h1 {
    font-size: clamp(38px, 12vw, 54px);
  }
  .rich-hero .site-hero-card {
    max-width: none;
    grid-template-columns: 1fr auto;
  }
  .site-spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }
  .site-two-col {
    gap: 24px;
  }
  .site-highlight-grid,
  .site-enquiry-form {
    grid-template-columns: 1fr;
  }
  .amenity-carousel,
  .video-carousel,
  .rich-gallery,
  .timeline-carousel,
  .testimonial-carousel,
  .plan-media-carousel {
    grid-auto-columns: minmax(82%, 1fr);
  }
  .plan-media-carousel,
  .plan-media-carousel img {
    min-height: 240px;
  }
  .rich-gallery button {
    height: 280px;
  }
  .faq-section {
    grid-template-columns: 1fr;
  }
  .site-enquiry-form button {
    grid-column: auto;
  }
  .plan-detail-copy .carousel-actions.inline {
    grid-template-columns: 1fr;
  }
  .update-modal-gallery,
  .section-toggle-grid {
    grid-template-columns: 1fr;
  }
  .project-site-page .gallery-feature {
    min-height: 280px;
  }
  .project-site-page .rich-gallery {
    grid-auto-columns: minmax(74%, 1fr);
  }
}

@media (max-width: 440px) {
  .site-spec-strip {
    grid-template-columns: 1fr;
  }
  .amenity-carousel,
  .video-carousel,
  .rich-gallery,
  .timeline-carousel,
  .testimonial-carousel,
  .plan-media-carousel {
    grid-auto-columns: minmax(90%, 1fr);
  }
}

/* Final gallery presentation override: keep the walkthrough clean and predictable. */
.project-site-page #gallery .gallery-showcase {
  display: grid;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(44, 38, 28, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(31, 27, 20, .08);
}

.project-site-page #gallery .gallery-feature {
  min-height: clamp(330px, 40vw, 460px);
  border: 0;
  border-radius: 18px;
  background: #111;
  overflow: hidden;
  cursor: zoom-in;
}

.project-site-page #gallery .gallery-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .12) 58%, rgba(0, 0, 0, .04));
  pointer-events: none;
}

.project-site-page #gallery .gallery-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .25s ease;
}

.project-site-page #gallery .gallery-feature:hover img {
  transform: scale(1.03);
}

.project-site-page #gallery .gallery-feature span {
  position: absolute;
  left: 0;
  right: auto;
  top: auto;
  bottom: 0;
  z-index: 1;
  max-width: min(520px, 76%);
  padding: clamp(18px, 3vw, 32px);
}

.project-site-page #gallery .gallery-feature strong {
  display: block;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.project-site-page #gallery .gallery-feature small {
  max-width: 420px;
  color: rgba(255, 255, 255, .88);
}

.project-site-page #gallery .rich-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: hidden;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.project-site-page #gallery .rich-gallery::-webkit-scrollbar {
  display: none;
}

.project-site-page #gallery .rich-gallery button {
  min-width: 0;
  height: 150px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #0d1713;
  box-shadow: none;
  opacity: .76;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.project-site-page #gallery .rich-gallery button:hover,
.project-site-page #gallery .rich-gallery button.active {
  opacity: 1;
  border-color: #d8b66b;
  transform: translateY(-2px);
}

.project-site-page #gallery .rich-gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-site-page #gallery .rich-gallery button span {
  left: 12px;
  right: 12px;
  bottom: 10px;
  padding: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}

@media (max-width: 900px) {
  .project-site-page #gallery .rich-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project-site-page #gallery .gallery-showcase {
    padding: 10px;
    border-radius: 18px;
  }
  .project-site-page #gallery .gallery-feature {
    min-height: 290px;
  }
  .project-site-page #gallery .gallery-feature span {
    max-width: 92%;
    padding: 20px;
  }
  .project-site-page #gallery .gallery-feature strong {
    font-size: clamp(26px, 9vw, 38px);
  }
  .project-site-page #gallery .rich-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-site-page #gallery .rich-gallery button {
    height: 145px;
  }
}

/* Premium enquiry and footer blocks. */
.project-site-page .site-enquiry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(420px, 1.35fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 15%, rgba(216, 182, 107, .16), transparent 32%),
    linear-gradient(135deg, #111 0%, #161514 55%, #0b0f0d 100%);
  box-shadow: 0 28px 80px rgba(22, 20, 16, .18);
  overflow: hidden;
  scroll-margin-top: 116px;
}

.project-site-page .site-enquiry::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 22px;
  pointer-events: none;
}

.project-site-page .site-enquiry-copy {
  position: relative;
  z-index: 1;
}

.project-site-page .site-enquiry h2 {
  max-width: 10ch;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: .96;
}

.project-site-page .site-enquiry p:not(.eyebrow) {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.7;
}

.project-site-page .enquiry-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-site-page .enquiry-points span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #f8f3e7;
  font-size: 12px;
  font-weight: 900;
}

.project-site-page .site-enquiry-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-site-page .site-enquiry-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-site-page .site-enquiry-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  outline: 0;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.project-site-page .site-enquiry-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  outline: 0;
}

.project-site-page .site-enquiry-form input:focus,
.project-site-page .site-enquiry-form textarea:focus {
  border-color: #d8b66b;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 4px rgba(216, 182, 107, .14);
}

.project-site-page .site-enquiry-form input::placeholder,
.project-site-page .site-enquiry-form textarea::placeholder {
  color: rgba(255, 255, 255, .44);
}

.project-site-page .description-field,
.project-site-page .captcha-slot,
.project-site-page .enquiry-submit {
  grid-column: 1 / -1;
}

.project-site-page .captcha-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px dashed rgba(216, 182, 107, .44);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .72);
}

.project-site-page .captcha-slot span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-site-page .captcha-slot strong {
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

.project-site-page .site-enquiry-form .enquiry-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid rgba(216, 182, 107, .65);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f1de, #d8b66b);
  color: #111;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.project-site-page .site-enquiry-form .enquiry-submit span {
  color: #111;
  font-weight: 950;
}

.project-site-page .site-enquiry-form .enquiry-submit small {
  color: rgba(17, 17, 17, .55);
  font-size: 11px;
  font-weight: 900;
}

.project-site-page .project-site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: 26px 30px;
  border-radius: 24px;
  background: #111;
  color: #fff;
  box-shadow: 0 20px 50px rgba(22, 20, 16, .12);
}

.project-site-page .footer-brand strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 17px;
}

.project-site-page .footer-brand p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  line-height: 1.7;
}

.project-site-page .footer-contact {
  display: grid;
  gap: 10px;
  min-width: min(360px, 100%);
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .74);
  font-style: normal;
  text-align: right;
}

.project-site-page .footer-contact div {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.project-site-page .footer-contact a {
  color: #74f0b8;
  font-weight: 900;
}

@media (max-width: 900px) {
  .project-site-page .site-enquiry,
  .project-site-page .project-site-footer {
    grid-template-columns: 1fr;
  }
  .project-site-page .site-enquiry h2 {
    max-width: 12ch;
  }
  .project-site-page .footer-contact,
  .project-site-page .footer-contact div {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .project-site-page .site-enquiry {
    padding: 26px 18px;
    border-radius: 22px;
  }
  .project-site-page .site-enquiry::after {
    inset: 10px;
    border-radius: 18px;
  }
  .project-site-page .site-enquiry h2 {
    font-size: 34px;
  }
  .project-site-page .site-enquiry-form {
    grid-template-columns: 1fr;
  }
  .project-site-page .enquiry-submit {
    flex-direction: column;
    gap: 2px;
  }
  .project-site-page .project-site-footer {
    padding: 22px 18px;
    border-radius: 20px;
  }
}

/* Premium timeline, testimonial and FAQ sections. */
.project-site-page .timeline-carousel {
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  border: 0;
  background: transparent;
  overflow-x: auto;
}

.project-site-page .timeline-card {
  min-height: 360px;
  padding: 0;
  border: 1px solid rgba(30, 24, 15, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 27, 20, .07);
  overflow: hidden;
}

.project-site-page .timeline-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-site-page .timeline-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.project-site-page .timeline-card time {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-site-page .timeline-card strong {
  color: #141414;
  font-size: 18px;
  line-height: 1.22;
}

.project-site-page .timeline-card span {
  color: #52605a;
  font-size: 13px;
  line-height: 1.6;
}

.project-site-page .timeline-card em {
  color: #9a6b1d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.project-site-page .testimonial-showcase {
  width: 100%;
  max-width: none;
  padding-inline: max(40px, calc((100vw - var(--site-max)) / 2));
  background: linear-gradient(180deg, transparent 0 34%, #e9eef8 34% 100%);
}

.project-site-page .testimonial-showcase .section-title {
  width: min(var(--site-max), 100%);
  margin-inline: auto;
  text-align: center;
}

.project-site-page .testimonial-showcase .section-title h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: 0;
}

.project-site-page .testimonial-carousel {
  width: min(var(--site-max), 100%);
  margin-inline: auto;
  grid-auto-columns: calc((100% - 56px) / 3);
  gap: 28px;
  border: 0;
  background: transparent;
  overflow-x: auto;
}

.project-site-page .testimonial-card {
  position: relative;
  min-height: 460px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 26px 60px rgba(31, 41, 55, .18);
  overflow: hidden;
}

.project-site-page .testimonial-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.project-site-page .testimonial-card::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
}

.project-site-page .testimonial-overlay {
  position: absolute;
  left: 26px;
  right: 78px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: #fff;
}

.project-site-page .testimonial-overlay em {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .88);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-site-page .testimonial-card p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .90);
  font-size: 14px;
  line-height: 1.55;
}

.project-site-page .testimonial-card strong {
  color: #fff;
  font-size: 20px;
}

.project-site-page .testimonial-card span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 700;
}

.project-site-page .testimonial-play {
  position: absolute;
  right: 24px;
  bottom: 32px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
  transition: transform .18s ease, background .18s ease;
}

.project-site-page .testimonial-play:hover {
  background: #ff0033;
  border-color: #ff0033;
  transform: scale(1.06);
}

.project-site-page .faq-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(1160px, calc(100% - 40px));
  padding: 0 0 clamp(92px, 9vw, 132px);
  margin-bottom: clamp(48px, 7vw, 92px);
  isolation: isolate;
  clear: both;
  scroll-margin-top: 118px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(217, 185, 112, .22), transparent 34%),
    linear-gradient(180deg, #11110f 0 45%, #f7f5ef 45% 100%);
  box-shadow: 0 24px 70px rgba(48, 34, 13, .12);
  overflow: visible;
}

.project-site-page .faq-help-hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: 310px;
  padding: 54px 24px 108px;
  color: #fff;
  text-align: center;
}

.project-site-page .faq-help-hero .eyebrow {
  display: none;
}

.project-site-page .faq-help-hero h2 {
  margin: 0;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: 0;
}

.project-site-page .faq-help-hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 240, .78);
  font-size: 14px;
  line-height: 1.55;
}

.project-site-page .faq-search {
  width: min(460px, 92%);
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  margin-top: 6px;
  border: 1px solid rgba(217, 185, 112, .42);
  border-radius: 999px;
  background: #fffaf0;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}

.project-site-page .faq-search input {
  width: 100%;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0 18px;
  color: #334155;
  outline: 0;
}

.project-site-page .faq-search span {
  color: #9b7a35;
  font-size: 22px;
  font-weight: 900;
}

.project-site-page .faq-panel {
  width: min(700px, calc(100% - 40px));
  justify-self: center;
  margin-top: -92px;
  margin-bottom: 0;
  padding: clamp(34px, 5vw, 62px) clamp(34px, 5vw, 66px);
  border: 1px solid rgba(155, 122, 53, .14);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(48, 34, 13, .14);
}

.project-site-page .faq-panel h3 {
  margin: 0 0 30px;
  color: #111827;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 950;
  text-align: center;
  letter-spacing: 0;
}

.project-site-page .faq-list {
  display: grid;
  gap: 0;
}

.project-site-page .faq-list details {
  border: 0;
  border-bottom: 1px solid #d9dee6;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.project-site-page .faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 0;
  color: #374151;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}

.project-site-page .faq-list summary::-webkit-details-marker {
  display: none;
}

.project-site-page .faq-list summary::after {
  content: "⌄";
  color: #9b7a35;
  font-size: 22px;
  font-weight: 950;
  transition: transform .18s ease;
}

.project-site-page .faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.project-site-page .faq-list details p {
  margin: 0;
  padding: 0 28px 22px 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .project-site-page .timeline-carousel,
  .project-site-page .testimonial-carousel {
    grid-auto-columns: minmax(320px, 72%);
  }
  .project-site-page .testimonial-showcase {
    padding-inline: 20px;
  }
  .project-site-page .faq-panel {
    width: min(760px, calc(100% - 28px));
  }
}

@media (max-width: 560px) {
  .project-site-page .timeline-carousel,
  .project-site-page .testimonial-carousel {
    grid-auto-columns: 88%;
  }
  .project-site-page .testimonial-card {
    min-height: 420px;
  }
  .project-site-page .faq-section {
    width: calc(100% - 22px);
    padding-bottom: 82px;
    margin-bottom: 42px;
  }
  .project-site-page .faq-help-hero {
    min-height: 300px;
    padding-inline: 18px;
  }
  .project-site-page .faq-panel {
    padding: 30px 20px;
  }
  .project-site-page .faq-list summary {
    font-size: 15px;
  }
}

/* Frontend project switcher, brochure block and website-manager media controls. */
.frontend-project-switcher {
  position: relative;
}
.frontend-project-switcher summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #4a4a4a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}
.frontend-project-switcher summary::-webkit-details-marker {
  display: none;
}
.frontend-project-switcher summary::after {
  content: "⌄";
  color: #9b7a35;
}
.frontend-project-switcher > div {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
  width: min(320px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(155,122,53,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 28px 70px rgba(35,28,16,.16);
}
.frontend-project-switcher:not([open]) > div {
  display: none;
}
.frontend-project-switcher a {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #141414;
  text-decoration: none;
}
.frontend-project-switcher a:hover {
  background: #f6efe0;
}
.frontend-project-switcher a span {
  font-weight: 950;
}
.frontend-project-switcher a small {
  color: #7a6a4c;
  font-size: 12px;
  font-weight: 750;
}
.brochure-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(155,122,53,.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(17,17,17,.96), rgba(39,33,22,.9));
  color: #fff;
}
.brochure-band h2 {
  margin: 0 0 8px;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.brochure-band p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,250,240,.72);
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}
.media-line-tools {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.media-line-tools button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid #e8dcc6;
  border-radius: 8px;
  background: #fffaf0;
  color: #5f4520;
  padding: 7px 9px;
  cursor: pointer;
  font-weight: 800;
}
.media-line-tools em {
  color: #b91c1c;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .frontend-project-switcher {
    width: 100%;
  }
  .frontend-project-switcher summary {
    justify-content: center;
    width: 100%;
  }
  .frontend-project-switcher > div {
    left: 0;
    right: auto;
    width: 100%;
  }
  .brochure-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final public website header/menu polish and backend media thumbnails. */
.project-site-page .project-site-nav {
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(155,122,53,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 60px rgba(31,24,11,.11);
  backdrop-filter: blur(16px);
}
.project-site-page .site-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #15110a;
  text-decoration: none;
}
.project-site-page .site-brand > img,
.project-site-page .site-brand > span:not(.site-brand-copy) {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid rgba(155,122,53,.18);
  border-radius: 18px;
  object-fit: cover;
  background: #f8f0df;
  box-shadow: 0 10px 26px rgba(66,50,19,.12);
}
.project-site-page .site-brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.project-site-page .site-brand-copy strong {
  max-width: 210px;
  overflow: hidden;
  color: #12100b;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-site-page .site-brand-copy small {
  max-width: 210px;
  overflow: hidden;
  color: #8d7444;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-site-page .site-breadcrumb-menu {
  justify-self: start;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(155,122,53,.14);
  border-radius: 999px;
  background: #faf5ea;
  color: #80642e;
  font-size: 12px;
  font-weight: 900;
}
.project-site-page .site-breadcrumb-menu a {
  color: #0f766e;
  text-decoration: none;
}
.project-site-page .site-breadcrumb-menu strong {
  max-width: 220px;
  overflow: hidden;
  color: #242018;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-site-page .site-nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.project-site-page .site-nav-links > a:not(.btn),
.project-site-page .frontend-project-switcher summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 999px;
  color: #4f4533;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.project-site-page .site-nav-links > a:not(.btn):hover,
.project-site-page .frontend-project-switcher[open] summary,
.project-site-page .frontend-project-switcher summary:hover {
  background: #f2e8d6;
  color: #111;
}
.project-site-page .site-nav-links .btn.small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 12px;
}
.project-site-page .nav-call {
  border-color: rgba(15,118,110,.2);
  color: #0f766e;
}
.project-site-page .site-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(155,122,53,.16);
  border-radius: 15px;
  background: #faf5ea;
  cursor: pointer;
}
.project-site-page .site-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 99px;
  background: #16120a;
  transition: transform .2s ease, opacity .2s ease;
}
.project-site-page.site-menu-open .site-menu-btn span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.project-site-page.site-menu-open .site-menu-btn span:nth-child(2) {
  opacity: 0;
}
.project-site-page.site-menu-open .site-menu-btn span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.project-site-page .site-spec-strip {
  display: none !important;
}
.media-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 9px;
  margin-top: 9px;
}
.media-thumb-card {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  border: 1px solid #e8dcc6;
  border-radius: 12px;
  background: #fffaf0;
  color: #47351d;
  cursor: pointer;
  padding: 0;
  text-align: left;
  box-shadow: 0 8px 18px rgba(80,58,20,.08);
}
.media-thumb-card img {
  width: 100%;
  aspect-ratio: 1.28;
  display: block;
  object-fit: cover;
  background: #eadfc9;
}
.media-thumb-card strong {
  display: block;
  overflow: hidden;
  padding: 7px 8px;
  color: #5f4520;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-file-icon {
  width: 100%;
  aspect-ratio: 1.28;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8ecd6, #fff);
  color: #8d621d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.media-thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(220,38,38,.25);
}
@media (max-width: 1180px) {
  .project-site-page .project-site-nav {
    grid-template-columns: auto 1fr auto;
    border-radius: 28px;
  }
  .project-site-page .site-breadcrumb-menu {
    display: none;
  }
  .project-site-page .site-menu-btn {
    display: grid;
  }
  .project-site-page .site-nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(155,122,53,.15);
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 70px rgba(26,21,12,.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .project-site-page.site-menu-open .site-nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .project-site-page .site-nav-links > a,
  .project-site-page .frontend-project-switcher summary {
    justify-content: center;
    width: 100%;
    background: #faf5ea;
  }
  .project-site-page .frontend-project-switcher > div {
    left: 0;
    right: auto;
  }
}
@media (max-width: 640px) {
  .project-site-page .project-site-nav {
    width: calc(100% - 18px);
    min-height: 68px;
    padding: 8px;
    border-radius: 22px;
  }
  .project-site-page .site-brand > img,
  .project-site-page .site-brand > span:not(.site-brand-copy) {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }
  .project-site-page .site-brand-copy strong {
    max-width: 145px;
    font-size: 13px;
  }
  .project-site-page .site-brand-copy small {
    max-width: 145px;
    font-size: 10px;
  }
  .project-site-page .site-nav-links {
    grid-template-columns: 1fr;
  }
  .media-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final mobile-first public header reset: logo image, breadcrumb trail and clean drawer. */
.project-site-page .project-site-nav {
  position: sticky;
  top: 14px;
  z-index: 80;
  width: min(1180px, calc(100% - 32px));
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(123,97,42,.16);
  border-radius: 34px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 54px rgba(39,31,18,.12);
  backdrop-filter: blur(18px);
}
.project-site-page .site-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.project-site-page .site-brand > img {
  width: 178px;
  height: 58px;
  flex: 0 0 178px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 18px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.project-site-page .site-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.project-site-page .site-brand-copy strong {
  max-width: 170px;
  overflow: hidden;
  color: #12100b;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-site-page .site-brand-copy small {
  max-width: 170px;
  overflow: hidden;
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-site-page .site-breadcrumb-menu {
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(148,116,49,.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #fffaf0, #f5ecd8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  color: #7d632f;
  font-size: 13px;
  font-weight: 950;
}
.project-site-page .site-breadcrumb-menu a {
  color: #0f766e;
  text-decoration: none;
}
.project-site-page .site-breadcrumb-menu span {
  color: #b59b63;
}
.project-site-page .site-breadcrumb-menu strong {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  color: #16120a;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-site-page .site-nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.project-site-page .site-nav-links > a:not(.btn),
.project-site-page .frontend-project-switcher summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: #4d4435;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.project-site-page .site-nav-links > a:not(.btn):hover,
.project-site-page .frontend-project-switcher summary:hover,
.project-site-page .frontend-project-switcher[open] summary {
  background: #f1e5ce;
  color: #111;
}
.project-site-page .site-nav-links .btn.small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 12px;
}
.project-site-page .site-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(132,100,40,.18);
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 12px 26px rgba(17,24,39,.18);
}
.project-site-page .site-menu-btn span {
  width: 20px;
  height: 2px;
  margin: 3px 0;
  border-radius: 99px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.project-site-page.site-menu-open .site-menu-btn span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.project-site-page.site-menu-open .site-menu-btn span:nth-child(2) {
  opacity: 0;
}
.project-site-page.site-menu-open .site-menu-btn span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
@media (max-width: 1120px) {
  .project-site-page .project-site-nav {
    grid-template-columns: auto 1fr auto;
  }
  .project-site-page .site-brand-copy {
    display: none;
  }
  .project-site-page .site-menu-btn {
    display: grid;
  }
  .project-site-page .site-nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 14px;
    right: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(123,97,42,.16);
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 26px 70px rgba(35,28,15,.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .project-site-page.site-menu-open .site-nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .project-site-page .site-nav-links > a,
  .project-site-page .frontend-project-switcher summary {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border: 1px solid rgba(155,122,53,.13);
    background: #fbf5e9;
  }
  .project-site-page .frontend-project-switcher > div {
    left: 0;
    right: auto;
  }
}
@media (max-width: 700px) {
  .project-site-page .project-site-nav {
    top: 8px;
    width: calc(100% - 18px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu"
      "crumb crumb";
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 24px;
  }
  .project-site-page .site-brand {
    grid-area: brand;
  }
  .project-site-page .site-brand > img {
    width: 150px;
    height: 50px;
    flex-basis: 150px;
    border-radius: 15px;
  }
  .project-site-page .site-menu-btn {
    grid-area: menu;
    width: 46px;
    height: 46px;
    justify-self: end;
  }
  .project-site-page .site-breadcrumb-menu {
    grid-area: crumb;
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 9px 12px;
    font-size: 12px;
  }
  .project-site-page .site-breadcrumb-menu strong {
    max-width: calc(100vw - 160px);
  }
  .project-site-page .site-nav-links {
    left: 10px;
    right: 10px;
    grid-template-columns: 1fr;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 20px;
  }
  .project-site-page .site-nav-links > a,
  .project-site-page .frontend-project-switcher summary {
    min-height: 48px;
    font-size: 13px;
  }
  .project-site-page .project-site-hero {
    margin-top: 14px;
  }
}
@media (max-width: 380px) {
  .project-site-page .site-brand > img {
    width: 132px;
    height: 44px;
    flex-basis: 132px;
  }
  .project-site-page .site-breadcrumb-menu {
    gap: 7px;
    font-size: 11px;
  }
}

/* Production responsive hardening: preserves desktop styling, fixes tablet/mobile flow. */
html {
  -webkit-text-size-adjust: 100%;
}
img,
svg,
video,
iframe {
  max-width: 100%;
}
button,
a,
summary,
input,
select,
textarea {
  min-width: 0;
}
.project-site-page,
.viewer-page {
  overflow-x: hidden;
}
.project-site-page img,
.project-site-page video,
.project-site-page iframe {
  max-width: 100%;
}
.project-site-page iframe {
  border: 0;
}
.project-site-page .site-section,
.project-site-page .rich-hero,
.project-site-page .site-enquiry,
.project-site-page .project-site-footer,
.project-site-page .brochure-band,
.project-site-page .faq-section {
  max-width: calc(100% - 22px);
}
.project-site-page .section-title {
  min-width: 0;
}
.project-site-page .section-title h2,
.project-site-page .hero-content h1,
.project-site-page .site-section h2,
.project-site-page .site-enquiry h2 {
  overflow-wrap: anywhere;
}
.project-site-page .site-actions,
.project-site-page .carousel-actions,
.project-site-page .dialog-actions {
  min-width: 0;
}
.project-site-page .site-actions .btn,
.project-site-page .dialog-actions .btn {
  white-space: normal;
}
.project-site-page table {
  max-width: 100%;
}
.project-site-page .plan-detail-copy table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.project-site-page .plan-detail-copy tbody {
  display: table;
  width: 100%;
}
.project-site-page .plan-media-carousel > button,
.project-site-page .site-gallery button,
.project-site-page [data-carousel] > * {
  min-width: 0;
}
.project-site-page .video-carousel iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.site-lightbox,
.cost-modal,
.update-modal,
.video-modal,
.plot-dialog {
  max-width: calc(100vw - 24px);
}
.modal-close,
.dialog-close,
.testimonial-play,
.carousel-actions button,
.lightbox-arrow {
  touch-action: manipulation;
}
body.admin-body:not(.editor-workbench) {
  overflow-x: hidden;
}
body.admin-body:not(.editor-workbench) img,
body.admin-body:not(.editor-workbench) iframe,
body.admin-body:not(.editor-workbench) video {
  max-width: 100%;
}
body.admin-body:not(.editor-workbench) .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.admin-body:not(.editor-workbench) .panel,
body.admin-body:not(.editor-workbench) .hero-panel,
body.admin-body:not(.editor-workbench) .project-card,
body.admin-body:not(.editor-workbench) .sub-panel {
  min-width: 0;
}

@media (max-width: 1280px) {
  .project-site-page {
    --site-max: min(1120px, calc(100vw - 32px));
  }
  .project-site-page .rich-hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  }
  .project-site-page .testimonial-showcase {
    padding-inline: max(24px, calc((100vw - var(--site-max)) / 2));
  }
}

@media (max-width: 1024px) {
  .project-site-page .rich-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .project-site-page .site-hero-card {
    width: min(430px, 100%);
  }
  .project-site-page .site-two-col,
  .project-site-page .site-enquiry,
  .project-site-page .project-site-footer,
  .project-site-page .brochure-band {
    grid-template-columns: 1fr;
  }
  .project-site-page .site-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-site-page .amenity-carousel {
    grid-auto-columns: minmax(210px, 32%);
  }
  .project-site-page .video-carousel,
  .project-site-page .timeline-carousel {
    grid-auto-columns: minmax(300px, 46%);
  }
  .project-site-page .testimonial-carousel {
    grid-auto-columns: minmax(300px, 46%);
  }
  .project-site-page .property-plan-showcase,
  .project-site-page .plan-detail-panel.active {
    grid-template-columns: 1fr;
  }
  .project-site-page .plan-tab-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .viewer-title {
    max-width: calc(100vw - 120px);
  }
}

@media (max-width: 991px) {
  body.admin-body:not(.editor-workbench) .admin-filterbar,
  body.admin-body:not(.editor-workbench) .admin-grid,
  body.admin-body:not(.editor-workbench) .rights-grid,
  body.admin-body:not(.editor-workbench) .two,
  body.admin-body:not(.editor-workbench) .price-field-row,
  body.admin-body:not(.editor-workbench) .section-toggle-grid {
    grid-template-columns: 1fr;
  }
  body.admin-body:not(.editor-workbench) .project-card,
  body.admin-body:not(.editor-workbench) .hero-panel {
    align-items: stretch;
  }
  .project-site-page .project-site-nav {
    width: calc(100% - 24px);
  }
  .project-site-page .site-nav-links {
    max-height: min(72vh, 620px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .project-site-page .site-nav-links > a,
  .project-site-page .frontend-project-switcher summary,
  .project-site-page .site-nav-links .btn {
    min-height: 44px;
  }
  .project-site-page .faq-section {
    width: calc(100% - 24px);
  }
  .plot-dialog {
    width: min(560px, calc(100vw - 22px));
  }
}

@media (max-width: 768px) {
  .project-site-page .project-site-nav {
    top: 8px;
    width: calc(100% - 18px);
  }
  .project-site-page .rich-hero {
    width: calc(100% - 22px);
    padding: clamp(22px, 7vw, 34px);
    border-radius: 22px;
  }
  .project-site-page .hero-content h1 {
    max-width: 12ch;
    font-size: clamp(40px, 11vw, 62px);
  }
  .project-site-page .hero-content p {
    font-size: clamp(14px, 3.6vw, 16px);
  }
  .project-site-page .site-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 430px);
  }
  .project-site-page .site-actions .btn {
    width: 100%;
    min-height: 46px;
  }
  .project-site-page .site-hero-card {
    width: 100%;
  }
  .project-site-page .site-section {
    width: calc(100% - 22px);
    padding-block: clamp(42px, 9vw, 58px);
  }
  .project-site-page .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .project-site-page .section-title .carousel-actions {
    align-self: flex-end;
  }
  .project-site-page .site-highlight-grid {
    grid-template-columns: 1fr;
  }
  .project-site-page .amenity-carousel,
  .project-site-page .video-carousel,
  .project-site-page .timeline-carousel,
  .project-site-page .testimonial-carousel {
    grid-auto-columns: minmax(78%, 1fr);
  }
  .project-site-page #gallery .rich-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-site-page #gallery .gallery-feature {
    min-height: clamp(260px, 74vw, 360px);
  }
  .project-site-page .plan-media-carousel,
  .project-site-page .plan-media-carousel img {
    min-height: clamp(220px, 58vw, 320px);
  }
  .project-site-page .plan-detail-copy {
    padding: clamp(16px, 5vw, 22px);
  }
  .project-site-page .site-enquiry-form {
    grid-template-columns: 1fr;
  }
  .project-site-page .captcha-slot {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-site-page .footer-contact {
    min-width: 0;
    width: 100%;
  }
  .site-lightbox,
  .cost-modal,
  .update-modal,
  .video-modal {
    width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 18px;
  }
  .site-lightbox img {
    max-height: 62vh;
  }
  .lightbox-arrow {
    width: 38px;
    height: 38px;
  }
  .lightbox-arrow.prev {
    left: 18px;
  }
  .lightbox-arrow.next {
    right: 18px;
  }
  .viewer-page {
    min-height: 100dvh;
  }
  .viewer-map-wrap {
    min-height: 100dvh;
    padding-bottom: 86px;
  }
  .viewer-action-dock {
    top: auto;
    right: 10px;
    bottom: 12px;
    left: 10px;
    grid-auto-flow: column;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-radius: 18px;
  }
  .viewer-action-dock button {
    width: 100%;
    min-width: 0;
    height: 44px;
  }
  .viewer-panel {
    bottom: 72px;
  }
  .plot-dialog {
    bottom: 72px;
    max-height: min(78vh, 640px);
  }
}

@media (max-width: 576px) {
  body.admin-body:not(.editor-workbench) .topbar nav,
  body.admin-body:not(.editor-workbench) .toolbar,
  body.admin-body:not(.editor-workbench) .actions,
  body.admin-body:not(.editor-workbench) .project-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  body.admin-body:not(.editor-workbench) .btn,
  body.admin-body:not(.editor-workbench) .project-actions form,
  body.admin-body:not(.editor-workbench) .project-actions form button {
    width: 100%;
  }
  body.admin-body:not(.editor-workbench) th,
  body.admin-body:not(.editor-workbench) td {
    padding: 10px;
    font-size: 13px;
  }
  .project-site-page .site-brand > img {
    width: clamp(128px, 42vw, 150px);
    height: auto;
    aspect-ratio: 3 / 1;
  }
  .project-site-page .site-breadcrumb-menu {
    min-width: 0;
  }
  .project-site-page .site-breadcrumb-menu strong {
    max-width: calc(100vw - 164px);
  }
  .project-site-page .site-nav-links {
    grid-template-columns: 1fr;
  }
  .project-site-page .hero-content h1 {
    font-size: clamp(36px, 12vw, 52px);
  }
  .project-site-page .site-actions {
    grid-template-columns: 1fr;
  }
  .project-site-page .site-hero-card {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 18px;
  }
  .project-site-page .site-section h2 {
    font-size: clamp(28px, 9vw, 40px);
  }
  .project-site-page .amenity-carousel,
  .project-site-page .video-carousel,
  .project-site-page .timeline-carousel,
  .project-site-page .testimonial-carousel,
  .project-site-page .plan-media-carousel {
    grid-auto-columns: minmax(88%, 1fr);
  }
  .project-site-page #gallery .rich-gallery {
    grid-template-columns: 1fr;
  }
  .project-site-page #gallery .rich-gallery button {
    height: clamp(170px, 52vw, 230px);
  }
  .project-site-page .testimonial-card {
    min-height: 390px;
  }
  .project-site-page .testimonial-overlay {
    left: 18px;
    right: 70px;
    bottom: 18px;
  }
  .project-site-page .faq-help-hero {
    min-height: 278px;
    padding: 42px 16px 96px;
  }
  .project-site-page .faq-panel {
    width: calc(100% - 18px);
    padding: 28px 18px;
  }
  .project-site-page .faq-list summary {
    min-height: 58px;
    font-size: 15px;
  }
  .project-site-page .site-enquiry,
  .project-site-page .project-site-footer {
    width: calc(100% - 22px);
  }
  .project-site-page .site-enquiry-form input,
  .project-site-page .site-enquiry-form textarea {
    min-height: 48px;
  }
  .project-site-page .site-enquiry-form .enquiry-submit {
    min-height: 54px;
  }
  .dialog-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .plot-gallery-public {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .project-site-page .project-site-nav {
    border-radius: 20px;
    padding: 9px;
  }
  .project-site-page .site-menu-btn {
    width: 44px;
    height: 44px;
  }
  .project-site-page .site-breadcrumb-menu {
    width: 100%;
    overflow: hidden;
    font-size: 11px;
  }
  .project-site-page .rich-hero {
    min-height: 620px;
  }
  .project-site-page .hero-content {
    align-self: start;
  }
  .project-site-page .site-hero-card strong {
    font-size: 24px;
  }
  .project-site-page .plan-tab-list {
    grid-auto-columns: minmax(178px, 74%);
  }
  .project-site-page .price-breakup span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .project-site-page .video-carousel article {
    min-height: 230px;
  }
  .project-site-page .site-lightbox strong {
    font-size: 17px;
  }
  .viewer-title {
    right: 12px;
    max-width: calc(100vw - 24px);
  }
  .viewer-title p {
    display: none;
  }
  .viewer-panel.collapsed {
    width: min(188px, calc(100vw - 24px));
  }
  .plot-dialog h2 {
    padding-right: 44px;
  }
}

@media (max-width: 375px) {
  .project-site-page .site-brand > img {
    width: 126px;
  }
  .project-site-page .site-breadcrumb-menu {
    gap: 7px;
    padding-inline: 10px;
  }
  .project-site-page .site-breadcrumb-menu strong {
    max-width: calc(100vw - 145px);
  }
  .project-site-page .hero-content h1 {
    font-size: clamp(33px, 12vw, 45px);
  }
  .project-site-page .rich-hero {
    padding: 20px;
  }
  .project-site-page .site-hero-card {
    font-size: 13px;
  }
  .project-site-page .amenity-carousel,
  .project-site-page .video-carousel,
  .project-site-page .timeline-carousel,
  .project-site-page .testimonial-carousel,
  .project-site-page .plan-media-carousel {
    grid-auto-columns: minmax(94%, 1fr);
  }
  .project-site-page .project-site-footer,
  .project-site-page .site-enquiry {
    padding-inline: 16px;
  }
  .viewer-action-dock {
    gap: 5px;
    padding: 5px;
  }
  .viewer-action-dock button {
    height: 40px;
  }
}

@media (max-width: 340px) {
  .project-site-page .site-brand > img {
    width: 116px;
  }
  .project-site-page .site-menu-btn {
    width: 40px;
    height: 40px;
  }
  .project-site-page .site-breadcrumb-menu {
    font-size: 10px;
  }
  .project-site-page .site-breadcrumb-menu strong {
    max-width: calc(100vw - 132px);
  }
  .project-site-page .site-actions .btn,
  .project-site-page .site-nav-links > a,
  .project-site-page .frontend-project-switcher summary {
    min-height: 44px;
    font-size: 12px;
  }
  .project-site-page .hero-content h1 {
    font-size: 31px;
  }
  .project-site-page .captcha-slot {
    padding-inline: 12px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .project-site-page .site-nav-links {
    max-height: 68vh;
  }
  .project-site-page .rich-hero {
    min-height: 520px;
  }
  .site-lightbox img {
    max-height: 54vh;
  }
  .plot-dialog {
    max-height: 82vh;
  }
}

/* Public inventory focus popup polish. */
.plot-hover-card {
  width: min(310px, calc(100vw - 28px));
  padding: 12px;
  border-color: rgba(247,200,102,.26);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(8,19,14,.96), rgba(18,48,35,.93));
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
}
.plot-hover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.plot-hover-card .plot-hover-head span {
  margin: 0;
  background: rgba(247,200,102,.17);
  color: #f7c866;
}
.plot-hover-card .plot-hover-head strong {
  font-size: 21px;
  line-height: 1;
}
.plot-hover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.plot-hover-grid div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}
.plot-hover-card .plot-hover-grid small {
  margin: 0 0 3px;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.plot-hover-grid b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plot-hover-card em {
  margin-top: 10px;
  color: #dff8eb;
  font-size: 11px;
}
.plot-hover-card .plot-hover-gallery {
  width: max-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #f7c866;
}
.plot-more-btn {
  z-index: 7;
  min-height: 23px;
  padding: 4px 8px;
  border-color: rgba(8,18,12,.2);
  border-radius: 999px;
  background: #f7c866;
  color: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.plot-dialog {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: min(1040px, calc(100vw - 42px));
  max-height: calc(100vh - 46px);
  padding: 18px;
  border-radius: 22px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(6,16,11,.97), rgba(15,33,24,.95));
}
.plot-dialog::backdrop {
  background: rgba(5,9,7,.38);
  backdrop-filter: blur(5px);
}
.plot-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .82fr);
  gap: 18px;
}
.plot-dialog-media,
.plot-dialog-info {
  min-width: 0;
}
.plot-dialog-media .plot-extra {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.plot-dialog-media .plot-extra > span,
.plot-gallery-empty span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 11px;
  color: #f7c866;
}
.plot-dialog-media .plot-gallery-feature {
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  border-radius: 18px;
}
.plot-dialog-media .plot-gallery-public {
  grid-auto-columns: minmax(118px, 23%);
  gap: 10px;
  padding-bottom: 8px;
}
.plot-dialog-media .plot-gallery-public button {
  min-height: 96px;
  border-radius: 13px;
}
.plot-dialog-info {
  display: grid;
  align-content: start;
  gap: 10px;
}
.plot-dialog-info h2 {
  margin: 0;
  padding-right: 48px;
}
.plot-dialog-info #dialogSub {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-weight: 700;
}
.plot-dialog-info .detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.plot-dialog-info .sketch-box {
  min-height: 0;
  padding: 10px;
}
.plot-dialog-info #sketchSvg {
  height: 132px;
}
.plot-gallery-empty {
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: center;
  padding: 26px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  text-align: center;
}
.plot-gallery-empty strong {
  font-size: 22px;
}
.plot-gallery-empty p {
  max-width: 330px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.7);
}

@media (max-width: 760px) {
  .plot-hover-card {
    display: none;
  }
  .plot-more-btn {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 9px;
  }
  .plot-dialog {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-width: none;
    max-height: 88vh;
    padding: 12px;
    border-radius: 20px 20px 16px 16px;
    transform: none;
  }
  .plot-dialog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .plot-dialog-media {
    order: 1;
  }
  .plot-dialog-info {
    order: 2;
  }
  .plot-dialog-media .plot-gallery-feature {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .plot-dialog-media .plot-gallery-public {
    grid-auto-columns: minmax(76px, 28%);
    gap: 8px;
  }
  .plot-dialog-media .plot-gallery-public button {
    min-height: 70px;
    border-radius: 11px;
  }
  .plot-dialog-media .plot-gallery-public em {
    padding: 5px;
    font-size: 9px;
  }
  .plot-dialog-info .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plot-dialog-info .detail-grid div {
    padding: 9px;
  }
  .plot-dialog-info .detail-grid strong {
    font-size: 13px;
  }
  .plot-dialog-info .sketch-box {
    padding: 9px;
  }
  .plot-dialog-info #sketchSvg {
    height: 104px;
  }
}

/* Final public inventory hover/icon overrides. */
.plot-hover-card {
  width: auto;
  min-width: 142px;
  max-width: min(190px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6,14,10,.95), rgba(17,35,26,.93));
  box-shadow: 0 16px 44px rgba(0,0,0,.34);
}
.plot-hover-card > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(247,200,102,.18);
  color: #f7c866;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}
.plot-hover-card > strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}
.plot-hover-card .plot-hover-head,
.plot-hover-card .plot-hover-grid,
.plot-hover-card em,
.plot-hover-card .plot-hover-gallery {
  display: none;
}
.plot-more-btn {
  display: inline-grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(68,43,0,.24);
  border-radius: 999px;
  background: #f7c866;
  color: #111;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 950;
  line-height: 1;
}

/* Mobile refinements v2: centered content, card tabs and compact gallery. */
@media (max-width: 768px) {
  .project-site-page .site-section {
    text-align: center;
  }
  .project-site-page .section-title {
    justify-items: center;
    text-align: center;
  }
  .project-site-page .section-title > div {
    width: 100%;
  }
  .project-site-page .section-title .btn,
  .project-site-page .section-title .carousel-actions {
    margin-inline: auto;
  }
  .project-site-page .site-two-col {
    text-align: center;
  }
  .project-site-page .site-two-col p {
    margin-inline: auto;
  }
  .project-site-page .site-highlight-grid,
  .project-site-page .amenity-carousel {
    text-align: center;
  }
  .project-site-page .mobile-plan-picker {
    display: none;
  }
  .project-site-page .plan-tab-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(158px, 74%);
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 3px 3px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .project-site-page .plan-tab-list::-webkit-scrollbar {
    display: none;
  }
  .project-site-page .plan-tab-list button {
    min-height: 82px;
    border: 1px solid rgba(155, 122, 53, .18);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 250, 240, .92));
    box-shadow: 0 14px 34px rgba(31, 27, 20, .08);
    scroll-snap-align: center;
    text-align: left;
  }
  .project-site-page .plan-tab-list button span {
    color: #a47d2c;
    font-size: 10px;
    letter-spacing: .08em;
  }
  .project-site-page .plan-tab-list button strong {
    color: #173f34;
    font-size: 14px;
    line-height: 1.25;
  }
  .project-site-page .plan-tab-list button.active {
    border-color: rgba(15, 72, 58, .9);
    background: linear-gradient(135deg, #0c3c31, #17614f);
    box-shadow: 0 18px 42px rgba(10, 55, 43, .22);
    transform: translateY(-1px);
  }
  .project-site-page .plan-tab-list button.active span,
  .project-site-page .plan-tab-list button.active strong {
    color: #fff;
  }
  .project-site-page .property-plan-showcase {
    text-align: left;
  }
  .project-site-page .plan-detail-copy {
    text-align: left;
  }
  .project-site-page #gallery .section-title {
    gap: 10px;
  }
  .project-site-page #gallery .gallery-feature {
    min-height: clamp(320px, 86vw, 420px);
  }
  .project-site-page #gallery .gallery-feature span {
    right: 0;
    text-align: left;
  }
  .project-site-page #gallery .rich-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(108px, 36%);
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    text-align: left;
  }
  .project-site-page #gallery .rich-gallery::-webkit-scrollbar {
    display: none;
  }
  .project-site-page #gallery .rich-gallery button {
    height: 96px;
    border-radius: 14px;
    scroll-snap-align: start;
  }
  .project-site-page #gallery .rich-gallery button span {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 10px;
    line-height: 1.1;
  }
  .project-site-page .video-carousel article,
  .project-site-page .timeline-card,
  .project-site-page .testimonial-card {
    text-align: left;
  }
  .project-site-page .testimonial-section .section-title {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .project-site-page .site-section h2 {
    max-width: 10.5ch;
    margin-inline: auto;
  }
  .project-site-page #overview .site-section h2,
  .project-site-page #overview h2 {
    max-width: 12ch;
  }
  .project-site-page .plan-tab-list {
    grid-auto-columns: minmax(148px, 72%);
  }
  .project-site-page .property-plan-showcase {
    padding: 14px;
  }
  .project-site-page #gallery .rich-gallery {
    grid-auto-columns: minmax(102px, 38%);
  }
}

/* Mobile-first presentation overrides for the public project website.
   These rules intentionally live last so the desktop design above remains intact. */
.mobile-plan-picker {
  display: none;
}

@media (max-width: 768px) {
  .project-site-page {
    overflow-x: hidden;
  }
  .project-site-page main {
    width: 100%;
  }
  .project-site-page .site-section {
    width: min(100% - 24px, 1120px);
    padding-block: 36px;
  }
  .project-site-page .section-title {
    align-items: flex-start;
    gap: 14px;
  }
  .project-site-page .section-title .carousel-actions {
    align-self: flex-end;
  }
  .project-site-page .rich-hero {
    width: calc(100% - 18px);
    min-height: 640px;
    display: grid;
    align-content: end;
    padding: 18px;
    border-radius: 24px;
  }
  .project-site-page .rich-hero .hero-slider img {
    object-position: center;
  }
  .project-site-page .hero-content {
    align-self: end;
    max-width: 100%;
    padding: 86px 4px 0;
    text-align: left;
  }
  .project-site-page .hero-content h1 {
    max-width: 9ch;
    font-size: clamp(34px, 11vw, 54px);
    line-height: .92;
  }
  .project-site-page .hero-content p {
    max-width: 32ch;
    font-size: 14px;
  }
  .project-site-page .site-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .project-site-page .site-actions .btn {
    min-height: 48px;
    justify-content: center;
  }
  .project-site-page .site-hero-card {
    position: static;
    width: 100%;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
  }
  .project-site-page .site-hero-card div {
    display: grid;
    gap: 3px;
    text-align: left;
  }
  .project-site-page .site-hero-card strong {
    font-size: 20px;
  }
  .project-site-page .site-spec-strip {
    width: calc(100% - 18px);
    margin-top: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .project-site-page .site-spec-strip article {
    min-height: 76px;
    padding: 12px;
  }
  .project-site-page #overview {
    padding-top: 32px;
  }
  .project-site-page .site-two-col {
    gap: 18px;
  }
  .project-site-page .site-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .project-site-page .site-highlight-grid article {
    min-height: 92px;
    padding: 14px;
    border-radius: 16px;
  }
  .project-site-page #amenities .carousel-actions {
    display: none;
  }
  .project-site-page .amenity-carousel {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    scroll-snap-type: none;
  }
  .project-site-page .amenity-carousel article {
    min-height: 128px;
    padding: 16px 10px;
    border: 1px solid rgba(155, 122, 53, .14);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 27, 20, .06);
  }
  .project-site-page .amenity-carousel article svg,
  .project-site-page .amenity-carousel article img {
    width: 34px;
    height: 34px;
  }
  .project-site-page .amenity-carousel article strong {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.35;
  }
  .project-site-page .property-plan-showcase {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
  }
  .project-site-page .mobile-plan-picker {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #eadfc9;
    border-radius: 16px;
    background: #fffaf0;
  }
  .project-site-page .mobile-plan-picker span {
    color: #8b6b2f;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .project-site-page .mobile-plan-picker select {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #dccda9;
    border-radius: 12px;
    background: #fff;
    color: #123d31;
    font: inherit;
    font-weight: 900;
  }
  .project-site-page .plan-tab-list {
    display: none;
  }
  .project-site-page .plan-detail-panel.active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project-site-page .plan-media-frame {
    width: 100%;
  }
  .project-site-page .plan-media-carousel {
    grid-auto-columns: 100%;
    min-height: 260px;
    border-radius: 16px;
  }
  .project-site-page .plan-media-carousel button,
  .project-site-page .plan-media-carousel img {
    min-height: 260px;
    border-radius: 16px;
  }
  .project-site-page .plan-media-actions {
    inset: 50% 10px auto 10px;
  }
  .project-site-page .plan-media-actions button {
    width: 42px;
    height: 42px;
  }
  .project-site-page .plan-detail-copy {
    padding: 16px;
    border-radius: 16px;
  }
  .project-site-page .plan-detail-copy h3 {
    font-size: clamp(24px, 8vw, 34px);
  }
  .project-site-page .plan-detail-copy table {
    display: table;
    width: 100%;
  }
  .project-site-page .price-breakup {
    padding: 12px;
  }
  .project-site-page .video-carousel,
  .project-site-page .timeline-carousel,
  .project-site-page .testimonial-carousel {
    grid-auto-columns: 100%;
    gap: 14px;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .project-site-page .video-carousel article,
  .project-site-page .timeline-card,
  .project-site-page .testimonial-card {
    width: 100%;
    scroll-snap-align: center;
  }
  .project-site-page .video-carousel article {
    min-height: 248px;
  }
  .project-site-page .video-carousel iframe,
  .project-site-page .video-carousel img {
    min-height: 184px;
  }
  .project-site-page #gallery .gallery-feature {
    min-height: clamp(290px, 78vw, 390px);
    border-radius: 20px;
  }
  .project-site-page #gallery .gallery-feature-content {
    padding: 18px;
  }
  .project-site-page #gallery .rich-gallery {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0;
  }
  .project-site-page #gallery .rich-gallery button {
    height: clamp(136px, 38vw, 190px);
    border-radius: 14px;
  }
  .project-site-page #gallery .rich-gallery button[hidden] {
    display: block;
  }
  .project-site-page .timeline-card {
    min-height: 190px;
    padding: 18px;
    border-radius: 18px;
  }
  .project-site-page .timeline-card img {
    width: 88px;
    height: 64px;
  }
  .project-site-page .testimonial-card {
    min-height: 420px;
    border-radius: 22px;
  }
  .project-site-page .testimonial-overlay {
    left: 18px;
    right: 72px;
    bottom: 18px;
  }
  .project-site-page .faq-section {
    margin-top: 18px;
  }
  .project-site-page .site-enquiry {
    margin-top: 26px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
  .project-site-page .site-enquiry-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .project-site-page .site-section,
  .project-site-page .property-plan-showcase,
  .project-site-page .plan-detail-panel,
  .project-site-page .plan-media-frame,
  .project-site-page .gallery-feature,
  .project-site-page #gallery .gallery-feature,
  .project-site-page .site-gallery,
  .project-site-page #gallery .rich-gallery,
  .project-site-page .video-carousel,
  .project-site-page .timeline-carousel,
  .project-site-page .testimonial-carousel,
  .project-site-page .plan-media-carousel {
    max-width: 100%;
  }
  .project-site-page .video-carousel,
  .project-site-page .timeline-carousel,
  .project-site-page .testimonial-carousel,
  .project-site-page .plan-media-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    contain: inline-size paint;
  }
  .project-site-page .gallery-feature,
  .project-site-page #gallery .gallery-feature {
    width: 100%;
    overflow: hidden;
    contain: inline-size paint;
  }
  .project-site-page #gallery .rich-gallery {
    width: 100%;
    overflow-x: hidden;
    contain: inline-size paint;
  }
}

@media (max-width: 480px) {
  .project-site-page .site-section {
    width: min(100% - 18px, 1120px);
  }
  .project-site-page .rich-hero {
    width: calc(100% - 12px);
    min-height: 610px;
    padding: 16px;
  }
  .project-site-page .hero-content h1 {
    max-width: 8ch;
    font-size: clamp(33px, 12vw, 48px);
  }
  .project-site-page .site-actions {
    grid-template-columns: 1fr;
  }
  .project-site-page .site-hero-card {
    grid-template-columns: 1fr 1fr;
  }
  .project-site-page .site-spec-strip,
  .project-site-page .site-highlight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-site-page .amenity-carousel {
    grid-template-columns: 1fr 1fr;
  }
  .project-site-page .amenity-carousel article {
    min-height: 116px;
  }
  .project-site-page .plan-detail-copy th,
  .project-site-page .plan-detail-copy td {
    display: block;
    width: 100%;
    padding: 5px 0;
  }
  .project-site-page .plan-detail-copy tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eadfc9;
  }
  .project-site-page .plan-detail-copy tr:last-child {
    border-bottom: 0;
  }
  .project-site-page .plan-media-carousel,
  .project-site-page .plan-media-carousel button,
  .project-site-page .plan-media-carousel img {
    min-height: 230px;
  }
  .project-site-page #gallery .rich-gallery {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
  }
  .project-site-page #gallery .rich-gallery button {
    height: clamp(180px, 56vw, 240px);
  }
  .project-site-page .site-enquiry {
    padding: 18px;
  }
}

/* Final mobile presentation layer: keep desktop untouched, replace mobile dropdown UI with cards. */
@media (max-width: 768px) {
  .project-site-page .site-section,
  .project-site-page .section-title,
  .project-site-page .site-two-col,
  .project-site-page .amenity-carousel {
    text-align: center;
  }
  .project-site-page .section-title {
    justify-items: center;
  }
  .project-site-page .section-title > div,
  .project-site-page .section-title h2,
  .project-site-page .section-title p {
    margin-inline: auto;
  }
  .project-site-page .section-title .btn,
  .project-site-page .section-title .carousel-actions {
    margin-inline: auto;
  }
  .project-site-page #overview p {
    margin-inline: auto;
  }
  .project-site-page .mobile-plan-picker {
    display: none !important;
  }
  .project-site-page .plan-tab-list {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(158px, 74%);
    grid-template-columns: none;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 3px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .project-site-page .plan-tab-list::-webkit-scrollbar {
    display: none;
  }
  .project-site-page .plan-tab-list button {
    min-height: 82px;
    border: 1px solid rgba(155, 122, 53, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,250,240,.94));
    box-shadow: 0 14px 34px rgba(31, 27, 20, .08);
    scroll-snap-align: center;
    text-align: left;
  }
  .project-site-page .plan-tab-list button span {
    color: #a47d2c;
    font-size: 10px;
    letter-spacing: .08em;
  }
  .project-site-page .plan-tab-list button strong {
    color: #173f34;
    font-size: 14px;
    line-height: 1.25;
  }
  .project-site-page .plan-tab-list button.active {
    border-color: rgba(15, 72, 58, .9);
    background: linear-gradient(135deg, #0c3c31, #17614f);
    box-shadow: 0 18px 42px rgba(10, 55, 43, .22);
    transform: translateY(-1px);
  }
  .project-site-page .plan-tab-list button.active span,
  .project-site-page .plan-tab-list button.active strong {
    color: #fff;
  }
  .project-site-page .property-plan-showcase,
  .project-site-page .plan-detail-copy,
  .project-site-page .video-carousel article,
  .project-site-page .timeline-card,
  .project-site-page .testimonial-card {
    text-align: left;
  }
  .project-site-page #gallery .gallery-feature {
    min-height: clamp(320px, 86vw, 420px);
  }
  .project-site-page #gallery .gallery-feature span {
    text-align: left;
  }
  .project-site-page #gallery .rich-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(108px, 36%);
    grid-template-columns: none;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .project-site-page #gallery .rich-gallery::-webkit-scrollbar {
    display: none;
  }
  .project-site-page #gallery .rich-gallery button,
  .project-site-page #gallery .rich-gallery button[hidden] {
    display: block;
    height: 96px;
    border-radius: 14px;
    scroll-snap-align: start;
  }
  .project-site-page #gallery .rich-gallery button span {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 10px;
    line-height: 1.1;
  }
}

@media (max-width: 480px) {
  .project-site-page .site-section h2 {
    max-width: 11ch;
    margin-inline: auto;
  }
  .project-site-page .plan-tab-list {
    grid-auto-columns: minmax(148px, 72%);
  }
  .project-site-page #gallery .rich-gallery {
    grid-auto-columns: minmax(102px, 38%);
  }
}

/* User polish pass: clean logo-only header, refined mobile tabs/gallery, distinct footer. */
.project-site-page .project-site-nav {
  align-items: center;
}
.project-site-page .site-brand {
  flex: 0 0 auto;
}
.project-site-page .site-brand > img {
  display: block;
  width: clamp(138px, 15vw, 190px);
  height: auto;
  aspect-ratio: 3.25 / 1;
  object-fit: contain;
  border-radius: 12px;
}
.project-site-page .site-brand-copy,
.project-site-page .site-breadcrumb-menu {
  display: none !important;
}
.project-site-page .project-site-footer {
  background: linear-gradient(135deg, #173f34, #245848) !important;
  color: #f7f1e4;
  box-shadow: 0 22px 54px rgba(23, 63, 52, .18);
}
.project-site-page .project-site-footer p,
.project-site-page .project-site-footer address {
  color: rgba(247, 241, 228, .78);
}
.project-site-page .project-site-footer a {
  color: #f3d488;
}
.project-site-page .site-enquiry-form .enquiry-submit small {
  color: rgba(255, 255, 255, .78);
}

@media (min-width: 769px) {
  .project-site-page .project-site-nav {
    display: flex;
    justify-content: space-between;
    gap: 18px;
  }
  .project-site-page .site-nav-links {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .project-site-page .project-site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }
  .project-site-page .site-brand {
    justify-self: start;
  }
  .project-site-page .site-brand > img {
    width: clamp(136px, 44vw, 174px);
    max-height: 54px;
    padding: 0;
  }
  .project-site-page .site-menu-btn {
    justify-self: end;
  }
  .project-site-page .site-nav-links {
    grid-column: 1 / -1;
  }
  .project-site-page .site-section {
    padding-block: 30px;
  }
  .project-site-page .section-title {
    align-items: center !important;
    gap: 10px;
  }
  .project-site-page .section-title h2,
  .project-site-page .site-section h2 {
    max-width: 100%;
    font-size: clamp(25px, 7.2vw, 34px);
    line-height: 1.04;
  }
  .project-site-page #plans .section-title h2,
  .project-site-page #gallery .section-title h2,
  .project-site-page #updates .section-title h2,
  .project-site-page .testimonial-section .section-title h2,
  .project-site-page .video-section .section-title h2 {
    font-size: clamp(19px, 5.3vw, 24px);
    max-width: 100%;
    white-space: nowrap;
  }
  .project-site-page #plans .section-title h2 {
    font-size: clamp(18px, 5vw, 23px);
  }
  .project-site-page .section-title .carousel-actions {
    align-self: center !important;
  }
  .project-site-page .plan-tab-list {
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: center;
    gap: 9px;
    overflow: visible !important;
    padding: 2px;
  }
  .project-site-page .plan-tab-list button {
    min-height: 76px;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 16px;
  }
  .project-site-page .plan-tab-list button span {
    font-size: 9px;
  }
  .project-site-page .plan-tab-list button strong {
    font-size: 13px;
  }
  .project-site-page #gallery .rich-gallery {
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    overflow: visible !important;
    padding: 0;
  }
  .project-site-page #gallery .rich-gallery button,
  .project-site-page #gallery .rich-gallery button[hidden] {
    height: clamp(102px, 29vw, 142px);
    border-radius: 14px;
    border: 1px solid rgba(23, 63, 52, .22);
    box-shadow: 0 10px 22px rgba(31, 27, 20, .08);
  }
  .project-site-page #gallery .rich-gallery button span {
    display: block;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(12, 60, 49, .82);
    color: #fff;
    font-size: 9px;
    line-height: 1.05;
    max-width: calc(100% - 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .project-site-page .site-enquiry-form .enquiry-submit small {
    display: block;
    font-size: 11px;
  }
  .project-site-page .project-site-footer {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .project-site-page #plans .section-title h2,
  .project-site-page #gallery .section-title h2,
  .project-site-page #updates .section-title h2,
  .project-site-page .testimonial-section .section-title h2,
  .project-site-page .video-section .section-title h2 {
    font-size: clamp(18px, 5.1vw, 22px);
    max-width: 100%;
    white-space: nowrap;
  }
  .project-site-page .plan-tab-list button {
    min-height: 72px;
  }
}

/* Final mobile correction pass: center hero, declutter gallery options, strengthen timeline cards. */
@media (max-width: 768px) {
  .project-site-page .rich-hero {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 640px;
    padding: 18px;
  }
  .project-site-page .rich-hero::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.76)),
      linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.18), rgba(0,0,0,.38));
  }
  .project-site-page .hero-content {
    width: 100%;
    max-width: 290px;
    align-self: center !important;
    justify-self: center;
    padding: 28px 0 0 !important;
    text-align: center !important;
  }
  .project-site-page .hero-content .eyebrow,
  .project-site-page .hero-content h1,
  .project-site-page .hero-content p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .project-site-page .hero-content h1 {
    max-width: 100% !important;
    font-size: clamp(31px, 10vw, 42px) !important;
    line-height: .98;
  }
  .project-site-page .hero-content p {
    max-width: 28ch;
    font-size: 13px;
    line-height: 1.55;
  }
  .project-site-page .site-actions {
    justify-items: center;
  }
  .project-site-page .site-hero-card {
    width: min(100%, 278px);
    margin: 16px auto 0 !important;
  }
  .project-site-page .section-title h2,
  .project-site-page .site-section h2 {
    font-size: clamp(20px, 5.4vw, 26px) !important;
    line-height: 1.08;
    max-width: 100%;
    text-align: center;
  }
  .project-site-page #plans .section-title h2,
  .project-site-page #gallery .section-title h2,
  .project-site-page #updates .section-title h2,
  .project-site-page .testimonial-section .section-title h2,
  .project-site-page .video-section .section-title h2 {
    font-size: clamp(18px, 5vw, 23px) !important;
    white-space: nowrap;
  }
  .project-site-page #gallery .gallery-feature {
    min-height: clamp(245px, 72vw, 330px) !important;
    border-radius: 16px;
  }
  .project-site-page #gallery .gallery-feature span {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    padding: 18px;
    text-align: left;
    background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0));
  }
  .project-site-page #gallery .gallery-feature strong {
    font-size: clamp(24px, 8vw, 34px) !important;
  }
  .project-site-page #gallery .rich-gallery {
    display: grid;
    grid-auto-flow: column !important;
    grid-auto-columns: 74px !important;
    grid-template-columns: none !important;
    justify-content: start;
    gap: 9px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 10px 2px 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    contain: inline-size paint;
  }
  .project-site-page #gallery .rich-gallery::-webkit-scrollbar {
    display: none;
  }
  .project-site-page #gallery .rich-gallery button,
  .project-site-page #gallery .rich-gallery button[hidden] {
    width: 74px;
    height: 74px !important;
    border-radius: 18px;
    border: 2px solid rgba(23, 63, 52, .18);
    box-shadow: 0 8px 20px rgba(31, 27, 20, .10);
    opacity: .78;
    overflow: hidden;
    scroll-snap-align: start;
  }
  .project-site-page #gallery .rich-gallery button.active {
    border-color: #d8b66b;
    opacity: 1;
    transform: translateY(-2px);
  }
  .project-site-page #gallery .rich-gallery button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .project-site-page #gallery .rich-gallery button span {
    display: none;
  }
  .project-site-page .timeline-carousel {
    grid-auto-columns: 100% !important;
  }
  .project-site-page .timeline-card {
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
  }
  .project-site-page .timeline-card .timeline-cover {
    display: block;
    width: 100% !important;
    height: clamp(145px, 42vw, 190px) !important;
    border-radius: 0 !important;
    object-fit: cover;
  }
  .project-site-page .timeline-card-body {
    padding: 18px;
  }
  .project-site-page .timeline-card-body strong {
    font-size: 17px;
    line-height: 1.25;
  }
  .project-site-page .timeline-card-body span {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .project-site-page .hero-content h1 {
    font-size: clamp(29px, 9.4vw, 38px) !important;
  }
  .project-site-page .hero-content p {
    font-size: 12px;
  }
  .project-site-page .site-hero-card {
    width: min(100%, 268px);
  }
  .project-site-page #plans .section-title h2,
  .project-site-page #gallery .section-title h2,
  .project-site-page #updates .section-title h2,
  .project-site-page .testimonial-section .section-title h2,
  .project-site-page .video-section .section-title h2 {
    font-size: clamp(17px, 4.8vw, 20px) !important;
  }
}

/* Backend controlled website design settings */
.design-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.design-control-grid label {
  display: grid;
  gap: 8px;
}
.design-control-grid input[type="color"] {
  min-height: 44px;
  padding: 4px;
}

.project-site-page {
  background: var(--site-page-bg, #f7f5ef) !important;
  color: var(--site-font-color, #17130f);
  font-size: var(--site-body-size, 14px);
}
.project-site-page .project-site-nav,
.project-site-page .rich-hero,
.project-site-page .site-spec-strip,
.project-site-page .site-section,
.project-site-page .site-enquiry,
.project-site-page .project-site-footer {
  width: min(var(--site-max, 1188px), calc(100% - 40px)) !important;
}
.project-site-page .project-site-nav {
  min-height: var(--site-header-height, 78px) !important;
  background: rgba(255, 255, 255, var(--site-nav-alpha, .96)) !important;
}
.project-site-page .site-brand > img {
  width: var(--site-logo-width, 178px) !important;
  max-width: 100%;
}
.project-site-page .rich-hero {
  min-height: var(--site-hero-min-height, 620px) !important;
  box-shadow: 0 30px 80px rgba(31, 27, 20, var(--site-shadow-alpha, .12)) !important;
}
.project-site-page .rich-hero::after {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, var(--site-hero-overlay, .68)), rgba(10, 10, 10, calc(var(--site-hero-overlay, .68) * .38)) 58%, rgba(10, 10, 10, calc(var(--site-hero-overlay, .68) * .72))),
    linear-gradient(180deg, rgba(10, 10, 10, calc(var(--site-hero-overlay, .68) * .12)), rgba(10, 10, 10, calc(var(--site-hero-overlay, .68) * .44))) !important;
}
.project-site-page .site-section p,
.project-site-page .plan-detail-copy span,
.project-site-page .timeline-card-body span,
.project-site-page .faq-panel p,
.project-site-page .testimonial-card p {
  color: var(--site-muted-color, #5f5a50);
}
.project-site-page .site-section h2,
.project-site-page .section-title h2,
.project-site-page .site-enquiry h2,
.project-site-page .faq-shell h2 {
  color: var(--site-heading-color, #18120c);
  transform: scale(var(--site-heading-scale, 1));
  transform-origin: left center;
}
.project-site-page.align-center .site-section h2,
.project-site-page.align-center .section-title h2,
.project-site-page.align-center .faq-shell h2 {
  transform-origin: center;
}
.project-site-page .rich-hero .hero-content h1 {
  transform: scale(var(--site-hero-title-scale, 1));
  transform-origin: left bottom;
}
.project-site-page.align-center .rich-hero .hero-content h1 {
  transform-origin: center bottom;
}
.project-site-page .eyebrow,
.project-site-page .amenity-line-icon,
.project-site-page .timeline-card-body time,
.project-site-page .plan-detail-copy > span,
.project-site-page .frontend-project-switcher summary {
  color: var(--site-accent-color, #0f6b56) !important;
}
.project-site-page .btn.primary,
.project-site-page .project-site-nav .btn.primary,
.project-site-page .site-enquiry-form button,
.project-site-page .plan-detail-copy .btn.primary {
  background: var(--site-button-bg, #111111) !important;
  color: var(--site-button-text, #ffffff) !important;
}
.project-site-page .btn,
.project-site-page button,
.project-site-page input,
.project-site-page textarea,
.project-site-page select {
  border-radius: min(var(--site-button-radius, 999px), 22px);
}
.project-site-page .btn {
  border-radius: var(--site-button-radius, 999px) !important;
}
.project-site-page .btn.soft,
.project-site-page .carousel-actions button {
  color: var(--site-button-bg, #111111);
}
.project-site-page .site-highlight-grid article,
.project-site-page .amenity-carousel article,
.project-site-page .property-plan-showcase,
.project-site-page .plan-detail-copy,
.project-site-page .video-carousel article,
.project-site-page .gallery-feature,
.project-site-page .rich-gallery button,
.project-site-page .timeline-card,
.project-site-page .testimonial-card,
.project-site-page .faq-panel,
.project-site-page .site-enquiry,
.project-site-page .site-hero-card,
.project-site-page .brochure-band,
.project-site-page .site-spec-strip article {
  background-color: var(--site-card-bg, #ffffff);
  border-radius: var(--site-card-radius, 18px);
  border-color: rgba(23, 63, 52, var(--site-border-alpha, .10)) !important;
  box-shadow: 0 18px 44px rgba(31, 27, 20, calc(var(--site-shadow-alpha, .12) * .62)) !important;
}
.project-site-page .site-section {
  border-top-color: rgba(23, 63, 52, var(--site-border-alpha, .10)) !important;
}
.project-site-page .project-site-footer {
  background: linear-gradient(135deg, var(--site-footer-bg, #173f34), color-mix(in srgb, var(--site-footer-bg, #173f34) 82%, #ffffff)) !important;
  color: var(--site-footer-text, #f7f1e4) !important;
}
.project-site-page .project-site-footer p,
.project-site-page .project-site-footer address {
  color: color-mix(in srgb, var(--site-footer-text, #f7f1e4) 78%, transparent) !important;
}
.project-site-page .project-site-footer a {
  color: color-mix(in srgb, var(--site-footer-text, #f7f1e4) 74%, #f3d488) !important;
}
.project-site-page.spacing-compact .site-section {
  padding-block: clamp(34px, 4vw, 58px) !important;
}
.project-site-page.spacing-relaxed .site-section {
  padding-block: clamp(84px, 8vw, 130px) !important;
}
.project-site-page.align-left .section-title,
.project-site-page.align-left .site-two-col,
.project-site-page.align-left .site-section,
.project-site-page.align-left .faq-shell,
.project-site-page.align-left .site-enquiry {
  text-align: left;
}
.project-site-page.align-center .section-title,
.project-site-page.align-center .faq-shell {
  text-align: center;
}
.project-site-page.gallery-style-grid #gallery .rich-gallery {
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  overflow: visible !important;
}
.project-site-page.gallery-style-grid #gallery .rich-gallery button {
  height: clamp(150px, 18vw, 220px);
}
.project-site-page.timeline-style-compact .timeline-card .timeline-cover {
  height: 110px !important;
}
.project-site-page.timeline-style-compact .timeline-card-body {
  padding: 14px !important;
}

@media (max-width: 900px) {
  .design-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .project-site-page .project-site-nav,
  .project-site-page .rich-hero,
  .project-site-page .site-spec-strip,
  .project-site-page .site-section,
  .project-site-page .site-enquiry,
  .project-site-page .project-site-footer {
    width: calc(100% - 18px) !important;
  }
  .project-site-page .site-brand > img {
    width: var(--site-logo-mobile-width, 138px) !important;
  }
  .project-site-page .rich-hero {
    min-height: min(var(--site-hero-min-height, 620px), 640px) !important;
  }
  .project-site-page.compact-mobile-headings #plans .section-title h2,
  .project-site-page.compact-mobile-headings #gallery .section-title h2,
  .project-site-page.compact-mobile-headings #updates .section-title h2,
  .project-site-page.compact-mobile-headings .testimonial-section .section-title h2,
  .project-site-page.compact-mobile-headings .video-section .section-title h2 {
    font-size: clamp(17px, 5vw, 22px) !important;
    white-space: nowrap;
  }
  .project-site-page .site-section h2,
  .project-site-page .section-title h2,
  .project-site-page .rich-hero .hero-content h1 {
    transform: none;
  }
  .project-site-page.gallery-style-grid #gallery .rich-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .project-site-page.gallery-style-grid #gallery .rich-gallery button {
    width: auto !important;
    height: clamp(118px, 34vw, 160px) !important;
  }
}

@media (max-width: 560px) {
  .design-control-grid {
    grid-template-columns: 1fr;
  }
}

/* Tail override: public live inventory hover and View more button. */
body.viewer-page .plot-hover-card,
body.viewer-page .plot-hover-card.visible {
  display: none !important;
  opacity: 0 !important;
}
body.viewer-page .viewer-plot-group:hover .viewer-plot-readout,
body.viewer-page .viewer-plot-group.hot .viewer-plot-readout,
body.viewer-page .viewer-plot-group.active .viewer-plot-readout {
  opacity: 0 !important;
}
body.viewer-page .plot-more-btn {
  display: inline-grid !important;
  width: auto !important;
  min-width: 68px !important;
  max-width: 96px !important;
  height: 24px !important;
  min-height: 24px !important;
  place-items: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
body.viewer-page .viewer-plot-group:hover .viewer-label,
body.viewer-page .viewer-plot-group.hot .viewer-label,
body.viewer-page .viewer-plot-group.active .viewer-label {
  font-size: calc(var(--center-font-size, 13px) * .92) !important;
}
body.viewer-page .viewer-plot-group:hover .viewer-facing-label,
body.viewer-page .viewer-plot-group.hot .viewer-facing-label,
body.viewer-page .viewer-plot-group.active .viewer-facing-label,
body.viewer-page .viewer-plot-group:hover .viewer-area-label,
body.viewer-page .viewer-plot-group.hot .viewer-area-label,
body.viewer-page .viewer-plot-group.active .viewer-area-label {
  font-size: calc(var(--detail-font-size, 5.8px) * .9) !important;
}

/* Tail override v2: hover info visible, View more only after focused click. */
body.viewer-page .plot-hover-card {
  display: block !important;
  width: auto !important;
  min-width: 120px !important;
  max-width: 170px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(6,14,10,.95), rgba(17,35,26,.93)) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.3) !important;
}
body.viewer-page .plot-hover-card:not(.visible) {
  opacity: 0 !important;
}
body.viewer-page .plot-hover-card.visible {
  opacity: 1 !important;
}
body.viewer-page .plot-hover-card > span {
  margin: 0 0 5px !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
  line-height: 1 !important;
}
body.viewer-page .plot-hover-card > strong {
  font-size: 19px !important;
  line-height: 1 !important;
}
body.viewer-page .plot-more-btn {
  min-width: 52px !important;
  max-width: 70px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  font-size: 8px !important;
  box-shadow: 0 5px 12px rgba(0,0,0,.18) !important;
}
body.viewer-page .plot-more-btn[hidden] {
  display: none !important;
  opacity: 0 !important;
}

/* Tail override v3: visible hover card must beat older hide rules. */
body.viewer-page .plot-hover-card.visible {
  display: block !important;
  opacity: 1 !important;
}

/* Tail override v4: smart compact public plot popup. */
body.viewer-page .plot-dialog {
  width: min(860px, calc(100vw - 44px)) !important;
  max-height: min(82vh, 620px) !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 78% 8%, rgba(75, 140, 104, .2), transparent 34%),
    linear-gradient(135deg, rgba(7, 18, 13, .98), rgba(16, 35, 26, .97)) !important;
  box-shadow: 0 22px 72px rgba(0,0,0,.42) !important;
}
body.viewer-page .plot-dialog-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr) !important;
  gap: 14px !important;
}
body.viewer-page .dialog-close {
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 15px !important;
}
body.viewer-page .plot-dialog-media .plot-extra > span,
body.viewer-page .plot-gallery-empty span {
  margin-bottom: 8px !important;
  font-size: 9px !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-feature {
  aspect-ratio: 16 / 9 !important;
  margin-bottom: 8px !important;
  border-radius: 14px !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public {
  grid-auto-columns: minmax(78px, 20%) !important;
  gap: 7px !important;
  padding-bottom: 5px !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button {
  min-height: 64px !important;
  border-radius: 10px !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button img {
  min-height: 64px !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button em {
  left: 5px !important;
  right: 5px !important;
  bottom: 5px !important;
  padding: 3px 5px !important;
  font-size: 8px !important;
}
body.viewer-page .plot-dialog-info {
  gap: 8px !important;
}
body.viewer-page .plot-dialog-info h2 {
  font-size: 21px !important;
  line-height: 1.1 !important;
}
body.viewer-page .plot-dialog-info #dialogSub {
  font-size: 11px !important;
}
body.viewer-page .badges {
  gap: 6px !important;
  margin-bottom: 2px !important;
}
body.viewer-page .badges span {
  padding: 5px 8px !important;
  font-size: 8px !important;
}
body.viewer-page .plot-dialog-info .detail-grid {
  gap: 6px !important;
}
body.viewer-page .plot-dialog-info .detail-grid div {
  padding: 8px !important;
  border-radius: 8px !important;
}
body.viewer-page .plot-dialog-info .detail-grid span {
  font-size: 8px !important;
}
body.viewer-page .plot-dialog-info .detail-grid strong {
  margin-top: 4px !important;
  font-size: 12px !important;
}
body.viewer-page .plot-dialog-info .plot-extra {
  margin-top: 0 !important;
  padding: 9px !important;
  border-radius: 10px !important;
  gap: 6px !important;
}
body.viewer-page .plot-dialog-info .plot-extra > span {
  margin-bottom: 2px !important;
  font-size: 8px !important;
}
body.viewer-page .plot-dialog-info .plot-extra > strong {
  font-size: 12px !important;
}
body.viewer-page .plot-dialog-info .plot-extra p {
  font-size: 10px !important;
}
body.viewer-page .plot-floor-link {
  padding: 5px 8px !important;
  font-size: 10px !important;
}
body.viewer-page .plot-dialog-info .sketch-box {
  padding: 8px !important;
  border-radius: 10px !important;
}
body.viewer-page .plot-dialog-info .sketch-box p {
  margin-bottom: 6px !important;
  font-size: 10px !important;
}
body.viewer-page .plot-dialog-info #sketchSvg {
  height: 92px !important;
  border-radius: 8px !important;
}
body.viewer-page .dialog-actions {
  gap: 7px !important;
}
body.viewer-page .dialog-actions .btn {
  min-height: 32px !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

@media (max-width: 760px) {
  body.viewer-page .plot-dialog {
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: min(94vw, 380px) !important;
    max-width: min(94vw, 380px) !important;
    max-height: 70vh !important;
    padding: 10px !important;
    border-radius: 16px !important;
    transform: translate(-50%, -50%) !important;
    overflow: auto !important;
  }
  body.viewer-page .plot-dialog-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
  body.viewer-page .dialog-close {
    width: 30px !important;
    height: 30px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-feature {
    aspect-ratio: 16 / 9 !important;
    margin-bottom: 7px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public {
    grid-auto-columns: minmax(58px, 24%) !important;
    gap: 6px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public button,
  body.viewer-page .plot-dialog-media .plot-gallery-public button img {
    min-height: 52px !important;
  }
  body.viewer-page .plot-dialog-info h2 {
    font-size: 18px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid div {
    padding: 7px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid strong {
    font-size: 11px !important;
  }
  body.viewer-page .plot-dialog-info .sketch-box {
    display: none !important;
  }
  body.viewer-page .plot-dialog-info .plot-extra {
    padding: 8px !important;
  }
  body.viewer-page .dialog-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  body.viewer-page .dialog-actions .btn {
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
}

/* Tail override v5: refined compact plot detail popup and gallery. */
body.viewer-page .plot-dialog,
body.viewer-page .plot-dialog * {
  box-sizing: border-box !important;
  letter-spacing: 0 !important;
}
body.viewer-page .plot-dialog {
  width: min(900px, calc(100vw - 52px)) !important;
  max-height: min(82vh, 640px) !important;
  padding: 16px !important;
  border: 1px solid rgba(232, 218, 184, .18) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(235, 192, 98, .14), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(58, 137, 101, .22), transparent 34%),
    linear-gradient(135deg, rgba(8, 22, 15, .98), rgba(18, 42, 30, .985)) !important;
  box-shadow: 0 26px 84px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255,255,255,.05) !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(230, 190, 92, .55) rgba(255,255,255,.08) !important;
}
body.viewer-page .plot-dialog-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(286px, .88fr) !important;
  gap: 16px !important;
  align-items: start !important;
}
body.viewer-page .plot-dialog-media,
body.viewer-page .plot-dialog-info {
  min-width: 0 !important;
}
body.viewer-page .plot-dialog-info {
  gap: 10px !important;
}
body.viewer-page .dialog-close {
  top: 13px !important;
  right: 13px !important;
  width: 31px !important;
  height: 31px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1 !important;
  backdrop-filter: blur(10px) !important;
}
body.viewer-page .plot-dialog-media .plot-extra,
body.viewer-page .plot-dialog-info .plot-extra,
body.viewer-page .plot-dialog-info .sketch-box {
  border-color: rgba(232, 218, 184, .16) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
}
body.viewer-page .plot-dialog-media .plot-extra {
  padding: 10px !important;
  border-radius: 15px !important;
}
body.viewer-page .plot-dialog-media .plot-extra > span,
body.viewer-page .plot-gallery-empty span,
body.viewer-page .plot-dialog-info .plot-extra > span,
body.viewer-page .plot-dialog-info .detail-grid span,
body.viewer-page .plot-dialog-info .sketch-box p {
  color: #e3c36d !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-feature {
  position: relative !important;
  aspect-ratio: 16 / 9 !important;
  margin: 7px 0 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 15px !important;
  background: #07110d !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.24) !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-feature::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  height: 38% !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)) !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-feature img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .35s ease, filter .35s ease !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-feature:hover img {
  transform: scale(1.025) !important;
  filter: saturate(1.04) contrast(1.02) !important;
}
body.viewer-page .plot-gallery-nav {
  position: absolute !important;
  top: 50% !important;
  z-index: 2 !important;
  width: 29px !important;
  height: 29px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px !important;
  background: rgba(10, 21, 15, .72) !important;
  color: #fff8e9 !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
  backdrop-filter: blur(10px) !important;
}
body.viewer-page .plot-gallery-nav.prev { left: 9px !important; }
body.viewer-page .plot-gallery-nav.next { right: 9px !important; }
body.viewer-page .plot-gallery-count {
  position: absolute !important;
  right: 10px !important;
  bottom: 9px !important;
  z-index: 2 !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(8, 17, 12, .76) !important;
  color: #fff8e9 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(86px, 18%) !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 1px 1px 7px !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(230, 190, 92, .55) rgba(255,255,255,.08) !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button {
  position: relative !important;
  min-height: 68px !important;
  aspect-ratio: 1.22 / 1 !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.05) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
  scroll-snap-align: center !important;
  transform: translateZ(0) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button:hover,
body.viewer-page .plot-dialog-media .plot-gallery-public button.active {
  border-color: #e6c15d !important;
  box-shadow: 0 0 0 2px rgba(230, 193, 93, .16), 0 12px 24px rgba(0,0,0,.24) !important;
  transform: translateY(-1px) !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button.active::before {
  content: "" !important;
  position: absolute !important;
  left: 9px !important;
  top: 8px !important;
  z-index: 2 !important;
  width: 22px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: #e6c15d !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button img {
  width: 100% !important;
  height: 100% !important;
  min-height: 68px !important;
  object-fit: cover !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button em {
  left: 6px !important;
  right: 6px !important;
  bottom: 6px !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  background: rgba(8, 17, 12, .72) !important;
  color: #fff !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}
body.viewer-page .badges {
  gap: 6px !important;
  margin: 0 34px 0 0 !important;
}
body.viewer-page .badges span {
  padding: 5px 8px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.13) !important;
  color: #f7f2df !important;
  font-size: 8.5px !important;
  line-height: 1 !important;
}
body.viewer-page .plot-dialog-info h2 {
  margin: 0 !important;
  color: #fff8e9 !important;
  font-size: 20px !important;
  line-height: 1.12 !important;
}
body.viewer-page .plot-dialog-info #dialogSub {
  margin: 0 0 2px !important;
  color: rgba(255, 248, 233, .7) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
body.viewer-page .plot-dialog-info .detail-grid {
  gap: 7px !important;
}
body.viewer-page .plot-dialog-info .detail-grid div {
  min-height: auto !important;
  padding: 9px 10px !important;
  border-color: rgba(232, 218, 184, .14) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.065) !important;
}
body.viewer-page .plot-dialog-info .detail-grid strong {
  margin-top: 5px !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  line-height: 1.25 !important;
}
body.viewer-page .plot-dialog-info .plot-extra {
  padding: 10px !important;
  border-radius: 12px !important;
  gap: 7px !important;
}
body.viewer-page .plot-dialog-info .plot-extra > strong {
  color: #fff8e9 !important;
  font-size: 12.5px !important;
  line-height: 1.25 !important;
}
body.viewer-page .plot-dialog-info .plot-extra p {
  color: rgba(255,255,255,.78) !important;
  font-size: 10.5px !important;
  line-height: 1.45 !important;
}
body.viewer-page .plot-floor-link {
  width: fit-content !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
}
body.viewer-page .plot-dialog-info .sketch-box {
  padding: 9px !important;
  border-radius: 12px !important;
}
body.viewer-page .plot-dialog-info .sketch-box p {
  margin-bottom: 6px !important;
}
body.viewer-page .plot-dialog-info #sketchSvg {
  height: 88px !important;
  border-radius: 9px !important;
  background: rgba(0,0,0,.36) !important;
}
body.viewer-page .dialog-actions {
  gap: 8px !important;
}
body.viewer-page .dialog-actions .btn {
  min-height: 32px !important;
  padding: 8px 11px !important;
  border-radius: 9px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  body.viewer-page .plot-dialog {
    width: min(92vw, 360px) !important;
    max-width: min(92vw, 360px) !important;
    max-height: 70vh !important;
    padding: 11px !important;
    border-radius: 17px !important;
  }
  body.viewer-page .plot-dialog-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.viewer-page .dialog-close {
    top: 9px !important;
    right: 9px !important;
    width: 28px !important;
    height: 28px !important;
  }
  body.viewer-page .plot-dialog-media .plot-extra {
    padding: 8px !important;
    border-radius: 13px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-feature {
    aspect-ratio: 16 / 10 !important;
    margin: 6px 0 8px !important;
    border-radius: 12px !important;
  }
  body.viewer-page .plot-gallery-nav {
    width: 26px !important;
    height: 26px !important;
    font-size: 18px !important;
  }
  body.viewer-page .plot-gallery-count {
    right: 8px !important;
    bottom: 7px !important;
    padding: 3px 7px !important;
    font-size: 8px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public {
    grid-auto-columns: minmax(68px, 28%) !important;
    gap: 7px !important;
    padding-bottom: 5px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public button,
  body.viewer-page .plot-dialog-media .plot-gallery-public button img {
    min-height: 54px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public button em {
    left: 5px !important;
    right: 5px !important;
    bottom: 5px !important;
    padding: 3px 5px !important;
    font-size: 7.5px !important;
  }
  body.viewer-page .badges {
    margin-right: 30px !important;
  }
  body.viewer-page .badges span {
    padding: 4px 7px !important;
    font-size: 7.5px !important;
  }
  body.viewer-page .plot-dialog-info {
    gap: 8px !important;
  }
  body.viewer-page .plot-dialog-info h2 {
    font-size: 17px !important;
  }
  body.viewer-page .plot-dialog-info #dialogSub {
    font-size: 10px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid div {
    padding: 7px 8px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid span {
    font-size: 7.5px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid strong {
    font-size: 10.5px !important;
  }
  body.viewer-page .plot-dialog-info .plot-extra {
    padding: 8px !important;
  }
  body.viewer-page .plot-dialog-info .plot-extra > strong {
    font-size: 11px !important;
  }
  body.viewer-page .plot-dialog-info .plot-extra p {
    font-size: 9.5px !important;
  }
  body.viewer-page .plot-dialog-info .sketch-box {
    display: none !important;
  }
  body.viewer-page .dialog-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }
  body.viewer-page .dialog-actions .btn {
    min-height: 30px !important;
    padding: 7px 8px !important;
    font-size: 9.5px !important;
  }
}

/* Tail override v6: sample-matched elegant plot gallery popup. */
body.viewer-page .plot-dialog {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(1040px, calc(100vw - 64px)) !important;
  max-width: min(1040px, calc(100vw - 64px)) !important;
  max-height: min(84vh, 680px) !important;
  padding: 26px !important;
  overflow: auto !important;
  transform: translate(-50%, -50%) !important;
  border: 1px solid rgba(22, 54, 38, .10) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 0 100%, rgba(201, 164, 73, .16), transparent 28%),
    radial-gradient(circle at 96% 8%, rgba(22, 85, 58, .10), transparent 30%),
    #fffaf0 !important;
  color: #071b13 !important;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .38) !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(14, 57, 40, .35) rgba(14, 57, 40, .08) !important;
}
body.viewer-page .plot-dialog::backdrop {
  background: rgba(7, 17, 12, .62) !important;
  backdrop-filter: blur(9px) saturate(1.05) !important;
}
body.viewer-page .plot-dialog-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 44px 16px 0 !important;
}
body.viewer-page .plot-dialog-title h2 {
  margin: 0 !important;
  color: #061911 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(30px, 3.3vw, 46px) !important;
  font-weight: 800 !important;
  line-height: .96 !important;
}
body.viewer-page .plot-dialog-title h2::first-letter {
  color: #061911 !important;
}
body.viewer-page .plot-dialog-title h2 {
  text-wrap: balance !important;
}
body.viewer-page .plot-dialog-title h2 span {
  color: #c7992e !important;
}
body.viewer-page .plot-dialog-title h2::after {
  content: "" !important;
}
body.viewer-page .plot-dialog-title #dialogSub {
  margin: 8px 0 0 !important;
  color: #13271f !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
body.viewer-page .dialog-close {
  top: 24px !important;
  right: 24px !important;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eceae2 !important;
  color: #061911 !important;
  font-size: 0 !important;
  box-shadow: none !important;
}
body.viewer-page .dialog-close::before {
  content: "x" !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}
body.viewer-page .badges {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding-top: 3px !important;
}
body.viewer-page .badges span {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 16px !important;
  border: 1px solid rgba(6, 45, 30, .08) !important;
  border-radius: 999px !important;
  background: #edf0e7 !important;
  color: #061911 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}
body.viewer-page .badges span:first-child::before {
  content: "" !important;
  width: 11px !important;
  height: 11px !important;
  border-radius: 999px !important;
  background: #12b981 !important;
}
body.viewer-page .plot-dialog-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.42fr) minmax(330px, .88fr) !important;
  gap: 22px !important;
  align-items: start !important;
}
body.viewer-page .plot-dialog-media .plot-extra,
body.viewer-page .plot-dialog-info .plot-extra,
body.viewer-page .plot-dialog-info .detail-grid div {
  border: 0 !important;
  background: #eef2e8 !important;
  color: #061911 !important;
  box-shadow: none !important;
}
body.viewer-page .plot-dialog-media .plot-extra {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body.viewer-page .plot-gallery-kicker {
  display: none !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-feature {
  aspect-ratio: 16 / 9.75 !important;
  margin: 0 0 18px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #e7e4d9 !important;
  box-shadow: 0 16px 36px rgba(19, 39, 31, .13) !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-feature::after {
  height: 42% !important;
  background:
    linear-gradient(180deg, transparent, rgba(6, 25, 17, .16)),
    linear-gradient(90deg, rgba(255,250,240,.62), transparent 22%, transparent 78%, rgba(255,250,240,.48)) !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-feature img {
  object-fit: cover !important;
}
body.viewer-page .plot-gallery-nav {
  width: 48px !important;
  height: 48px !important;
  border: 0 !important;
  background: rgba(6, 25, 17, .90) !important;
  color: #ffffff !important;
  font-size: 34px !important;
  font-weight: 300 !important;
  box-shadow: 0 12px 24px rgba(6, 25, 17, .18) !important;
}
body.viewer-page .plot-gallery-nav.prev {
  left: 12px !important;
}
body.viewer-page .plot-gallery-nav.next {
  right: 12px !important;
}
body.viewer-page .plot-gallery-count {
  right: 13px !important;
  bottom: 13px !important;
  padding: 9px 13px !important;
  border-radius: 12px !important;
  background: rgba(6, 25, 17, .92) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public {
  grid-auto-columns: minmax(150px, 31%) !important;
  gap: 18px !important;
  padding: 2px 2px 4px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public::-webkit-scrollbar {
  display: none !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button {
  min-height: 112px !important;
  aspect-ratio: 1.55 / 1 !important;
  border: 1px solid rgba(6, 25, 17, .18) !important;
  border-radius: 12px !important;
  background: #f7f1e4 !important;
  box-shadow: 0 12px 24px rgba(19, 39, 31, .10) !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button:hover,
body.viewer-page .plot-dialog-media .plot-gallery-public button.active {
  border-color: #d4a935 !important;
  box-shadow: 0 0 0 3px rgba(212, 169, 53, .18), 0 14px 28px rgba(19, 39, 31, .13) !important;
  transform: translateY(-1px) !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button.active::before {
  left: 12px !important;
  top: 10px !important;
  width: 42px !important;
  height: 3px !important;
  background: #d4a935 !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button img {
  min-height: 112px !important;
}
body.viewer-page .plot-dialog-media .plot-gallery-public button em {
  left: 10px !important;
  right: 10px !important;
  bottom: 9px !important;
  width: auto !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  background: rgba(6, 25, 17, .66) !important;
  color: #fffaf0 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}
body.viewer-page .plot-dialog-info {
  display: block !important;
}
body.viewer-page .plot-dialog-info .detail-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 14px !important;
}
body.viewer-page .plot-dialog-info .detail-grid div {
  position: relative !important;
  min-height: 82px !important;
  display: grid !important;
  align-content: center !important;
  padding: 16px 16px 16px 64px !important;
  border-radius: 12px !important;
}
body.viewer-page .plot-dialog-info .detail-grid div::before {
  content: attr(data-icon) !important;
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #08291d !important;
  color: #d4a935 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  transform: translateY(-50%) !important;
}
body.viewer-page .plot-dialog-info .detail-grid div:nth-child(7) {
  grid-column: 1 / -1 !important;
}
body.viewer-page .plot-dialog-info .detail-grid span,
body.viewer-page .plot-dialog-info .plot-extra > span {
  color: #0a3828 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}
body.viewer-page .plot-dialog-info .detail-grid strong {
  margin-top: 8px !important;
  color: #061911 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
}
body.viewer-page .plot-dialog-info .plot-extra {
  display: grid !important;
  min-height: 98px !important;
  margin: 0 0 14px !important;
  padding: 17px 18px 17px 64px !important;
  border-radius: 12px !important;
  position: relative !important;
}
body.viewer-page .plot-dialog-info .plot-extra::before {
  content: "V" !important;
  position: absolute !important;
  left: 16px !important;
  top: 22px !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border: 2px solid #0a3828 !important;
  border-radius: 9px !important;
  color: #0a3828 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}
body.viewer-page .plot-dialog-info .plot-extra > strong {
  color: #061911 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
body.viewer-page .plot-dialog-info .plot-extra p {
  color: rgba(6, 25, 17, .72) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
body.viewer-page .plot-floor-link {
  width: max-content !important;
  margin-top: 4px !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  background: #0a7f54 !important;
  color: #ffffff !important;
  font-size: 12px !important;
}
body.viewer-page .plot-dialog-info .sketch-box {
  display: none !important;
}
body.viewer-page .dialog-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
body.viewer-page .dialog-actions .btn {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 14px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}
body.viewer-page .dialog-actions .btn.primary {
  background: #10d892 !important;
  color: #062218 !important;
}
body.viewer-page .dialog-actions .btn.dark {
  background: #061911 !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  body.viewer-page .plot-dialog {
    width: min(92vw, 390px) !important;
    max-width: min(92vw, 390px) !important;
    max-height: 70vh !important;
    padding: 20px 14px 14px !important;
    border-radius: 22px !important;
  }
  body.viewer-page .plot-dialog::before {
    content: "" !important;
    position: sticky !important;
    top: -12px !important;
    z-index: 4 !important;
    display: block !important;
    width: 48px !important;
    height: 5px !important;
    margin: -6px auto 13px !important;
    border-radius: 999px !important;
    background: rgba(6, 25, 17, .22) !important;
  }
  body.viewer-page .plot-dialog-head {
    display: block !important;
    margin: 0 36px 12px 0 !important;
  }
  body.viewer-page .plot-dialog-title h2 {
    font-size: 31px !important;
    line-height: .98 !important;
  }
  body.viewer-page .plot-dialog-title #dialogSub {
    margin-top: 5px !important;
    font-size: 14px !important;
  }
  body.viewer-page .dialog-close {
    top: 16px !important;
    right: 14px !important;
    width: 36px !important;
    height: 36px !important;
  }
  body.viewer-page .dialog-close::before {
    font-size: 23px !important;
  }
  body.viewer-page .badges {
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-top: 12px !important;
    padding: 0 !important;
  }
  body.viewer-page .badges span {
    min-height: 31px !important;
    padding: 7px 10px !important;
    font-size: 9px !important;
  }
  body.viewer-page .badges span:first-child::before {
    width: 9px !important;
    height: 9px !important;
  }
  body.viewer-page .plot-dialog-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-feature {
    aspect-ratio: 16 / 10.4 !important;
    margin-bottom: 10px !important;
    border-radius: 13px !important;
  }
  body.viewer-page .plot-gallery-nav {
    width: 34px !important;
    height: 34px !important;
    font-size: 25px !important;
  }
  body.viewer-page .plot-gallery-nav.prev {
    left: 9px !important;
  }
  body.viewer-page .plot-gallery-nav.next {
    right: 9px !important;
  }
  body.viewer-page .plot-gallery-count {
    right: 9px !important;
    bottom: 9px !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public {
    grid-auto-columns: minmax(90px, 31%) !important;
    gap: 9px !important;
    margin-bottom: 12px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public button,
  body.viewer-page .plot-dialog-media .plot-gallery-public button img {
    min-height: 62px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public button {
    border-radius: 9px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public button em {
    left: 5px !important;
    right: 5px !important;
    bottom: 5px !important;
    padding: 3px 5px !important;
    border-radius: 6px !important;
    font-size: 7.5px !important;
  }
  body.viewer-page .plot-dialog-media .plot-gallery-public button.active::before {
    left: 8px !important;
    top: 7px !important;
    width: 26px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-bottom: 7px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid div {
    min-height: 58px !important;
    padding: 10px 9px 10px 43px !important;
    border-radius: 9px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid div::before {
    left: 9px !important;
    width: 25px !important;
    height: 25px !important;
    font-size: 11px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid span,
  body.viewer-page .plot-dialog-info .plot-extra > span {
    font-size: 8.5px !important;
  }
  body.viewer-page .plot-dialog-info .detail-grid strong {
    margin-top: 5px !important;
    font-size: 12px !important;
  }
  body.viewer-page .plot-dialog-info .plot-extra {
    min-height: 70px !important;
    margin-bottom: 8px !important;
    padding: 11px 10px 11px 43px !important;
    border-radius: 10px !important;
  }
  body.viewer-page .plot-dialog-info .plot-extra::before {
    left: 9px !important;
    top: 14px !important;
    width: 25px !important;
    height: 25px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
  }
  body.viewer-page .plot-dialog-info .plot-extra > strong {
    font-size: 13px !important;
  }
  body.viewer-page .plot-dialog-info .plot-extra p {
    font-size: 11px !important;
  }
  body.viewer-page .plot-floor-link {
    padding: 6px 9px !important;
    font-size: 10px !important;
  }
  body.viewer-page .dialog-actions {
    gap: 7px !important;
  }
  body.viewer-page .dialog-actions .btn {
    min-height: 34px !important;
    padding: 8px 9px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
  }
}

/* Tail override v7: smoother mobile map zoom/pan. */
body.viewer-page .viewer-map-wrap {
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: none !important;
}
body.viewer-page #viewerSvg {
  backface-visibility: hidden !important;
  transform: translateZ(0) !important;
  will-change: width, height !important;
}

/* Tail override v8: side zoom rail with smooth draggable control. */
body.viewer-page .viewer-action-dock {
  top: 96px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: 54px !important;
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 250, 240, .14) !important;
  border-radius: 999px !important;
  background: rgba(5, 20, 13, .72) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
}
body.viewer-page .viewer-action-dock button {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.10) !important;
  color: #fffaf0 !important;
  border-radius: 999px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease !important;
}
body.viewer-page .viewer-action-dock button:hover {
  background: #e0b64f !important;
  color: #061911 !important;
  transform: translateY(-1px) !important;
}
body.viewer-page .viewer-action-dock button span {
  font-size: 17px !important;
}
body.viewer-page .viewer-zoom-slider {
  width: 38px !important;
  height: 168px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 0 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 999px !important;
  background: rgba(255, 250, 240, .10) !important;
  color: #fffaf0 !important;
  user-select: none !important;
}
body.viewer-page .viewer-zoom-slider span {
  font-size: 8px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  color: #e4bf5c !important;
}
body.viewer-page .viewer-zoom-slider output {
  min-width: 28px !important;
  text-align: center !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: #fffaf0 !important;
}
body.viewer-page .viewer-zoom-slider input {
  width: 124px !important;
  height: 28px !important;
  margin: 0 !important;
  transform: rotate(-90deg) !important;
  transform-origin: center !important;
  accent-color: #e0b64f !important;
  cursor: pointer !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
  height: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255,255,255,.24), #e0b64f) !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
  width: 18px !important;
  height: 18px !important;
  margin-top: -6.5px !important;
  border: 2px solid #fffaf0 !important;
  border-radius: 999px !important;
  background: #083220 !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.28) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-track {
  height: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255,255,255,.24), #e0b64f) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border: 2px solid #fffaf0 !important;
  border-radius: 999px !important;
  background: #083220 !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.28) !important;
}

@media (max-width: 760px) {
  body.viewer-page .viewer-action-dock {
    top: 88px !important;
    right: 8px !important;
    width: 46px !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 999px !important;
  }
  body.viewer-page .viewer-action-dock button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
  body.viewer-page .viewer-action-dock button span {
    font-size: 15px !important;
  }
  body.viewer-page .viewer-zoom-slider {
    width: 34px !important;
    height: 132px !important;
    gap: 5px !important;
    padding: 8px 0 !important;
  }
  body.viewer-page .viewer-zoom-slider input {
    width: 94px !important;
    height: 24px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
    width: 17px !important;
    height: 17px !important;
    margin-top: -6px !important;
  }
  body.viewer-page .viewer-zoom-slider output,
  body.viewer-page .viewer-zoom-slider span {
    font-size: 7px !important;
  }
}

/* Tail override v9: clearer grab handle and Fit-to-screen control. */
body.viewer-page .viewer-action-dock {
  width: 62px !important;
  gap: 9px !important;
  padding: 9px !important;
}
body.viewer-page .viewer-action-dock button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}
body.viewer-page .viewer-action-dock button span {
  font-size: 18px !important;
}
body.viewer-page #dockFitBtn span {
  font-size: 11px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}
body.viewer-page .viewer-zoom-slider {
  width: 44px !important;
  height: 230px !important;
  padding: 12px 0 !important;
  gap: 10px !important;
  background: linear-gradient(180deg, rgba(255,250,240,.18), rgba(255,255,255,.08)) !important;
}
body.viewer-page .viewer-zoom-slider input {
  width: 176px !important;
  height: 40px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  touch-action: manipulation !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
  height: 9px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255,255,255,.36), #e0b64f) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.28) !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 26px !important;
  height: 26px !important;
  margin-top: -9.5px !important;
  border: 3px solid #fffaf0 !important;
  border-radius: 999px !important;
  background: #e0b64f !important;
  box-shadow: 0 0 0 5px rgba(224,182,79,.20), 0 8px 20px rgba(0,0,0,.35) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-track {
  height: 9px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255,255,255,.36), #e0b64f) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.28) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-thumb {
  width: 23px !important;
  height: 23px !important;
  border: 3px solid #fffaf0 !important;
  border-radius: 999px !important;
  background: #e0b64f !important;
  box-shadow: 0 0 0 5px rgba(224,182,79,.20), 0 8px 20px rgba(0,0,0,.35) !important;
}
body.viewer-page .viewer-zoom-slider span,
body.viewer-page .viewer-zoom-slider output {
  font-size: 9px !important;
}

@media (max-width: 760px) {
  body.viewer-page .viewer-action-dock {
    top: 78px !important;
    right: 7px !important;
    width: 52px !important;
    gap: 7px !important;
    padding: 7px !important;
  }
  body.viewer-page .viewer-action-dock button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
  body.viewer-page .viewer-action-dock button span {
    font-size: 16px !important;
  }
  body.viewer-page #dockFitBtn span {
    font-size: 9px !important;
  }
  body.viewer-page .viewer-zoom-slider {
    width: 38px !important;
    height: 182px !important;
    padding: 10px 0 !important;
    gap: 8px !important;
  }
  body.viewer-page .viewer-zoom-slider input {
    width: 132px !important;
    height: 38px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
    height: 8px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
    width: 25px !important;
    height: 25px !important;
    margin-top: -9.5px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-moz-range-track {
    height: 8px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-moz-range-thumb {
    width: 22px !important;
    height: 22px !important;
  }
  body.viewer-page .viewer-zoom-slider span,
  body.viewer-page .viewer-zoom-slider output {
    font-size: 8px !important;
  }
}

/* Tail override v10: screenshot-style blue vertical zoom slider and no search control. */
body.viewer-page .viewer-action-dock {
  width: 64px !important;
}
body.viewer-page .viewer-zoom-slider {
  width: 46px !important;
  height: 248px !important;
  grid-template-rows: 20px 1fr 20px 18px !important;
  gap: 5px !important;
  padding: 8px 0 7px !important;
  border: 1px solid rgba(28, 111, 190, .20) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #eaf5ff, #d9ecff) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(14, 68, 128, .18) !important;
}
body.viewer-page .viewer-zoom-slider .zoom-plus,
body.viewer-page .viewer-zoom-slider .zoom-minus {
  width: 22px !important;
  height: 18px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #2f7fd1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: none !important;
}
body.viewer-page .viewer-zoom-slider output {
  min-width: 34px !important;
  color: #236db4 !important;
  font-size: 8px !important;
  font-weight: 900 !important;
}
body.viewer-page .viewer-zoom-slider input {
  width: 184px !important;
  height: 44px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  transform: rotate(-90deg) !important;
  cursor: grab !important;
}
body.viewer-page .viewer-zoom-slider input:active {
  cursor: grabbing !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
  height: 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #b9dcff 0%, #69a9ec 52%, #2f7fd1 100%) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18) !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px !important;
  height: 30px !important;
  margin-top: -8.5px !important;
  border: 3px solid #dff0ff !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at 35% 30%, #7cc1ff, #2f7fd1 70%) !important;
  box-shadow: 0 0 0 5px rgba(47,127,209,.18), 0 8px 18px rgba(23, 87, 152, .34) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-track {
  height: 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #b9dcff 0%, #69a9ec 52%, #2f7fd1 100%) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-thumb {
  width: 27px !important;
  height: 27px !important;
  border: 3px solid #dff0ff !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at 35% 30%, #7cc1ff, #2f7fd1 70%) !important;
  box-shadow: 0 0 0 5px rgba(47,127,209,.18), 0 8px 18px rgba(23, 87, 152, .34) !important;
}

@media (max-width: 760px) {
  body.viewer-page .viewer-action-dock {
    width: 54px !important;
  }
  body.viewer-page .viewer-zoom-slider {
    width: 40px !important;
    height: 206px !important;
    grid-template-rows: 18px 1fr 18px 16px !important;
  }
  body.viewer-page .viewer-zoom-slider input {
    width: 150px !important;
    height: 42px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
    height: 12px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
    width: 28px !important;
    height: 28px !important;
    margin-top: -8px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-moz-range-track {
    height: 12px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-moz-range-thumb {
    width: 25px !important;
    height: 25px !important;
  }
}

/* Tail override v11: horizontal screenshot-style zoom toolbar. */
body.viewer-page .viewer-action-dock {
  top: 14px !important;
  right: 16px !important;
  left: 16px !important;
  bottom: auto !important;
  width: auto !important;
  min-height: 62px !important;
  display: flex !important;
  grid-auto-flow: initial !important;
  grid-template-columns: none !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid #d7e3ef !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .10) !important;
  backdrop-filter: blur(12px) !important;
}
body.viewer-page .viewer-action-dock button {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  flex: 0 0 42px !important;
  border: 1px solid #d7e3ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
body.viewer-page .viewer-action-dock button:hover {
  background: #eaf5ff !important;
  color: #1677c9 !important;
  transform: none !important;
}
body.viewer-page .viewer-action-dock button span {
  color: inherit !important;
  font-size: 16px !important;
}
body.viewer-page #dockFitBtn span {
  font-size: 10px !important;
}
body.viewer-page .viewer-zoom-slider {
  flex: 1 1 420px !important;
  width: auto !important;
  min-width: 220px !important;
  height: 42px !important;
  display: grid !important;
  grid-template-columns: auto minmax(160px, 1fr) auto !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 12px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111827 !important;
}
body.viewer-page .viewer-zoom-slider .zoom-plus {
  width: auto !important;
  height: auto !important;
  display: block !important;
  color: #111827 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: none !important;
}
body.viewer-page .viewer-zoom-slider output {
  min-width: 44px !important;
  color: #1677c9 !important;
  text-align: right !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
body.viewer-page .viewer-zoom-slider input {
  width: 100% !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transform: none !important;
  background: transparent !important;
  cursor: grab !important;
}
body.viewer-page .viewer-zoom-slider input:active {
  cursor: grabbing !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
  height: 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #22b8ad 0%, #22b8ad var(--zoom-progress, 6%), #3d3d3d var(--zoom-progress, 6%), #3d3d3d 100%) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.22) !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  margin-top: -6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #22b8ad !important;
  box-shadow: 0 0 0 4px rgba(34,184,173,.18), 0 6px 14px rgba(15, 23, 42, .24) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-track {
  height: 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #3d3d3d !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.22) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-progress {
  height: 10px !important;
  border-radius: 999px !important;
  background: #22b8ad !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-thumb {
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #22b8ad !important;
  box-shadow: 0 0 0 4px rgba(34,184,173,.18), 0 6px 14px rgba(15, 23, 42, .24) !important;
}

@media (max-width: 760px) {
  body.viewer-page .viewer-action-dock {
    top: auto !important;
    right: 8px !important;
    left: 8px !important;
    bottom: 10px !important;
    min-height: 96px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 9px !important;
  }
  body.viewer-page .viewer-action-dock button {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex-basis: 36px !important;
  }
  body.viewer-page .viewer-action-dock button span {
    font-size: 14px !important;
  }
  body.viewer-page #dockFitBtn span {
    font-size: 8px !important;
  }
  body.viewer-page .viewer-zoom-slider {
    order: 9 !important;
    flex: 1 0 100% !important;
    min-width: 100% !important;
    height: 36px !important;
    grid-template-columns: auto minmax(150px, 1fr) auto !important;
    gap: 7px !important;
    padding: 0 8px !important;
  }
  body.viewer-page .viewer-zoom-slider .zoom-plus {
    font-size: 11px !important;
  }
  body.viewer-page .viewer-zoom-slider output {
    min-width: 34px !important;
    font-size: 9px !important;
  }
  body.viewer-page .viewer-zoom-slider input {
    height: 30px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
    height: 9px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
    width: 22px !important;
    height: 22px !important;
    margin-top: -6.5px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-moz-range-track,
  body.viewer-page .viewer-zoom-slider input::-moz-range-progress {
    height: 9px !important;
  }
}

/* Tail override v12: vertical side dock with draggable blue zoom slider. */
body.viewer-page .viewer-action-dock {
  top: 92px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: 66px !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-flow: row !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 8px !important;
  padding: 9px !important;
  border: 1px solid rgba(215, 227, 239, .78) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16) !important;
  backdrop-filter: blur(14px) !important;
}
body.viewer-page .viewer-action-dock button {
  width: 46px !important;
  min-width: 46px !important;
  height: 42px !important;
  min-height: 42px !important;
  flex: none !important;
  border: 1px solid #d7e3ef !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #102136 !important;
}
body.viewer-page .viewer-action-dock button:hover {
  background: #eaf5ff !important;
  color: #1677c9 !important;
}
body.viewer-page .viewer-action-dock button span {
  color: inherit !important;
  font-size: 16px !important;
}
body.viewer-page #dockFitBtn span {
  font-size: 10px !important;
  font-weight: 950 !important;
}
body.viewer-page .viewer-zoom-slider {
  width: 46px !important;
  min-width: 46px !important;
  height: 250px !important;
  flex: none !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 20px 1fr 18px !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 0 !important;
  border: 1px solid rgba(47, 127, 209, .18) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #edf7ff, #dbeeff) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 24px rgba(47,127,209,.13) !important;
}
body.viewer-page .viewer-zoom-slider .zoom-plus {
  width: 24px !important;
  height: 18px !important;
  display: grid !important;
  place-items: center !important;
  color: #2f7fd1 !important;
  font-size: 0 !important;
  font-weight: 900 !important;
}
body.viewer-page .viewer-zoom-slider .zoom-plus::before {
  content: "+" !important;
  font-size: 16px !important;
  line-height: 1 !important;
}
body.viewer-page .viewer-zoom-slider output {
  min-width: 34px !important;
  color: #236db4 !important;
  text-align: center !important;
  font-size: 8px !important;
  font-weight: 900 !important;
}
body.viewer-page .viewer-zoom-slider input {
  width: 184px !important;
  height: 44px !important;
  min-width: 184px !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transform: rotate(-90deg) !important;
  background: transparent !important;
  cursor: grab !important;
  touch-action: manipulation !important;
}
body.viewer-page .viewer-zoom-slider input:active {
  cursor: grabbing !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
  height: 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #22b8ad 0%, #22b8ad var(--zoom-progress, 6%), #3d3d3d var(--zoom-progress, 6%), #3d3d3d 100%) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18) !important;
}
body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px !important;
  height: 30px !important;
  margin-top: -8.5px !important;
  border: 3px solid #dff0ff !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at 35% 30%, #80c7ff, #2f7fd1 70%) !important;
  box-shadow: 0 0 0 5px rgba(47,127,209,.18), 0 8px 18px rgba(23, 87, 152, .34) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-track {
  height: 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #3d3d3d !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18) !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-progress {
  height: 13px !important;
  border-radius: 999px !important;
  background: #22b8ad !important;
}
body.viewer-page .viewer-zoom-slider input::-moz-range-thumb {
  width: 27px !important;
  height: 27px !important;
  border: 3px solid #dff0ff !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at 35% 30%, #80c7ff, #2f7fd1 70%) !important;
  box-shadow: 0 0 0 5px rgba(47,127,209,.18), 0 8px 18px rgba(23, 87, 152, .34) !important;
}

@media (max-width: 760px) {
  body.viewer-page .viewer-action-dock {
    top: 80px !important;
    right: 7px !important;
    left: auto !important;
    bottom: auto !important;
    width: 56px !important;
    min-height: 0 !important;
    display: grid !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 7px !important;
  }
  body.viewer-page .viewer-action-dock button {
    width: 40px !important;
    min-width: 40px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  body.viewer-page .viewer-action-dock button span {
    font-size: 14px !important;
  }
  body.viewer-page #dockFitBtn span {
    font-size: 8px !important;
  }
  body.viewer-page .viewer-zoom-slider {
    width: 40px !important;
    min-width: 40px !important;
    height: 208px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 18px 1fr 16px !important;
    gap: 6px !important;
    padding: 8px 0 !important;
  }
  body.viewer-page .viewer-zoom-slider input {
    width: 150px !important;
    min-width: 150px !important;
    height: 42px !important;
    transform: rotate(-90deg) !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-runnable-track {
    height: 12px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-webkit-slider-thumb {
    width: 28px !important;
    height: 28px !important;
    margin-top: -8px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-moz-range-track,
  body.viewer-page .viewer-zoom-slider input::-moz-range-progress {
    height: 12px !important;
  }
  body.viewer-page .viewer-zoom-slider input::-moz-range-thumb {
    width: 25px !important;
    height: 25px !important;
  }
  body.viewer-page .viewer-zoom-slider output {
    font-size: 7px !important;
  }
}

/* Tail override v13: visible draggable vertical zoom handle. */
body.viewer-page .viewer-zoom-slider {
  height: 266px !important;
  grid-template-rows: 18px 206px 18px !important;
}
body.viewer-page .zoom-visual-track {
  position: relative !important;
  width: 18px !important;
  height: 206px !important;
  display: block !important;
  border-radius: 999px !important;
  background: #d9ecff !important;
  box-shadow: inset 0 1px 3px rgba(15, 72, 130, .24), 0 0 0 1px rgba(47,127,209,.12) !important;
  cursor: grab !important;
  touch-action: none !important;
}
body.viewer-page .zoom-visual-track.dragging {
  cursor: grabbing !important;
}
body.viewer-page .zoom-visual-fill {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: var(--zoom-progress, 6%) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #7ac4ff, #2f7fd1) !important;
}
body.viewer-page .zoom-visual-thumb {
  position: absolute !important;
  left: 50% !important;
  bottom: var(--zoom-progress, 6%) !important;
  width: 30px !important;
  height: 30px !important;
  border: 3px solid #eef7ff !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at 35% 28%, #8fd0ff, #2f7fd1 70%) !important;
  box-shadow: 0 0 0 5px rgba(47,127,209,.18), 0 8px 18px rgba(23,87,152,.34) !important;
  transform: translate(-50%, 50%) !important;
  pointer-events: none !important;
}
body.viewer-page .viewer-zoom-slider input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.viewer-page .viewer-zoom-slider .zoom-plus::before {
  content: "+" !important;
  font-size: 16px !important;
}
body.viewer-page .viewer-zoom-slider output {
  color: #236db4 !important;
  font-size: 8px !important;
}

@media (max-width: 760px) {
  body.viewer-page .viewer-zoom-slider {
    height: 230px !important;
    grid-template-rows: 18px 174px 16px !important;
  }
  body.viewer-page .zoom-visual-track {
    height: 174px !important;
  }
  body.viewer-page .zoom-visual-thumb {
    width: 28px !important;
    height: 28px !important;
  }
}

/* Tail override v14: bottom utility dock, taller zoom slider, no plot filters. */
body.viewer-page .viewer-action-dock {
  top: 24px !important;
  right: 16px !important;
  left: auto !important;
  bottom: auto !important;
  width: 58px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(215,227,239,.8) !important;
  box-shadow: 0 18px 44px rgba(15,23,42,.16) !important;
}
body.viewer-page .viewer-action-dock button {
  width: 42px !important;
  min-width: 42px !important;
  height: 38px !important;
  min-height: 38px !important;
}
body.viewer-page .viewer-zoom-slider {
  width: 42px !important;
  min-width: 42px !important;
  height: clamp(300px, calc(100dvh - 190px), 560px) !important;
  grid-template-rows: 18px 1fr 18px !important;
  padding: 8px 0 !important;
}
body.viewer-page .zoom-visual-track {
  width: 18px !important;
  height: 100% !important;
  min-height: 245px !important;
}
body.viewer-page .zoom-visual-thumb {
  width: 30px !important;
  height: 30px !important;
}
body.viewer-page .viewer-utility-dock {
  position: fixed !important;
  z-index: 7 !important;
  left: 50% !important;
  bottom: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(215,227,239,.82) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.90) !important;
  box-shadow: 0 18px 44px rgba(15,23,42,.18) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(14px) !important;
}
body.viewer-page .viewer-utility-dock button {
  position: relative !important;
  width: 58px !important;
  height: 52px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #d7e3ef !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #102136 !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(15,23,42,.10) !important;
}
body.viewer-page .viewer-utility-dock button span {
  font-size: 16px !important;
  line-height: 1 !important;
}
body.viewer-page .viewer-utility-dock button:hover {
  background: #eaf5ff !important;
  color: #1677c9 !important;
}
body.viewer-page .viewer-utility-dock button::after {
  content: attr(data-tooltip) !important;
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 10px) !important;
  width: max-content !important;
  max-width: 150px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(6,25,17,.92) !important;
  color: #fffaf0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 4px) !important;
  transition: opacity .16s ease, transform .16s ease !important;
}
body.viewer-page .viewer-utility-dock button:hover::after,
body.viewer-page .viewer-utility-dock button:focus-visible::after {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}
body.viewer-page .viewer-panel {
  right: auto !important;
  left: 18px !important;
  bottom: 92px !important;
}
body.viewer-page .viewer-panel.collapsed {
  transform: translateX(calc(-100% - 28px)) !important;
}

@media (max-width: 760px) {
  body.viewer-page .viewer-action-dock {
    top: 18px !important;
    right: 7px !important;
    width: 52px !important;
    padding: 6px !important;
  }
  body.viewer-page .viewer-action-dock button {
    width: 40px !important;
    min-width: 40px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  body.viewer-page .viewer-zoom-slider {
    width: 40px !important;
    min-width: 40px !important;
    height: clamp(280px, calc(100dvh - 170px), 470px) !important;
  }
  body.viewer-page .zoom-visual-track {
    min-height: 220px !important;
  }
  body.viewer-page .viewer-utility-dock {
    bottom: 12px !important;
    gap: 9px !important;
    padding: 8px 10px !important;
  }
  body.viewer-page .viewer-utility-dock button {
    width: 52px !important;
    height: 46px !important;
  }
  body.viewer-page .viewer-utility-dock button::after {
    display: none !important;
  }
  body.viewer-page .viewer-panel {
    left: 10px !important;
    right: 10px !important;
    bottom: 78px !important;
  }
}

/* Frontend map preview / minimap */
body.viewer-page .viewer-preview-card {
  position: fixed;
  z-index: 6;
  left: 18px;
  bottom: 96px;
  width: min(330px, calc(100vw - 120px));
  border: 1px solid rgba(236, 222, 176, .18);
  border-radius: 14px;
  background: rgba(20, 45, 35, .92);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
  transition: opacity .18s ease, transform .18s ease;
}
body.viewer-page .viewer-preview-shell {
  padding: 12px;
}
body.viewer-page .viewer-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #fffaf0;
}
body.viewer-page .viewer-preview-head strong {
  display: block;
  color: #f2cb61;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.viewer-page .viewer-preview-head span {
  display: block;
  max-width: 210px;
  margin-top: 4px;
  overflow: hidden;
  color: rgba(255,250,240,.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.viewer-page #viewerPreviewToggle,
body.viewer-page .viewer-preview-tab {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fffaf0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}
body.viewer-page #viewerPreviewToggle {
  padding: 8px 10px;
}
body.viewer-page .viewer-preview-stage {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(6, 25, 17, .86);
}
body.viewer-page #viewerPreviewSvg {
  display: block;
  width: 100%;
  height: 170px;
  cursor: crosshair;
}
body.viewer-page .viewer-preview-plot {
  fill-opacity: .42;
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
}
body.viewer-page .viewer-preview-viewport {
  fill: rgba(31, 214, 151, .16);
  stroke: #20d99b;
  stroke-width: 8;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(32,217,155,.65));
  pointer-events: none;
}
body.viewer-page .viewer-preview-tab {
  display: none;
  padding: 12px 14px;
  background: rgba(20, 45, 35, .94);
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
}
body.viewer-page .viewer-preview-card.is-hidden {
  width: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.viewer-page .viewer-preview-card.is-hidden .viewer-preview-shell {
  display: none;
}
body.viewer-page .viewer-preview-card.is-hidden .viewer-preview-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  body.viewer-page .viewer-preview-card {
    left: 10px;
    bottom: 78px;
    width: min(220px, calc(100vw - 82px));
    border-radius: 12px;
  }
  body.viewer-page .viewer-preview-shell {
    padding: 9px;
  }
  body.viewer-page .viewer-preview-head {
    margin-bottom: 7px;
  }
  body.viewer-page .viewer-preview-head span {
    max-width: 130px;
    font-size: 10px;
  }
  body.viewer-page #viewerPreviewToggle {
    padding: 7px 8px;
  }
  body.viewer-page #viewerPreviewSvg {
    height: 118px;
  }
  body.viewer-page .viewer-preview-tab {
    padding: 10px 12px;
  }
}

/* Mobile viewer: keep zoom controls compact and reachable at the bottom. */
@media (max-width: 760px) {
  body.viewer-page .viewer-action-dock {
    top: auto !important;
    right: auto !important;
    bottom: 78px !important;
    left: 50% !important;
    width: min(390px, calc(100vw - 20px)) !important;
    height: 54px !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 6px 8px !important;
    border-radius: 18px !important;
    transform: translateX(-50%) !important;
  }
  body.viewer-page .viewer-action-dock button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
  body.viewer-page .viewer-zoom-slider {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    display: grid !important;
    grid-template-columns: 18px minmax(70px, 1fr) 36px !important;
    grid-template-rows: 40px !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 6px !important;
    border-radius: 14px !important;
  }
  body.viewer-page .viewer-zoom-slider .zoom-plus {
    width: 18px !important;
    height: 18px !important;
  }
  body.viewer-page .zoom-visual-track {
    width: 100% !important;
    height: 12px !important;
    min-height: 12px !important;
  }
  body.viewer-page .zoom-visual-fill {
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: var(--zoom-progress, 6%) !important;
    height: auto !important;
    background: linear-gradient(90deg, #7ac4ff, #2f7fd1) !important;
  }
  body.viewer-page .zoom-visual-thumb {
    top: 50% !important;
    left: var(--zoom-progress, 6%) !important;
    bottom: auto !important;
    width: 26px !important;
    height: 26px !important;
    transform: translate(-50%, -50%) !important;
  }
  body.viewer-page .viewer-zoom-slider output {
    min-width: 36px !important;
    font-size: 9px !important;
  }
  body.viewer-page .viewer-panel,
  body.viewer-page .viewer-preview-card {
    bottom: 142px !important;
  }
}
