.demo-page { background: #f8f8f0; }
.demo-header { border-bottom: 1px solid var(--line); }
.demo-intro { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(230px,.5fr); gap: 70px; align-items: end; padding-top: 72px; padding-bottom: 66px; }
.demo-intro h1 { max-width: 720px; font-size: clamp(45px,5vw,68px); }
.demo-intro>div:first-child>p:last-child { max-width: 690px; color: var(--muted); font-size: 17px; line-height: 1.7; margin: 24px 0 0; }
.demo-caveat { border-left: 2px solid var(--accent); padding: 0 0 0 23px; font-size: 12px; color: var(--muted); }
.demo-caveat strong { display: block; color: var(--ink); font-size: 13px; margin: 7px 0 3px; }
.demo-caveat p { margin: 0; line-height: 1.65; }
.demo-caveat-icon { color: var(--accent); font-size: 24px; line-height: 1; }
.demo-workspace { padding-bottom: 80px; }
.demo-workspace-header { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 25px; padding: 31px 0 22px; }
.demo-workspace-header .eyebrow { margin: 0 0 11px; }
.demo-workspace-header h2 { font-size: 31px; letter-spacing: -1.3px; }
.demo-snapshot { color: var(--muted); font-size: 11px; display: flex; gap: 9px; align-items: center; padding-bottom: 6px; }
.snapshot-dot { width: 7px; height: 7px; border-radius: 50%; background: #a97952; flex: none; }
.demo-stats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 5px 5px 0 0; background: #fdfcf5; }
.demo-stats>div { padding: 19px 25px 15px; min-height: 89px; }
.demo-stats>div+div { border-left: 1px solid var(--line); }
.demo-stats span { display: block; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.demo-stats strong { display: block; font: 600 27px Manrope,sans-serif; line-height: 1.2; margin-top: 8px; }
.demo-grid { display: grid; grid-template-columns: minmax(215px,.8fr) minmax(0,2fr) minmax(235px,.9fr); min-height: 600px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; overflow: hidden; background: #fffef7; }
.demo-list-panel,.demo-detail-panel { min-width: 0; background: #fdfcf5; }
.demo-list-panel { border-right: 1px solid var(--line); }
.demo-detail-panel { border-left: 1px solid var(--line); }
.panel-heading { padding: 26px 22px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.panel-heading .eyebrow { margin: 0 0 8px; font-size: 9px; }
.panel-heading h3 { font-size: 17px; letter-spacing: -.45px; line-height: 1.25; }
.panel-heading>span { font-size: 10px; color: var(--muted); }
.filter-row { display: flex; flex-wrap: wrap; padding: 15px 18px 8px; gap: 6px; }
.filter { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 3px; padding: 6px 9px; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter.active { color: #fff; background: var(--green); border-color: var(--green); }
.feature-list { padding: 3px 11px 15px; max-height: 565px; overflow: auto; }
.feature-row { width: 100%; padding: 15px 10px; display: grid; grid-template-columns: 8px 1fr; gap: 11px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); }
.feature-row:hover,.feature-row.selected { background: #edf1e7; }
.feature-status { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #899882; }
.feature-status.attention { background: #b45f43; }
.feature-status.blocked { background: #7b5c6e; }
.feature-status.not_inspected { background: #a9a99f; }
.feature-row strong { display: block; font-size: 12px; line-height: 1.35; }
.feature-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.empty-list { font-size: 12px; color: var(--muted); padding: 17px; }
.demo-map-panel { min-width: 0; background: #e5e9d9; }
.map-toolbar { height: 63px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 20px; border-bottom: 1px solid #cbd4c4; background: #f4f5eb; }
.map-toolbar>div:first-child { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.map-toolbar strong { font-size: 11px; }
.map-toolbar-sub { font-size: 10px; color: var(--muted); margin-left: 10px; }
.map-toolbar-icon { font-size: 21px; color: var(--accent); }
.layer-controls { display: flex; gap: 14px; white-space: nowrap; font-size: 10px; }
.layer-controls label { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.layer-controls input { accent-color: var(--green); }
.site-map-wrap { position: relative; min-height: 536px; overflow: hidden; }
#site-map { display: block; width: 100%; height: 536px; touch-action: none; cursor: grab; }
#site-map.dragging { cursor: grabbing; }
#site-map .site-boundary { fill: #f6f1d7; fill-opacity: .67; stroke: #506c57; stroke-width: 4; stroke-dasharray: 10 7; vector-effect: non-scaling-stroke; }
#site-map .access-area { fill: #b9644f; fill-opacity: .23; stroke: #ad5e48; stroke-width: 2; stroke-dasharray: 7 6; vector-effect: non-scaling-stroke; }
#site-map .bmp-line { fill: none; stroke: #315e4c; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#site-map .bmp-polygon { fill: #91ae90; fill-opacity: .53; stroke: #315e4c; stroke-width: 3; vector-effect: non-scaling-stroke; }
#site-map .bmp-point { stroke: #fffdf3; stroke-width: 4; vector-effect: non-scaling-stroke; }
#site-map .bmp-point.ok { fill: #4d8065; }
#site-map .bmp-point.attention { fill: #b76347; }
#site-map .bmp-point.blocked { fill: #7b5c6e; }
#site-map .bmp-point.not_inspected { fill: #a9a99f; }
#site-map .bmp-hit { fill: transparent; stroke: transparent; stroke-width: 24; cursor: pointer; vector-effect: non-scaling-stroke; }
#site-map .bmp-feature { cursor: pointer; }
#site-map .bmp-feature:focus-visible { outline: none; filter: drop-shadow(0 0 6px #c17845); }
#site-map .bmp-feature.selected .bmp-point { stroke: #203f35; stroke-width: 5; }
#site-map .bmp-feature.selected .bmp-line,#site-map .bmp-feature.selected .bmp-polygon { stroke: #b76347; stroke-width: 7; }
#site-map .north-label,#site-map .map-scale { font: 700 18px 'DM Sans',sans-serif; letter-spacing: 3px; fill: #385347; }
#site-map .map-scale { font-size: 10px; letter-spacing: 1.3px; }
.zoom-controls { position: absolute; right: 16px; top: 16px; display: grid; background: #fffff6; border: 1px solid #d8ddce; border-radius: 4px; box-shadow: 0 4px 15px #1a37251a; }
.zoom-controls button { color: var(--ink); background: transparent; border: 0; width: 32px; height: 32px; font-weight: 700; font-size: 18px; line-height: 1; cursor: pointer; }
.zoom-controls button+button { border-top: 1px solid var(--line); }
.zoom-controls button:hover { background: #e8efdf; }
.map-legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 11px; background: #fffff6eb; border: 1px solid #d8ddce; border-radius: 3px; font-size: 9px; font-weight: 600; }
.map-legend>span { display: flex; gap: 6px; align-items: center; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #829682; display: inline-block; }
.legend-dot.attention { background: #b76347; }.legend-dot.ok { background: #4d8065; }
.legend-line { width: 13px; border-top: 2px dashed #506c57; display: inline-block; }
.detail-content { padding: 24px 22px; font-size: 12px; color: var(--muted); }
.detail-content>p:first-child { margin-top: 0; }
.detail-code { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.detail-badge { display: inline-block; margin: 14px 0 17px; border-radius: 3px; padding: 5px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: #e4ece0; color: #315e4c; }
.detail-badge.attention { background: #f4e5dc; color: #995139; }.detail-badge.blocked { background: #eee7ed; color: #684d63; }.detail-badge.not_inspected { background: #eaeae3; color: #60665f; }
.detail-section { border-top: 1px solid var(--line); padding: 15px 0; }
.detail-section:last-child { padding-bottom: 0; }
.detail-section h4 { font-size: 10px; color: var(--ink); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 7px; }
.detail-section p { margin: 0; line-height: 1.65; }
.detail-section small { display: block; margin-top: 6px; color: var(--muted); }
.detail-action { margin-top: 9px; padding-left: 10px; border-left: 2px solid var(--accent); }
.demo-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); padding: 32px 0 34px; }
.demo-bottom h3 { font-size: 19px; letter-spacing: -.5px; }.demo-bottom p { font-size: 12px; max-width: 660px; color: var(--muted); margin: 8px 0 0; }
.demo-bottom .button { flex: none; }
.demo-error { margin: 16px 0; border-left: 3px solid #b76347; background: #f4e5dc; padding: 13px; font-size: 12px; }
@media(max-width:1100px) { .demo-grid { grid-template-columns: minmax(200px,.85fr) minmax(0,1.7fr); }.demo-detail-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }.detail-content { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.detail-content>p:first-child { grid-column: 1 / -1; }.detail-section { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 15px; } }
@media(max-width:720px) { .demo-header .button.small { display: none; }.demo-intro { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; padding-bottom: 42px; }.demo-intro h1 { font-size: 46px; }.demo-intro>div:first-child>p:last-child { font-size: 15px; }.demo-caveat { max-width: 520px; }.demo-workspace-header { display: block; }.demo-workspace-header h2 { font-size: 25px; }.demo-snapshot { margin-top: 12px; }.demo-stats { grid-template-columns: repeat(2,1fr); }.demo-stats>div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }.demo-stats>div:nth-child(4) { border-top: 1px solid var(--line); }.demo-stats>div { min-height: 75px; padding: 15px; }.demo-stats strong { font-size: 23px; }.demo-grid { display: flex; flex-direction: column; }.demo-map-panel { order: 1; }.demo-list-panel { order: 2; border-right: 0; border-top: 1px solid var(--line); }.demo-detail-panel { order: 3; }.map-toolbar { height: auto; min-height: 63px; flex-wrap: wrap; padding: 12px 14px; gap: 6px; }.map-toolbar-sub { display: none; }.site-map-wrap { min-height: 380px; } #site-map { height: 380px; }.feature-list { max-height: 280px; }.detail-content { display: block; }.detail-section { border-left: 0; border-top: 1px solid var(--line); padding: 15px 0; }.demo-bottom { display: block; }.demo-bottom .button { margin-top: 22px; } }
