/* Roby Realty Agent Portal: app shell (sidebar, top bar, one page at a time) */
:root{--sb:256px;--tb:64px;--bg:#0F0E0C;--card:#161411;--card2:#1C1915;--r:12px}
body.sh-on{background:var(--bg)}
body.sh-on #app{padding-left:var(--sb);min-height:100vh;background:var(--bg)}

/* hide the old full screen menu, burger, and top tabs */
body.sh-on #menu,body.sh-on #menuBtn,body.sh-on #pgTabs{display:none!important}

/* one page at a time */
body.sh-on #app main>*{display:none}
body.sh-on #app main>.sh-cur{display:block}
body.sh-on #app main>.sh-cur[hidden]{display:none}
body.sh-on #app main>.sh-vhide{display:none!important}
body.sh-on #app main>section.sh-cur>.wrap,body.sh-on #app main>.sh-cur .rv{opacity:1;transform:none}

/* sidebar */
.sb{position:fixed;left:0;top:0;bottom:0;width:var(--sb);z-index:60;background:#0A0A09;border-right:1px solid rgba(225,196,122,.14);display:flex;flex-direction:column}
.sb-logo{display:flex;align-items:center;gap:10px;padding:18px 20px 14px;text-decoration:none}
.sb-logo img{height:40px;width:auto}
.sb-logo span{font-family:var(--serif);font-size:17px;color:var(--ivory);line-height:1;border-left:1px solid rgba(225,196,122,.3);padding-left:10px}
.sb-scroll{flex:1;overflow-y:auto;padding:4px 12px 16px;scrollbar-width:thin;scrollbar-color:#2A2620 transparent}
.sb-g{margin-top:14px}
.sb-gl{font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:rgba(225,196,122,.7);padding:6px 10px}
.sb a.sb-i{display:flex;align-items:center;gap:12px;padding:9px 10px;margin:1px 0;border-radius:8px;color:rgba(244,239,230,.78);text-decoration:none;font-size:14px;font-weight:500;transition:background .15s,color .15s}
.sb a.sb-i svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.sb a.sb-i:hover{background:rgba(244,239,230,.05);color:var(--ivory)}
.sb a.sb-i.on{background:linear-gradient(90deg,rgba(225,196,122,.16),rgba(225,196,122,.04));color:var(--gold);box-shadow:inset 2px 0 0 var(--gold)}
.sb a.sb-i.on svg{opacity:1}
.sb-b{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--gold);color:var(--ink);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.sb-b.dim{background:rgba(244,239,230,.1);color:rgba(244,239,230,.75)}
.sb-me{border-top:1px solid rgba(225,196,122,.14);padding:14px 16px;display:flex;align-items:center;gap:10px}
.sb-me img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:1px solid var(--line);flex:none;background:#1C1A17}
.sb-me div{min-width:0;flex:1}
.sb-me b{display:block;font-size:13.5px;color:var(--ivory);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-me small{display:block;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-out{background:none;border:1px solid var(--line);color:var(--gold);border-radius:8px;padding:7px 9px;cursor:pointer;line-height:0}
.sb-out svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sb-out:hover{border-color:var(--gold)}
.sb-tag{font-family:var(--serif);font-style:italic;color:rgba(225,196,122,.75);font-size:14px;padding:0 20px 14px}
.sb-veil{display:none}

/* top bar (the old header, restyled) */
body.sh-on header.top{background:rgba(15,14,12,.88);border-bottom:1px solid rgba(244,239,230,.06)}
body.sh-on header.top .wrap.topin{max-width:none;height:var(--tb);padding:0 28px}
body.sh-on .topin>a:first-of-type{display:none}
body.sh-on .topin .pt{display:none}
.tb-burger{display:none;background:none;border:1px solid var(--line);border-radius:8px;color:var(--gold);padding:8px;cursor:pointer;line-height:0}
.tb-burger svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round}
.tb-title{min-width:0}
.tb-title small{display:block;font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:rgba(225,196,122,.75)}
.tb-title b{display:block;font-family:var(--serif);font-weight:500;font-size:24px;line-height:1.1;color:var(--ivory);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-search{position:relative;margin-left:28px;flex:0 1 360px}
.tb-search input{width:100%;background:var(--card);border:1px solid rgba(244,239,230,.1);color:var(--cream);border-radius:10px;padding:10px 12px 10px 38px;font-size:14px}
.tb-search input:focus{outline:none;border-color:var(--gold)}
.tb-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:1.8;stroke-linecap:round}
body.sh-on .viewas{top:var(--tb)}
body.sh-on .glang{border-radius:8px;overflow:hidden}

/* page canvas */
body.sh-on #app main{padding-bottom:40px}
body.sh-on #app main .wrap{max-width:1180px;padding:0 28px}
body.sh-on #app main section{padding:30px 0 56px;border-bottom:0}
body.sh-on #app main .sh{margin-bottom:20px}
body.sh-on #app main .sh h2{font-size:34px}
body.sh-on #app main .sh .label{display:none}

/* softer, card based surfaces */
body.sh-on :is(.panel,.rcard,.tile,.card,.dcard,.tcard,.ws-card,.res,.ev){border-radius:var(--r);background:var(--card);border-color:rgba(244,239,230,.07)}
body.sh-on :is(.btn){border-radius:8px}
body.sh-on .field :is(input,select,textarea),body.sh-on .lq :is(input,select),body.sh-on .cl-bar :is(input,select){border-radius:8px}
body.sh-on .nudge{border-radius:0 var(--r) var(--r) 0}
body.sh-on .cl-table{border-radius:var(--r);overflow:hidden;background:var(--card)}

/* match the card look on add on widgets */
body.sh-on :is(.pl-chip,.pl-box,.lq,.cl-chip,.pl-note){border-radius:10px}
body.sh-on .pl-chip{background:var(--card);border-color:rgba(244,239,230,.08)}
body.sh-on .pl-chip:hover{border-color:rgba(225,196,122,.45)}

/* dashboard home */
body.sh-on #home .hero{grid-template-columns:84px 1fr;gap:20px;align-items:start;padding:30px 0 10px}
body.sh-on #home .hero .ph img{aspect-ratio:1;border-radius:50%;border:2px solid var(--gold3)}
body.sh-on #home .hero .ph:after{display:none}
body.sh-on #home .hero h1{font-size:40px;margin:4px 0 2px}
body.sh-on #home .hero .role{margin-bottom:18px}
body.sh-on #home .tiles{gap:14px}
body.sh-on #home .tile{padding:18px}
body.sh-on #home .tile b{font-size:36px}
.qa{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0 6px}
.qa a{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--r);background:var(--card);border:1px solid rgba(244,239,230,.07);color:var(--cream);text-decoration:none;font-size:14px;font-weight:600;transition:border-color .2s,transform .2s,background .2s}
.qa a small{font-size:12px;font-weight:400;color:var(--muted);line-height:1.4}
.qa a i{width:36px;height:36px;border-radius:10px;background:rgba(225,196,122,.12);display:flex;align-items:center;justify-content:center}
.qa a i svg{width:18px;height:18px;stroke:var(--gold);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qa a:hover{border-color:rgba(225,196,122,.45);transform:translateY(-2px);background:var(--card2)}
.qa-h{font-size:10.5px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:rgba(225,196,122,.8);margin:22px 0 0}

/* page change animation */
body.sh-on #app main>.sh-cur{animation:shIn .35s cubic-bezier(.2,.7,.2,1)}
@keyframes shIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* bottom bar for phones */
.bb{display:none}

@media (max-width:1100px){
  .tb-search{display:none}
  .qa{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1023px){
  body.sh-on #app{padding-left:0;padding-bottom:72px}
  .sb{transform:translateX(-102%);transition:transform .28s cubic-bezier(.2,.7,.2,1);box-shadow:none}
  body.sb-open .sb{transform:none;box-shadow:20px 0 60px rgba(0,0,0,.6)}
  body.sb-open .sb-veil{display:block;position:fixed;inset:0;z-index:59;background:rgba(0,0,0,.55)}
  body.sb-open{overflow:hidden}
  .tb-burger{display:inline-flex}
  body.sh-on header.top .wrap.topin{padding:0 16px}
  .tb-title b{font-size:20px}
  body.sh-on #app main .wrap{padding:0 16px}
  body.sh-on #app main section{padding:22px 0 40px}
  body.sh-on #app main .sh h2{font-size:28px}
  .bb{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:55;background:rgba(10,10,9,.96);backdrop-filter:blur(10px);border-top:1px solid rgba(225,196,122,.16);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
  .bb a,.bb button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;color:rgba(244,239,230,.7);text-decoration:none;font-size:10.5px;font-weight:600;background:none;border:0;cursor:pointer;font-family:var(--sans);position:relative}
  .bb svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .bb .on{color:var(--gold)}
  .bb .sb-b{position:absolute;top:0;left:calc(50% + 6px);margin:0;height:16px;min-width:16px;font-size:10px;padding:0 4px}
  body.sh-on .ws-help{bottom:84px!important}
}
@media (max-width:640px){
  .qa{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.sh-on #home .hero{display:block;padding-top:20px}
  body.sh-on #home .hero .ph{width:64px;margin-bottom:12px}
  body.sh-on .pl-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.sh-on #home .hero h1{font-size:30px}
  body.sh-on #home .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.sh-on .glang{display:none}
}
@media (prefers-reduced-motion:reduce){
  body.sh-on #app main>.sh-cur{animation:none}
  .sb{transition:none}
}