:root {
  --bg:#0b0d10;
  --panel:#13171c;
  --panel2:#1a2027;
  --text:#f7f8fa;
  --muted:#9ba6b2;
  --line:#2a313a;
  --radius:22px;
  --shadow:0 18px 50px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{min-height:100vh;display:flex;flex-direction:column}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.35;cursor:default}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-bottom:1px solid var(--line);background:rgba(11,13,16,.94);backdrop-filter:blur(16px)}
.brand{display:flex;gap:10px;align-items:center;user-select:none;cursor:pointer}
.brand-mark{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#111;font-weight:900;font-size:20px}
.brand-name{font-weight:900;letter-spacing:.12em;font-size:14px}
.brand-sub{font-size:11px;color:var(--muted);letter-spacing:.14em;margin-top:1px}
.top-actions{display:flex;gap:8px;align-items:center}
.ghost,.primary,.secondary,.danger{border:1px solid var(--line);border-radius:999px;padding:9px 14px;background:var(--panel);color:var(--text)}
.primary{background:#fff;color:#111;border-color:#fff;font-weight:800}
.secondary{background:var(--panel2)}
.danger{background:#2a1717;border-color:#5b2a2a}
.badge{font-size:11px;font-weight:800;padding:6px 9px;border-radius:999px;background:#352d14;color:#ffe895;border:1px solid #6a5a22}
.hidden{display:none!important}
.app{width:min(1240px,100%);margin:0 auto;padding:20px 20px 32px;flex:1}
.home-screen{min-height:calc(100vh - 128px);display:flex;flex-direction:column}
.home-intro{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 2px 14px}
.home-intro h1{font-size:34px;line-height:1;margin:4px 0 0;letter-spacing:-.035em}
.home-intro p{margin:0;color:var(--muted);font-size:15px}
.eyebrow{font-size:12px;color:var(--muted);letter-spacing:.14em;font-weight:800}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.demo-grid{flex:1;grid-template-rows:repeat(2,minmax(150px,1fr))}
.card{background:linear-gradient(180deg,var(--panel),#101419);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.demo-card{position:relative;padding:20px;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease;min-height:0;overflow:hidden}
.demo-card:hover,.demo-card:focus{transform:translateY(-2px);border-color:#65717d;background:linear-gradient(180deg,#171d24,#11161c);outline:none}
.demo-card:active{transform:translateY(0)}
.demo-card .icon{font-size:36px}
.demo-card-copy h3{margin:0 0 6px;font-size:24px;letter-spacing:-.025em}
.demo-card-copy p{margin:0;color:var(--muted);font-size:14px;line-height:1.35}
.card-arrow{font-size:22px;color:#77828d;align-self:start}
.view-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:16px}
.view-head h1{font-size:38px;margin:0 0 5px;letter-spacing:-.035em}
.view-head p{margin:0;color:var(--muted);font-size:16px}
.panel{background:linear-gradient(180deg,var(--panel),#101419);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:14px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.field label{font-size:13px;color:var(--muted);font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.field input,.field textarea,.field select{width:100%;padding:14px 15px;border-radius:14px;border:1px solid var(--line);background:#0e1217;color:var(--text);outline:none}
.field input:focus,.field textarea:focus,.field select:focus{border-color:#747f8b}
.choice-row{display:flex;flex-wrap:wrap;gap:10px}
.choice{padding:13px 15px;border-radius:14px;border:1px solid var(--line);background:#0f1318;color:var(--text)}
.choice.active{background:#fff;color:#111;border-color:#fff}
.summary{display:grid;grid-template-columns:1fr auto;gap:10px 20px}
.summary div{padding:9px 0;border-bottom:1px solid var(--line)}
.summary strong{text-align:right}
.status{padding:12px 14px;border-radius:14px;background:#101820;border:1px solid #263b50;color:#cfe8ff}
.success{background:#102016;border-color:#285439;color:#d8ffe4}
.signature-wrap{background:#fff;border-radius:18px;padding:10px}
.signature{width:100%;height:220px;display:block;border-radius:12px;touch-action:none;background:#fff}
.sig-actions{display:flex;gap:10px;margin-top:12px;align-items:center}
.presentation-panel{padding:14px}
.presentation{height:min(64vh,560px);border-radius:18px;background:linear-gradient(135deg,#f6f6f6,#d9d9d9);color:#0b0d10;display:grid;place-items:center;text-align:center;padding:30px;position:relative}
.presentation h2{font-size:54px;margin:0 0 12px}
.presentation p{font-size:24px;color:#37404a}
.presentation-key-hint{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);font-size:13px;color:#5e6872;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.08);border-radius:999px;padding:8px 13px;white-space:nowrap}
.ai-log{display:flex;flex-direction:column;gap:12px;min-height:280px}
.bubble{max-width:78%;padding:14px 16px;border-radius:18px;line-height:1.45}
.bubble.user{align-self:flex-end;background:#fff;color:#111}
.bubble.ai{align-self:flex-start;background:#18202a;border:1px solid var(--line)}
.home-sim{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.home-tile{padding:24px;border-radius:18px;border:1px solid var(--line);background:#0e1217;color:var(--text);font-size:20px;font-weight:800;min-height:120px;text-align:left}
.home-tile small{display:block;color:var(--muted);font-size:13px;font-weight:500;margin-top:8px}
.home-tile.active{background:#fff;color:#111}.home-tile.active small{color:#555}
.footer{display:flex;justify-content:space-between;gap:20px;padding:10px 20px;color:#727d88;border-top:1px solid var(--line);font-size:11px}

/* Housing sales workflow */
.workflow-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.workflow-step{border:1px solid var(--line);background:#0f1318;color:var(--muted);border-radius:15px;padding:11px 14px;text-align:left;font-weight:750}
.workflow-step span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid var(--line);margin-right:8px;font-size:12px}
.workflow-step.active{background:#fff;color:#111;border-color:#fff}
.workflow-step.active span{border-color:#bbb}
.property-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.65fr);gap:14px}
.property-main,.property-side{margin-bottom:0}
.property-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.property-title-row h2{margin:4px 0 0;font-size:24px}
.property-price{font-size:28px;font-weight:850;letter-spacing:-.03em;white-space:nowrap}
.floorplan{background:#f6f2e8;border-radius:16px;padding:8px;overflow:hidden}
.floorplan svg{width:100%;height:auto;display:block;max-height:460px}
.fp-shell{fill:#f9f6ee;stroke:#17202a;stroke-width:5}
.fp-room{fill:#fffdf8;stroke:#53606d;stroke-width:3}
.fp-door{stroke:#f9f6ee;stroke-width:10}
.fp-window{stroke:#4aa6d8;stroke-width:9;stroke-linecap:round}
.fp-label{font-size:25px;font-weight:800;text-anchor:middle;fill:#1a222b}
.fp-size{font-size:19px;text-anchor:middle;fill:#66717c}
.property-side h2{font-size:32px;margin:8px 0 10px}
.property-description{color:var(--muted);font-size:17px;line-height:1.5;margin:0 0 18px}
.property-stat{padding:15px 0;border-bottom:1px solid var(--line)}
.property-stat strong,.property-stat span{display:block}
.property-stat strong{font-size:17px;margin-bottom:4px}
.property-stat span{font-size:14px;color:var(--muted)}
.property-side .status{margin-top:18px}
.workflow-nav{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin-top:14px}
.key-hint{text-align:center;color:var(--muted);font-size:13px}
.photo-panel{display:grid;place-items:center;min-height:470px;overflow:hidden}
.property-photo-stack{position:relative;width:min(760px,88%);height:430px;cursor:pointer;outline:none}
.property-photo-stack:focus-visible{outline:2px solid #fff;outline-offset:6px;border-radius:20px}
.property-photo{position:absolute;inset:0;border-radius:24px;overflow:hidden;transform:translate(calc(var(--stack) * 16px),calc(var(--stack) * 12px)) rotate(calc(var(--stack) * 1.4deg));transform-origin:center;background:#26323d;border:1px solid rgba(255,255,255,.18);box-shadow:0 22px 60px rgba(0,0,0,.35)}
.property-photo.active{transform:none}
.property-photo::before{content:"";position:absolute;inset:0;background-size:cover;background-position:center}
.photo-living::before{background:linear-gradient(145deg,#b7c2c8 0 32%,#e8dfcf 32% 54%,#647480 54% 65%,#d6c2a3 65% 100%)}
.photo-kitchen::before{background:linear-gradient(120deg,#e7e0d5 0 28%,#63686e 28% 40%,#b69d82 40% 58%,#f1eee7 58% 76%,#454a50 76% 100%)}
.photo-bedroom::before{background:linear-gradient(145deg,#d9d3c8 0 35%,#8b7768 35% 50%,#ede7dc 50% 73%,#71808c 73% 100%)}
.photo-terrace::before{background:linear-gradient(180deg,#8db8d8 0 45%,#d7e4eb 45% 54%,#697a86 54% 63%,#948c76 63% 100%)}
.property-photo-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 48%,rgba(0,0,0,.74) 100%)}
.property-photo-label{position:absolute;left:26px;right:26px;bottom:24px;display:flex;flex-direction:column;gap:5px}
.property-photo-label strong{font-size:30px}
.property-photo-label span{color:#e1e6eb;font-size:15px}
.photo-count{position:absolute;right:18px;top:18px;z-index:20;background:rgba(8,10,12,.72);border:1px solid rgba(255,255,255,.15);border-radius:999px;padding:8px 11px;font-size:12px;color:#e8edf1}
.property-summary{margin-top:16px}
.property-signature{margin-top:14px}
.property-signature-layout .panel{margin-bottom:0}

@media(max-width:900px){
  .grid{grid-template-columns:1fr 1fr}.demo-grid{grid-template-rows:repeat(3,minmax(130px,1fr))}
  .two-col,.three-col,.property-layout{grid-template-columns:1fr}
  .presentation{height:420px}
  .photo-panel{min-height:390px}.property-photo-stack{height:350px}
}
@media(max-width:620px){
  .topbar{padding:11px 12px}.app{padding:16px 12px 28px}.grid{grid-template-columns:1fr}.demo-grid{grid-template-rows:none}.home-screen{min-height:auto}
  .home-intro{align-items:flex-start;flex-direction:column;gap:6px}.home-intro h1{font-size:30px}
  .footer{padding:10px 12px}.brand-sub{display:none}.view-head h1{font-size:32px}
  .workflow-steps{grid-template-columns:1fr}.presentation h2{font-size:38px}.presentation p{font-size:20px}
  .property-title-row{flex-direction:column}.workflow-nav{grid-template-columns:1fr 1fr}.key-hint{display:none}
}

/* v3: keyboard-first launcher + compact rental/delivery demos */
body[data-route="sales"] .footer,
body[data-route="delivery"] .footer{display:none}
body[data-route="sales"] .app,
body[data-route="delivery"] .app{padding:12px 16px 14px;overflow:hidden}

.demo-card:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.85),var(--shadow);border-color:#fff}
.view-head.compact{margin-bottom:8px;align-items:center}
.view-head.compact h1{font-size:30px;margin-bottom:2px}
.view-head.compact p{font-size:14px}

.sales-view,.delivery-view{height:calc(100dvh - 78px);display:flex;flex-direction:column;min-height:0}
.sales-content{flex:1;min-height:0;display:flex;flex-direction:column}
.sales-content>.property-layout,.sales-content>.two-col{flex:1;min-height:0}
.sales-key-hint{text-align:center;color:var(--muted);font-size:12px;padding-top:7px}

.workflow-steps{gap:8px;margin-bottom:8px}
.workflow-step{padding:8px 12px;border-radius:12px;font-size:13px}
.workflow-step span{width:20px;height:20px;font-size:11px;margin-right:7px}
.compact-property-layout{grid-template-columns:minmax(0,1.62fr) minmax(250px,.68fr);height:100%;gap:10px}
.compact-panel{padding:14px;margin-bottom:0}
.property-title-row{margin-bottom:6px}
.property-title-row h2{font-size:20px;margin-top:2px}
.property-price{font-size:25px}.property-price span{font-size:13px;color:var(--muted);margin-left:3px;font-weight:700}
.compact-property-layout .floorplan{height:calc(100% - 54px);display:grid;place-items:center;padding:5px}
.compact-property-layout .floorplan svg{max-height:100%;height:100%;width:100%}
.compact-property-layout .property-stat{padding:9px 0}
.compact-property-layout .property-stat strong{font-size:15px;margin-bottom:2px}
.compact-property-layout .property-stat span{font-size:12px}
.compact-status{padding:9px 11px;font-size:12px;line-height:1.35}
.compact-property-layout .property-side .status{margin-top:10px}
.property-side h2{font-size:27px;margin:5px 0 7px}
.property-description{font-size:15px;line-height:1.35;margin-bottom:10px}

.photo-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden;gap:8px}
.photo-gallery{position:relative;flex:1;min-height:0;width:100%;border-radius:17px;overflow:hidden;background:#1b2229;outline:none;touch-action:pan-y;user-select:none}
.photo-gallery:focus-visible{outline:2px solid #fff;outline-offset:2px}
.property-real-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:#1b2229}
.property-photo-shade{pointer-events:none}
.property-photo-label{z-index:4;left:18px;right:18px;bottom:15px;gap:2px}
.property-photo-label strong{font-size:24px}
.property-photo-label span{font-size:13px}
.photo-count{z-index:5;top:12px;right:12px;padding:6px 9px}
.gallery-arrow{position:absolute;z-index:6;top:50%;transform:translateY(-50%);width:46px;height:68px;border:0;border-radius:14px;background:rgba(8,10,12,.62);color:#fff;font-size:42px;display:grid;place-items:center;line-height:1;backdrop-filter:blur(4px)}
.gallery-arrow.left{left:10px}.gallery-arrow.right{right:10px}
.gallery-arrow:hover,.gallery-arrow:focus-visible{background:rgba(255,255,255,.92);color:#111;outline:none}
.photo-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.photo-tab{border:1px solid var(--line);background:#0f1318;color:var(--muted);border-radius:10px;padding:7px 8px;font-size:12px;font-weight:800;white-space:nowrap}
.photo-tab.active{background:#fff;color:#111;border-color:#fff}
.photo-tab:focus-visible{outline:2px solid #fff;outline-offset:2px}

.compact-signature-layout{height:100%;gap:10px}
.compact-signature-layout h2{font-size:22px;margin:6px 0 8px}
.compact-summary{gap:5px 16px;font-size:13px}
.compact-summary div{padding:6px 0}
.compact-field{gap:5px;margin:10px 0}
.compact-field label{font-size:11px}
.compact-field input{padding:10px 12px}
.signature-panel{display:flex;flex-direction:column}
.property-signature{margin-top:8px;flex:1;min-height:0}
.compact-signature{height:100%;min-height:145px;max-height:230px}
.sig-actions{margin-top:8px;gap:8px;flex-wrap:wrap}
.sig-actions .status{padding:8px 10px;font-size:12px;flex:1}

.delivery-meta{margin-bottom:9px}
.compact-three-col h2{margin:3px 0 0;font-size:20px}
.delivery-columns{flex:1;min-height:0;gap:10px}
.delivery-columns>.panel{height:100%;min-height:0}
.delivery-proof{display:flex;flex-direction:column}
.delivery-proof h2{font-size:25px;margin:5px 0}
.compact-copy{font-size:14px;color:var(--muted);margin:0 0 12px}
.delivery-check{display:block;margin:5px 0 12px;padding:12px}
.delivery-check input{margin-right:9px}
.done-button{margin-top:auto;align-self:flex-start;min-width:120px}
.delivery-signature{max-height:none;flex:1}

.completion-screen{min-height:calc(100vh - 116px);display:grid;place-items:center;padding:18px}
body[data-route="sales"] .completion-screen,
body[data-route="delivery"] .completion-screen{min-height:calc(100dvh - 78px)}
.completion-card{width:min(650px,92vw);background:linear-gradient(180deg,var(--panel),#101419);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:34px;text-align:center}
.completion-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#eaffef;color:#12642c;font-size:38px;font-weight:900}
.completion-card h1{font-size:38px;letter-spacing:-.035em;margin:7px 0 10px}
.completion-card>p{color:var(--muted);font-size:17px;line-height:1.45;margin:0 auto 20px;max-width:540px}
.completion-summary{display:grid;grid-template-columns:1fr auto;gap:0;text-align:left;border:1px solid var(--line);border-radius:16px;padding:3px 14px;margin:0 auto 20px;max-width:500px}
.completion-summary span,.completion-summary strong{padding:10px 0;border-bottom:1px solid var(--line)}
.completion-summary span:nth-last-child(-n+2),.completion-summary strong:nth-last-child(-n+2){border-bottom:0}
.completion-summary span{color:var(--muted)}
.completion-summary strong{text-align:right}
.completion-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}

@media (max-height:780px) and (min-width:901px){
  .topbar{padding-top:9px;padding-bottom:9px}
  .sales-view,.delivery-view{height:calc(100dvh - 68px)}
  .view-head.compact h1{font-size:26px}.view-head.compact p{font-size:12px}
  .workflow-step{padding:6px 10px}
  .compact-panel{padding:11px}
  .compact-property-layout .property-stat{padding:7px 0}
  .compact-signature{min-height:125px}
}

@media(max-width:900px){
  body[data-route="sales"] .app,body[data-route="delivery"] .app{overflow:auto}
  .sales-view,.delivery-view{height:auto;min-height:calc(100vh - 100px)}
  .compact-property-layout,.compact-signature-layout,.delivery-columns{grid-template-columns:1fr;height:auto}
  .compact-property-layout .floorplan{height:auto}.compact-property-layout .floorplan svg{height:auto;max-height:360px}
  .photo-gallery{height:340px;flex:none}.photo-tabs{grid-template-columns:repeat(2,1fr)}
  .completion-screen{min-height:70vh}
}

/* v4: reserve ~10% vertical breathing room on fixed demo flows */
body[data-route="sales"],
body[data-route="delivery"]{
  height:100dvh;
  overflow:hidden;
}
body[data-route="sales"] .app,
body[data-route="delivery"] .app{
  flex:0 0 auto;
  width:min(1240px,100%);
}
.sales-view,.delivery-view{
  height:calc(90dvh - 78px);
  max-height:calc(90dvh - 78px);
}
.compact-signature-layout{
  min-height:0;
  overflow:hidden;
}
.signature-panel{
  min-height:0;
  overflow:hidden;
}
.property-signature{
  min-height:0;
  margin-top:6px;
}
.signature-wrap{
  padding:7px;
}
.compact-signature{
  min-height:105px;
  max-height:175px;
}
.sig-actions{
  margin-top:5px;
}

@media (max-height:780px) and (min-width:901px){
  .sales-view,.delivery-view{
    height:calc(90dvh - 68px);
    max-height:calc(90dvh - 68px);
  }
  .compact-signature{min-height:95px;max-height:155px}
  .compact-field{margin:7px 0}
  .compact-summary div{padding:4px 0}
}


/* v5: apartment floor plan + easier rental signature */
.compact-property-layout .floorplan{
  height:calc(100% - 66px);
  min-height:0;
  overflow:hidden;
}
.compact-property-layout .floorplan svg{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}
.rental-signature-layout{
  grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);
  align-items:stretch;
}
.rental-signature-layout > .panel{
  min-height:0;
  height:100%;
}
.rental-signature-layout .compact-summary{
  font-size:12px;
  gap:3px 12px;
}
.rental-signature-layout .compact-summary div,
.rental-signature-layout .compact-summary strong{
  padding:4px 0;
}
.rental-signature-layout .compact-field{
  margin:6px 0;
}
.rental-signature-layout .compact-field input{
  padding:8px 10px;
}
.rental-signature-wrap{
  flex:1 1 auto;
  min-height:0;
  margin-top:5px;
  padding:8px;
  display:flex;
}
.rental-signature-canvas{
  flex:1 1 auto;
  width:100%;
  height:100%;
  min-height:185px;
  max-height:none;
  touch-action:none;
}
.rental-signature-layout .sig-actions{
  flex:0 0 auto;
}
@media (max-height:780px) and (min-width:901px){
  .rental-signature-canvas{min-height:165px;max-height:none}
  .compact-property-layout .floorplan{height:calc(100% - 70px)}
}
@media(max-width:900px){
  .rental-signature-layout{grid-template-columns:1fr}
  .rental-signature-canvas{min-height:220px}
}


/* v6: tighter launcher, fully contained rental floor plan, cursor + key + swipe navigation */
body[data-route="home"]{
  height:100dvh;
  overflow:hidden;
}
body[data-route="home"] .footer{display:none}
body[data-route="home"] .app{
  flex:1 1 auto;
  min-height:0;
  padding:10px 16px 12px;
  overflow:hidden;
}
body[data-route="home"] .home-screen{
  height:100%;
  min-height:0;
}
body[data-route="home"] .home-intro{
  margin:0 2px 8px;
  flex:0 0 auto;
}
body[data-route="home"] .home-intro h1{
  font-size:29px;
  margin-top:2px;
}
body[data-route="home"] .home-intro p{font-size:13px}
body[data-route="home"] .demo-grid{
  flex:1 1 auto;
  min-height:0;
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:10px;
}
body[data-route="home"] .demo-card{
  padding:14px 16px;
  gap:12px;
}
body[data-route="home"] .demo-card .icon{font-size:31px}
body[data-route="home"] .demo-card-copy h3{font-size:21px;margin-bottom:4px}
body[data-route="home"] .demo-card-copy p{font-size:12.5px;line-height:1.25}

/* Allow grid/flex children to truly shrink so the full floor plan remains visible. */
.compact-property-layout,
.compact-property-layout > *,
.compact-property-layout .property-main,
.compact-property-layout .property-side{
  min-height:0;
}
.compact-property-layout .property-main{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.compact-property-layout .property-title-row{flex:0 0 auto}
.compact-property-layout .floorplan{
  flex:1 1 auto;
  width:100%;
  height:auto;
  min-height:0;
  padding:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.compact-property-layout .floorplan svg{
  flex:0 1 auto;
  width:100%;
  height:100%;
  min-height:0;
  max-width:100%;
  max-height:100%;
  display:block;
}

/* Visible mouse/cursor page navigation for multi-page demos. */
.demo-page-nav{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:140px 1fr 140px;
  align-items:center;
  gap:10px;
  margin-top:7px;
}
.demo-page-nav .nav-center{
  text-align:center;
  color:var(--muted);
  font-size:12px;
}
.demo-page-nav button{min-width:0}

.presentation-wrap{
  height:calc(100dvh - 106px);
  max-height:calc(100dvh - 106px);
  display:flex;
  flex-direction:column;
  min-height:0;
}
.presentation-wrap .view-head{flex:0 0 auto}
.presentation-wrap .presentation-panel{
  flex:1 1 auto;
  min-height:0;
  margin-bottom:0;
  display:flex;
  padding:12px;
}
.presentation-wrap .presentation{
  flex:1 1 auto;
  height:auto;
  min-height:0;
}

@media (max-height:760px) and (min-width:901px){
  body[data-route="home"] .topbar{padding-top:9px;padding-bottom:9px}
  body[data-route="home"] .brand-mark{width:34px;height:34px}
  body[data-route="home"] .home-intro h1{font-size:27px}
  body[data-route="home"] .demo-card{padding:11px 14px}
  body[data-route="home"] .demo-card .icon{font-size:28px}
  body[data-route="home"] .demo-card-copy h3{font-size:19px}
  body[data-route="home"] .demo-card-copy p{font-size:12px}
}

/* v7: reserve space for Samsung tablet taskbar; shorter launcher tiles */
body[data-route="home"] .app{
  padding:8px 16px 8px;
}
body[data-route="home"] .home-intro{
  margin:0 2px 5px;
}
body[data-route="home"] .home-intro h1{
  font-size:26px;
  margin-top:0;
}
body[data-route="home"] .home-intro p{
  font-size:12px;
}
body[data-route="home"] .demo-grid{
  flex:0 0 auto;
  grid-template-rows:repeat(2, minmax(92px, 112px));
  gap:8px;
  align-content:start;
}
body[data-route="home"] .demo-card{
  min-height:92px;
  max-height:112px;
  padding:9px 13px;
  gap:10px;
  border-radius:18px;
}
body[data-route="home"] .demo-card .icon{
  font-size:27px;
}
body[data-route="home"] .demo-card-copy h3{
  font-size:18px;
  margin-bottom:2px;
}
body[data-route="home"] .demo-card-copy p{
  font-size:11.5px;
  line-height:1.18;
}
body[data-route="home"] .card-arrow{
  font-size:18px;
}

@media (max-height:760px) and (min-width:901px){
  body[data-route="home"] .topbar{padding-top:7px;padding-bottom:7px}
  body[data-route="home"] .brand-mark{width:32px;height:32px}
  body[data-route="home"] .home-intro{margin-bottom:4px}
  body[data-route="home"] .home-intro h1{font-size:24px}
  body[data-route="home"] .demo-grid{grid-template-rows:repeat(2, minmax(84px, 100px));gap:7px}
  body[data-route="home"] .demo-card{min-height:84px;max-height:100px;padding:7px 12px}
  body[data-route="home"] .demo-card .icon{font-size:25px}
  body[data-route="home"] .demo-card-copy h3{font-size:17px}
  body[data-route="home"] .demo-card-copy p{font-size:11px}
}


/* v8: persistent Samsung taskbar reserve + keyboard control selection */
body[data-route="presentation"]{
  height:100dvh;
  overflow:hidden;
}
body[data-route="presentation"] .footer{display:none}
body[data-route="presentation"] .app{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  padding:8px 16px calc(54px + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
}
body[data-route="presentation"] .presentation-wrap{
  flex:1 1 auto;
  height:auto;
  max-height:none;
  min-height:0;
}
body[data-route="presentation"] .presentation-wrap .view-head{
  margin-bottom:6px;
}
body[data-route="presentation"] .presentation-wrap .presentation-panel{
  padding:8px;
  flex:1 1 auto;
  min-height:0;
}
body[data-route="presentation"] .presentation-wrap .presentation{
  height:100%;
  min-height:0;
  padding:22px;
}
body[data-route="presentation"] .presentation-wrap .presentation h2{
  font-size:clamp(34px,5.2vw,50px);
}
body[data-route="presentation"] .presentation-wrap .presentation p{
  font-size:clamp(18px,2.4vw,23px);
}
body[data-route="presentation"] .presentation-wrap .demo-page-nav{
  margin-top:6px;
}

/* Programmatic Up/Down focus should be very obvious from across the table. */
body[data-route="sales"] button:focus,
body[data-route="delivery"] button:focus,
body[data-route="delivery"] input[type="checkbox"]:focus{
  outline:3px solid #fff;
  outline-offset:3px;
  box-shadow:0 0 0 6px rgba(255,255,255,.12);
}
body[data-route="delivery"] input[type="checkbox"]{
  width:20px;
  height:20px;
  vertical-align:middle;
}

@media (max-height:760px) and (min-width:901px){
  body[data-route="presentation"] .app{
    padding-top:6px;
    padding-bottom:calc(50px + env(safe-area-inset-bottom));
  }
  body[data-route="presentation"] .presentation-key-hint{
    bottom:10px;
    padding:6px 10px;
  }
  body[data-route="presentation"] .demo-page-nav{
    margin-top:4px;
  }
}
