/* What the demo adds around the product's own styles (ui.css, compiled from the
   app). Three parts: the demo strip and tour, the few layouts the app builds with
   one-off markup (board, drawer, chat, maps), and the client portal's skin. */
html,body{margin:0;min-height:100%}
body{padding-top:44px}

/* ---- demo strip (not part of the product) ---- */
.strip{position:fixed;inset:0 0 auto 0;height:44px;z-index:1250;background:#0E3A5C;color:#fff;display:flex;align-items:center;gap:14px;padding:0 14px;font:400 14px/1.3 var(--app-font),system-ui,sans-serif}
.strip .tag0{font:700 12px/1 var(--app-font),system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;background:#89CFF0;color:#0E3A5C;padding:5px 8px;border-radius:3px;white-space:nowrap}
.strip .note{color:#C7D1DE;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.strip a{color:#fff;font-weight:600;white-space:nowrap;text-decoration:none}
.strip a.cta{background:#89CFF0;color:#0E3A5C;padding:7px 14px;border-radius:6px}
.strip a.cta:hover{background:#fff}
.sseg{display:inline-flex;background:rgba(255,255,255,.12);border-radius:7px;padding:3px;gap:2px;flex:none}
.sseg button{border:0;background:none;color:#DCE6F0;font:600 14px/1.2 var(--app-font),system-ui,sans-serif;padding:5px 12px;border-radius:5px;cursor:pointer;white-space:nowrap}
.sseg button[aria-pressed="true"]{background:#fff;color:#0E3A5C}
@media (max-width:860px){.strip .note,.strip .tag0,.strip .back{display:none}.strip{gap:8px;padding:0 8px}.sseg{margin-right:auto}.sseg button{padding:5px 8px}.strip a.cta{padding:7px 9px}}

/* the product's frame, moved down by the strip */
.ind{min-height:calc(100vh - 44px)!important}
.ind .ind-side{top:44px;height:calc(100vh - 44px)}
.ind .ind-top{top:44px}
.ind .dlogo{width:100%;border:1px solid #c9ccd1;background:#f5f5f8;color:#6b7078;font:700 16px/1 Arial,sans-serif;letter-spacing:.02em;padding:12px 6px;text-align:center}
.ind [hidden]{display:none!important}

/* ---- joins and small helpers the app writes inline ---- */
.ind .ind-main>.dtabs+.dtools,.ind .ind-main>.dtabs+.tw,.ind .ind-main>.dtools+.tw,.ind .ind-main>.dtabs+.dtools+.tw{margin-top:-21px}
.ind .dtabs .ind-head{padding:0 14px}
.ind .dtools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 14px;background:var(--color-surface)}
.ind .dtools .input{width:260px;max-width:100%;background:var(--color-bg)}
.ind .tw{overflow-x:auto;min-width:0}
.ind .table .num{text-align:right;font-variant-numeric:tabular-nums}
.ind .table tr.click{cursor:pointer}
.ind .table td{vertical-align:top}
.ind .table td small,.ind .muted{font-size:12px;color:var(--color-neutral-700)}
.ind .table tr.daybar td{background:var(--color-neutral-200);font-weight:700}
.ind .more{padding:10px;text-align:center}
.ind .empty{padding:26px;text-align:center;color:var(--color-neutral-700)}
.ind .grid{display:grid;gap:20px}
.ind .g2{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))}
.ind .g21{grid-template-columns:minmax(0,2.2fr) minmax(0,1fr)}
.ind .g21>div,.ind .g2>div{display:flex;flex-direction:column;gap:20px;min-width:0}
.ind .actions{display:flex;gap:8px;flex-wrap:wrap}
.ind dl.kv{display:grid;grid-template-columns:150px 1fr;gap:6px 12px;margin:0}
.ind dl.kv dt{color:var(--color-neutral-700);font-size:12px}.ind dl.kv dd{margin:0}
.ind .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--st-green);margin-right:6px}
.ind .legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin-bottom:6px}
.ind .legend i{display:inline-block;width:9px;height:9px;margin-right:5px}
.ind .donut{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.ind .donut table{flex:1;min-width:180px}.ind .donut td{padding:3px 0}
.ind .bar{height:8px;background:var(--color-neutral-300);position:relative;min-width:80px}.ind .bar i{position:absolute;inset:0 auto 0 0;background:var(--color-accent)}
.ind .prow{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid color-mix(in srgb,var(--color-text) 8%,transparent)}
.ind .prow b{display:block}.ind .prow small{color:var(--color-neutral-700);font-size:12px}
.ind .prow.click{cursor:pointer}
@media (max-width:1023px){.ind .g21{grid-template-columns:1fr}.ind dl.kv{grid-template-columns:110px 1fr}}

/* ---- issue board ---- */
.ind .board{display:grid;grid-template-columns:repeat(4,minmax(250px,1fr));gap:12px;overflow:auto;align-items:start}
.ind .col{background:var(--color-surface);border:1px solid var(--color-divider);border-top:3px solid var(--st-blue);min-height:120px}
.ind .col.c1{border-top-color:var(--st-amber)}.ind .col.c2{border-top-color:var(--st-purple)}.ind .col.c3{border-top-color:var(--st-green)}
.ind .col>h6{display:flex;justify-content:space-between;align-items:center;margin:0;padding:10px 12px}
.ind .col>h6 b{font-size:22px;letter-spacing:0}
.ind .col>h6 i{font-style:normal;color:var(--color-neutral-500);margin-right:8px}
.ind .col.over{outline:2px dashed var(--color-accent);outline-offset:-4px}
.ind .card0{background:var(--color-bg);border:1px solid var(--color-divider);border-left:3px solid var(--st-blue);margin:0 6px 6px;padding:10px 12px;cursor:pointer}
.ind .col.c1 .card0{border-left-color:var(--st-amber)}.ind .col.c2 .card0{border-left-color:var(--st-purple)}.ind .col.c3 .card0{border-left-color:var(--st-green)}
.ind .card0:hover{background:#fff}
.ind .card0 .r1{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ind .card0 .r1 b{font-family:var(--font-heading);font-weight:600;font-size:15px}
.ind .card0 p{margin:8px 0 5px}
.ind .card0 .mv{margin-left:auto;border:0;background:none;cursor:pointer;color:var(--color-neutral-700);font-size:12px;padding:2px 4px}
.ind .card0 .mv:hover{color:var(--color-text);text-decoration:underline}

/* ---- drawer, toast ---- */
.scrim{position:fixed;inset:44px 0 0 0;background:color-mix(in srgb,#2b2b2d 50%,transparent);z-index:1300}
.drawer{position:fixed;top:44px;right:0;bottom:0;width:min(560px,100%);background:#f2f2f3;z-index:1301;overflow:auto;box-shadow:-20px 0 50px rgba(0,0,0,.25);border-left:1px solid rgba(29,31,32,.16)}
.drawer>header{position:sticky;top:0;background:#e9e9ea;border-bottom:1px solid rgba(29,31,32,.16);padding:14px 16px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.drawer>header h2{font-size:22px;margin:0}
.drawer>.dbody{padding:16px;font-size:13px;line-height:1.55}
.drawer h3{font-size:13px;letter-spacing:.08em;text-transform:uppercase;margin:18px 0 8px}
.drawer .x{border:0;background:none;font-size:22px;line-height:1;cursor:pointer;color:#5d5d60;padding:0 4px}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#0B0F14;color:#fff;padding:10px 16px;border-radius:6px;z-index:1400;font:600 14px/1.4 var(--app-font),system-ui,sans-serif;box-shadow:0 10px 30px rgba(0,0,0,.3);max-width:calc(100% - 32px)}
.timeline{list-style:none;margin:0;padding:0;border-left:2px solid rgba(29,31,32,.16)}
.timeline li{padding:0 0 12px 14px;position:relative}
.timeline li::before{content:'';position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:#5980a6}

/* ---- messages ---- */
.chat{display:grid;grid-template-columns:260px 1fr;min-height:440px}
.chat .list{border-right:1px solid rgba(29,31,32,.16);background:rgba(0,0,0,.03)}
.chat .list button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid rgba(29,31,32,.08);background:none;padding:10px 14px;cursor:pointer;font:inherit}
.chat .list button.on{background:#fff;box-shadow:inset 3px 0 0 #5980a6}
.chat .thread{display:flex;flex-direction:column;min-width:0}
.chat .msgs{flex:1;padding:14px;display:flex;flex-direction:column;gap:10px;overflow:auto;max-height:520px}
.msg{max-width:78%;background:#e7e7ea;padding:8px 11px}
.msg.me{align-self:flex-end;background:#d6ebff}
.msg small{display:block;color:#5d5d60;font-size:11px;margin-bottom:2px}
.send{display:flex;gap:8px;padding:10px;border-top:1px solid rgba(29,31,32,.16)}.send .input{flex:1}
@media (max-width:860px){.chat{grid-template-columns:1fr}.chat .list{display:flex;overflow:auto;border-right:0}.chat .list button{width:auto;white-space:nowrap}}

/* ---- dashboard map, site map screen ---- */
.dmap{position:relative;background:#E8ECEF;line-height:0;overflow:hidden}
.dmap svg{display:block;width:100%;height:auto}
.smap{position:relative;background:#E8ECEF;line-height:0;overflow:hidden}
.smap svg{display:block;width:100%;height:auto}
.smap.plan svg{max-height:78vh}
#sdyn{position:absolute;inset:0;pointer-events:none}
#sdyn svg{height:100%}
#sdyn .mpin{pointer-events:auto;cursor:pointer}
.smap .place{cursor:crosshair}
.smap .room{transition:filter .1s}
.smap .room:hover{filter:brightness(.93) saturate(1.6)}
.smap.site .place:hover{fill:rgba(31,120,180,.85)}
.smap .mlab{font:700 15px var(--app-font),system-ui,sans-serif;fill:#0B0F14;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-width:4px}
.smap .mlab.red{fill:#A32A1C;font-size:13px}
.smap .mtag{font:700 13px var(--app-font),system-ui,sans-serif;fill:#fff;text-anchor:middle}
.smap .mtag.dark{fill:#0B0F14}.smap .mtag.left{text-anchor:start}.smap .mtag.thin{font-weight:500;font-size:12px}
.smap .rlab{font:600 .600px var(--app-font),system-ui,sans-serif;fill:#2B3340;text-anchor:middle;paint-order:stroke;stroke:rgba(255,255,255,.75);stroke-width:.140px}
.mplay{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.mplay input{flex:1;min-width:0;accent-color:#5980a6}
.mclock{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mclock b{font:600 34px/1 var(--app-font),system-ui,sans-serif}
.mh{font-family:var(--app-font),system-ui,sans-serif;font-weight:600;font-size:13px;letter-spacing:.08em;text-transform:uppercase;margin:14px 0 4px}
.mrooms{max-height:190px;overflow-y:auto;overflow-x:hidden;padding:0 6px;margin:0 -6px}
.mrow{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid rgba(29,31,32,.08);font-size:13px}
.mrow.on{background:#d6ebff;margin:0 -6px;padding:7px 6px}
.mrow.click{cursor:pointer}.mrow.click:hover{background:rgba(29,31,32,.04)}
.mrow span:last-child{white-space:nowrap;flex:none;text-align:right}
.paybox s{color:#98989b}

/* ---- guided tour (not part of the product) ---- */
.tourfab{position:fixed;right:16px;bottom:16px;z-index:1240;background:#E0A030;color:#0B0F14;font:700 14px/1.2 var(--app-font),system-ui,sans-serif;border:0;border-radius:999px;padding:11px 18px;cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,.28)}
.tourfab:hover{background:#F0B445}
.tscrim{position:fixed;inset:0;background:rgba(11,15,20,.5);z-index:1500}
.tring{position:fixed;z-index:1501;border:2px solid #E0A030;border-radius:6px;box-shadow:0 0 0 4px rgba(224,160,48,.28);pointer-events:none}
.tarrow{position:fixed;z-index:1502;width:44px;height:44px;color:#E0A030;pointer-events:none;filter:drop-shadow(0 4px 6px rgba(0,0,0,.35))}
.tarrow svg{display:block;width:44px;height:44px;animation:tbounce .8s ease-in-out infinite}
.tarrow.down{transform:rotate(180deg)}.tarrow.left{transform:rotate(-90deg)}
@keyframes tbounce{0%,100%{transform:translateY(0)}50%{transform:translateY(9px)}}
.tbub{position:fixed;z-index:1503;background:#0B0F14;color:#fff;border-radius:10px;padding:14px 16px;box-shadow:0 18px 44px rgba(0,0,0,.4);font:400 14px/1.45 var(--app-font),system-ui,sans-serif}
.tbub b{display:block;font-size:16px;line-height:1.25}
.tbub p{margin:6px 0 12px;color:#D5D9E0}
.tbub .trow{display:flex;align-items:center;gap:10px;font-size:12px;color:#98989B}
.tbub .trow span{margin-right:auto}
.tbub em{font-style:normal;font-weight:700;color:#E0A030}
.tskip{border:0;background:none;color:#C7D1DE;text-decoration:underline;cursor:pointer;padding:4px 0;font:400 13px var(--app-font),system-ui,sans-serif}
.tnext{border:0;background:#E0A030;color:#0B0F14;font:700 14px/1.2 var(--app-font),system-ui,sans-serif;border-radius:6px;padding:8px 14px;cursor:pointer;text-decoration:none}
.tnext.alt{background:#89CFF0}
.tnext:hover{filter:brightness(1.08)}
.tcard{left:50%;top:50%;transform:translate(-50%,-50%);width:min(400px,calc(100vw - 24px));padding:22px}
.tcard b{font-size:20px}.tcard p{font-size:15px;margin:8px 0 18px}.tcard .trow{justify-content:flex-end}
@media (prefers-reduced-motion:reduce){.tarrow svg{animation:none}}

/* ---- client portal: its frame sits under the demo strip; a few one-off pieces ---- */
.pframe{min-height:calc(100vh - 44px);font-family:ui-sans-serif,system-ui,sans-serif}
.pframe .pside{top:44px;height:calc(100vh - 44px)}
.pframe .dlogo{width:100%;border:1px solid #c9ccd1;background:#f5f5f8;color:#6b7078;font:700 15px/1 Arial,sans-serif;padding:11px 6px;text-align:center}
.pframe .pscope ul{list-style:disc;padding-left:18px;margin:4px 0}.pframe .pscope p{margin:4px 0}
.pframe .pchat .msgs{min-height:320px}
.pframe .pchat .input,.pframe .drawer .input{border:1px solid #e2e8f0;border-radius:6px;padding:8px 10px;background:#fff;font:inherit;min-width:0}
.pframe .pchat .btn,.pframe .drawer .btn{border-radius:6px;background:#1C2530;color:#fff;border:0;padding:8px 14px;font-weight:600;cursor:pointer}
.pframe .drawer{background:#fff;font-size:14px}.pframe .drawer>header{background:#fff}
.pframe .drawer .tag{display:inline-block;font-size:11px;padding:1px 8px;border-radius:999px;background:#f1f5f9;color:#475569}
/* ---- manager one-offs ---- */
.ind .matrix th.grp{color:var(--color-accent-700);border-left:1px solid var(--color-divider)}
.ind .matrix td.mx{text-align:center;font-size:11px;line-height:1.35;white-space:nowrap;border-left:2px solid var(--color-bg);border-right:2px solid var(--color-bg);vertical-align:middle}
.ind .matrix td.mx.none{color:var(--color-neutral-500)}
.ind .matrix td.mx.cur{background:var(--color-accent-100);color:var(--color-accent-800)}
.ind .matrix td.mx.exp{background:var(--color-accent-800);color:#fff}
.ind .matrix td.mx.soon{background:#f3d9a4;color:#7a4b00}
.ind .matrix td.mx.met{background:color-mix(in srgb,var(--st-green) 22%,transparent);color:var(--st-green-ink)}
.ind .matrix td:last-child{text-align:center}
.ind .mgrid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;align-items:start}
.ind .chlist{max-height:440px;overflow:auto;border-top:1px solid var(--color-divider)}
.ind .chrow{display:block;width:100%;text-align:left;border:0;background:none;padding:6px 14px;cursor:pointer;font:inherit;color:var(--color-text)}
.ind .chrow:hover{background:color-mix(in srgb,var(--color-text) 5%,transparent)}
.ind .chrow.on{background:var(--color-accent-100);box-shadow:inset 3px 0 0 var(--color-accent)}
.ind .mthread{min-height:490px;display:flex;flex-direction:column}
.ind .mthread .msgs{flex:1}
@media (max-width:1023px){.ind .mgrid{grid-template-columns:1fr}}
.ind .blueprint .blueprint.tw{border:0}
.ind .ind-head>a{font-size:12px}

.ind .table a.nm{font-weight:700;text-decoration:none}
.ind .table tr.tot td{background:var(--color-neutral-200)}
.ind .table td:last-child{text-align:right;white-space:nowrap}
.ind .ind-head .input{min-height:32px}
.ind button.tag-outline{line-height:1.5}

.ind .ind-head{min-width:0}.ind .ind-tabs{min-width:0}
@media (max-width:639px){.ind .ind-head .input{width:100%!important}}

/* ---- site plan: layers over the product's drawing ---- */
.smap.plan{background:none;line-height:1.5;overflow:visible;padding:14px}
.smap .pwrap{position:relative;line-height:0}
.smap .pwrap>svg.phit{position:absolute;inset:0;width:100%;height:100%}
.smap .pwrap>#sdyn{position:absolute;inset:0;pointer-events:none}
.smap .pwrap>#sdyn svg{width:100%;height:100%}
.smap .phit .room{cursor:crosshair}
.smap .phit .room:hover{fill:rgba(89,128,166,.22);stroke:#1d2d3d;stroke-width:2;filter:none}
.smap.plan svg{max-height:none}

/* ---- a clean white main area (the product's own ground is light grey) ---- */
.ind{--color-bg:#ffffff;--color-surface:#f6f7f9;--color-divider:#e3e6eb;--color-neutral-100:#f3f4f6;--color-neutral-200:#eceef1;background:#ffffff}
.ind .ind-main{background:#ffffff}
.ind .ind-top{box-shadow:0 1px 0 #e3e6eb}
.ind .table tbody tr:hover{background:#f8f9fb}
.ind .col{background:#f6f7f9}
.ind .card0{background:#ffffff}
.drawer{background:#ffffff;border-left-color:#e3e6eb}.drawer>header{background:#f6f7f9;border-bottom-color:#e3e6eb}
.ind .sp{--sp-bg:#ffffff}

/* ---- Google satellite maps, with the demo's marks drawn over them ---- */
.gmap{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}
.dmap{height:380px}
.dmap>svg{position:absolute;inset:0;width:100%;height:100%}
.smap.site{height:560px;background:#1b2530}
.smap.site>#sbase{position:absolute;inset:0}
.smap.site svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.smap.site svg .place{pointer-events:auto}
.smap.site .mlab{fill:#ffffff;stroke:#0B0F14;stroke-width:4px}
.smap.site .mlab.red{fill:#ffd9d2;stroke:#3a0a04}
@media (max-width:639px){.smap.site{height:420px}.dmap{height:300px}}

/* ---- the cleaner floor plan ---- */
.smap.plan{background:#F8FAFC;padding:0;line-height:0}
.smap.plan .pwrap>svg{display:block;width:100%;height:auto}
.smap.plan .room{cursor:pointer;transition:filter .12s}
.smap.plan .room:hover{filter:brightness(.94) saturate(1.5)}
.smap .rlab{font:600 .600px var(--app-font),system-ui,sans-serif;fill:#334155;text-anchor:start;stroke:none}
.smap .rcap{font:600 .460px var(--app-font),system-ui,sans-serif;fill:#64748B;text-anchor:middle;letter-spacing:.040px}
.smap.plan .pkey{display:flex;flex-wrap:wrap;gap:6px 16px;padding:12px 14px;background:#fff;border-top:1px solid #e3e6eb;font:400 12px/1.4 var(--app-font),system-ui,sans-serif;color:#475569}
.smap.plan .pkey i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px;box-shadow:inset 0 0 0 1px rgba(15,23,42,.12)}

/* ---- inside the demo page's frame ---- */
.embed .strip .back,.embed .strip .tag0,.embed .strip .note{display:none}
.embed .strip .sseg{margin-right:auto}
/* the small screens in the demo page's laptop and phone: no demo bar, no tour button */
.shot .strip,.shot .tourfab,.shot #tour{display:none!important}
.shot body{margin-top:-44px;overflow:hidden}
.shot ::-webkit-scrollbar{display:none}
/* the shopping centre demo (centre.js): its two sides in the bar */
.scene-centre .sseg [hidden]{display:none}
@media (max-width:860px){.scene-centre .sseg button{font-size:12px;padding:5px 7px}}
@media (max-width:480px){.scene-centre .cta{display:none}}
/* the shopping centre demo's manager side is set in place: the page does not scroll, only the panel of the screen does */
.scene-centre .ind{height:calc(100vh - 44px);min-height:0!important;overflow:hidden}
.scene-centre .ind>div{height:100%;min-height:0}
.scene-centre .ind .ind-side{height:100%;top:0;position:relative}
.scene-centre .ind .ind-top{top:0;flex:none}
.scene-centre .ind .ind-main{flex:1;min-height:0;overflow-y:auto}
/* the tour's caption never takes a tap meant for the screen under it */
.tbub{pointer-events:none}.tbub button,.tbub a{pointer-events:auto}
/* the offer on the card that ends a tour */
.toffer{display:grid;grid-template-columns:1fr auto;gap:2px 14px;align-items:center;margin:0 0 16px;padding:14px 16px;border-radius:10px;background:#12301F;border:1px solid #1FA971;color:#fff;text-decoration:none;pointer-events:auto}
.toffer span{grid-column:1/-1;font:700 11px/1 var(--app-font),system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#5EE0A5}
.toffer b{font-size:17px!important;line-height:1.25}
.toffer small{grid-column:1;font-size:13px;color:#C7D9CF}
.toffer em{grid-column:2;grid-row:2/4;font-style:normal;font-weight:700;font-size:14px;background:#1FA971;color:#fff;border-radius:6px;padding:9px 12px;white-space:nowrap}
.toffer:hover em{background:#27C084}
@media (max-width:420px){.toffer{grid-template-columns:1fr}.toffer em{grid-column:1;grid-row:auto;justify-self:start;margin-top:8px}}
/* the Home map: street tiles drawn in the SVG, with the credit OpenStreetMap asks for */
.dmap-credit{position:absolute;right:0;bottom:0;background:rgba(255,255,255,.8);padding:2px 6px;font-size:11px;line-height:1.4;color:#334155}
.dmap-credit a{color:inherit}
