/* Local-first home/sidebar redesign. Remove this stylesheet + body class to disable.
   No API, permission, delivery, reservation, or chart calculation is changed. */
.lupii-saas-home #dashboardView [data-go="broadcast"]::before{content:none}
.lupii-saas-home #dashboardView #activityList>.empty-table{padding:17px 14px!important;text-align:left!important}
.lupii-saas-home .sidebar{background:#16232e;padding:12px 10px 8px;color:#d5dee4}
.lupii-saas-home .sidebar .brand{padding:0 6px 14px;min-height:70px;justify-content:flex-start}
.lupii-saas-home .sidebar .brand-logo{display:block;width:168px;max-width:100%;height:auto;max-height:70px;object-fit:contain;border-radius:8px}
.lupii-saas-home .nav-list{display:flex;flex-direction:column;gap:3px;border:0;flex:1;min-height:0;overflow-y:auto;padding:0 2px 8px;scrollbar-width:thin}
.lupii-saas-home .nav-section-label{margin:13px 10px 6px;color:#a7b6c0;font-size:10px;line-height:1.4;font-weight:600;letter-spacing:.08em;flex-shrink:0}
.lupii-saas-home .nav-section-label:first-child{margin-top:0}
.lupii-saas-home .sidebar .nav-item,.lupii-saas-home .sidebar .nav-action{position:relative;flex-shrink:0;min-height:36px;height:36px;border:0;border-radius:7px;padding:0 11px;color:#d8e0e5;background:transparent;font-size:12px;font-weight:600;letter-spacing:0;box-shadow:none}
.lupii-saas-home .sidebar .nav-item{grid-template-columns:22px minmax(0,1fr) auto;gap:10px}
.lupii-saas-home .sidebar svg.nav-icon{width:19px;height:19px;stroke-width:1.65;color:inherit}
.lupii-saas-home .sidebar .nav-item:hover,.lupii-saas-home .sidebar .nav-action:hover{background:#253542;color:#fff}
.lupii-saas-home .sidebar .nav-item.is-active{background:#154e48;color:#dffff6;box-shadow:none}
.lupii-saas-home .sidebar .nav-action{margin-top:6px;color:#d3beba;gap:12px}
.lupii-saas-home .sidebar-foot{display:block;padding:9px 2px 0;border-top:1px solid #31404b}
.lupii-saas-home .account-switch{padding:6px 7px}.lupii-saas-home .account-switch b{font-size:11px}.lupii-saas-home .account-switch small{font-size:10px;color:#a6b8bd}
.lupii-saas-home .account-avatar{width:30px;height:30px;flex-shrink:0}
.lupii-saas-home .sidebar button:focus-visible{outline:2px solid #81d7c1;outline-offset:-2px}
/* Keep the existing header height: conversation/scenario fixed-height calculations depend on it. */
.lupii-saas-home .topbar{box-shadow:none;background:#fff}
.lupii-saas-home .global-project-switcher{padding:5px 7px;background:#f7f9f9;border:1px solid #dce4e5;border-radius:8px;gap:8px}
.lupii-saas-home .global-project-switcher label{font-size:10px;font-weight:600;color:#63747c}
.lupii-saas-home .global-project-switcher select{background:transparent;font-weight:600;color:#213b45}
.lupii-saas-home .global-project-switcher span{background:#eaf0ef;color:#42615c;border-radius:5px;font-weight:600}
.lupii-saas-home:has(#dashboardView.is-visible) .topbar>div:not(.global-project-switcher):not(.top-actions){display:none}
.lupii-saas-home #dashboardView{max-width:1580px;padding:26px 28px 32px;background:#f6f8f8;gap:16px}
.lupii-saas-home #dashboardView.is-visible{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);grid-template-areas:'head head' 'stats stats' 'activity chart' 'scenario chart' 'shortcuts shortcuts';align-items:start}
.lupii-saas-home #dashboardView .dashboard-head{grid-area:head;margin-bottom:3px;align-items:center;gap:18px}
.lupii-saas-home #dashboardView .dashboard-head .eyebrow{font-size:11px!important;font-weight:500;color:#75868c!important;margin:0 0 8px}
.lupii-saas-home #dashboardView .saas-page-heading{font-size:29px;line-height:1.3;letter-spacing:-.035em;margin:0 0 5px;color:#192e38}
.lupii-saas-home #dashboardView #dashboardGreeting{font-size:13px;font-weight:600;color:#455d65;margin:0}
.lupii-saas-home #dashboardView .dashboard-intro{font-size:12px;color:#73858a;margin-top:5px}
.lupii-saas-home #dashboardView .primary-button,.lupii-saas-home #dashboardView .secondary-button{min-height:40px;padding:10px 15px;border-radius:7px;box-shadow:none;transform:none;font-size:12px;line-height:1.4}
.lupii-saas-home #dashboardView .primary-button{background:#008b78;border:1px solid #008b78;box-shadow:none}
.lupii-saas-home #dashboardView .primary-button:hover{background:#007665}
.lupii-saas-home #dashboardView .secondary-button{background:#fff;border:1px solid #d7e1e2;color:#455b66}
.lupii-saas-home #dashboardView .stat-grid{grid-area:stats;display:grid;grid-template-columns:1.3fr .85fr 1fr 1.3fr;gap:0;margin:0;border:1px solid #e0e7e7;border-radius:9px;overflow:hidden;background:#fff}
.lupii-saas-home #dashboardView .stat-card{min-width:0;border:0;border-radius:0;box-shadow:none;padding:19px 20px;min-height:139px;background:#fff}
.lupii-saas-home #dashboardView .stat-card+.stat-card{border-left:1px solid #e7eded}
.lupii-saas-home #dashboardView .stat-label{font-size:11px;line-height:1.5;color:#647981;font-weight:500}
.lupii-saas-home #dashboardView .stat-card strong{font-size:29px;font-weight:650;line-height:1.3;margin:7px 0;color:#192f39;letter-spacing:-.025em}
.lupii-saas-home #dashboardView .stat-card span{font-size:10px}.lupii-saas-home #dashboardView .friend-stat-breakdown{gap:10px;font-size:10px;flex-wrap:wrap}
.lupii-saas-home #dashboardView .friend-stat-breakdown b{font-weight:600}
.lupii-saas-home #dashboardView .dashboard-operations-card{padding:0}
.lupii-saas-home #dashboardView .dashboard-operation-link{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:19px 13px;background:#fff;min-width:0}
.lupii-saas-home #dashboardView .dashboard-operation-link .stat-label{display:block;font-size:11px}
.lupii-saas-home #dashboardView .dashboard-operation-link small{font-size:9px;white-space:normal;font-weight:500}
.lupii-saas-home #dashboardView .dashboard-operation-link.alert-link.has-alerts{background:#fff2f3}
.lupii-saas-home #dashboardView .dashboard-operation-link.alert-link.has-alerts strong,.lupii-saas-home #dashboardView .dashboard-operation-link.alert-link.has-alerts small{color:#b33043}
.lupii-saas-home #dashboardView .dashboard-grid{display:contents}
.lupii-saas-home #dashboardView .panel{padding:19px;border-radius:9px;border-color:#e0e7e7;box-shadow:none;min-width:0}
.lupii-saas-home #dashboardView .panel-head{margin-bottom:13px;gap:10px}
.lupii-saas-home #dashboardView .panel-head h3{font-size:14px;line-height:1.45;color:#203740;font-weight:700;margin:0 0 4px}
.lupii-saas-home #dashboardView .panel-head p{font-size:10px;color:#74878d;line-height:1.6}
.lupii-saas-home #dashboardView .text-button{font-size:11px;font-weight:600;white-space:nowrap;min-height:28px}
.lupii-saas-home #dashboardView .activity-panel{grid-area:activity}
.lupii-saas-home #dashboardView #activityList{max-height:240px;overflow-y:auto}
.lupii-saas-home #dashboardView #activityList>.empty-table{padding:17px 14px;text-align:left;border-radius:7px;background:#eef7f3;color:#356556;font-size:12px;line-height:1.8;margin:0}
.lupii-saas-home #dashboardView .activity-item{grid-template-columns:30px minmax(0,1fr) auto;gap:10px;padding:10px 0}
.lupii-saas-home #dashboardView .activity-icon{width:30px;height:30px;border-radius:7px;font-size:11px}
.lupii-saas-home #dashboardView .activity-item b{font-size:12px}.lupii-saas-home #dashboardView .activity-item small{font-size:11px;overflow-wrap:anywhere}.lupii-saas-home #dashboardView .activity-time{font-size:10px}
.lupii-saas-home #dashboardView .chart-panel{grid-area:chart;align-self:stretch;min-height:330px;display:flex;flex-direction:column}
.lupii-saas-home #dashboardView .chart{height:220px;min-height:150px;flex:1;margin-top:8px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#edf1f0 50px)}
.lupii-saas-home #dashboardView .chart-bars i{background:#54bca9;opacity:.72;border-radius:4px 4px 0 0}
.lupii-saas-home #dashboardView .friend-trend-rate{font-size:10px}.lupii-saas-home #dashboardView .chart-labels{font-size:10px}
.lupii-saas-home #dashboardView .home-scenario-panel{grid-area:scenario}
.lupii-saas-home #dashboardView .scenario-summary{grid-template-columns:1fr;gap:8px}
.lupii-saas-home #dashboardView .summary-card{padding:11px 12px;border-color:#e7eded;border-radius:7px}
.lupii-saas-home #dashboardView .summary-card h4{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.lupii-saas-home #dashboardView .summary-card p{font-size:11px;margin:6px 0}.lupii-saas-home #dashboardView .summary-meta{font-size:10px}
.lupii-saas-home #dashboardView .badge{font-size:10px;white-space:nowrap;padding:4px 8px}
.lupii-saas-home #dashboardView .empty-table{font-size:12px;padding:12px}
.lupii-saas-home #dashboardView .home-shortcuts{grid-area:shortcuts}
.lupii-saas-home .home-shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.lupii-saas-home .home-shortcut-grid button{display:flex;align-items:center;gap:11px;min-height:55px;padding:11px 14px;border:1px solid #dee6e7;border-radius:7px;background:#fff;color:#304b55;font-size:12px;font-weight:600;text-align:left}
.lupii-saas-home .home-shortcut-grid button:hover{border-color:#84bdae;background:#f1f8f5}
.lupii-saas-home .home-shortcut-grid svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.lupii-saas-home .home-shortcut-grid button>span:last-child{margin-left:auto;color:#75878e;font-size:21px}
.lupii-saas-home #dashboardView button:focus-visible{outline:2px solid #008b78;outline-offset:3px}
@media(min-width:761px) and (max-height:900px){.lupii-saas-home .sidebar .nav-item,.lupii-saas-home .sidebar .nav-action{min-height:32px;height:32px}.lupii-saas-home .nav-section-label{margin-top:9px;margin-bottom:4px}.lupii-saas-home .sidebar .brand{padding-bottom:9px;min-height:62px}.lupii-saas-home .sidebar .brand-logo{max-height:58px}}
@media(min-width:761px) and (max-height:800px){.lupii-saas-home .sidebar .nav-item,.lupii-saas-home .sidebar .nav-action{min-height:29px;height:29px;font-size:11px}.lupii-saas-home .nav-list{gap:1px}.lupii-saas-home .nav-section-label{margin-top:7px;margin-bottom:3px;font-size:9px}.lupii-saas-home .sidebar .brand{min-height:54px}.lupii-saas-home .sidebar .brand-logo{max-height:48px}}
@media(min-width:761px) and (min-height:650px){.lupii-saas-home .nav-list{overflow-y:hidden}}
@media(min-width:761px) and (max-height:700px){.lupii-saas-home .sidebar .nav-item,.lupii-saas-home .sidebar .nav-action{min-height:26px;height:26px}.lupii-saas-home .nav-list{gap:0}.lupii-saas-home .nav-section-label{margin-top:6px;margin-bottom:3px;font-size:9px}.lupii-saas-home .sidebar .brand{min-height:47px;padding-bottom:6px}.lupii-saas-home .sidebar .brand-logo{max-height:41px}.lupii-saas-home .sidebar-foot{padding-top:6px}}
@media(min-width:761px) and (max-width:1050px){.lupii-saas-home .sidebar{padding-inline:5px}.lupii-saas-home .sidebar .brand{padding-inline:0;justify-content:center}.lupii-saas-home .sidebar .brand-logo{max-width:62px}.lupii-saas-home .nav-section-label{height:1px;min-height:1px;padding:0;margin:9px 7px 6px;background:#35424e;overflow:hidden;color:transparent;font-size:0}.lupii-saas-home .sidebar .nav-item{grid-template-columns:1fr;justify-items:center;padding:0}.lupii-saas-home .sidebar .nav-action{justify-content:center;padding:0}.lupii-saas-home .sidebar .nav-action span{display:none}.lupii-saas-home .sidebar-foot{padding-inline:0}.lupii-saas-home #dashboardView .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lupii-saas-home #dashboardView .stat-card:nth-child(3){border-left:0;border-top:1px solid #e7eded}.lupii-saas-home #dashboardView .stat-card:nth-child(4){border-top:1px solid #e7eded}.lupii-saas-home .home-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .lupii-saas-home .sidebar{left:-260px;width:248px;height:100dvh;padding:12px 10px 8px}.lupii-saas-home .sidebar.is-open{left:0}.lupii-saas-home .sidebar .nav-item,.lupii-saas-home .sidebar .nav-action{min-height:39px;height:39px;font-size:13px}.lupii-saas-home .nav-list{gap:3px}.lupii-saas-home .sidebar .brand{min-height:66px}.lupii-saas-home .nav-section-label{margin-top:13px}
 .lupii-saas-home #dashboardView{padding:20px 14px 26px;gap:13px}.lupii-saas-home #dashboardView.is-visible{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'stats' 'activity' 'chart' 'scenario' 'shortcuts'}
 .lupii-saas-home #dashboardView .dashboard-head{align-items:flex-start;flex-wrap:wrap;gap:12px}.lupii-saas-home #dashboardView .saas-page-heading{font-size:25px}.lupii-saas-home #dashboardView .dashboard-intro{font-size:11px}.lupii-saas-home #dashboardView .dashboard-head-actions{width:100%;justify-content:space-between}.lupii-saas-home #dashboardView .dashboard-head .primary-button{display:inline-flex;align-items:center;min-height:44px}.lupii-saas-home #dashboardView .dashboard-head .secondary-button{min-height:44px}
 .lupii-saas-home #dashboardView .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lupii-saas-home #dashboardView .stat-card{padding:15px 12px;min-height:137px}.lupii-saas-home #dashboardView .stat-card:nth-child(3){border-left:0;border-top:1px solid #e7eded}.lupii-saas-home #dashboardView .stat-card:nth-child(4){border-top:1px solid #e7eded;padding:0}.lupii-saas-home #dashboardView .stat-card strong{font-size:26px}.lupii-saas-home #dashboardView .dashboard-operation-link{padding:13px 8px}.lupii-saas-home #dashboardView .dashboard-operation-link .stat-label{font-size:10px}.lupii-saas-home #dashboardView .dashboard-operation-link small{font-size:9px}
 .lupii-saas-home #dashboardView .panel{padding:16px}.lupii-saas-home #dashboardView .chart-panel{min-height:285px}.lupii-saas-home #dashboardView .chart{height:175px}.lupii-saas-home .home-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lupii-saas-home .home-shortcut-grid button{padding:11px 9px;gap:7px;font-size:11px;min-height:60px}.lupii-saas-home .home-shortcut-grid svg{width:18px;height:18px}
}
/* Enlarge the official logo modestly; preserve its ratio and menu space. */
@media(max-width:760px){.lupii-saas-home #dashboardView .dashboard-operation-link{padding-top:15px}.lupii-saas-home #dashboardView .dashboard-operation-link .stat-label{font-size:11px}}
.lupii-saas-home .sidebar .brand-logo{width:190px;max-height:80px}
@media(min-width:761px) and (max-height:900px){.lupii-saas-home .sidebar .brand-logo{max-height:67px}}
@media(min-width:761px) and (max-height:800px){.lupii-saas-home .sidebar .brand-logo{max-height:55px}}
@media(min-width:761px) and (max-height:700px){.lupii-saas-home .sidebar .brand-logo{max-height:47px}}
/* Desktop home fits the available viewport. Long lists remain accessible inside
   their panels; mobile and all other views keep their existing layout. */
@media(min-width:761px) and (min-height:650px){
 .lupii-saas-home #dashboardView.is-visible{height:calc(100dvh - 76px);min-height:0;padding:14px 22px;gap:12px;grid-template-rows:82px 116px minmax(0,1fr) minmax(0,1fr) 86px;align-items:stretch}
 .lupii-saas-home #dashboardView .dashboard-head{min-height:0;margin:0}
 .lupii-saas-home #dashboardView .dashboard-head .eyebrow{margin-bottom:3px}
 .lupii-saas-home #dashboardView .saas-page-heading{font-size:25px;margin-bottom:2px}
 .lupii-saas-home #dashboardView .dashboard-intro{margin-top:3px}
 .lupii-saas-home #dashboardView .stat-grid{grid-template-columns:1.3fr .85fr 1fr 1.3fr}
 .lupii-saas-home #dashboardView .stat-card{padding:12px 16px;min-height:0;border-top:0}
 .lupii-saas-home #dashboardView .stat-card:nth-child(3){border-left:1px solid #e7eded}
 .lupii-saas-home #dashboardView .stat-card:nth-child(3),.lupii-saas-home #dashboardView .stat-card:nth-child(4){border-top:0}
 .lupii-saas-home #dashboardView .stat-card strong{font-size:27px;margin:4px 0}
 .lupii-saas-home #dashboardView .dashboard-operations-card{padding:0}
 .lupii-saas-home #dashboardView .dashboard-operation-link{padding:12px}
 .lupii-saas-home #dashboardView .panel{padding:12px 15px;min-height:0}
 .lupii-saas-home #dashboardView .panel-head{margin-bottom:7px;flex-shrink:0}
 .lupii-saas-home #dashboardView .panel-head h3{font-size:13px;margin-bottom:2px}
 .lupii-saas-home #dashboardView .activity-panel,.lupii-saas-home #dashboardView .home-scenario-panel{display:flex;flex-direction:column}
 .lupii-saas-home #dashboardView #activityList,.lupii-saas-home #dashboardView #scenarioSummary{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 .lupii-saas-home #dashboardView #scenarioSummary{display:flex;flex-direction:column;gap:7px}
 .lupii-saas-home #dashboardView .summary-card{flex-shrink:0;padding:8px 10px}
 .lupii-saas-home #dashboardView .activity-item{padding:8px 0}
 .lupii-saas-home #dashboardView .chart-panel{min-height:0}
 .lupii-saas-home #dashboardView .chart{height:auto;min-height:0;margin-top:4px}
 .lupii-saas-home #dashboardView .chart-labels{margin-top:5px;flex-shrink:0}
 .lupii-saas-home #dashboardView .home-shortcuts .panel-head{margin-bottom:6px}
 .lupii-saas-home .home-shortcut-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .lupii-saas-home .home-shortcut-grid button{min-height:38px;padding:7px 10px}
}
@media(min-width:761px) and (max-width:1050px) and (min-height:650px){
 .lupii-saas-home #dashboardView.is-visible{padding-inline:14px;column-gap:10px}
 .lupii-saas-home #dashboardView .stat-card{padding-inline:10px}
 .lupii-saas-home #dashboardView .dashboard-operations-card{padding:0}
 .lupii-saas-home #dashboardView .dashboard-operation-link{padding-inline:8px}
 .lupii-saas-home .home-shortcut-grid button{font-size:11px;gap:6px}
}
