/* Responsive Simple View suite */
.v32-mobile-menu{display:none;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border:1px solid #dbe2eb;border-radius:11px;background:var(--v32-surface,#fff);font-size:21px;color:inherit}
.v32-mobile-backdrop{display:none}
@media(max-width:834px){
  html,body,#app,.v27app,.workspace,.main{max-width:100%;min-width:0}
  .content{width:100%;max-width:100%;padding-left:24px;padding-right:24px}
  .grid4,.clickrow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .grid4 .cell,.clickrow .cell{min-width:0;padding:16px 18px;overflow-wrap:anywhere}
  .grid4 .cell:first-child{grid-column:1/-1}
  .clickrow{display:flex;flex-wrap:wrap;align-items:stretch}
  .clickrow>.cell{flex:1 1 calc(50% - 1px);min-width:0}
  .clickrow>.cell:first-child{flex:1 1 100%;padding:0 18px 0 0;grid-column:auto}
  .clickrow>.cell.no-photo:first-child{padding-left:24px}
  .photoGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}
  .photoGrid .photo{width:100%;min-width:0}
  .photoGrid .photo img{width:100%;height:auto;aspect-ratio:1.3;object-fit:cover}
  .strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .modalback{padding:12px;align-items:center}
  .modal,.drawer,.property-dropdown{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);overflow:auto}
  .modal{padding:22px 20px}
  .modalgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .popover{max-width:calc(100vw - 24px);overflow-wrap:anywhere}
  .toolbar .quick{flex-wrap:wrap;overflow:visible}
}
@media(max-width:768px){
  .side{display:flex!important;position:fixed!important;z-index:1001!important;inset:0 auto 0 0!important;width:min(310px,calc(100vw - 52px))!important;height:100dvh!important;max-height:100dvh;overflow-y:auto;transform:translateX(-105%);transition:transform 220ms cubic-bezier(.22,1,.36,1);box-shadow:12px 0 36px #0f172a30;padding-top:20px}
  .v32-mobile-open .side{transform:translateX(0)}
  .v32-mobile-open .side .brandname,.v32-mobile-open .side .selector-info,.v32-mobile-open .side .nav a span,.v32-mobile-open .side .sidefooter button span{display:block!important;visibility:visible!important;opacity:1!important}
  .v32-mobile-open .side .cover-selector{display:block!important;width:calc(100% - 28px)!important;height:auto!important;margin:12px 14px!important;overflow:hidden}
  .v32-mobile-open .side .cover-selector>img{display:block!important;width:100%!important;height:76px!important;object-fit:cover;border-radius:9px 9px 0 0}
  .v32-mobile-open .side .selector-info{display:flex!important;align-items:center;justify-content:space-between;width:100%;height:auto!important;min-height:58px;padding:10px 12px;background:var(--card);border:1px solid var(--line);border-top:0;border-radius:0 0 9px 9px}
  .v32-mobile-open .side .navbadge{display:inline-flex!important}
  .v32-mobile-open.rail .side{width:min(310px,calc(100vw - 52px))!important}
  .v32-mobile-open .side .nav a{justify-content:flex-start!important;width:100%}
  .v32-mobile-open .side .brandrow{position:relative;width:100%;padding-right:52px}
  .v32-mobile-open .side #navToggle{display:flex!important;position:absolute;right:12px;top:4px;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font-size:24px}
  .v32-mobile-backdrop{display:block;position:fixed;inset:0;z-index:1000;background:#0f172a80;opacity:0;pointer-events:none;transition:opacity 180ms ease}
  body.v32-mobile-nav-open .v32-mobile-backdrop{opacity:1;pointer-events:auto}
  .v32-mobile-menu{display:inline-flex}
  .appheader{height:auto;min-height:64px}
  .header-inner{min-width:0;gap:8px;padding:8px 12px;flex-wrap:wrap}
  .breadcrumbs{order:2;min-width:0;flex:0 0 100%;max-width:100%;overflow:visible;white-space:normal;display:flex;flex-wrap:wrap;align-items:center;font-size:14px;line-height:1.5}
  .breadcrumbs a{white-space:normal;max-width:100%}
  #organization,#themeToggle,#notifications,#userMenu{order:3}
  .global-search{display:none!important}
  .org{display:flex!important;align-items:center;justify-content:center;max-width:42px;min-width:42px;width:42px;height:40px;overflow:hidden;white-space:nowrap;padding:0!important}
  .org span{display:none}
  .header-popover{left:auto!important;right:12px!important;width:min(330px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important}
  .content{padding:18px 14px 92px}
  .heading{align-items:flex-start;gap:12px;flex-direction:column}
  .heading h1{font-size:24px}
  .actions{flex-wrap:wrap;max-width:100%}
  .grid4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .grid4 .cell:first-child{grid-column:1/-1}
  .clickrow{display:flex;flex-wrap:wrap;align-items:stretch}
  .clickrow>.cell{flex:1 1 calc(50% - 1px);min-width:0}
  .clickrow>.cell:first-child{flex:1 1 100%;min-height:92px;padding:0 18px 0 0!important;grid-column:auto}
  .clickrow>.cell.no-photo:first-child{padding-left:24px!important}
  .clickrow{margin:10px 0}
  .clickrow .cell{min-height:64px;border-bottom:1px solid var(--line)!important;border-right:1px solid var(--line)!important}
  .clickrow>.cell:nth-child(odd){border-right:0!important}
  .clickrow .cell:first-child{min-height:82px;border-right:0!important}
  .identity{max-width:100%;overflow-wrap:anywhere}
  .identity>div{min-width:0;overflow-wrap:anywhere}
  .strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
  .stat{min-width:0;padding:13px 13px 30px}
  .stat b{font-size:20px}
  .v32-setup-grid{grid-template-columns:1fr!important}
  .v32-setup-grid>*{min-width:0;width:100%}
  .v32-setup-grid button,.v32-setup-grid a{width:100%;justify-content:center}
  .v32-setup-item{flex-wrap:wrap}
  .v32-setup-copy{flex:1 1 calc(100% - 42px)}
  .v32-setup-item .v32-setup-cta{flex:0 1 calc(100% - 33px)!important;width:calc(100% - 33px)!important;min-height:40px!important;margin-left:33px}
  .photoGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;gap:10px}
  .photoGrid .photo{width:100%;height:auto;min-width:0}
  .photoGrid .photo img{width:100%;height:auto;aspect-ratio:1.2;object-fit:cover}
  .modalback{padding:12px}
  .modal,.drawer,.property-dropdown{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);padding:20px 18px}
  .modalgrid{grid-template-columns:1fr;gap:14px}
  .modalhead{position:sticky;top:-20px;background:inherit;z-index:2;padding:4px 0 10px}
  .property-dropdown{left:12px!important;right:12px!important}
  .notice{left:12px;right:12px;top:72px}
  .switcher,.scale-toggle{max-width:calc(100vw - 24px)}
}
@media(max-width:390px){.content{padding-left:12px;padding-right:12px}.top,.header-inner{padding-left:10px!important;padding-right:10px!important}.strip{gap:7px}.grid4 .cell,.clickrow .cell{padding-left:14px;padding-right:14px}}
body.dark .v32-mobile-menu{background:#111827;border-color:#334155;color:#f8fafc}
/* Final geometry: two header rows, wrapping actions, and contained dialog content. */
@media(max-width:834px){
 .modalback .modal{padding:0!important;min-width:0}
 .modal .modalhead{height:auto;min-height:90px;padding:20px!important;top:0;flex-shrink:0;background:var(--card)}
 .v32-modal-body{padding:20px;min-width:0;min-height:0;overflow:auto;flex:1 1 auto}
 .v32-modal-footer{padding:14px 20px;flex-shrink:0}
 .modaltools,.modalfoot{height:auto;min-height:56px;padding:14px 20px;flex-wrap:wrap;gap:10px}
 .modalgrid{padding:20px;min-width:0}
 .modal .cell>div{min-width:0;overflow-wrap:anywhere}
 .modal input,.modal select,.modal textarea{max-width:100%;min-width:0}
 .review-summary{flex-wrap:wrap}
 .clickrow{margin-bottom:14px}
 .clickrow>.cell{border-color:var(--line)!important}
 .property-dropdown{z-index:1100}
}
@media(max-width:768px){
 .appheader{height:auto;flex:0 0 auto;min-height:104px}
 .header-inner{padding:8px 12px!important;gap:6px;align-content:center;align-items:center}
 .header-inner>button{order:1;flex-shrink:0}
 .header-inner #mobileMenu{margin-right:auto}
 .header-inner .org{display:inline-flex!important;align-items:center;justify-content:center;max-width:none;width:42px;height:40px;margin-left:0;padding:0;gap:3px}
 .breadcrumbs{order:2;display:flex;flex-wrap:wrap;flex:1 1 100%;max-width:100%;width:100%;overflow:visible;white-space:normal;gap:0;font-size:14px;font-weight:500;padding:2px 0}
 .breadcrumbs a,.breadcrumbs strong{white-space:nowrap;max-width:100%;overflow:visible;text-overflow:clip}
 .breadcrumbs a{padding:4px 6px}
 .breadcrumbs>span{font-size:16px}
 .v32-setup-item{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:12px;gap:8px}
 .v32-setup-copy{flex:1 1 calc(100% - 40px);min-width:0}
 .v32-setup-copy strong{font-size:13px}.v32-setup-copy small{font-size:11px;line-height:1.4}
 .v32-setup-item .v32-setup-cta{flex:0 0 100%;width:100%;max-width:100%;min-width:0;justify-content:center;min-height:36px;margin:0}
 .v32-setup-item .v32-setup-check{flex:0 0 25px}
 .clickrow{margin:0 0 14px}
 .clickrow>.cell:first-child{padding:0 18px 0 0!important}
 .clickrow>.cell.no-photo:first-child{padding-left:24px!important}
 .side .nav a{height:40px!important}
 .v32-mobile-open .side .brandrow{width:100%;min-height:44px;margin-bottom:0}
 .v32-mobile-open .side .brandname{display:block!important}
 .v32-mobile-open .side .selector-info{white-space:normal}
 .v32-mobile-open .side .sidefooter{padding-bottom:12px}
 .modalback .modal{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)}
 .modalgrid{grid-template-columns:1fr}
 .modal .btn{max-width:100%}
 .property-dropdown{padding:0;top:112px;max-height:calc(100dvh - 124px)}
 .property-option strong{white-space:normal}
}
@media(max-width:768px){
 .header-inner #organization,.header-inner #themeToggle,.header-inner #notifications,.header-inner #userMenu{order:1}
}

@media(max-width:768px){.side{visibility:hidden;pointer-events:none}.v32-mobile-open .side{visibility:visible;pointer-events:auto}}
@media(max-width:1100px){
 .heading{flex-wrap:wrap;gap:16px}
 .heading>div:first-child{min-width:0;max-width:100%}
 .heading .actions,.sectitle .actions{flex-wrap:wrap;min-width:0;max-width:100%}
 .sectitle{flex-wrap:wrap;gap:12px}
}
@media(min-width:769px) and (max-width:1100px){
 .appheader{height:auto;min-height:104px}
 .header-inner{height:auto;min-height:104px;flex-wrap:wrap;align-content:center;gap:6px;padding-top:8px;padding-bottom:8px}
 .header-inner>button{order:1}
 .header-inner .org{display:inline-flex;order:1;margin-left:auto}
 .breadcrumbs{order:2;display:flex;flex:1 1 100%;flex-wrap:wrap;width:100%;max-width:100%;overflow:visible;white-space:normal;font-size:15px;gap:2px}
 .breadcrumbs a,.breadcrumbs strong{white-space:nowrap;max-width:100%;overflow:visible}
 .breadcrumbs a{padding:6px 10px}
}
@media(max-width:834px){.property-dropdown{width:min(384px,calc(100vw - 24px))!important}}
