/* V1 dashboard presentation, extracted without legacy PHP or JavaScript. */

body{
margin:0;
font-family:'Inter',Segoe UI,Arial;
background:#f4f6f9;
transition:0.25s;
}

/* DARK MODE */

body.dark{
background:#0f172a;
color:white;
}

body.dark .panel,
body.dark .stat,
body.dark .header,
body.dark .chat-panel,
body.dark .sidebar,
body.dark .map-footer{
background: rgba(30, 41, 59, 0.8) !important;
color:white;
border-color: #334155;
}

body.dark .content{
background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.06), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

body.dark .header{
background: rgba(15, 23, 42, 0.82) !important;
border-bottom-color: rgba(51, 65, 85, 0.72);
box-shadow: 0 18px 38px rgba(2, 6, 23, 0.28);
}

body.dark .sidebar{
background: rgba(15, 23, 42, 0.9) !important;
border-right-color: rgba(51, 65, 85, 0.75);
box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.04);
}

body.dark .sidebar img{
opacity: 0.82;
filter: brightness(0) invert(0.9);
}

body.dark .sidebar img:hover{
opacity: 1;
filter: brightness(0) invert(1);
}

body.dark .panel,
body.dark .stat{
box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

body.dark .panel h3,
body.dark .stat-title,
body.dark .placeholder-panel h3,
body.dark .analytics-title{
color: #f8fafc;
}

body.dark .user-name,
body.dark .user-role,
body.dark .stat-title,
body.dark .traffic-card-head p,
body.dark .traffic-card-stat span,
body.dark .placeholder-panel,
body.dark .land-profile-key,
body.dark .analytics-sub,
body.dark .access-page-info,
body.dark .prim-page-info{
color: #94a3b8;
}

body.dark p,
body.dark td,
body.dark th,
body.dark span,
body.dark small{
border-color: inherit;
}

body.dark .menu a{
color: #cbd5e1;
}

body.dark .grid > .panel,
body.dark .placeholder-body,
body.dark .radio-status-card,
body.dark .access-panel,
body.dark .map-panel,
body.dark .panel.map-panel{
border-color: rgba(51, 65, 85, 0.72);
}

body.dark .btn{
background: linear-gradient(135deg, #4f46e5, #2563eb);
box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
color: #f8fafc;
}

body.dark .btn:hover{
box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
filter: brightness(1.05);
}

body.dark .progress-bar{
background: rgba(51, 65, 85, 0.65);
}

body.dark .progress-fill{
box-shadow: 0 0 22px rgba(79, 70, 229, 0.22);
}

body.dark .v-card,
body.dark .team-row,
body.dark .land-profile-row,
body.dark .analytics-row,
body.dark .access-table tr,
body.dark .prim-owner-table tr{
background: transparent;
border-color: rgba(51, 65, 85, 0.68) !important;
}

body.dark .map-header{
background: rgba(15, 23, 42, 0.88) !important;
border-bottom: 1px solid rgba(51, 65, 85, 0.72) !important;
}

body.dark .bottom-bar{
background: rgba(15, 23, 42, 0.92);
border-top: 1px solid rgba(51, 65, 85, 0.72);
box-shadow: 0 -8px 28px rgba(2, 6, 23, 0.2);
}

body.dark .bottom-brand,
body.dark .bottom-link{
color: #cbd5e1;
}

body.dark canvas{
filter: saturate(0.96) brightness(0.98);
}

body.dark table td,
body.dark table th{
color:white;
border-color:#334155;
}

body.dark input{
background:#0f172a;
color:white;
border:1px solid #334155;
}

body.dark .menu a{
color: #cbd5e1;
}

body.dark .menu a:hover, body.dark .menu a.active {
color: #cbd5e1;
background: transparent;
box-shadow: none;
}
body.dark .menu{
background: transparent;
border: none;
}

/* DARK SWITCH BUTTON */

.dark-switch{
position:fixed;
top:18px;
left:15px;
width:36px;
height:36px;
background:white;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
box-shadow:0 4px 10px rgba(0,0,0,0.15);
transition:0.2s;
z-index:1100;
}

.dark-switch:hover{
transform:scale(1.1);
}

body.dark .dark-switch{
background:#1e293b;
}

/* SIDEBAR */

.sidebar{
position:fixed;
left:0;
top:0;
width:70px;
height:100%;
background:white;
border-right:1px solid #e5e7eb;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:40px;
z-index: 1000;
}

.sidebar img{
width:26px;
cursor:pointer;
transition:0.2s;
opacity: 0.6;
}

.sidebar img:hover{
transform:scale(1.15);
opacity: 1;
}

/* ENHANCED HEADER */

.header{
margin-left:70px;
height:80px;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(229, 231, 235, 0.5);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
position: sticky;
top: 0;
z-index: 999;
}

.header-left {
display: flex;
align-items: center;
gap: 40px;
}

.menu{
display:flex;
gap:24px;
padding:0;
border:none;
background:transparent;
}

.menu a{
text-decoration:none;
color:#475569;
font-weight:600;
font-size: 13px;
letter-spacing:0.2px;
position: relative;
padding: 6px 0;
transition: 0.3s;
pointer-events: none;
cursor: default;
border-radius:0;
opacity:1;
}

.menu a:hover, .menu a.active{
color:#475569;
background:transparent;
box-shadow:none;
opacity:1;
}

.menu a::after {
content: '';
display:none;
}

.header-logo img{
height:42px;
transition: 0.3s;
}

.header-logo img:hover {
transform: scale(1.05);
}

.header-right {
display: flex;
align-items: center;
gap: 15px;
}

.user-box{
text-align:right;
}

.user-name{
font-size:14px;
color:#64748b;
line-height: 1.2;
}

.user-name span{
font-weight:700;
color:#1e293b;
display: block;
}

body.dark .user-name span { color: white; }

.user-role{
font-size:11px;
color:#94a3b8;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
}

.avatar-circle {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #3b82f6, #2563eb);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 700;
font-size: 14px;
border: 2px solid white;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.avatar-circle{
position:relative;
}

.avatar-accessory{
position:absolute;
top:-18px;
right:-8px;
width:42px;
height:auto;
transform:rotate(8deg);
z-index:20;
pointer-events:none;
filter:drop-shadow(0 2px 4px rgba(0,0,0,.22));
}

.avatar-accessory--christmas{
top:-18px;
right:-8px;
width:42px;
}

/* CONTENT */

.content{
margin-left:70px;
padding:30px;
padding-bottom:140px;
display:flex;
flex-direction:column;
}

.customer-lease-card{
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border:1px solid #e2e8f0;
border-radius:18px;
padding:18px;
margin-bottom:22px;
box-shadow:0 14px 34px rgba(15,23,42,0.08);
}

.customer-lease-card h2{
margin:0 0 14px;
font-size:18px;
color:#0f172a;
}

.rez-day-card{
position:relative;
display:flex;
align-items:center;
gap:14px;
padding:16px 18px;
overflow:hidden;
border:1px solid transparent;
background:
    radial-gradient(circle at 0% 0%, rgba(212,175,55,.028), transparent 26%) padding-box,
    radial-gradient(circle at 100% 0%, rgba(248,231,161,.028), transparent 26%) padding-box,
    radial-gradient(circle at 0% 100%, rgba(212,175,55,.021), transparent 28%) padding-box,
    radial-gradient(circle at 100% 100%, rgba(248,231,161,.021), transparent 28%) padding-box,
    linear-gradient(135deg, rgba(248,231,161,.007), transparent 42%, rgba(212,175,55,.007)) padding-box,
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(#e2e8f0, #e2e8f0) border-box;
box-shadow:
    0 0 0 1px rgba(226,232,240,.85),
    0 0 10px rgba(15,23,42,.035),
    0 0 21px rgba(248,231,161,.01),
    inset 0 0 14px rgba(248,231,161,.011);
transition:background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rez-day-card::before,
.rez-day-card::after{
content:"";
position:absolute;
width:150px;
height:150px;
border-radius:999px;
background:radial-gradient(circle, rgba(248,231,161,.36), rgba(212,175,55,.15) 34%, transparent 68%);
pointer-events:none;
z-index:0;
}

.rez-day-card::before{ top:-76px; right:-56px; opacity:0.08; }
.rez-day-card::after{ left:-68px; bottom:-78px; opacity:0.05; }

.rez-day-card:hover{
background:
    radial-gradient(circle at 0% 0%, rgba(212,175,55,.028), transparent 26%) padding-box,
    radial-gradient(circle at 100% 0%, rgba(248,231,161,.028), transparent 26%) padding-box,
    radial-gradient(circle at 0% 100%, rgba(212,175,55,.021), transparent 28%) padding-box,
    radial-gradient(circle at 100% 100%, rgba(248,231,161,.021), transparent 28%) padding-box,
    linear-gradient(135deg, rgba(248,231,161,.007), transparent 42%, rgba(212,175,55,.007)) padding-box,
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(125deg, #b8860b, #d4af37, #e6c76a, #f8e7a1, #d4af37, #b8860b) border-box;
box-shadow:
    0 0 0 1px rgba(212,175,55,.25),
    0 0 10px rgba(212,175,55,.042),
    0 0 21px rgba(248,231,161,.021),
    inset 0 0 14px rgba(248,231,161,.011);
}

.rez-day-icon{
width:46px;
height:46px;
border-radius:999px;
display:flex;
align-items:center;
justify-content:center;
font-size:23px;
line-height:1;
background:linear-gradient(135deg, rgba(248,231,161,.92), rgba(212,175,55,.82));
box-shadow:0 8px 18px rgba(212,175,55,0.16);
flex:0 0 auto;
position:relative;
z-index:1;
}

.rez-day-copy{
position:relative;
z-index:1;
}

.rez-day-badge{
display:inline-flex;
align-items:center;
width:max-content;
margin-bottom:5px;
padding:3px 8px;
border-radius:999px;
background:rgba(212,175,55,0.12);
color:#946c14;
font-size:10px;
font-weight:800;
letter-spacing:0.12em;
text-transform:uppercase;
}

.rez-day-title{
font-size:16px;
font-weight:850;
color:#0f172a;
letter-spacing:0;
}

.rez-day-text{
font-size:13px;
color:#64748b;
margin-top:3px;
}

body.dark .rez-day-card{
background:
    radial-gradient(circle at 0% 0%, rgba(212,175,55,.014), transparent 30%) padding-box,
    radial-gradient(circle at 100% 0%, rgba(248,231,161,.006), transparent 30%) padding-box,
    radial-gradient(circle at 0% 100%, rgba(212,175,55,.011), transparent 32%) padding-box,
    radial-gradient(circle at 100% 100%, rgba(248,231,161,.005), transparent 32%) padding-box,
    linear-gradient(135deg, rgba(248,231,161,.003), transparent 46%, rgba(212,175,55,.003)) padding-box,
    linear-gradient(180deg, rgba(18,24,40,.96), rgba(16,22,36,.98)) padding-box,
    linear-gradient(rgba(51,65,85,.8), rgba(51,65,85,.8)) border-box;
border-color:transparent;
box-shadow:
    0 0 0 1px rgba(51,65,85,.45),
    0 0 7px rgba(15,23,42,.12),
    0 0 14px rgba(248,231,161,.004),
    inset 0 0 12px rgba(248,231,161,.004);
}

body.dark .rez-day-card:hover{
background:
    radial-gradient(circle at 0% 0%, rgba(212,175,55,.014), transparent 30%) padding-box,
    radial-gradient(circle at 100% 0%, rgba(248,231,161,.006), transparent 30%) padding-box,
    radial-gradient(circle at 0% 100%, rgba(212,175,55,.011), transparent 32%) padding-box,
    radial-gradient(circle at 100% 100%, rgba(248,231,161,.005), transparent 32%) padding-box,
    linear-gradient(135deg, rgba(248,231,161,.003), transparent 46%, rgba(212,175,55,.003)) padding-box,
    linear-gradient(180deg, rgba(18,24,40,.96), rgba(16,22,36,.98)) padding-box,
    linear-gradient(125deg, #b8860b, #d4af37, #e6c76a, #f8e7a1, #d4af37, #b8860b) border-box;
box-shadow:
    0 0 0 1px rgba(212,175,55,.15),
    0 0 7px rgba(212,175,55,.014),
    0 0 14px rgba(248,231,161,.008),
    inset 0 0 12px rgba(248,231,161,.004);
filter:none;
}

body.dark .rez-day-card::before{ opacity:0.012; }
body.dark .rez-day-card::after{ opacity:0.009; }

body.dark .rez-day-title{
color:#f7d77a;
}

body.dark .rez-day-text{
color:#cbd5e1;
}

body.dark .rez-day-badge{
background:rgba(212,175,55,0.18);
color:#f7d77a;
}

.customer-lease-grid{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:12px;
}

.customer-lease-item{
background:#ffffff;
border:1px solid #eef2f7;
border-radius:14px;
padding:12px;
min-width:0;
display:block;
text-decoration:none;
cursor:pointer;
transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.customer-lease-item:hover{
border-color:#bfdbfe;
box-shadow:0 10px 24px rgba(37,99,235,.12);
transform:translateY(-1px);
}

.customer-lease-item.is-selected{
border-color:#2563eb;
box-shadow:0 0 0 1px rgba(37,99,235,.14), 0 12px 28px rgba(37,99,235,.10);
}

.customer-lease-label{
display:block;
font-size:10px;
font-weight:800;
letter-spacing:.08em;
text-transform:uppercase;
color:#64748b;
margin-bottom:5px;
}

.customer-lease-value{
font-size:13px;
font-weight:700;
color:#0f172a;
word-break:break-word;
}

.customer-lease-status{
display:inline-flex;
align-items:center;
border-radius:999px;
padding:4px 10px;
background:#dcfce7;
color:#166534;
font-size:12px;
font-weight:800;
text-transform:capitalize;
}

body.dark .customer-lease-card{
background:linear-gradient(135deg,#111827,#0f172a);
border-color:#1f2937;
box-shadow:0 14px 34px rgba(0,0,0,.24);
}

body.dark .customer-lease-card h2,
body.dark .customer-lease-value{
color:#f8fafc;
}

body.dark .customer-lease-item{
background:#111827;
border-color:#1f2937;
}

body.dark .customer-lease-item:hover,
body.dark .customer-lease-item.is-selected{
border-color:#3b82f6;
}

.casperlet-lease-card{
order:30;
}

.grid > .casperlet-lease-card{
order:0;
margin-bottom:0;
align-self:start;
min-width:0;
height:auto;
box-sizing:border-box;
}

.casperlet-card-head{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:16px;
margin-bottom:16px;
}

.casperlet-card-head h2{
margin:0 0 5px;
font-size:18px;
color:#0f172a;
}

.casperlet-card-subtitle{
margin:0;
font-size:12px;
color:#64748b;
font-weight:700;
}

.casperlet-lease-warning{
display:flex;
align-items:flex-start;
gap:10px;
padding:12px 14px;
margin:-4px 0 16px;
border-radius:14px;
border:1px solid rgba(245,158,11,.30);
background:rgba(245,158,11,.10);
color:#92400e;
}

.casperlet-lease-warning-icon{
display:inline-flex;
align-items:center;
justify-content:center;
flex:0 0 28px;
width:28px;
height:28px;
border-radius:999px;
background:rgba(245,158,11,.18);
color:#b45309;
font-size:15px;
font-weight:900;
line-height:1;
}

.casperlet-lease-warning-copy{
min-width:0;
display:flex;
flex-direction:column;
gap:3px;
font-size:13px;
line-height:1.45;
}

.casperlet-lease-warning-copy strong{
font-size:14px;
font-weight:900;
color:#78350f;
}

.casperlet-lease-warning--orange{
border-color:rgba(249,115,22,.34);
background:rgba(249,115,22,.11);
color:#9a3412;
}

.casperlet-lease-warning--orange .casperlet-lease-warning-icon{
background:rgba(249,115,22,.18);
color:#c2410c;
}

.casperlet-lease-warning--orange .casperlet-lease-warning-copy strong{
color:#7c2d12;
}

.casperlet-lease-warning--urgent,
.casperlet-lease-warning--danger{
border-color:rgba(239,68,68,.34);
background:rgba(239,68,68,.10);
color:#991b1b;
}

.casperlet-lease-warning--urgent .casperlet-lease-warning-icon,
.casperlet-lease-warning--danger .casperlet-lease-warning-icon{
background:rgba(239,68,68,.16);
color:#b91c1c;
}

.casperlet-lease-warning--urgent .casperlet-lease-warning-copy strong,
.casperlet-lease-warning--danger .casperlet-lease-warning-copy strong{
color:#7f1d1d;
}

.casperlet-badge{
display:inline-flex;
align-items:center;
justify-content:center;
border-radius:999px;
padding:5px 10px;
border:1px solid rgba(148,163,184,.28);
background:rgba(148,163,184,.12);
color:#475569;
font-size:11px;
font-weight:900;
text-transform:uppercase;
letter-spacing:.04em;
white-space:nowrap;
}

.casperlet-badge--active,
.casperlet-badge--healthy{
background:rgba(16,185,129,.12);
border-color:rgba(16,185,129,.28);
color:#047857;
}

.casperlet-badge--unknown,
.casperlet-badge--attention{
background:rgba(245,158,11,.13);
border-color:rgba(245,158,11,.30);
color:#b45309;
}

.casperlet-badge--vacant,
.casperlet-badge--nodata{
background:rgba(100,116,139,.12);
border-color:rgba(100,116,139,.26);
color:#475569;
}

.casperlet-badge--expired{
background:rgba(239,68,68,.12);
border-color:rgba(239,68,68,.30);
color:#b91c1c;
}

.casperlet-overview-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:12px;
}

.casperlet-info-item{
padding:12px;
border-radius:12px;
background:#f8fafc;
border:1px solid #e2e8f0;
min-width:0;
}

.casperlet-info-label{
display:block;
font-size:10px;
font-weight:900;
letter-spacing:.08em;
text-transform:uppercase;
color:#64748b;
margin-bottom:5px;
}

.casperlet-info-value{
display:block;
font-size:14px;
font-weight:900;
color:#0f172a;
overflow-wrap:anywhere;
}

.casperlet-empty-state{
padding:16px;
border-radius:14px;
background:#f8fafc;
border:1px dashed #cbd5e1;
color:#64748b;
font-size:13px;
line-height:1.55;
}

.casperlet-empty-state strong{
display:block;
color:#0f172a;
font-size:14px;
margin-bottom:4px;
}

.payment-history-card{
grid-column:1 / -1;
order:31;
}

.morven-finance-row{
grid-column:1 / -1;
width:100%;
min-width:0;
box-sizing:border-box;
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:24px;
align-items:stretch;
margin:0 0 24px;
--morven-panel-blue:#2563eb;
--morven-panel-blue-dark:#1e40af;
--morven-panel-blue-soft:rgba(37,99,235,.08);
--morven-panel-blue-border:rgba(37,99,235,.18);
}

.morven-finance-row > .morven-loyalty-card,
.morven-finance-row > .payment-history-card{
grid-column:auto;
order:0;
height:100%;
margin:0;
min-width:0;
display:flex;
flex-direction:column;
padding:24px 18px 12px;
background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
border:1px solid rgba(226,232,240,.96);
box-shadow:0 12px 26px rgba(15,23,42,.06);
border-radius:18px;
}

.morven-finance-row > .morven-loyalty-card{
display:none!important;
}

.morven-finance-row > .payment-history-card{
grid-column:1 / -1;
}

.morven-finance-row .casperlet-card-head{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:14px;
margin:0 0 15px;
padding-bottom:10px;
border-bottom:1px solid #eee;
}

.morven-finance-row .casperlet-card-head h2{
margin:0;
font-size:20px;
line-height:1.2;
font-weight:800;
color:#0f172a;
}

.morven-finance-row .casperlet-card-subtitle{
margin:6px 0 0;
font-size:12px;
line-height:1.35;
font-weight:500;
color:#64748b;
}

.payment-history-card-note{
display:inline-flex;
align-items:center;
margin-top:5px;
font-size:11px;
font-weight:750;
color:var(--morven-panel-blue-dark);
}

.payment-membership-progress{
margin:4px 0 12px;
padding:13px 14px;
border-radius:16px;
background:linear-gradient(135deg,rgba(239,246,255,.92),rgba(248,250,252,.96));
border:1px solid rgba(37,99,235,.16);
box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

.payment-membership-head{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:14px;
margin-bottom:11px;
}

.payment-membership-head div{
min-width:0;
}

.payment-membership-eyebrow,
.payment-membership-stat span{
display:block;
font-size:10px;
font-weight:850;
letter-spacing:.11em;
text-transform:uppercase;
color:#64748b;
}

.payment-membership-head strong{
display:block;
margin-top:3px;
font-size:16px;
line-height:1.15;
font-weight:900;
color:#0f172a;
}

.payment-membership-status{
display:inline-flex;
align-items:center;
justify-content:center;
padding:6px 10px;
border-radius:999px;
background:rgba(37,99,235,.10);
border:1px solid rgba(37,99,235,.22);
color:var(--morven-panel-blue-dark);
font-size:11px;
font-weight:850;
white-space:nowrap;
}

.payment-membership-grid{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:9px;
margin-bottom:11px;
}

.payment-membership-stat{
min-width:0;
padding:10px 11px;
border-radius:13px;
background:rgba(255,255,255,.86);
border:1px solid rgba(226,232,240,.9);
}

.payment-membership-stat strong{
display:block;
margin-top:5px;
font-size:13px;
line-height:1.2;
font-weight:900;
color:#0f172a;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.payment-membership-stat small{
display:block;
margin-top:3px;
font-size:10.5px;
line-height:1.25;
font-weight:650;
color:#64748b;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.payment-membership-meter{
height:9px;
overflow:hidden;
border-radius:999px;
background:linear-gradient(90deg,rgba(148,163,184,.20),rgba(203,213,225,.36));
box-shadow:inset 0 1px 2px rgba(15,23,42,.10);
}

.payment-membership-meter-fill{
height:100%;
border-radius:inherit;
background:linear-gradient(90deg,#1d4ed8,#2563eb,#60a5fa);
box-shadow:0 0 18px rgba(37,99,235,.26);
}

.payment-membership-foot{
display:flex;
justify-content:space-between;
gap:14px;
margin-top:8px;
font-size:10.5px;
line-height:1.35;
font-weight:650;
color:#64748b;
}

.payment-membership-foot span:last-child{
text-align:right;
color:var(--morven-panel-blue-dark);
}

.payment-history-table-wrap{
overflow-x:auto;
}

.payment-history-card > .payment-history-table-wrap{
overflow:visible;
min-width:0;
margin-top:14px;
}

.payment-history-table{
width:100%;
border-collapse:separate;
border-spacing:0 8px;
font-size:13px;
}

.payment-history-card .payment-history-table{
table-layout:fixed;
font-size:12px;
}

.payment-history-table th,
.payment-history-table td{
padding:11px 12px;
border-bottom:0;
text-align:left;
white-space:nowrap;
}

.payment-history-table th{
font-size:10px;
font-weight:800;
letter-spacing:.12em;
text-transform:uppercase;
color:#64748b;
}

.payment-history-table td{
color:#0f172a;
font-weight:700;
letter-spacing:0;
}

.payment-history-table tbody tr{
transition:transform .16s ease, box-shadow .16s ease;
}

.payment-history-table tbody tr:hover{
transform:translateY(-1px);
}

.payment-history-table tbody td{
background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,252,.92));
border-top:1px solid rgba(148,163,184,.18);
border-bottom:1px solid rgba(148,163,184,.18);
}

.payment-history-table tbody td:first-child{
border-left:1px solid rgba(148,163,184,.18);
border-radius:14px 0 0 14px;
}

.payment-history-table tbody td:last-child{
border-right:1px solid rgba(148,163,184,.18);
border-radius:0 14px 14px 0;
}

.payment-transaction{
display:flex;
flex-direction:column;
gap:3px;
}

.payment-transaction-note{
font-size:10px;
font-weight:700;
color:#64748b;
white-space:normal;
}

.morven-finance-badge{
display:inline-flex;
align-items:center;
justify-content:center;
border-radius:999px;
padding:7px 12px;
border:1px solid var(--morven-panel-blue-border);
background:rgba(239,246,255,.82);
color:var(--morven-panel-blue-dark);
font-size:10.5px;
font-weight:850;
letter-spacing:.055em;
white-space:nowrap;
box-shadow:0 8px 18px rgba(37,99,235,.06);
}

.morven-finance-badge--tier{
background:linear-gradient(135deg,#eff6ff,#ffffff);
color:var(--morven-panel-blue-dark);
border-color:rgba(37,99,235,.24);
}

.payment-history-card .payment-history-table th,
.payment-history-card .payment-history-table td{
padding:10px 14px;
overflow:hidden;
text-overflow:ellipsis;
}

.payment-history-card .payment-history-table th:nth-child(1),
.payment-history-card .payment-history-table td:nth-child(1){
width:24%;
}

.payment-history-card .payment-history-table td:nth-child(1){
font-weight:700;
}

.payment-history-card .payment-history-table th:nth-child(2),
.payment-history-card .payment-history-table td:nth-child(2){
width:20%;
}

.payment-history-card .payment-history-table td:nth-child(2){
color:#111827;
font-weight:700;
}

.payment-history-card .payment-history-table th:nth-child(3),
.payment-history-card .payment-history-table td:nth-child(3){
width:16%;
}

.payment-history-card .payment-history-table td:nth-child(3){
font-weight:800;
}

.payment-history-card .payment-history-table th:nth-child(4),
.payment-history-card .payment-history-table td:nth-child(4){
width:18%;
}

.payment-history-card .payment-history-table th:nth-child(5),
.payment-history-card .payment-history-table td:nth-child(5){
width:22%;
}

.payment-history-card .payment-history-table td:nth-child(5){
font-weight:700;
color:#1e293b;
}

.payment-history-card .payment-transaction{
display:block;
max-width:100%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
font-weight:700;
letter-spacing:0;
}

.payment-history-card .casperlet-badge{
max-width:100%;
overflow:hidden;
text-overflow:ellipsis;
padding:5px 11px;
font-size:10px;
font-weight:800;
letter-spacing:.06em;
}

.payment-history-card .casperlet-badge--active{
background:rgba(37,99,235,.10);
border-color:rgba(37,99,235,.22);
color:var(--morven-panel-blue-dark);
}

.payment-history-actions{
display:flex;
justify-content:flex-end;
margin-top:auto;
padding-top:12px;
padding-bottom:14px;
}

.payment-history-view-all{
border:none;
background:linear-gradient(135deg,#3b82f6,#2563eb);
color:#fff;
border-radius:10px;
padding:8px 16px;
font-size:13px;
font-weight:700;
letter-spacing:0;
cursor:pointer;
box-shadow:0 4px 6px -1px rgba(0,0,0,.10);
transition:all .3s cubic-bezier(.4,0,.2,1);
}

.payment-history-view-all:hover{
transform:translateY(-2px);
box-shadow:0 8px 15px rgba(37,99,235,.30);
filter:brightness(1.1);
}

.payment-history-modal-table{
width:100%;
border-collapse:collapse;
font-size:13px;
}

.payment-history-modal-table th,
.payment-history-modal-table td{
padding:11px 12px;
border-bottom:1px solid #e2e8f0;
text-align:left;
white-space:nowrap;
}

.payment-history-modal-table th{
font-size:10px;
font-weight:900;
letter-spacing:.07em;
text-transform:uppercase;
color:#64748b;
}

.payment-history-modal-footer{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
margin-top:14px;
}

.payment-history-page-info{
font-size:12px;
font-weight:900;
color:#64748b;
}

.payment-history-page-btn{
border:1px solid rgba(148,163,184,.34);
background:#fff;
color:#0f172a;
border-radius:10px;
padding:8px 12px;
font-size:12px;
font-weight:900;
cursor:pointer;
}

.payment-history-page-btn:disabled{
opacity:.45;
cursor:not-allowed;
}

.morven-loyalty-card{
grid-column:1 / -1;
order:30;
overflow:hidden;
position:relative;
}

.morven-loyalty-card:before{
content:"";
position:absolute;
inset:0;
pointer-events:none;
background:
radial-gradient(circle at 95% 0%, rgba(37,99,235,.10), transparent 28%),
linear-gradient(135deg, rgba(15,23,42,.012), rgba(37,99,235,.022));
}

.morven-loyalty-card > *{
position:relative;
z-index:1;
}

.morven-loyalty-member-card{
display:grid;
grid-template-columns:auto minmax(0,1fr) auto;
align-items:center;
gap:10px;
padding:10px 12px;
border-radius:16px;
background:linear-gradient(135deg,rgba(239,246,255,.82),rgba(255,255,255,.94));
border:1px solid rgba(191,219,254,.92);
margin-bottom:10px;
}

.morven-loyalty-avatar{
width:38px;
height:38px;
border-radius:14px;
display:inline-flex;
align-items:center;
justify-content:center;
background:linear-gradient(135deg,#1e40af,#2563eb);
color:#fff;
font-size:15px;
font-weight:950;
box-shadow:0 10px 20px rgba(37,99,235,.18);
}

.morven-loyalty-member-main,
.morven-loyalty-member-meta{
min-width:0;
}

.morven-loyalty-member-name{
display:block;
font-size:14px;
font-weight:850;
color:#0f172a;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.morven-loyalty-member-note{
display:block;
margin-top:2px;
font-size:11px;
font-weight:650;
color:#64748b;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.morven-loyalty-member-meta{
text-align:right;
}

.morven-loyalty-member-meta span{
display:block;
font-size:12px;
font-weight:850;
color:var(--morven-panel-blue-dark);
white-space:nowrap;
}

.morven-loyalty-member-meta small{
display:block;
margin-top:3px;
font-size:10px;
font-weight:650;
color:#64748b;
white-space:nowrap;
}

.morven-loyalty-points-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:8px;
margin-bottom:8px;
}

.morven-loyalty-summary{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:8px;
margin-bottom:10px;
}

.morven-loyalty-stat{
position:relative;
padding:10px 10px 10px 36px;
border-radius:12px;
background:rgba(248,250,252,.92);
border:1px solid rgba(226,232,240,.92);
min-width:0;
transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.morven-loyalty-stat:hover{
transform:translateY(-1px);
border-color:rgba(37,99,235,.22);
box-shadow:0 10px 18px rgba(37,99,235,.08);
}

.morven-loyalty-stat:before{
content:"";
position:absolute;
left:11px;
top:13px;
width:16px;
height:16px;
border-radius:6px;
background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(37,99,235,.05));
border:1px solid rgba(37,99,235,.20);
}

.morven-loyalty-stat:nth-child(1):before{ content:"L"; }
.morven-loyalty-stat:nth-child(2):before{ content:"T"; }
.morven-loyalty-stat:nth-child(3):before{ content:"D"; }
.morven-loyalty-stat:nth-child(4):before{ content:"%"; }

.morven-loyalty-stat:before{
display:flex;
align-items:center;
justify-content:center;
font-size:9px;
font-weight:950;
color:var(--morven-panel-blue-dark);
line-height:1;
}

.morven-loyalty-label{
display:block;
font-size:10px;
font-weight:900;
letter-spacing:.08em;
text-transform:uppercase;
color:#64748b;
margin-bottom:5px;
}

.morven-loyalty-value{
display:block;
font-size:15px;
font-weight:950;
color:#0f172a;
overflow-wrap:anywhere;
}

.morven-loyalty-message{
margin:0 0 10px;
font-size:13px;
line-height:1.55;
color:#475569;
font-weight:700;
}

.morven-loyalty-reward-overview{
padding:11px;
border-radius:16px;
background:linear-gradient(135deg,#f8fafc 0%,#ffffff 70%,#eff6ff 100%);
border:1px solid rgba(219,234,254,.92);
margin-bottom:10px;
}

.morven-loyalty-overview-grid{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:8px;
}

.morven-loyalty-overview-item{
padding:10px 12px;
border-radius:12px;
background:rgba(255,255,255,.9);
border:1px solid rgba(226,232,240,.86);
min-width:0;
}

.morven-loyalty-overview-item span{
display:block;
font-size:10px;
font-weight:800;
letter-spacing:.09em;
text-transform:uppercase;
color:#64748b;
margin-bottom:4px;
}

.morven-loyalty-overview-item strong{
display:block;
font-size:14px;
font-weight:850;
color:#0f172a;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.morven-loyalty-overview-item--points strong{
font-size:20px;
letter-spacing:-.03em;
color:var(--morven-panel-blue-dark);
}

.morven-loyalty-overview-item--remaining{
grid-column:1 / -1;
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
background:rgba(255,255,255,.82);
border-color:rgba(37,99,235,.18);
}

.morven-loyalty-overview-item--remaining span{
margin-bottom:0;
flex:0 0 auto;
}

.morven-loyalty-overview-item--remaining strong{
font-size:13px;
white-space:normal;
text-align:right;
color:var(--morven-panel-blue-dark);
}

.morven-loyalty-next-strip{
display:flex;
align-items:center;
gap:10px;
padding:9px 12px;
border-radius:14px;
border:1px solid rgba(37,99,235,.18);
background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(255,255,255,.94));
margin-bottom:10px;
}

.morven-loyalty-reward-title{
flex:0 0 auto;
font-size:12px;
font-weight:950;
color:var(--morven-panel-blue-dark);
white-space:nowrap;
}

.morven-loyalty-next-strip.is-eligible .morven-loyalty-reward-title{
color:var(--morven-panel-blue-dark);
}

.morven-loyalty-reward-copy{
margin:0;
font-size:12px;
line-height:1.45;
font-weight:700;
color:#475569;
}

.morven-loyalty-progress{
padding:10px 12px;
border-radius:16px;
background:rgba(255,255,255,.92);
border:1px solid rgba(226,232,240,.92);
margin-bottom:8px;
}

.morven-loyalty-progress--compact{
margin-bottom:0;
}

.morven-loyalty-progress-head{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:12px;
margin-bottom:9px;
}

.morven-loyalty-progress-title{
display:block;
font-size:13px;
font-weight:850;
color:#0f172a;
}

.morven-loyalty-progress-helper{
display:block;
font-size:12px;
color:#64748b;
font-weight:650;
margin-top:3px;
}

.morven-loyalty-progress-count{
font-size:12px;
font-weight:850;
color:var(--morven-panel-blue-dark);
white-space:nowrap;
}

.morven-loyalty-progress-track{
position:relative;
height:11px;
border-radius:999px;
background:
linear-gradient(90deg, rgba(37,99,235,.12), rgba(148,163,184,.18)),
rgba(148,163,184,.16);
overflow:hidden;
box-shadow:inset 0 1px 2px rgba(15,23,42,.08);
}

.morven-loyalty-progress-track:before{
content:"";
position:absolute;
top:50%;
left:0;
right:0;
height:100%;
background:repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.92) calc(25% - 1px), rgba(255,255,255,.92) 25%);
transform:translateY(-50%);
z-index:2;
}

.morven-loyalty-progress-fill{
height:100%;
width:0;
border-radius:inherit;
background:linear-gradient(90deg,#1e3a8a,#2563eb,#60a5fa);
box-shadow:0 0 14px rgba(37,99,235,.22);
position:relative;
z-index:1;
}

.morven-loyalty-tier-row{
display:flex;
justify-content:space-between;
gap:8px;
margin-top:9px;
font-size:10px;
font-weight:950;
text-transform:uppercase;
letter-spacing:.05em;
color:#94a3b8;
}

.morven-loyalty-tier-row span.is-active{
color:var(--morven-panel-blue-dark);
}

.morven-loyalty-tier-row span.is-current{
color:#0f172a;
}

.morven-loyalty-tier-row span.is-current:after{
content:"";
display:block;
width:6px;
height:6px;
border-radius:999px;
background:var(--morven-panel-blue);
margin:5px auto 0;
box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.morven-loyalty-tier-row span{
position:relative;
cursor:help;
}

.morven-loyalty-rules{
display:flex;
flex-wrap:wrap;
gap:8px;
align-items:flex-start;
}

.morven-loyalty-chips{
display:flex;
align-content:flex-start;
align-items:flex-start;
flex-wrap:wrap;
gap:8px;
padding:0;
border-radius:16px;
background:transparent;
border:0;
}

.morven-loyalty-chip{
display:inline-flex;
align-items:center;
justify-content:center;
padding:6px 10px;
border-radius:999px;
background:rgba(255,255,255,.88);
border:1px solid rgba(37,99,235,.16);
color:var(--morven-panel-blue-dark);
font-size:10.5px;
font-weight:800;
white-space:nowrap;
}

.morven-loyalty-rent-card{
padding:11px 12px;
border-radius:16px;
background:linear-gradient(180deg,#ffffff,#f8fafc);
border:1px solid rgba(226,232,240,.92);
margin-bottom:10px;
}

.morven-loyalty-rent-head{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
margin-bottom:8px;
}

.morven-loyalty-rent-head span{
font-size:12px;
font-weight:850;
color:#0f172a;
}

.morven-loyalty-rent-head strong{
font-size:11px;
font-weight:850;
color:var(--morven-panel-blue-dark);
background:rgba(37,99,235,.08);
border:1px solid rgba(37,99,235,.16);
border-radius:999px;
padding:5px 8px;
white-space:nowrap;
}

.morven-loyalty-rent-grid{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:8px;
}

.morven-loyalty-rent-grid div{
padding:9px 10px;
border-radius:12px;
background:rgba(255,255,255,.9);
border:1px solid rgba(226,232,240,.88);
min-width:0;
}

.morven-loyalty-rent-grid span{
display:block;
font-size:9px;
font-weight:800;
letter-spacing:.08em;
text-transform:uppercase;
color:#64748b;
margin-bottom:4px;
}

.morven-loyalty-rent-grid strong{
display:block;
font-size:13px;
font-weight:850;
color:#0f172a;
white-space:nowrap;
}

.morven-loyalty-rent-card p{
margin:9px 0 0;
font-size:11px;
font-weight:650;
color:#64748b;
}

body.dark .casperlet-lease-card{
background:linear-gradient(135deg,#111827,#0f172a);
border-color:#1f2937;
}

body.dark .casperlet-card-head h2,
body.dark .casperlet-info-value,
body.dark .casperlet-empty-state strong{
color:#f8fafc;
}

body.dark .casperlet-card-subtitle,
body.dark .casperlet-info-label,
body.dark .casperlet-empty-state{
color:#cbd5e1;
}

body.dark .casperlet-badge--active,
body.dark .casperlet-badge--healthy{
background:rgba(16,185,129,.18);
border-color:rgba(52,211,153,.34);
color:#86efac;
}

body.dark .casperlet-badge--unknown,
body.dark .casperlet-badge--attention{
background:rgba(245,158,11,.18);
border-color:rgba(251,191,36,.34);
color:#fde68a;
}

body.dark .casperlet-badge--vacant,
body.dark .casperlet-badge--nodata{
background:rgba(148,163,184,.16);
border-color:rgba(203,213,225,.28);
color:#cbd5e1;
}

body.dark .casperlet-badge--expired{
background:rgba(239,68,68,.18);
border-color:rgba(248,113,113,.34);
color:#fecaca;
}

body.dark .casperlet-lease-warning{
background:rgba(245,158,11,.12);
border-color:rgba(245,158,11,.28);
color:#fde68a;
}

body.dark .casperlet-lease-warning-copy strong{
color:#fef3c7;
}

body.dark .casperlet-lease-warning--orange{
background:rgba(249,115,22,.13);
border-color:rgba(249,115,22,.30);
color:#fed7aa;
}

body.dark .casperlet-lease-warning--orange .casperlet-lease-warning-copy strong{
color:#ffedd5;
}

body.dark .casperlet-lease-warning--urgent,
body.dark .casperlet-lease-warning--danger{
background:rgba(239,68,68,.13);
border-color:rgba(239,68,68,.30);
color:#fecaca;
}

body.dark .casperlet-lease-warning--urgent .casperlet-lease-warning-copy strong,
body.dark .casperlet-lease-warning--danger .casperlet-lease-warning-copy strong{
color:#fee2e2;
}

body.dark .casperlet-info-item,
body.dark .casperlet-empty-state{
background:rgba(15,23,42,.38);
border-color:rgba(51,65,85,.78);
}

body.dark .payment-history-table th,
body.dark .payment-history-table td{
border-color:#334155;
}

body.dark .payment-history-table th{
color:#94a3b8;
}

body.dark .payment-history-table td{
color:#f8fafc;
}

body.dark .payment-history-table tbody td{
background:rgba(15,23,42,.46);
border-color:rgba(51,65,85,.78);
}

body.dark .payment-history-card .casperlet-badge--active{
background:rgba(37,99,235,.18);
border-color:rgba(96,165,250,.30);
color:#bfdbfe;
}

body.dark .payment-transaction-note{
color:#94a3b8;
}

body.dark .payment-history-view-all{
background:linear-gradient(135deg,#4f46e5,#2563eb);
box-shadow:0 10px 22px rgba(37,99,235,.22);
color:#f8fafc;
}

body.dark .morven-finance-badge{
background:rgba(15,23,42,.58);
border-color:rgba(96,165,250,.26);
color:#bfdbfe;
}

body.dark .morven-finance-row .casperlet-card-head{
border-bottom-color:#334155;
}

body.dark .payment-membership-progress{
background:linear-gradient(135deg,rgba(30,41,59,.72),rgba(15,23,42,.62));
border-color:rgba(96,165,250,.24);
box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

body.dark .payment-membership-stat{
background:rgba(15,23,42,.46);
border-color:rgba(51,65,85,.78);
}

body.dark .payment-membership-head strong,
body.dark .payment-membership-stat strong{
color:#f8fafc;
}

body.dark .payment-membership-eyebrow,
body.dark .payment-membership-stat span,
body.dark .payment-membership-stat small,
body.dark .payment-membership-foot{
color:#cbd5e1;
}

body.dark .payment-membership-status,
body.dark .payment-membership-foot span:last-child{
color:#bfdbfe;
}

body.dark .payment-membership-status{
background:rgba(37,99,235,.18);
border-color:rgba(96,165,250,.30);
}

body.dark .payment-membership-meter{
background:rgba(148,163,184,.18);
}

body.dark .payment-history-modal-table th,
body.dark .payment-history-modal-table td{
border-color:#334155;
}

body.dark .payment-history-modal-table th,
body.dark .payment-history-page-info{
color:#94a3b8;
}

body.dark .payment-history-modal-table td,
body.dark .payment-history-page-btn{
color:#f8fafc;
}

body.dark .payment-history-page-btn{
background:rgba(15,23,42,.72);
border-color:rgba(51,65,85,.82);
}

body.dark .morven-loyalty-card:before{
background:
radial-gradient(circle at 95% 0%, rgba(59,130,246,.14), transparent 30%),
linear-gradient(135deg, rgba(59,130,246,.045), rgba(15,23,42,.05));
}

body.dark .morven-loyalty-stat,
body.dark .morven-loyalty-progress,
body.dark .morven-loyalty-reward-overview,
body.dark .morven-loyalty-overview-item,
body.dark .morven-loyalty-member-card,
body.dark .morven-loyalty-rent-card,
body.dark .morven-loyalty-rent-grid div{
background:rgba(15,23,42,.46);
border-color:rgba(51,65,85,.78);
}

body.dark .morven-loyalty-next-strip{
background:rgba(37,99,235,.14);
border-color:rgba(96,165,250,.24);
}

body.dark .morven-loyalty-next-strip.is-eligible{
background:rgba(37,99,235,.14);
border-color:rgba(96,165,250,.24);
}

body.dark .morven-loyalty-stat:before{
background:linear-gradient(135deg,rgba(59,130,246,.24),rgba(59,130,246,.08));
border-color:rgba(96,165,250,.26);
color:#bfdbfe;
}

body.dark .morven-loyalty-value,
body.dark .morven-loyalty-member-name,
body.dark .morven-loyalty-progress-title,
body.dark .morven-loyalty-rent-head span,
body.dark .morven-loyalty-rent-grid strong,
body.dark .morven-loyalty-overview-item strong{
color:#f8fafc;
}

body.dark .morven-loyalty-label,
body.dark .morven-loyalty-message,
body.dark .morven-loyalty-member-note,
body.dark .morven-loyalty-member-meta small,
body.dark .morven-loyalty-progress-helper,
body.dark .morven-loyalty-rent-grid span,
body.dark .morven-loyalty-rent-card p,
body.dark .morven-loyalty-overview-item span,
body.dark .morven-loyalty-reward-copy{
color:#cbd5e1;
}

body.dark .morven-loyalty-member-meta span,
body.dark .morven-loyalty-rent-head strong{
color:#bfdbfe;
}

body.dark .morven-loyalty-overview-item--remaining strong{
color:#bfdbfe;
}

body.dark .morven-loyalty-progress-count,
body.dark .morven-loyalty-tier-row span.is-active{
color:#93c5fd;
}

body.dark .morven-loyalty-tier-row span.is-current{
color:#f8fafc;
}

body.dark .morven-loyalty-chip{
background:rgba(15,23,42,.58);
border-color:rgba(96,165,250,.24);
color:#bfdbfe;
}

body.dark .morven-loyalty-progress-track{
background:
linear-gradient(90deg, rgba(148,163,184,.16), rgba(148,163,184,.20)),
rgba(148,163,184,.18);
}

body.dark .morven-loyalty-progress-track:before{
background:repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(15,23,42,.88) calc(25% - 1px), rgba(15,23,42,.88) 25%);
}

@media (max-width: 980px){
.morven-finance-row{
grid-template-columns:1fr;
}
}

@media (max-width: 640px){
.casperlet-lease-warning{
padding:11px 12px;
gap:9px;
}

.casperlet-lease-warning-copy{
font-size:12px;
}

.morven-loyalty-summary{
grid-template-columns:repeat(2,minmax(0,1fr));
}

.morven-loyalty-overview-grid{
grid-template-columns:1fr;
}

.morven-loyalty-member-card{
grid-template-columns:auto minmax(0,1fr);
}

.morven-loyalty-member-meta{
grid-column:1 / -1;
text-align:left;
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
}

.morven-loyalty-overview-item--remaining{
align-items:flex-start;
flex-direction:column;
gap:4px;
}

.morven-loyalty-overview-item--remaining strong{
text-align:left;
}

.morven-loyalty-rules{
display:flex;
}

.morven-loyalty-rent-grid{
grid-template-columns:1fr;
}

.morven-loyalty-progress-head{
flex-direction:column;
align-items:flex-start;
}

.morven-loyalty-tier-row{
overflow-x:auto;
padding-bottom:2px;
}

.payment-membership-head,
.payment-membership-foot{
flex-direction:column;
align-items:flex-start;
gap:7px;
}

.payment-membership-foot span:last-child{
text-align:left;
}

.payment-membership-grid{
grid-template-columns:1fr;
}
}

.estate-news-feed{
grid-column:1 / -1;
height:340px;
display:flex;
flex-direction:column;
overflow:hidden;
position:relative;
background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,250,252,.94));
border:1px solid rgba(226,232,240,.9);
border-radius:18px;
box-shadow:0 14px 34px rgba(15,23,42,0.08);
backdrop-filter:blur(14px);
--estate-panel-blue:#2563eb;
--estate-panel-blue-soft:rgba(37,99,235,.08);
--estate-panel-blue-border:rgba(37,99,235,.22);
box-sizing:border-box;
}

.estate-news-feed::before{
content:"";
position:absolute;
inset:0;
background-image:url('/assets/customer-panel/duyuru-banner.png?v=1');
background-size:cover;
background-position:center right;
background-repeat:no-repeat;
opacity:.55;
pointer-events:none;
}

.estate-news-feed::after{
content:"";
position:absolute;
inset:0;
background:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.96) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.08) 76%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.30) 76%, rgba(255,255,255,.82) 100%);
pointer-events:none;
}

.estate-news-head{
padding:18px 22px 0;
flex:0 0 auto;
position:relative;
z-index:1;
}

.estate-news-titlebar{
display:flex;
align-items:center;
gap:18px;
margin-bottom:0;
}

.estate-news-head-icon-wrap{
width:60px;
height:60px;
border-radius:18px;
display:inline-flex;
align-items:center;
justify-content:center;
background:rgba(248,250,252,.92);
border:1px solid rgba(226,232,240,.95);
box-shadow:0 8px 18px rgba(15,23,42,.06);
padding:11px;
box-sizing:border-box;
flex:0 0 auto;
transition:background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.estate-news-head-icon-wrap:hover{
background:rgba(248,250,252,.98);
border-color:rgba(203,213,225,.95);
box-shadow:0 10px 20px rgba(15,23,42,.08);
}

.estate-news-head-icon{
width:40px;
height:40px;
display:block;
object-fit:contain;
}

.estate-news-head h2{
margin:0 0 7px;
font-size:18px;
color:#0f172a;
}

.estate-news-subtitle{
margin:0;
font-size:12px;
line-height:1.45;
color:#64748b;
}

.estate-news-list{
flex:1;
overflow-y:auto;
overflow-x:hidden;
scroll-behavior:smooth;
overscroll-behavior:contain;
padding:18px 22px 18px;
box-sizing:border-box;
position:relative;
z-index:1;
}

.estate-news-list::-webkit-scrollbar{
width:7px;
}

.estate-news-list::-webkit-scrollbar-track{
background:transparent;
}

.estate-news-list::-webkit-scrollbar-thumb{
background:rgba(148,163,184,.45);
border-radius:999px;
}

.estate-news-list{
scrollbar-width:thin;
scrollbar-color:rgba(148,163,184,.55) transparent;
}

.estate-news-item{
position:relative;
display:grid;
grid-template-columns:4px minmax(0,1fr);
align-items:start;
gap:18px;
padding:18px 12px 18px 0;
min-width:0;
width:100%;
min-height:150px;
box-sizing:border-box;
border:0;
border-bottom:1px solid rgba(226,232,240,.82);
border-radius:0;
transition:background .2s ease;
}

.estate-news-item:only-child{
min-height:205px;
}

.estate-news-item > div:last-child{
min-width:0;
}

.estate-news-item:last-child{
border-bottom-color:transparent;
}

.estate-news-item:hover{
background:rgba(37,99,235,.035);
}

.estate-news-strip{
width:4px;
align-self:stretch;
border-radius:999px;
background:var(--estate-panel-blue);
}

.estate-news-item--update .estate-news-strip,
.estate-news-item--event .estate-news-strip,
.estate-news-item--maintenance .estate-news-strip,
.estate-news-item--news .estate-news-strip{ background:var(--estate-panel-blue); }

.estate-news-meta{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
margin-bottom:8px;
min-width:0;
}

.estate-news-category{
display:inline-flex;
align-items:center;
gap:6px;
border-radius:999px;
padding:3px 8px;
background:var(--estate-panel-blue-soft);
color:var(--estate-panel-blue);
font-size:10px;
font-weight:900;
letter-spacing:.05em;
text-transform:uppercase;
border:1px solid var(--estate-panel-blue-border);
}

.estate-news-item--update .estate-news-category,
.estate-news-item--event .estate-news-category,
.estate-news-item--maintenance .estate-news-category{
background:var(--estate-panel-blue-soft);
color:var(--estate-panel-blue);
border-color:var(--estate-panel-blue-border);
}

.estate-news-date{
min-width:76px;
padding:8px 10px;
border-radius:10px;
background:rgba(255,255,255,.78);
border:1px solid rgba(226,232,240,.9);
box-shadow:0 8px 18px rgba(15,23,42,.06);
text-align:center;
white-space:nowrap;
opacity:.92;
margin-left:auto;
}

.estate-news-date-month{
display:block;
font-size:11px;
font-weight:900;
color:var(--estate-panel-blue);
line-height:1;
}

.estate-news-date-year{
display:block;
font-size:10px;
font-weight:800;
color:#94a3b8;
line-height:1.2;
margin-top:3px;
}

.estate-news-title-row{
display:flex;
align-items:center;
gap:8px;
min-width:0;
flex-wrap:wrap;
}

.estate-news-title{
font-size:17px;
font-weight:900;
color:#0f172a;
margin-bottom:6px;
}

.estate-news-new{
display:inline-flex;
align-items:center;
border-radius:999px;
padding:2px 6px;
background:#111827;
color:#fff;
font-size:9px;
font-weight:900;
letter-spacing:.06em;
}

.estate-news-status-badge{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:22px;
margin-left:auto;
padding:4px 9px;
border-radius:999px;
background:rgba(255,255,255,.66);
border:1px solid rgba(148,163,184,.34);
box-shadow:0 8px 18px rgba(15,23,42,.06);
backdrop-filter:blur(10px);
color:#334155;
font-size:10px;
font-weight:900;
letter-spacing:.04em;
line-height:1;
text-transform:uppercase;
white-space:nowrap;
}

.estate-news-status-badge--new{
background:rgba(37,99,235,.12);
border-color:rgba(37,99,235,.28);
color:#1d4ed8;
}

.estate-news-status-badge--featured{
background:rgba(245,158,11,.14);
border-color:rgba(245,158,11,.30);
color:#b45309;
}

.estate-news-status-badge--pinned{
background:rgba(99,102,241,.13);
border-color:rgba(99,102,241,.30);
color:#4f46e5;
}

.estate-news-status-badge--upcoming-event{
background:rgba(16,185,129,.13);
border-color:rgba(16,185,129,.30);
color:#047857;
}

.estate-news-status-badge--official{
background:rgba(15,23,42,.07);
border-color:rgba(15,23,42,.12);
color:#475569;
}

.estate-news-body{
font-size:13px;
line-height:1.52;
color:#64748b;
white-space:pre-line;
display:-webkit-box;
-webkit-line-clamp:4;
-webkit-box-orient:vertical;
overflow:hidden;
}

.estate-news-item.is-expanded .estate-news-body{
display:block;
overflow:visible;
}

.estate-news-readmore{
margin-top:5px;
padding:0;
border:0;
background:transparent;
color:var(--estate-panel-blue);
font-size:12px;
font-weight:800;
cursor:pointer;
}

.estate-news-feed a{
color:var(--estate-panel-blue);
}

body.dark .estate-news-feed{
background:rgba(30, 41, 59, 0.8) !important;
border-color:#334155;
box-shadow:0 18px 42px rgba(2, 6, 23, 0.28);
}

body.dark .estate-news-feed::before{
opacity:.22;
filter:saturate(.9) brightness(.7);
}

body.dark .estate-news-feed::after{
background:
    linear-gradient(90deg, rgba(30,41,59,.98) 0%, rgba(30,41,59,.92) 34%, rgba(15,23,42,.64) 62%, rgba(15,23,42,.28) 100%),
    linear-gradient(180deg, rgba(15,23,42,.18) 0%, rgba(30,41,59,.48) 74%, rgba(30,41,59,.90) 100%);
}

body.dark .estate-news-head h2,
body.dark .estate-news-title{
color:#f8fafc;
}

body.dark .estate-news-head-icon-wrap{
background:rgba(30, 41, 59, 0.75);
border:1px solid rgba(148, 163, 184, 0.15);
border-radius:16px;
backdrop-filter:blur(8px);
box-shadow:0 8px 20px rgba(0,0,0,.18);
}

body.dark .estate-news-head-icon-wrap:hover{
background:rgba(30, 41, 59, 0.82);
border-color:rgba(148, 163, 184, 0.18);
}

body.dark .estate-news-head-icon{
filter:brightness(1.15) contrast(1.1);
opacity:1;
}


body.dark .estate-news-subtitle,
body.dark .estate-news-body{
color:#cbd5e1;
}

body.dark .estate-news-status-badge{
background:rgba(15,23,42,.56);
border-color:rgba(148,163,184,.24);
box-shadow:0 10px 22px rgba(0,0,0,.18);
color:#e2e8f0;
}

body.dark .estate-news-status-badge--new{
background:rgba(37,99,235,.22);
border-color:rgba(96,165,250,.32);
color:#bfdbfe;
}

body.dark .estate-news-status-badge--featured{
background:rgba(245,158,11,.20);
border-color:rgba(251,191,36,.32);
color:#fde68a;
}

body.dark .estate-news-status-badge--pinned{
background:rgba(99,102,241,.22);
border-color:rgba(129,140,248,.34);
color:#c7d2fe;
}

body.dark .estate-news-status-badge--upcoming-event{
background:rgba(16,185,129,.20);
border-color:rgba(52,211,153,.30);
color:#bbf7d0;
}

body.dark .estate-news-status-badge--official{
background:rgba(148,163,184,.14);
border-color:rgba(203,213,225,.20);
color:#cbd5e1;
}

body.dark .estate-news-item{
border-bottom-color:rgba(51, 65, 85, 0.68);
}

body.dark .estate-news-item:hover{
background:rgba(15, 23, 42, 0.24);
}

body.dark .estate-news-date{
background:rgba(15, 23, 42, 0.58);
border-color:rgba(51, 65, 85, 0.68);
box-shadow:0 8px 18px rgba(2, 6, 23, 0.2);
}

body.dark .estate-news-date-year{
color:#94a3b8;
}

.estate-news-feed{
order:70;
height:185px;
display:flex;
flex-direction:column;
padding:0;
margin-bottom:0;
background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,250,252,.94));
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.estate-news-feed::before{
display:none;
}

.estate-news-feed::after{
display:none;
}

.estate-news-widget{
position:relative;
z-index:1;
height:100%;
min-width:0;
display:flex;
flex-direction:column;
border-radius:0;
padding:0;
background:transparent;
border:0;
box-shadow:none;
backdrop-filter:none;
box-sizing:border-box;
overflow:hidden;
}

.estate-news-head{
padding:14px 18px 0;
margin-bottom:0;
}

.estate-news-head > div{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:18px;
min-width:0;
}

.estate-news-titlebar{
gap:12px;
}

.estate-news-head-icon-wrap{
width:34px;
height:34px;
border-radius:10px;
padding:6px;
}

.estate-news-head-icon{
width:22px;
height:22px;
}

.estate-news-head h2{
margin:0 0 4px;
font-size:16px;
line-height:1.15;
font-weight:850;
}

.estate-news-subtitle{
display:block;
font-size:11px;
line-height:1.42;
margin:0;
max-width:620px;
color:#64748b;
overflow:hidden;
}

.estate-news-head-actions{
display:flex;
align-items:center;
gap:10px;
flex:0 0 auto;
padding-top:0;
}

.estate-news-head-badge{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:22px;
padding:4px 9px;
border-radius:999px;
background:rgba(37,99,235,.09);
border:1px solid rgba(37,99,235,.18);
color:var(--estate-panel-blue);
font-size:10px;
font-weight:900;
letter-spacing:.04em;
text-transform:uppercase;
white-space:nowrap;
}

.estate-news-head-link{
display:inline-flex;
align-items:center;
gap:6px;
font-size:12px;
font-weight:900;
color:var(--estate-panel-blue);
text-decoration:none;
white-space:nowrap;
}

.estate-news-list{
flex:1;
padding:16px 18px;
overflow-y:auto;
}

.estate-news-list::-webkit-scrollbar{
width:7px;
}

.estate-news-item{
display:grid;
grid-template-columns:1fr;
gap:0;
align-items:stretch;
height:100%;
min-height:0;
padding:0;
border:1px solid rgba(226,232,240,.82);
border-radius:10px;
background:rgba(255,255,255,.78);
box-shadow:0 8px 18px rgba(15,23,42,.045);
overflow:hidden;
}

.estate-news-main{
min-width:0;
display:flex;
flex-direction:column;
align-items:flex-start;
justify-content:center;
padding:16px 18px;
}

.estate-news-item:nth-child(n+2){
display:grid;
}

.estate-news-feed.is-showing-all .estate-news-item:nth-child(n+2){
display:grid;
margin-top:10px;
}

.estate-news-strip{
display:none;
}

.estate-news-meta{
margin-bottom:7px;
}

.estate-news-category{
display:inline-flex;
}

.estate-news-date{
display:none;
position:absolute;
right:10px;
bottom:10px;
min-width:0;
margin-left:0;
padding:6px 9px;
border:1px solid rgba(226,232,240,.9);
border-radius:999px;
box-shadow:0 8px 18px rgba(15,23,42,.06);
background:rgba(255,255,255,.86);
text-align:center;
opacity:.96;
}

.estate-news-date-month,
.estate-news-date-year{
display:block;
font-size:11px;
font-weight:900;
line-height:1;
color:var(--estate-panel-blue);
}

.estate-news-date-year{
margin:3px 0 0;
font-size:10px;
color:#94a3b8;
}

.estate-news-title-row{
align-items:center;
gap:8px;
margin-bottom:0;
}

.estate-news-card-head{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
width:100%;
margin-bottom:12px;
min-width:0;
}

.estate-news-heading-group{
display:flex;
align-items:center;
gap:12px;
min-width:0;
flex:1 1 auto;
}

.estate-news-mini-icon{
width:38px;
height:38px;
border-radius:10px;
display:inline-flex;
align-items:center;
justify-content:center;
background:rgba(248,250,252,.92);
border:1px solid rgba(226,232,240,.95);
box-shadow:0 6px 14px rgba(15,23,42,.05);
padding:7px;
box-sizing:border-box;
flex:0 0 auto;
}

.estate-news-mini-icon img{
width:24px;
height:24px;
display:block;
object-fit:contain;
}

.estate-news-heading-copy{
min-width:0;
flex:1 1 auto;
}

.estate-news-heading-copy h2{
margin:0 0 3px;
font-size:18px;
line-height:1.15;
font-weight:850;
color:#0f172a;
}

.estate-news-heading-copy p{
margin:0;
max-width:520px;
font-size:12.5px;
line-height:1.42;
color:#64748b;
}

.estate-news-kicker{
display:inline-flex;
align-items:center;
margin-bottom:7px;
padding:3px 8px;
border-radius:999px;
background:var(--estate-panel-blue-soft);
border:1px solid var(--estate-panel-blue-border);
font-size:10px;
font-weight:900;
letter-spacing:.08em;
text-transform:uppercase;
color:var(--estate-panel-blue);
}

.estate-news-title{
font-size:23px;
line-height:1.16;
font-weight:850;
margin-bottom:4px;
max-width:none;
}

.estate-news-inline-meta{
margin:0 0 6px;
font-size:12px;
line-height:1.3;
font-weight:700;
color:#94a3b8;
}

.estate-news-status-badge{
display:none;
position:absolute;
top:10px;
right:10px;
min-height:22px;
padding:4px 9px;
font-size:10px;
}

.estate-news-body{
font-size:14px;
line-height:1.45;
-webkit-line-clamp:2;
max-width:640px;
}

.estate-news-feed.is-showing-all .estate-news-body{
-webkit-line-clamp:3;
}

.estate-news-readmore{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:30px;
margin-top:0;
padding:0 12px;
border-radius:8px;
background:var(--estate-panel-blue);
color:#fff;
font-size:12px;
font-weight:850;
text-decoration:none;
border:0;
box-shadow:0 8px 16px rgba(37,99,235,.16);
}

.estate-news-actions{
display:flex;
align-items:center;
gap:12px;
margin-top:8px;
flex-wrap:wrap;
}

.estate-news-footer{
display:none;
}

.estate-news-visual{
display:none;
position:relative;
min-width:0;
margin:14px 14px 14px 0;
border-radius:10px;
overflow:hidden;
background:linear-gradient(135deg, rgba(226,232,240,.70), rgba(248,250,252,.92));
border:1px solid rgba(226,232,240,.80);
}

.estate-news-visual::after{
content:"";
position:absolute;
inset:0;
background:linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.62));
pointer-events:none;
}

.estate-news-visual img{
width:100%;
height:100%;
display:block;
object-fit:cover;
opacity:.42;
filter:saturate(.9) contrast(1.04);
}

.estate-news-feed{
height:auto;
min-height:0;
padding:0;
background:#fff;
border:1px solid rgba(226,232,240,.9);
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.estate-news-widget{
padding:18px;
gap:16px;
overflow:visible;
}

.estate-updates-head{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:18px;
}

.estate-updates-titlebar{
display:flex;
align-items:center;
gap:12px;
min-width:0;
}

.estate-updates-titlebar h2{
margin:0 0 4px;
font-size:20px;
line-height:1.15;
font-weight:850;
color:#0f172a;
}

.estate-updates-titlebar p{
margin:0;
font-size:13px;
line-height:1.45;
color:#64748b;
}

.estate-updates-grid{
display:grid;
grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
gap:16px;
align-items:stretch;
min-width:0;
}

.estate-updates-column{
min-width:0;
border:1px solid rgba(226,232,240,.86);
border-radius:10px;
background:#fff;
box-shadow:0 8px 18px rgba(15,23,42,.035);
padding:14px;
}

.estate-updates-column--news{
align-self:stretch;
height:100%;
min-height:100%;
display:flex;
flex-direction:column;
justify-content:flex-start;
box-sizing:border-box;
}

.estate-updates-section-head{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
margin-bottom:12px;
}

.estate-updates-column--news > .estate-updates-section-head{
position:relative;
z-index:1;
padding-right:14px;
}

.estate-updates-column--news .estate-news-head-badge{
position:static;
flex:0 0 auto;
margin:0;
}

.estate-updates-section-head h3{
margin:0;
font-size:15px;
line-height:1.2;
font-weight:850;
color:#0f172a;
}

.estate-news-list{
display:grid;
grid-template-columns:1fr;
gap:10px;
padding:0;
overflow:visible;
}

.estate-news-list--scrollable{
max-height:320px;
padding-right:14px;
overflow-y:auto;
overflow-x:hidden;
scrollbar-gutter:stable;
scrollbar-width:thin;
scrollbar-color:rgba(148,163,184,.58) transparent;
}

.estate-news-list--scrollable::-webkit-scrollbar{
width:6px;
}

.estate-news-list--scrollable::-webkit-scrollbar-track{
background:transparent;
margin-block:4px;
}

.estate-news-list--scrollable::-webkit-scrollbar-thumb{
background:rgba(148,163,184,.52);
border-radius:999px;
border:1px solid transparent;
background-clip:padding-box;
}

.estate-news-list--scrollable::-webkit-scrollbar-thumb:hover{
background:rgba(96,165,250,.58);
background-clip:padding-box;
}

.estate-news-list--scrollable .estate-news-item{
width:100%;
box-sizing:border-box;
}

.estate-news-list--scrollable .estate-news-main,
.estate-news-list--scrollable .estate-news-item--featured .estate-news-main{
padding:11px 12px;
}

.estate-news-list--scrollable .estate-news-title,
.estate-news-list--scrollable .estate-news-item--featured .estate-news-title{
font-size:15px;
}

.estate-news-item,
.estate-news-feed.is-showing-all .estate-news-item:nth-child(n+2){
display:block;
height:auto;
min-height:0;
margin-top:0;
padding:0;
border:1px solid rgba(226,232,240,.86);
border-radius:8px;
background:#fff;
box-shadow:none;
overflow:hidden;
}

.estate-news-main{
padding:12px;
justify-content:flex-start;
}

.estate-news-item--featured .estate-news-main{
padding:14px;
}

.estate-news-kicker{
margin-bottom:7px;
}

.estate-news-title{
font-size:16px;
line-height:1.22;
margin-bottom:5px;
}

.estate-news-item--featured .estate-news-title{
font-size:18px;
}

.estate-news-inline-meta{
margin:0 0 6px;
font-size:11px;
}

.estate-news-body{
font-size:12.5px;
line-height:1.45;
-webkit-line-clamp:2;
max-width:none;
}

.estate-news-actions{
margin-top:8px;
}

.estate-news-readmore{
min-height:auto;
padding:0;
border-radius:0;
background:transparent;
color:var(--estate-panel-blue);
box-shadow:none;
font-size:12px;
font-weight:850;
}

.estate-news-readmore::after{
content:" ->";
}

.estate-insights-list{
display:grid;
grid-template-columns:1fr;
gap:8px;
}

.estate-insight-row{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding:10px 11px;
border:1px solid rgba(226,232,240,.86);
border-radius:8px;
background:#fff;
}

.estate-insight-row span{
font-size:12px;
font-weight:700;
color:#64748b;
}

.estate-insight-row strong{
font-size:12px;
font-weight:850;
color:#0f172a;
text-align:right;
}

.estate-feedback-box{
margin:0;
padding:12px;
border-radius:10px;
border:1px solid rgba(226,232,240,.86);
background:#fff;
box-shadow:0 8px 18px rgba(15,23,42,.035);
}

.estate-updates-side-stack{
display:flex;
flex-direction:column;
gap:16px;
align-self:stretch;
height:100%;
min-width:0;
box-sizing:border-box;
}

.estate-updates-grid.is-measuring-heights .estate-updates-column--news,
.estate-updates-grid.is-measuring-heights .estate-updates-side-stack{
height:auto !important;
min-height:0 !important;
}

.estate-feedback-box h3{
margin:0 0 5px;
font-size:15px;
line-height:1.2;
font-weight:850;
color:#0f172a;
}

.estate-feedback-box p{
margin:0 0 10px;
font-size:13px;
line-height:1.4;
color:#475569;
}

.estate-feedback-button{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:32px;
padding:0 12px;
border:0;
border-radius:8px;
background:var(--estate-panel-blue);
color:#fff;
font:inherit;
font-size:12px;
font-weight:850;
cursor:pointer;
box-shadow:0 8px 16px rgba(37,99,235,.16);
}

.estate-modal-overlay{
position:fixed;
inset:0;
z-index:10000;
display:none;
align-items:center;
justify-content:center;
padding:18px;
background:rgba(15,23,42,.48);
backdrop-filter:blur(6px);
}

.estate-modal-overlay.is-open{
display:flex;
}

.estate-modal{
width:min(520px,100%);
max-height:min(86vh,720px);
overflow:auto;
border-radius:10px;
background:#fff;
border:1px solid rgba(226,232,240,.95);
box-shadow:0 24px 80px rgba(15,23,42,.28);
}

.estate-modal-head{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:14px;
padding:18px 18px 12px;
border-bottom:1px solid rgba(226,232,240,.82);
}

.estate-modal-title{
margin:0;
font-size:18px;
line-height:1.2;
font-weight:850;
color:#0f172a;
}

.estate-modal-meta{
margin:5px 0 0;
font-size:12px;
font-weight:700;
color:#64748b;
}

.estate-modal-close{
width:34px;
height:34px;
border:0;
border-radius:8px;
background:#f1f5f9;
color:#334155;
font-size:22px;
line-height:1;
font-family:inherit;
cursor:pointer;
}

.estate-modal-body{
padding:16px 18px 18px;
font-size:14px;
line-height:1.58;
color:#334155;
white-space:pre-wrap;
}

#estateFeedbackForm.estate-feedback-form{
position:static;
display:grid;
gap:8px;
white-space:normal;
margin:0;
padding:0;
border:0;
border-radius:0;
background:transparent;
box-shadow:none;
box-sizing:border-box;
}

#estateFeedbackForm.estate-feedback-form[hidden]{
display:none;
}

.estate-feedback-form label{
display:grid;
gap:4px;
font-size:12px;
font-weight:850;
color:#475569;
}

.estate-feedback-form input,
.estate-feedback-form textarea{
width:100%;
border:1px solid rgba(203,213,225,.95);
border-radius:8px;
padding:6px 8px;
font:inherit;
font-size:12px;
color:#0f172a;
background:#fff;
outline:none;
}

.estate-feedback-form textarea{
resize:vertical;
height:84px;
min-height:80px;
max-height:100px;
}

.estate-feedback-form input:focus,
.estate-feedback-form textarea:focus{
border-color:var(--estate-panel-blue);
box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.estate-feedback-status{
min-height:16px;
font-size:12px;
font-weight:750;
color:#64748b;
}

.estate-feedback-status.is-success{
color:#15803d;
}

.estate-feedback-status.is-error{
color:#b91c1c;
}

.estate-feedback-submit{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:32px;
padding:0 13px;
border:0;
border-radius:8px;
background:var(--estate-panel-blue);
color:#fff;
font-size:13px;
font-weight:850;
font-family:inherit;
cursor:pointer;
box-shadow:0 10px 18px rgba(37,99,235,.18);
}

.estate-feedback-actions{
display:flex;
align-items:center;
justify-content:flex-start;
gap:10px;
margin-top:1px;
}

.estate-feedback-cancel{
border:0;
background:transparent;
padding:0;
font:inherit;
font-size:12px;
font-weight:800;
color:#64748b;
cursor:pointer;
}

.estate-news-view-all{
display:inline-flex;
align-items:center;
gap:6px;
font-size:12px;
font-weight:900;
color:var(--estate-panel-blue);
text-decoration:none;
}

.estate-news-view-all::after{
content:"";
width:6px;
height:6px;
border-top:2px solid currentColor;
border-right:2px solid currentColor;
transform:rotate(45deg);
opacity:.78;
}

body.dark .estate-news-feed{
background:rgba(30, 41, 59, 0.8) !important;
}

body.dark .estate-updates-titlebar h2,
body.dark .estate-updates-section-head h3,
body.dark .estate-feedback-box h3,
body.dark .estate-insight-row strong{
color:#f8fafc;
}

body.dark .estate-updates-titlebar p,
body.dark .estate-insight-row span,
body.dark .estate-feedback-box p{
color:#cbd5e1;
}

body.dark .estate-updates-column{
background:rgba(15,23,42,.22);
border-color:rgba(51,65,85,.70);
box-shadow:none;
}

body.dark .estate-news-item,
body.dark .estate-insight-row{
background:rgba(15,23,42,.32);
border-color:rgba(51,65,85,.70);
}

body.dark .estate-feedback-box{
background:rgba(37,99,235,.12);
border-color:rgba(96,165,250,.24);
}

body.dark .estate-modal{
background:#1e293b;
border-color:rgba(51,65,85,.9);
}

body.dark .estate-modal-head{
border-bottom-color:rgba(51,65,85,.9);
}

body.dark .estate-modal-title{
color:#f8fafc;
}

body.dark .estate-modal-meta,
body.dark .estate-modal-body,
body.dark .estate-feedback-form label,
body.dark .estate-feedback-status{
color:#cbd5e1;
}

body.dark .estate-modal-close{
background:#334155;
color:#f8fafc;
}

body.dark .estate-feedback-form input,
body.dark .estate-feedback-form textarea{
background:#0f172a;
border-color:#334155;
color:#f8fafc;
}

body.dark .estate-feedback-form{
background:transparent;
box-shadow:none;
}

body.dark .estate-news-feed::before{
opacity:.22;
filter:saturate(.9) brightness(.7);
}

body.dark .estate-news-feed::after{
background:
    linear-gradient(90deg, rgba(30,41,59,.98) 0%, rgba(30,41,59,.92) 34%, rgba(15,23,42,.64) 62%, rgba(15,23,42,.28) 100%),
    linear-gradient(180deg, rgba(15,23,42,.18) 0%, rgba(30,41,59,.48) 74%, rgba(30,41,59,.90) 100%);
}

body.dark .estate-news-widget{
background:transparent;
border-color:transparent;
box-shadow:none;
}

body.dark .estate-news-head-badge{
background:rgba(96,165,250,.14);
border-color:rgba(96,165,250,.28);
color:#bfdbfe;
}

body.dark .estate-news-head-link{
color:#93c5fd;
}

body.dark .estate-news-item{
background:rgba(15,23,42,.26);
border-color:rgba(51,65,85,.70);
}

body.dark .estate-news-heading-copy h2{
color:#f8fafc;
}

body.dark .estate-news-heading-copy p{
color:#cbd5e1;
}

body.dark .estate-news-readmore{
background:#3b82f6;
color:#fff;
box-shadow:0 8px 16px rgba(59,130,246,.16);
}

body.dark .estate-news-inline-meta{
color:#94a3b8;
}

body.dark .estate-news-mini-icon,
body.dark .estate-news-visual{
background:rgba(15,23,42,.38);
border-color:rgba(51,65,85,.70);
}

body.dark .estate-news-visual img{
opacity:.24;
filter:saturate(.85) brightness(.72);
}

body.dark .estate-news-date,
body.dark .estate-news-date-month,
body.dark .estate-news-date-year{
color:#94a3b8;
}

body.dark .estate-news-footer{
border-top-color:rgba(51,65,85,.72);
}

@media (max-width: 900px){
    .estate-news-feed{
        height:auto;
        min-height:0;
        padding:0;
    }

    .estate-news-feed::before{
        left:0;
        opacity:.28;
    }

    .estate-news-head > div{
        flex-direction:column;
        gap:10px;
    }

    .estate-news-head-actions{
        width:100%;
        justify-content:space-between;
    }

    .estate-news-title{
        max-width:100%;
    }

    .estate-updates-head{
        flex-direction:column;
        gap:12px;
    }

    .estate-updates-grid{
        grid-template-columns:1fr;
    }

    .estate-updates-column--news,
    .estate-updates-side-stack{
        height:auto;
        min-height:0;
    }

    .estate-news-item{
        grid-template-columns:1fr;
        height:auto;
        min-height:0;
    }

    .estate-news-main{
        padding:16px;
    }

    .estate-news-card-head{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
    }

    .estate-news-head-actions{
        width:100%;
        justify-content:space-between;
    }

    .estate-news-visual{
        display:none;
    }
}

.monitoring-insights-grid{
grid-column:1 / -1;
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:24px;
align-items:stretch;
}

.monitoring-insights-grid .restart-history-card,
.monitoring-insights-grid .ai-event-card{
grid-column:auto;
height:300px;
min-width:0;
margin:0;
padding:20px;
border:1px solid #e2e8f0;
border-radius:18px;
box-shadow:0 14px 34px rgba(15,23,42,0.08);
box-sizing:border-box;
}

.restart-history-card{
grid-column:1 / -1;
height:300px;
display:flex;
flex-direction:column;
overflow:hidden;
border-radius:18px;
}

.restart-history-head{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:18px;
padding-bottom:14px;
border-bottom:1px solid rgba(226,232,240,.82);
}

.restart-history-head h2{
margin:0 0 6px;
font-size:18px;
color:#0f172a;
}

.restart-history-subtitle{
margin:0;
font-size:12px;
line-height:1.45;
color:#64748b;
}

.restart-history-list{
flex:1;
overflow-y:auto;
overflow-x:hidden;
scroll-behavior:smooth;
overscroll-behavior:contain;
padding-top:8px;
padding-right:4px;
}

.restart-history-list::-webkit-scrollbar{
width:7px;
}

.restart-history-list::-webkit-scrollbar-track{
background:transparent;
}

.restart-history-list::-webkit-scrollbar-thumb{
background:rgba(148,163,184,.45);
border-radius:999px;
}

.restart-history-list{
scrollbar-width:thin;
scrollbar-color:rgba(148,163,184,.55) transparent;
}

.restart-history-row{
display:grid;
grid-template-columns:38px minmax(0,1fr);
gap:13px;
align-items:flex-start;
padding:13px 6px 13px 0;
border-bottom:1px solid rgba(226,232,240,.82);
transition:background .2s ease;
}

.restart-history-row:hover{
background:rgba(37,99,235,.035);
}

.restart-history-row:last-child{
border-bottom:0;
}

.restart-history-type{
font-size:13px;
font-weight:900;
color:#0f172a;
margin-bottom:3px;
}

.restart-history-meta{
font-size:12px;
font-weight:700;
color:#64748b;
line-height:1.45;
}

.parcel-activity-description{
margin:5px 0 0;
font-size:12px;
font-weight:700;
line-height:1.45;
color:#475569;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

.parcel-activity-icon{
width:34px;
height:34px;
border-radius:12px;
display:inline-flex;
align-items:center;
justify-content:center;
font-size:13px;
font-weight:900;
letter-spacing:.01em;
color:#2563eb;
background:rgba(37,99,235,.08);
border:1px solid rgba(37,99,235,.16);
box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.activity-type--security,
.activity-type--access,
.activity-type--visitor{
color:#0f766e;
background:rgba(20,184,166,.09);
border-color:rgba(20,184,166,.18);
}

.activity-type--objects,
.activity-type--maintenance{
color:#a16207;
background:rgba(234,179,8,.12);
border-color:rgba(234,179,8,.22);
}

.activity-type--media,
.activity-type--settings{
color:#7c3aed;
background:rgba(124,58,237,.09);
border-color:rgba(124,58,237,.18);
}

.activity-type--emergency{
color:#dc2626;
background:rgba(239,68,68,.09);
border-color:rgba(239,68,68,.18);
}

.activity-type--blocked{
color:#991b1b;
background:rgba(185,28,28,.09);
border-color:rgba(185,28,28,.18);
}

.activity-type--manager{
color:#92400e;
background:rgba(245,158,11,.12);
border-color:rgba(245,158,11,.22);
}

.restart-history-empty{
padding:18px 0;
font-size:13px;
color:#64748b;
}

body.dark .restart-history-card{
background:rgba(30, 41, 59, 0.8) !important;
border-color:#334155;
box-shadow:0 18px 42px rgba(2, 6, 23, 0.28);
}

body.dark .restart-history-head,
body.dark .restart-history-row{
border-color:rgba(51, 65, 85, 0.68);
}

body.dark .restart-history-head h2,
body.dark .restart-history-type{
color:#f8fafc;
}

body.dark .restart-history-subtitle,
body.dark .restart-history-meta,
body.dark .parcel-activity-description,
body.dark .restart-history-empty{
color:#cbd5e1;
}

body.dark .restart-history-row:hover{
background:rgba(15, 23, 42, 0.24);
}

body.dark .parcel-activity-icon{
background:rgba(15, 23, 42, 0.34);
border-color:rgba(96, 165, 250, 0.22);
box-shadow:0 8px 18px rgba(2, 6, 23, 0.18);
color:#93c5fd;
}

body.dark .activity-type--security,
body.dark .activity-type--access,
body.dark .activity-type--visitor{
color:#5eead4;
border-color:rgba(45, 212, 191, 0.22);
}

body.dark .activity-type--objects,
body.dark .activity-type--maintenance{
color:#fde68a;
border-color:rgba(250, 204, 21, 0.22);
}

body.dark .activity-type--media,
body.dark .activity-type--settings{
color:#c4b5fd;
border-color:rgba(167, 139, 250, 0.22);
}

body.dark .activity-type--emergency{
color:#fca5a5;
border-color:rgba(248, 113, 113, 0.22);
}

body.dark .activity-type--blocked{
color:#fecaca;
border-color:rgba(248, 113, 113, 0.22);
}

body.dark .activity-type--manager{
color:#fcd34d;
border-color:rgba(251, 191, 36, 0.22);
}

/* STATS */

.stats{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
margin-bottom:25px;
order:20;
}

.stat{
background:white;
padding:24px;
border-radius:15px;
box-shadow:0 4px 12px rgba(0,0,0,0.03);
transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}

.stat:hover{
transform:translateY(-5px);
box-shadow:0 20px 40px rgba(0,0,0,0.1);
}

.stat-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 12px;
}

.stat-icon {
width: 44px;
height: 44px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(37, 99, 235, 0.05);
}

.stat-icon img {
width: 32px;
height: 32px;
object-fit: contain;
}

body.dark .stat-icon img {
    filter: brightness(0) invert(1); 
}

.stat-trend {
font-size: 11px;
font-weight: 700;
padding: 4px 8px;
border-radius: 20px;
background: #ecfdf5;
color: #10b981;
}

.stat-trend.down {
background: #fef2f2;
color: #ef4444;
}

.live-indicator {
display: flex;
align-items: center;
gap: 6px;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 4px 8px;
border-radius: 20px;
}
.live-indicator.green { color: #047857; background: #ecfdf5; }
.live-indicator.blue { color: #3b82f6; background: #eff6ff; }
body.dark .live-indicator.green { color: #6ee7b7; background: rgba(16, 185, 129, 0.1); }
body.dark .live-indicator.blue { background: rgba(59, 130, 246, 0.1); }

.pulse-dot { width: 6px; height: 6px; border-radius: 50%; position: relative; }
.pulse-dot.green { background-color: #10b981; }
.pulse-dot.blue { background-color: #3b82f6; }
.pulse-dot::after {
content: ''; position: absolute; inset: -2px; border-radius: 50%;
animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-dot.green::after { background-color: #10b981; }
.pulse-dot.blue::after { background-color: #3b82f6; }
@keyframes ping { 75%, 100% { transform: scale(2.5); opacity: 0; } }
/* The Live status ping is explicitly continuous, including reduced-motion mode. */
#visitorsLive .pulse-dot{display:block;flex:0 0 6px}
#visitorsLive .pulse-dot::after{
display:block;pointer-events:none;
animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@media(prefers-reduced-motion:reduce){.pulse-dot::after{animation:none;display:none}}

.stat-title{
font-size:13px;
color:#64748b;
font-weight: 600;
}

.stat-value{
font-size:32px;
margin-top:4px;
color:#1e293b;
font-weight:800;
letter-spacing: -0.5px;
}

body.dark .stat-value { color: white; }

/* GRID */
.grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:32px;
align-items:start;
grid-auto-rows: minmax(0, auto);
order:40;
}

.grid > .panel,
.grid > .column-stack{
    align-self: start;
    height: auto;
    min-width: 0;
}

.dashboard-two-column-row{
grid-column:1 / -1;
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:24px;
align-items:stretch;
min-width:0;
}

.dashboard-two-column-row > section{
height:100%;
min-height:360px;
margin-bottom:0;
box-sizing:border-box;
}

.dashboard-two-column-row > .land-profile-card,
.dashboard-two-column-row > .lease-overview-card{
padding:20px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.dashboard-two-column-row > .lease-overview-card{
order:0;
}

.column-stack {
display: flex;
flex-direction: column;
gap: 20px;
min-width: 0;
}

.panel{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
transition:0.25s;
box-sizing:border-box;
}

.panel:hover{
transform:translateY(-3px);
box-shadow:0 12px 25px rgba(0,0,0,0.12);
}

.panel h3{
margin-top:0;
margin-bottom:15px;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}

#weeklyTrafficCard,
#peakHoursCard{
    min-height: 760px;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#peakHoursCard{
    min-height: 760px;
    height: auto;
}

.traffic-panel{
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.traffic-card-head{
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.traffic-card-head h3{
    margin: 0 0 8px;
    padding: 0;
    border-bottom: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.traffic-card-head p{
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.traffic-card-stat{
    min-width: 150px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.traffic-card-stat span{
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.traffic-card-stat strong{
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.traffic-card-stat small{
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.traffic-chart-stage{
    position: relative;
    flex: 0 0 620px;
    height: 620px;
    min-height: 620px;
    max-height: none;
    padding: 26px 22px 18px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    overflow: hidden;
    box-sizing: border-box;
}

.traffic-chart-stage::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 55%);
    pointer-events: none;
}

.traffic-chart-stage--bars::before{
    background:
        radial-gradient(circle at 52% 10%, rgba(59, 130, 246, 0.13), transparent 40%),
        radial-gradient(circle at 50% 28%, rgba(96, 165, 250, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 68%);
}

.traffic-chart-stage canvas{
    display: block;
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
}


/* TABLE */

table{
width:100%;
border-collapse:collapse;
}

th,td{
padding:10px;
border-bottom:1px solid #eee;
}

/* BUTTONS */

.btn{
padding:12px 24px;
border-radius:10px;
font-size:13px;
font-weight: 700;
color:white;
text-decoration:none;
cursor:pointer;
border:none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%; 
background: linear-gradient(135deg, #3b82f6, #2563eb);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:hover{
transform: translateY(-2px);
box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
filter: brightness(1.1);
}

.btn-sm { width: auto !important; padding: 8px 16px !important; }

/* VISITOR INSIGHTS SPECIFIC */
.v-card {
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-activity-title{
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.recent-activity-list{
    flex: 1;
    overflow-y: auto;
}

.v-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#22c55e;
}

.v-name{
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.v-time{
    font-size: 11px;
    color: #64748b;
}

body.dark .recent-activity-title{
    color: #cbd5e1;
}

body.dark .v-card{
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark .v-name{
    color: #f8fafc;
}

body.dark .v-time{
    color: #94a3b8;
}

body.dark #activeTodayText{
    color: #cbd5e1 !important;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    width: 65%;
}

/* ENHANCED MAP DESIGN */
.map-panel {
    grid-column: span 2;
    order:80;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    min-height: 390px;
}

.map-header {
    padding: 20px;
    background: white;
}

body.dark .map-header { background: rgba(30, 41, 59, 0.8); border-bottom: 1px solid #334155; }
body.dark .map-container{
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(37, 99, 235, 0.08)),
        #111827;
}

body.dark .map-container::before{
    background:linear-gradient(135deg, rgba(15,23,42,.16), rgba(15,23,42,.06) 52%, rgba(37,99,235,.04));
}

body.dark .map-open-card{
    background: rgba(15, 23, 42, .34);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 14px 28px rgba(2,6,23,.24);
}

body.dark .map-open-card h4{
    color:#f8fafc;
}

body.dark .map-open-card p{
    color:#cbd5e1;
}

.map-container {
    position: relative;
    width: 100%;
    height: 420px;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(37, 99, 235, 0.05)),
        #e5e7eb;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: background-image .35s ease;
}

.map-container::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 48%, rgba(15,23,42,.04));
    opacity:0;
    pointer-events:none;
    transition:opacity .35s ease;
}

.map-container.has-map-image::before{
    opacity:1;
}

.map-image-frame{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    overflow:hidden;
    z-index:0;
}

.map-region-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
    transform:scale(1.06);
    filter:blur(14px) brightness(.72) contrast(1.08);
    z-index:0;
}

.map-region-image{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center center;
    transform:none;
    filter:brightness(.96) contrast(1.05);
    position:relative;
    z-index:1;
}

.map-open-card {
    position: relative;
    z-index: 1;
    width:fit-content;
    max-width:calc(100% - 36px);
    text-align: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.24);
    border: 1px solid rgba(255,255,255,.34);
    box-shadow: 0 14px 28px rgba(15,23,42,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.map-open-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(15,23,42,.75), 0 1px 2px rgba(15,23,42,.9);
}

.map-open-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.map-open-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #eee;
}

/* FOOTER */
.bottom-bar{
position:fixed;
bottom:0;
left:0;
width:100%;
height:62px;
background:linear-gradient(90deg, #0b1428 0%, #0f1b36 50%, #0b1428 100%);
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:12px;
z-index:1000;
padding:0 16px;
box-sizing:border-box;
border-top:1px solid rgba(59, 130, 246, 0.25);
letter-spacing:0.3px;
}

.bottom-content{
display:flex;
align-items:center;
gap:14px;
white-space:nowrap;
color:#dbeafe;
font-weight:500;
}

.bottom-sep{
opacity:0.25;
}

.bottom-brand{
font-weight:700;
color:#ffffff;
letter-spacing:0.5px;
}

.access-stack{
    gap: 16px;
}

.access-toolbar{
    display:flex;
    gap:10px;
    margin-bottom:12px;
}

.access-table td{
    font-size:13px;
    padding:10px 8px;
}

.access-pagination{
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.access-page-info{
    font-size: 12px;
    color: #64748b;
    min-width: 72px;
    text-align: center;
}

.access-page-btn{
    min-width: 64px;
}

body.dark .access-page-info{
    color: #cbd5e1;
}
@media (min-width: 901px){
    .access-stack{
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
}
/* ANALYTICS MODAL */
.analytics-overlay{
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2900;
    padding: 16px;
}

.analytics-modal{
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 50px rgba(15,23,42,0.25);
    overflow: hidden;
}

.analytics-head{
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-title{
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.analytics-sub{
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.analytics-close{
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.analytics-body{
    max-height: 420px;
    overflow-y: auto;
    padding: 12px 16px 16px;
}

.analytics-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
}

.analytics-row:last-child{
    border-bottom: none;
}

.analytics-name{
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-weight: 600;
}

.analytics-time{
    color: #64748b;
    font-size: 11px;
}

body.dark .analytics-modal{
    background: #0f172a;
    border-color: #334155;
}

body.dark .analytics-head{
    border-color: #334155;
}

body.dark .analytics-title{
    color: #f8fafc;
}

body.dark .analytics-sub,
body.dark .analytics-close,
body.dark .analytics-time{
    color: #94a3b8;
}

body.dark .analytics-row{
    border-color: #334155;
}

body.dark .analytics-name{
    color: #e2e8f0;
}

/* LAND TEAM */
.team-table td:nth-child(2),
.team-table th:nth-child(2){
    width: 110px;
}

.team-table td:last-child,
.team-table th:last-child{
    width: 110px;
    text-align: right;
}

.team-role-owner{
    color:#475569;
    font-weight:700;
}

.team-role-coowner{
    color:#1e293b;
    font-weight:700;
}

body.dark .team-role-owner,
body.dark .team-role-coowner{
    color:#e2e8f0;
}

.team-owner-card{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.team-owner-meta,
.team-member-meta{
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team-section-label{
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.team-member-name{
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.team-member-sub{
    font-size: 11px;
    color: #64748b;
}

.team-coowner-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    min-width: 136px;
}

.team-coowner-list{
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.team-coowner-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.team-empty-state{
    padding: 18px 12px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 14px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    background: rgba(248, 250, 252, 0.7);
}

body.dark .team-owner-card{
    border-color: rgba(96, 165, 250, 0.18);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.82) 100%);
}

body.dark .team-member-name{
    color: #f8fafc;
}

body.dark .team-member-sub,
body.dark .team-section-label,
body.dark .team-empty-state{
    color: #94a3b8;
}

body.dark .team-coowner-row{
    border-color: rgba(51, 65, 85, 0.72);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86) 0%, rgba(17, 24, 39, 0.92) 100%);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.18);
}

body.dark .team-empty-state{
    border-color: rgba(51, 65, 85, 0.72);
    background: rgba(15, 23, 42, 0.58);
}

#healthPanel,
#teamSection{
    min-height: 320px;
    height: 320px;
    box-sizing: border-box;
}

#healthPanel{
    display: flex;
    flex-direction: column;
}

#healthPanel table{
    flex: 1 1 auto;
    height: 100%;
}

#healthPanel td{
    padding: 14px 10px;
}

#healthPanel td:last-child{
    text-align: right;
}

#healthPanel tr:last-child td{
    border-bottom: none;
}

.placeholder-panel{
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.placeholder-body{
    flex: 1;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.land-profile-row{
    display: grid;
    grid-template-columns: minmax(86px, max-content) minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    font-size: 12px;
    min-height: 28px;
    padding: 5px 0;
    border-bottom: 1px solid #e2e8f0;
}

.land-profile-row:last-child{
    border-bottom: none;
}

.land-profile-key{
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.land-profile-val{
    color: #1e293b;
    font-weight: 700;
    min-width: 0;
    text-align: right;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.dark .placeholder-body{
    border-color: #334155;
    background: #0b1221;
}

body.dark .land-profile-row{
    border-color: #334155;
}

body.dark .land-profile-key{
    color: #94a3b8;
}

body.dark .land-profile-val{
    color: #e2e8f0;
}

/* CONFIRM MODAL */
.confirm-overlay{
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 16px;
}

.confirm-modal{
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 50px rgba(15,23,42,0.25);
    overflow: hidden;
}

.confirm-head{
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.confirm-body{
    padding: 14px 16px;
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}

.confirm-actions{
    padding: 12px 16px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.confirm-btn{
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.confirm-btn.cancel{
    background: #e2e8f0;
    color: #334155;
}

.confirm-btn.ok{
    background: #2563eb;
    color: #fff;
}

body.dark .confirm-modal{
    background: #0f172a;
    border-color: #334155;
}

body.dark .confirm-head{
    color: #f8fafc;
    border-color: #334155;
}

body.dark .confirm-body{
    color: #cbd5e1;
}

body.dark .confirm-btn.cancel{
    background: #334155;
    color: #e2e8f0;
}
/* PRIM OWNERS */
.prim-subtitle{
    margin: -6px 0 14px;
    font-size: 12px;
    color: #64748b;
}

.prim-summary{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.prim-chip{
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    color: #334155;
    font-weight: 700;
}

.prim-toolbar{
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.prim-toolbar input{
    flex: 1;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

#primOwnersPanel .btn-primary{
    min-width: 96px;
}

.prim-owner-table th{
    font-size: 12px;
    color: #475569;
}

.prim-owner-table td{
    font-size: 13px;
}

.prim-owner-table td:nth-child(2),
.prim-owner-table th:nth-child(2){
    width: 70px;
    text-align: center;
}

.prim-owner-table td:last-child,
.prim-owner-table th:last-child{
    text-align: right;
}

.prim-usage-value{
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.prim-usage-bar{
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.prim-usage-fill{
    height: 100%;
    background: #4b5fcf;
    border-radius: inherit;
}

body.dark .prim-usage-value{
    color: #cbd5e1;
}

.prim-table-wrap{
    min-height: 150px;
    flex: 1 1 auto;
    overflow: hidden;
}

.prim-pagination{
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.prim-page-info{
    font-size: 12px;
    color: #64748b;
    min-width: 72px;
    text-align: center;
}

.prim-page-btn{
    min-width: 64px;
}

body.dark .prim-page-info{
    color: #cbd5e1;
}

body.dark .prim-subtitle{ color: #94a3b8; }
body.dark .prim-chip{
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
body.dark .prim-toolbar input{
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
/* PARCEL RADIO */
.radio-shell{
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
}

#primOwnersPanel,
#streamSection{
    min-height: 460px;
    height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
    box-sizing: border-box;
}

#primOwnersPanel .prim-pagination{
    margin-top: auto;
}

#streamSection .radio-shell{
    justify-content: flex-start;
    gap: 12px;
}

#streamSection .radio-stop{
    margin-top: 0;
}

.radio-status-card{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.radio-status-line{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-label{
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.radio-value{
    font-size: 13px;
    font-weight: 700;
}

.radio-value.playing{ color: #16a34a; }
.radio-value.stopped{ color: #ef4444; }

.radio-active-name{
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-all;
}

.radio-row label{
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.radio-input-group{
    display: flex;
    gap: 10px;
}

.radio-input-group input{
    flex: 1;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.radio-presets{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.radio-stop{
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

body.dark .radio-status-card{
    background: #0b1221;
    border-color: #334155;
}

body.dark .radio-label{
    color: #94a3b8;
}

body.dark .radio-active-name,
body.dark .radio-row label{
    color: #e2e8f0;
}

body.dark .radio-input-group input{
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

body.dark .traffic-panel{
    border-color: rgba(71, 85, 105, 0.52);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #111c31 100%);
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.38);
}

body.dark .traffic-card-head{
    border-bottom-color: rgba(71, 85, 105, 0.45);
}

.ai-event-card{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 18px;
    align-items: stretch;
}

.monitoring-insights-grid .ai-event-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    overflow:hidden;
}

.monitoring-insights-grid .ai-event-card > div:first-child{
    min-height:0;
}

.monitoring-insights-grid .ai-event-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-top:14px;
    gap:8px;
}

.monitoring-insights-grid .ai-event-highlight{
    margin-top:12px;
    padding:12px;
}

.monitoring-insights-grid .ai-event-best-day{
    font-size:13px;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.monitoring-insights-grid .ai-event-window{
    font-size:15px;
}

.monitoring-insights-grid .ai-event-metric{
    padding:9px 10px;
}

.ai-event-head{
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ai-event-icon{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(248,250,252,.92);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 8px 18px rgba(15,23,42,.06);
    color: #2563eb;
    flex: 0 0 auto;
}

.ai-event-icon svg{
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-event-title{
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}

.ai-event-copy{
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.ai-insight-copy{
    display: grid;
    gap: 8px;
    margin-top: 12px;
    max-height: 118px;
    overflow-y: auto;
    padding-right: 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,.55) transparent;
}

.ai-insight-copy::-webkit-scrollbar{
    width:6px;
}

.ai-insight-copy::-webkit-scrollbar-track{
    background:transparent;
}

.ai-insight-copy::-webkit-scrollbar-thumb{
    background:rgba(148,163,184,.45);
    border-radius:999px;
}

.ai-insight-row{
    padding:8px 10px;
    border-radius:12px;
    background:rgba(248,250,252,.72);
    border:1px solid rgba(226,232,240,.75);
}

.ai-insight-row span{
    display:block;
    margin-bottom:3px;
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#2563eb;
}

.ai-insight-row p,
.ai-event-empty p{
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    color: #475569;
}

.monitoring-insights-grid .ai-insight-row p{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.ai-event-highlight{
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(248,250,252,.9));
    border: 1px solid rgba(37,99,235,.14);
}

.ai-event-best-day{
    font-size: 24px;
    font-weight: 950;
    color: #0f172a;
}

.ai-event-window{
    margin-top: 4px;
    font-size: 17px;
    font-weight: 900;
    color: #2563eb;
}

.ai-event-metrics{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ai-event-metric{
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ai-event-label{
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ai-event-value{
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}

.ai-event-empty{
    grid-column: 1 / -1;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

body.dark .ai-event-card{
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: #334155;
}

body.dark .monitoring-insights-grid .restart-history-card,
body.dark .monitoring-insights-grid .ai-event-card{
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: #334155;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

body.dark .ai-event-icon{
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(51, 65, 85, 0.68);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
    color: #93c5fd;
}

body.dark .ai-event-title,
body.dark .ai-event-best-day,
body.dark .ai-event-value{
    color: #f8fafc;
}

body.dark .ai-event-copy,
body.dark .ai-insight-row p,
body.dark .ai-event-empty p,
body.dark .ai-event-label,
body.dark .ai-event-empty{
    color: #cbd5e1;
}

body.dark .ai-insight-row{
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(51, 65, 85, 0.68);
}

body.dark .ai-insight-row span{
    color:#93c5fd;
}

body.dark .ai-event-highlight{
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(51, 65, 85, 0.68);
}

body.dark .ai-event-metric{
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(51, 65, 85, 0.68);
}

body.dark .ai-event-window{
    color: #93c5fd;
}

body.dark .traffic-card-head h3,
body.dark .traffic-card-stat strong{
    color: #f8fafc;
}

body.dark .traffic-card-head p,
body.dark .traffic-card-stat span{
    color: #94a3b8;
}

body.dark .traffic-card-stat{
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.88) 0%, rgba(15, 23, 42, 0.78) 100%);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

body.dark .traffic-card-stat small{
    color: #94a3b8;
}

body.dark .traffic-chart-stage{
    border-color: rgba(71, 85, 105, 0.45);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(17, 24, 39, 0.92) 100%);
}

body.dark .traffic-chart-stage::before{
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.16), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%);
}

body.dark .traffic-chart-stage--bars::before{
    background:
        radial-gradient(circle at 52% 10%, rgba(129, 140, 248, 0.13), transparent 42%),
        radial-gradient(circle at 50% 28%, rgba(96, 165, 250, 0.08), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 68%);
}

.parcel-context-bar{
    margin-left:70px;
    min-height:64px;
    padding:0 30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    background:rgba(255,255,255,.72);
    border-bottom:1px solid rgba(226,232,240,.9);
    box-sizing:border-box;
}

.parcel-context-main{display:flex;align-items:center;gap:11px;min-width:0}
.parcel-context-dot{width:9px;height:9px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12);flex:0 0 auto}
.parcel-context-copy{min-width:0}
.parcel-context-name{display:block;font-size:14px;font-weight:700;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.parcel-context-meta{display:block;margin-top:3px;font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.parcel-switcher{position:relative;flex:0 0 auto}
.parcel-selection-panel{width:100%;max-width:1050px;box-sizing:border-box;margin:24px auto;padding:30px}
.parcel-selection-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:#94733b}
.parcel-selection-heading h1{margin:10px 0;font-size:26px;line-height:1.3;color:#1e293b}
.parcel-selection-heading p,.parcel-selection-count,.parcel-selection-status{font-size:13px;line-height:1.6;color:#64748b}
.parcel-selection-count{margin:24px 0 12px;font-weight:600}
.parcel-selection-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.parcel-choice{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0;width:100%;padding:20px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;color:#1e293b;text-align:left;font:inherit;cursor:pointer;transition:border-color .15s,background-color .15s}
.parcel-choice:hover{border-color:#93b4ed;background:#f8faff}
.parcel-choice:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.parcel-choice-role{padding:4px 9px;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:700}
.parcel-choice-name{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.parcel-choice-open{margin-top:auto;color:#2563eb;font-size:12px;font-weight:700}
.parcel-choice:disabled{opacity:.6}
.parcel-selection-status{min-height:21px;margin:18px 0 0}
.parcel-selection-status[role=alert]{color:#b91c1c}
body.dark .parcel-selection-heading h1,body.dark .parcel-choice{color:#f1f5f9}
body.dark .parcel-choice{background:#1e293b;border-color:#475569}
body.dark .parcel-choice:hover{background:#273449;border-color:#60a5fa}
body.dark .parcel-selection-heading p,body.dark .parcel-selection-count,body.dark .parcel-selection-status{color:#94a3b8}
body.dark .parcel-choice-role{background:#1e3a5f;color:#bfdbfe}
body.dark .parcel-choice-open{color:#93c5fd}
body.dark .parcel-selection-status[role=alert]{color:#fca5a5}
@media(max-width:600px){.parcel-selection-panel{margin:4px auto;padding:20px}.parcel-selection-heading h1{font-size:22px}.parcel-selection-list{grid-template-columns:minmax(0,1fr)}}
.parcel-switcher summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dbe3ef;border-radius:9px;background:#fff;color:#334155;font-size:12px;font-weight:700;box-shadow:0 3px 8px rgba(15,23,42,.04)}
.parcel-switcher summary::-webkit-details-marker{display:none}.parcel-switcher summary:after{content:'▾';color:#64748b;font-size:11px}
.parcel-switcher-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:1002;width:min(440px,calc(100vw - 36px));max-height:390px;overflow-y:auto;padding:7px;background:#fff;border:1px solid #dbe3ef;border-radius:12px;box-shadow:0 16px 36px rgba(15,23,42,.16)}
.parcel-switcher-item{display:block;padding:10px 11px;border:1px solid transparent;border-radius:9px;color:#334155;text-decoration:none}.parcel-switcher-item:hover{background:#f8fafc;border-color:#e2e8f0}.parcel-switcher-item.is-active{background:#eff6ff;border-color:#bfdbfe}.parcel-switcher-item strong{display:block;font-size:13px;color:#1e293b}.parcel-switcher-item span{display:block;margin-top:3px;font-size:11px;color:#64748b}.parcel-switcher-item.is-active strong:before{content:'✓ ';color:#2563eb}
body.dark .parcel-context-bar{background:rgba(15,23,42,.76);border-bottom-color:rgba(51,65,85,.8)}
body.dark .parcel-context-name,body.dark .parcel-switcher-item strong{color:#f8fafc}body.dark .parcel-context-meta,body.dark .parcel-switcher-item span{color:#94a3b8}body.dark .parcel-switcher summary,body.dark .parcel-switcher-menu{background:#1e293b;border-color:#334155;color:#e2e8f0}body.dark .parcel-switcher-item{color:#e2e8f0}body.dark .parcel-switcher-item:hover{background:#273449;border-color:#475569}body.dark .parcel-switcher-item.is-active{background:rgba(37,99,235,.2);border-color:rgba(96,165,250,.55)}

@media (max-width: 900px){
    .grid{ grid-template-columns:1fr; }
    .dashboard-two-column-row{ grid-template-columns:1fr; }
    .customer-lease-grid{ grid-template-columns:1fr; }
    .casperlet-overview-grid{ grid-template-columns:1fr; }
    .casperlet-card-head{
        flex-direction:column;
        align-items:flex-start;
    }
    .content{ margin-left:0; }
    .header{ margin-left:0; padding:0 16px; }
    .sidebar{ display:none; }
    .parcel-context-bar{margin-left:0;padding:10px 16px;min-height:0;align-items:stretch;flex-direction:column;gap:10px}.parcel-switcher{width:100%}.parcel-switcher summary{width:100%;box-sizing:border-box;justify-content:space-between}.parcel-switcher-menu{left:0;right:auto;width:100%;box-sizing:border-box}
    #weeklyTrafficCard,
    #peakHoursCard{
        min-height: 720px;
        height: auto;
    }
    .traffic-card-head{
        flex-direction: column;
        align-items: stretch;
    }
    .traffic-card-stat{
        min-width: 0;
    }
    .monitoring-insights-grid{
        grid-template-columns:1fr;
        gap:20px;
    }
    .monitoring-insights-grid .restart-history-card,
    .monitoring-insights-grid .ai-event-card{
        height:auto;
        min-height:300px;
    }
    .ai-event-card{
        grid-template-columns:1fr;
    }
    .traffic-chart-stage{
        flex: 0 0 540px;
        height: 540px;
        min-height: 540px;
        max-height: none;
        padding: 22px 16px 16px;
    }
    .bottom-bar{
        height:54px;
        font-size:11px;
    }
    .bottom-content{
        gap:7px;
    }}
/* customer-login.php presentation, with the used Tailwind utility geometry made local for same-origin CSP. */
body.login-page *,body.login-page *::before,body.login-page *::after{box-sizing:border-box}
body.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem;color:#f8fafc;background:radial-gradient(circle at 16% 18%,rgba(212,175,55,.13),transparent 28%),radial-gradient(circle at 84% 10%,rgba(59,130,246,.15),transparent 32%),linear-gradient(135deg,#050914 0%,#08111f 44%,#101b2e 100%);font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
body.login-page .login-shell{width:100%;max-width:64rem;display:flex;flex-direction:column;overflow:hidden;border-radius:1rem;border:1px solid rgba(212,175,55,.18);background:rgba(8,15,28,.72);box-shadow:0 28px 80px rgba(0,0,0,.38);backdrop-filter:blur(14px)}
body.login-page .login-intro,body.login-page .login-form-section{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding:2rem}
body.login-page .login-brand-row{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:1.25rem}
body.login-page .brand-mark{display:flex;width:3.5rem;height:3.5rem;align-items:center;justify-content:center;border-radius:1rem;color:#08111f;background:linear-gradient(135deg,#d4af37,#f6d978);box-shadow:0 12px 34px rgba(212,175,55,.22);font-size:1.875rem;font-weight:700}
body.login-page .gold-text{margin:0;background:linear-gradient(90deg,#f6d978,#d4af37);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;font-size:1.875rem;line-height:2.25rem;font-weight:600}
body.login-page .resident-label{margin:0;color:#94a3b8;font-size:.75rem;line-height:1rem;text-transform:uppercase;letter-spacing:.28em}
body.login-page .login-title{margin:0 0 .75rem;color:#fff;font-size:2.25rem;line-height:1.25;font-weight:600}
body.login-page .login-description{max-width:24rem;margin:0;color:#cbd5e1;font-size:.875rem;line-height:1.5rem}
body.login-page .login-intro>div,body.login-page .login-heading{text-align:center}
body.login-page .vertical-divider{display:none;width:1px;background:linear-gradient(to bottom,transparent,rgba(212,175,55,.34),transparent)}
body.login-page .login-form-inner{width:100%;max-width:24rem}
body.login-page .login-heading{margin-bottom:2rem;text-align:center}
body.login-page .login-subtitle{margin:0 0 .5rem;color:#fff;font-size:1.875rem;line-height:2.25rem;font-weight:600}
body.login-page .login-prompt{margin:0;color:#94a3b8;font-size:.875rem;line-height:1.25rem}
body.login-page .login-notice{margin-bottom:1.5rem;padding:.75rem 1rem;border-left:4px solid #fbbf24;border-radius:.375rem;background:rgba(251,191,36,.1);color:#fef3c7;font-size:.875rem;line-height:1.25rem;font-weight:500}
body.login-page .login-field{margin-bottom:2rem}
body.login-page .login-label{display:block;margin-bottom:.5rem;color:#94a3b8;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.18em}
body.login-page .customer-input{display:block;width:100%;padding:.75rem 1rem;border:1px solid rgba(212,175,55,.24);border-radius:12px;background:rgba(255,255,255,.03);color:#fff;font:inherit;outline:none}
body.login-page .customer-input::placeholder{color:rgba(199,210,230,.45)}
body.login-page .customer-input:focus{border-color:rgba(246,217,120,.72);box-shadow:0 0 0 4px rgba(212,175,55,.09)}
body.login-page .customer-input:disabled{cursor:not-allowed;opacity:.62}
body.login-page .customer-submit{display:block;width:100%;padding:.875rem 1rem;border:0;border-radius:.375rem;color:#08111f;background:linear-gradient(135deg,#d4af37,#f6d978);box-shadow:0 10px 18px rgba(0,0,0,.2);font:inherit;font-weight:700;letter-spacing:.025em}
body.login-page .customer-submit:disabled{cursor:not-allowed;opacity:.62}
@media(min-width:768px){body.login-page .login-shell{flex-direction:row}body.login-page .login-intro{padding:4rem}body.login-page .login-form-section{padding:4rem}body.login-page .login-brand-row{justify-content:flex-start}body.login-page .login-intro>div,body.login-page .login-heading{text-align:left}body.login-page .vertical-divider{display:block}}
@media(max-width:767px){body.login-page .vertical-divider{width:100%;height:1px;margin:0}}
.customer-flow-secondary{margin-top:.75rem;border:1px solid rgba(212,175,55,.28);background:rgba(255,255,255,.04);color:#f6d978;box-shadow:none;font-size:.875rem}
.customer-flow-secondary:hover{background:rgba(212,175,55,.08)}
#parcelChooserMenu .parcel-switcher-item{width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}
#parcelChooserMenu .parcel-switcher-item:hover{background:#f8fafc}
body.dark #parcelChooserMenu .parcel-switcher-item:hover{background:#273449}
body.customer-auth-booting{min-height:100vh;margin:0;display:grid;place-items:center;background:#08111f;color:#f6d978;font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
body.customer-auth-booting #loginShell,body.customer-auth-booting #customerApp{display:none!important}
#customerAuthBoot{display:none;text-align:center;color:#d4af37;font-size:1rem;font-weight:600;letter-spacing:.02em}
#customerAuthBoot span{display:inline-block;margin-top:.5rem;color:#cbd5e1;font-size:.875rem;font-weight:400;letter-spacing:normal}
body.customer-auth-booting #customerAuthBoot{display:block}

/* Local Inter assets preserve V1 typography under the existing same-origin CSP. */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url('fonts/inter-400.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url('fonts/inter-600.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url('fonts/inter-700.woff2') format('woff2')}
/* Inline geometry from the V1 reference is kept in this stylesheet. */
.visitor-insights-card,.security-mode-card{display:flex;flex-direction:column;height:540px}
.visitor-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}
.visitor-metric{padding:10px;border-radius:10px}
.visitor-metric--stay{background:rgba(37,99,235,.05);border:1px dashed #2563eb}
.visitor-metric--returning{background:rgba(16,185,129,.05);border:1px dashed #10b981}
.visitor-metric-label{font-size:10px;color:#64748b;text-transform:uppercase}
.visitor-metric-value{font-size:16px;font-weight:700;color:#2563eb;overflow-wrap:anywhere}
.visitor-metric small{display:block;margin-top:4px;font-size:10px;line-height:1.4;color:#64748b}
.visitor-metric--returning .visitor-metric-value{color:#10b981}
.visitor-capacity{margin-bottom:20px}
.visitor-capacity-label{display:flex;justify-content:space-between;font-size:11px;font-weight:700;color:#64748b}
.visitor-activity-footer{margin-top:15px;padding-top:10px;border-top:1px solid #eee;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#64748b}
/* Visitor profiles retain the existing card and use a native, keyboard-accessible dialog. */
.visitor-recent-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.visitor-recent-heading .recent-activity-title{margin:0}
.visitor-recent-heading>span{font-size:10px;color:#64748b}
.visitor-insights-card .recent-activity-list{min-height:80px}
.visitor-person{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;margin:0 0 7px;padding:10px;border:1px solid transparent;border-radius:9px;background:#f8fafc;color:#0f172a;text-align:left;font:inherit;cursor:pointer}
.visitor-person:hover{border-color:#bfdbfe;background:#eff6ff}
.visitor-person:focus-visible,.visitor-dialog button:focus-visible,.visitor-search:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.visitor-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:700}
.visitor-person-info{flex:1;min-width:0}
.visitor-person-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;line-height:1.5}
.visitor-person-meta,.visitor-person-seen{display:block;font-size:10px;line-height:1.6;color:#64748b;overflow-wrap:anywhere}
.visitor-person-arrow{color:#94a3b8;font-size:22px;flex:0 0 auto}
.visitor-empty{display:grid;place-items:center;min-height:100px;padding:20px;color:#64748b;font-size:13px;text-align:center}
body.visitor-dialog-open{overflow:hidden}
.visitor-dialog{--visitor-surface:#f8fafc;--visitor-border:#e2e8f0;--visitor-muted:#64748b;box-sizing:border-box;width:min(660px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--visitor-border);border-radius:16px;background:#fff;color:#243249;box-shadow:0 24px 80px rgba(15,23,42,.24);overflow:auto;font-family:Inter,system-ui,sans-serif}
.visitor-dialog::backdrop{background:rgba(15,23,42,.5)}
.visitor-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid var(--visitor-border);background:inherit}
.visitor-dialog-head h2{margin:0;font-size:16px;line-height:1.5;font-weight:700}
.visitor-dialog-head p{margin:3px 0 0;font-size:12px;line-height:1.5;color:var(--visitor-muted)}
.visitor-dialog-close{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border:0;border-radius:8px;background:var(--visitor-surface);color:var(--visitor-muted);font-size:25px;cursor:pointer}
.visitor-dialog-body{padding:20px 24px 22px}
.visitor-dialog-summary,.visitor-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}
.visitor-profile-stat{min-width:0;padding:12px;border:1px solid var(--visitor-border);border-radius:10px;background:var(--visitor-surface)}
.visitor-profile-stat>span{display:block;margin-bottom:6px;font-size:11px;line-height:1.4;color:var(--visitor-muted)}
.visitor-profile-stat>strong{display:block;font-size:17px;font-weight:700;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.visitor-search-label{display:block;margin-bottom:6px;font-size:12px;font-weight:600}
.visitor-search{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid var(--visitor-border);border-radius:9px;background:var(--visitor-surface);color:inherit;font:inherit;font-size:13px}
.visitor-directory-note{margin:10px 0 12px;color:var(--visitor-muted);font-size:11px;line-height:1.5}
.visitor-directory-list{max-height:min(360px,40dvh);overflow-y:auto;padding:2px}
.visitor-person--directory{margin-bottom:8px;padding:12px;border-color:var(--visitor-border)}
.visitor-person--directory .visitor-person-name{font-size:13px;white-space:normal;overflow-wrap:anywhere}
.visitor-person--directory .visitor-person-meta,.visitor-person--directory .visitor-person-seen{font-size:11px}
.visitor-time-meter{display:block;appearance:none;-webkit-appearance:none;width:100%;height:6px;margin-top:8px;border:0;border-radius:6px;overflow:hidden;background:#e2e8f0;color:#2563eb}
.visitor-time-meter::-webkit-progress-bar{background:#e2e8f0;border-radius:6px}
.visitor-time-meter::-webkit-progress-value{background:#2563eb;border-radius:6px}
.visitor-time-meter::-moz-progress-bar{background:#2563eb;border-radius:6px}
.visitor-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}
.visitor-pagination span{font-size:12px;color:var(--visitor-muted);text-align:center}
.visitor-dialog .btn:disabled{opacity:.4;cursor:default;transform:none;box-shadow:none}
.visitor-back{padding:0;margin:0 0 18px;border:0;background:none;color:#2563eb;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.visitor-profile-hero{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.visitor-profile-hero .visitor-avatar{flex-basis:48px;width:48px;height:48px;font-size:16px}
.visitor-profile-identity{min-width:0}
.visitor-profile-identity h3{margin:0;padding:0;border:0;font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.visitor-profile-identity p{margin:4px 0 0;font-size:12px;color:var(--visitor-muted)}
.visitor-profile-share{margin:0 0 22px;padding:14px;border:1px solid var(--visitor-border);border-radius:10px}
.visitor-share-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:1.5;color:var(--visitor-muted)}
.visitor-share-label strong{color:#2563eb;font-variant-numeric:tabular-nums}
.visitor-profile-dates{margin:0}
.visitor-profile-dates>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--visitor-border)}
.visitor-profile-dates dt{font-size:12px;color:var(--visitor-muted)}
.visitor-profile-dates dd{margin:0;font-size:12px;text-align:right;line-height:1.5;font-variant-numeric:tabular-nums}
.visitor-visit-history{margin-top:22px;padding-top:18px;border-top:1px solid var(--visitor-border)}
.visitor-visit-history h4{margin:0 0 5px;font-size:14px;font-weight:700}
.visitor-visit-note{margin:0 0 14px;color:var(--visitor-muted);font-size:11px;line-height:1.6}
.visitor-visit-list{max-height:min(420px,46dvh);overflow-y:auto;padding:2px}
.visitor-visit-card{margin-bottom:10px;padding:13px;border:1px solid var(--visitor-border);border-radius:10px;background:var(--visitor-surface)}
.visitor-visit-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.visitor-visit-head>strong{font-size:12px}
.visitor-visit-status{padding:4px 7px;border-radius:6px;background:#e2e8f0;color:#475569;font-size:10px;font-weight:600}
.visitor-visit-status--exit{background:#fef2f2;color:#b91c1c}
.visitor-visit-status--present{background:#ecfdf5;color:#047857}
.visitor-visit-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.visitor-visit-field{min-width:0}
.visitor-visit-field dt{margin:0 0 4px;font-size:10px;font-weight:600;color:var(--visitor-muted)}
.visitor-visit-field dd{margin:0;font-size:12px;font-weight:600;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.visitor-visit-entry dt,.visitor-visit-entry dd{color:#047857}
.visitor-visit-exit dt,.visitor-visit-exit dd{color:#b91c1c}
.visitor-visit-entry dt::before,.visitor-visit-exit dt::before{content:'';display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:currentColor}
.visitor-visit-duration{grid-column:1 / -1}
.visitor-visit-duration dd{color:#2563eb}
.visitor-visit-last-seen{margin:8px 0 0;color:var(--visitor-muted);font-size:10px;line-height:1.6}
body.dark .visitor-visit-entry dt,body.dark .visitor-visit-entry dd{color:#6ee7b7}
body.dark .visitor-visit-exit dt,body.dark .visitor-visit-exit dd{color:#fca5a5}
body.dark .visitor-visit-duration dd{color:#93c5fd}
body.dark .visitor-visit-status{background:#334155;color:#cbd5e1}
body.dark .visitor-visit-status--exit{background:rgba(185,28,28,.18);color:#fca5a5}
body.dark .visitor-visit-status--present{background:rgba(4,120,87,.18);color:#6ee7b7}
@media(max-width:480px){.visitor-visit-fields{grid-template-columns:1fr;gap:10px}.visitor-visit-card{padding:11px}.visitor-visit-status{max-width:55%;line-height:1.5}.visitor-visit-head{align-items:flex-start}}
.visitor-measurement-note{margin:20px 0 0;padding-top:15px;border-top:1px solid var(--visitor-border);font-size:11px;line-height:1.6;color:var(--visitor-muted)}
.visitor-data-status{margin:8px 0 0;font-size:10px;line-height:1.5;color:var(--visitor-muted)}
body.dark .visitor-dialog{--visitor-surface:#1e293b;--visitor-border:#334155;--visitor-muted:#94a3b8;background:#0f172a;color:#e2e8f0}
body.dark .visitor-person{background:#1e293b;color:#e2e8f0}
body.dark .visitor-person:hover{border-color:#3b82f6;background:#22334b}
body.dark .visitor-avatar{background:#1e3a5f;color:#93c5fd}
body.dark .visitor-person-meta,body.dark .visitor-person-seen,body.dark .visitor-recent-heading>span,body.dark .visitor-metric small,body.dark .visitor-empty{color:#94a3b8}
@media(max-width:480px){
    .visitor-recent-heading{align-items:flex-start;flex-direction:column;gap:4px}
    .visitor-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}
    .visitor-dialog-head{padding:16px}
    .visitor-dialog-body{padding:16px}
    .visitor-dialog-summary,.visitor-profile-stats{gap:6px}
    .visitor-profile-stat{padding:9px}
    .visitor-profile-stat>span{font-size:10px}
    .visitor-profile-stat>strong{font-size:14px}
    .visitor-pagination .btn{padding:8px 12px!important;font-size:11px}
    .visitor-profile-dates>div{align-items:flex-start;flex-direction:column;gap:4px}
    .visitor-profile-dates dd{text-align:left}
}
.security-mode-options{margin-top:18px;text-align:center}
.security-mode-option+.security-mode-option{margin-top:20px}
.security-mode-title{margin-bottom:5px;font-size:16px;text-align:center}
.security-mode-description{font-size:14px;color:#777;margin-top:0;line-height:1.55;text-align:center}
.security-mode-option .btn{font-size:15px}
.land-team-card{min-height:240px;display:flex;flex-direction:column}
.access-toolbar input{flex:1;min-width:0;padding:8px;border-radius:6px;border:1px solid #ddd}
.access-page-btn,.prim-page-btn{width:auto}
.map-header{padding:15px}
.map-header h3{margin:0;border:none;padding:0}
.v2-map-region{font-size:11px;color:#64748b}
.map-open-actions .btn,.map-footer .btn{width:auto}
.v2-map-open{background:#0f172a}
.map-footer>span{font-size:12px;color:#64748b}
.v2-profile-region{margin:10px 0 0;font-size:11px;color:#64748b}
/* Empty values do not imply live statistics or enable unmigrated actions. */
[hidden]{display:none!important}
#customerApp{min-height:100vh}
.dark-switch{border:0;padding:0}
.sidebar-signout{display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:pointer}
.sidebar-signout img{width:26px}
.sidebar-signout:disabled{cursor:not-allowed;opacity:.5}
.v2-neutral-state{min-height:64px;margin-top:14px;padding:16px;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(148,163,184,.42);border-radius:10px;color:#64748b;font-size:12px;text-align:center}
.v2-neutral-note{margin-top:6px;color:#94a3b8;font-size:11px}
.traffic-chart-stage .v2-neutral-state{width:100%;height:100%;margin:0;border:0;background:transparent;box-sizing:border-box}
.v2-unavailable-value{color:#64748b;font-weight:600}
.v2-table-empty{text-align:center;color:#64748b}
.estate-news-view-all{font-family:inherit;background:none;border:0}
#customerApp button:disabled{cursor:not-allowed}
.prim-owner-status{margin:10px 0 0;color:#4b5fcf;font-size:13px;line-height:1.5}
.prim-owner-table{width:100%;table-layout:fixed}
.prim-owner-table td:first-child{overflow-wrap:anywhere}
#primOwnersPanel .prim-table-wrap{overflow:auto}
body.dark .v2-neutral-state{color:#94a3b8;border-color:rgba(148,163,184,.28)}
body.dark .security-mode-description,body.dark .v2-unavailable-value,body.dark .v2-profile-region{color:#94a3b8}
body.dark .prim-owner-status{color:#cbd5e1}
/* Keep the source single-column breakpoint from creating an implicit map column. */
@media(max-width:900px){.map-panel{grid-column:1 / -1}}
/* Narrow screens keep every V1 section while fitting long unavailable values. */
@media(max-width:640px){
    .header{height:auto;min-height:80px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 16px 14px 64px;box-sizing:border-box}
    .header-left{display:contents}
    .header-logo{grid-column:1;grid-row:1}
    .header-logo img{height:32px}
    .header-right{grid-column:2;grid-row:1;gap:8px;min-width:0}
    .user-name{font-size:12px;max-width:130px;overflow-wrap:anywhere}
    .avatar-circle{flex-shrink:0;width:32px;height:32px}
    .menu{grid-column:1 / -1;grid-row:2;justify-content:space-between;gap:10px;min-width:0}
    .menu a{font-size:11px;letter-spacing:0}
    .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .stat{padding:16px}
    .stat-value{font-size:20px;overflow-wrap:anywhere}
    .content{padding-left:16px;padding-right:16px}
    .grid,.dashboard-two-column-row{gap:20px}
    .casperlet-info-value,.land-profile-val{overflow-wrap:anywhere}
    .prim-summary{flex-wrap:wrap}
    .bottom-content{white-space:normal;text-align:center}
}
body.dark #leaseOverviewStatus{color:#cbd5e1}

/* V2 measured data and controls in the preserved V1 card layout. */
.v2-panel-notice{font-size:12px;color:#617085;margin:0 0 16px;min-height:18px}
.v2-panel-notice[role=alert]{color:#c44d57}
.v2-chart-line{stroke:#3bb4ac;stroke-width:3}
.v2-chart-point,.v2-chart-bar{fill:#3bb4ac}
.v2-chart-label{fill:#758398;font-size:11px;font-family:Inter,sans-serif}
.traffic-chart-stage svg{display:block;width:100%;height:100%;min-height:190px}
.v2-operation-row{padding:10px 0;border-bottom:1px solid rgba(148,163,184,.16);overflow-wrap:anywhere;font-size:12px;line-height:1.6}
.v2-operation-row p{white-space:pre-wrap;margin:5px 0}
#activityList,#recentActivityList,#parcelInsights{max-height:280px;overflow:auto}
.land-health-team-row{grid-auto-rows:1fr}
.land-health-team-row>#healthPanel,.land-health-team-row>#teamSection{height:auto;min-height:320px;align-self:stretch}
#teamOwner .team-owner-card,#teamList .team-coowner-row{margin:0 0 8px;align-items:center;padding:12px 14px}
.land-team-card .team-member-meta{min-width:0;flex:1}
.land-team-card .team-section-label{margin:0;font-size:10px}
.land-team-card .team-member-name{overflow-wrap:anywhere;line-height:1.5}
.land-team-card .team-member-sub{line-height:1.5}
.land-team-card .team-coowner-actions{min-width:0;flex:0 0 auto;gap:10px}
.land-team-card .team-role-owner,.land-team-card .team-role-coowner{font-size:14px;font-weight:700;white-space:nowrap}
.team-owner-protected{padding:6px 9px;border:1px solid #dce5ef;border-radius:8px;background:#f1f5f9;color:#64748b;font-size:10px;font-weight:600}
.land-team-card .team-remove{font-size:11px;padding:7px 14px!important;border-radius:9px;box-shadow:none}
.land-team-card .team-remove:disabled,.team-pagination .btn:disabled{opacity:.45;cursor:default;transform:none;box-shadow:none}
.land-team-card .team-coowner-list{min-height:65px}
.team-pagination{margin-top:16px;margin-bottom:14px;justify-content:flex-end}
.team-pagination .btn{font-size:11px;padding:8px 16px!important}
.team-add-form{margin-top:0}
.team-permission-note{margin:9px 0 0;font-size:11px;line-height:1.6;color:#64748b}
.land-team-card button:focus-visible,.land-team-card input:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
body.dark .team-owner-protected{background:#1e293b;border-color:#334155;color:#cbd5e1}
body.dark .team-permission-note{color:#94a3b8}
@media(max-width:480px){
    #teamOwner .team-owner-card,#teamList .team-coowner-row{align-items:flex-start;flex-direction:column;gap:10px}
    .land-team-card .team-coowner-actions{align-self:stretch;justify-content:space-between}
    .land-team-card .team-add-form{flex-wrap:wrap}
    .land-team-card .access-toolbar.team-add-form input{flex:1 0 100%;width:100%;box-sizing:border-box}
    .land-team-card .team-add-form button{margin-left:auto}
}
.v2-capacity-meter{width:100%;height:7px;border:0;border-radius:9px;accent-color:#41b7ad}
.v2-region-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.map-container{position:relative}
.map-open-card{position:relative;z-index:1;background:rgba(255,255,255,.92)}
body.dark .map-open-card{background:rgba(24,34,50,.94)}
#mapNote{font-size:11px;max-width:280px;overflow-wrap:anywhere}
[data-security-mode][aria-pressed=true]{box-shadow:0 0 0 2px #46c2b5}
.payment-history-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
#paymentPage{font-size:11px}
.payment-history-table td:last-child{overflow-wrap:anywhere;max-width:140px;font-size:10px}
#radioActive{overflow-wrap:anywhere;max-width:230px}
[hidden]{display:none!important}
.v2-feedback-dialog{border:1px solid #d9e1ec;border-radius:18px;padding:24px;width:min(480px,90vw);color:#243249}
.v2-feedback-dialog::backdrop{background:rgba(12,22,40,.55)}
.v2-feedback-dialog textarea{display:block;width:100%;box-sizing:border-box;margin:12px 0 18px;padding:12px;border:1px solid #cfd9e6;border-radius:10px;font:inherit;resize:vertical}
body.dark .v2-feedback-dialog{background:#1b273b;color:#e2eaf4}

.land-team-card .access-toolbar input { flex: 1; min-width: 0; width: auto; }
.land-team-card .access-toolbar button { flex: 0 0 auto; width: auto; }

/* SLT analytics: stable loading, zero and unsampled states at every viewport. */
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.stat{min-width:0}
.stat-value{min-height:40px;font-variant-numeric:tabular-nums;line-height:1.25;overflow-wrap:anywhere}
.stat-value[data-state=empty]{color:#94a3b8}
.stat-value[data-state=loading]::before{content:"";display:block;width:70px;height:25px;margin:8px 0 7px;border-radius:6px;background:#e8edf4;animation:v2-placeholder 1.8s ease-in-out infinite}
@keyframes v2-placeholder{50%{opacity:.5}}
#weeklyTrafficCard,#peakHoursCard{height:auto;min-height:0;min-width:0}
/* Reference presentation: blue weekly curve, balanced hourly bars and in-chart details. */
.traffic-panel{padding:24px;border-radius:16px;background:radial-gradient(circle at 0 0,rgba(37,99,235,.055),transparent 40%),linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 12px 30px rgba(15,23,42,.06)}
.traffic-panel:hover{transform:none}
.traffic-card-head{gap:22px;margin-bottom:16px;padding-bottom:18px;align-items:flex-start}
.traffic-card-head>div:first-child{min-width:0;flex:1}
.traffic-card-head h3{font-size:20px;line-height:1.4;margin-bottom:7px}
.traffic-card-head p{font-size:13px;line-height:1.6;min-height:3.2em}
.traffic-card-stat{min-width:150px;max-width:210px;padding:12px 14px;background:rgba(255,255,255,.85);border:1px solid #dce6ff;box-shadow:none;flex-shrink:0}
.traffic-card-stat span{font-size:10px;letter-spacing:.1em}
.traffic-card-stat strong{font-size:18px;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.traffic-card-stat small{font-size:11px;line-height:1.5;color:#94a3b8}
.v2-chart-period{display:block;text-align:left;white-space:normal;font-size:10px;line-height:1.6;color:#64748b;margin:0 0 12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-height:32px}
.traffic-chart-stage{height:clamp(360px,32vw,560px);min-height:360px;flex:0 0 auto;max-height:none;padding:16px;border-radius:20px;border:1px solid #e8edf5;background:radial-gradient(ellipse at 50% 0,rgba(37,99,235,.09),transparent 58%),linear-gradient(180deg,#fff,#f8fafc);min-width:0;overflow:hidden;position:relative}
.traffic-chart-stage::before{display:none}
.v2-chart-scroll{width:100%;height:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c6d2e6 transparent;touch-action:pan-x pan-y}
.v2-chart-scroll:focus-visible{outline:2px solid #2563eb;outline-offset:-2px;border-radius:8px}
.traffic-chart-stage svg{height:auto;min-height:0;display:block;width:auto;max-width:none;overflow:visible}
.v2-hours-stage svg{min-width:0}
.v2-chart-grid{stroke:#e4eaf2;stroke-width:1;stroke-dasharray:none}
.v2-chart-line{stroke:#2563eb;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;fill:none}
.v2-chart-bar{fill:#2563eb}
.v2-chart-zero{stroke:#2563eb;stroke-width:2;stroke-linecap:round}
.v2-chart-missing{stroke:#b2bfd2;stroke-width:2;stroke-dasharray:2 2}
.v2-chart-point{fill:#fff;stroke:#2563eb;stroke-width:2}
.v2-chart-hit{fill:transparent;rx:6}
.v2-chart-bin{cursor:pointer;outline:none}
.v2-chart-bin:hover .v2-chart-hit,.v2-chart-bin:focus .v2-chart-hit{fill:rgba(37,99,235,.035)}
.v2-chart-bin:focus-visible .v2-chart-bar{stroke:#1d4ed8;stroke-width:2}
.v2-chart-bin:focus-visible .v2-chart-point{stroke-width:3;r:5.5}
.v2-chart-bin:focus-visible .v2-chart-missing{stroke:#2563eb;stroke-width:3}
.v2-chart-bin.is-selected .v2-chart-point{stroke-width:3;r:5.5}
.v2-chart-bin.is-selected .v2-chart-bar{stroke:#1d4ed8;stroke-width:1}
.v2-chart-label,.v2-chart-date,.v2-chart-axis{font-family:Inter,sans-serif;font-variant-numeric:tabular-nums;pointer-events:none}
.v2-chart-label{fill:#64748b;font-size:11px;font-weight:700}
.v2-chart-hour{font-size:8px;letter-spacing:-.15px}
.v2-chart-date{fill:#94a3b8;font-size:9px}
.v2-chart-axis{fill:#94a3b8;font-size:11px;font-weight:600}
.v2-chart-tooltip{position:absolute;z-index:3;width:204px;max-width:calc(100% - 24px);box-sizing:border-box;padding:12px 14px;border-radius:12px;background:rgba(15,23,42,.96);border:1px solid rgba(148,163,184,.2);box-shadow:0 8px 20px rgba(15,23,42,.12);color:#fff;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums;pointer-events:none;overflow-wrap:anywhere}
.v2-chart-tooltip[hidden],.v2-chart-tooltip [hidden]{display:none}
.v2-chart-tooltip strong{display:block;font-size:12px;margin-bottom:3px;color:#fff}
.v2-chart-tooltip span{display:block;color:#cbd5e1}
.v2-chart-tooltip-note{font-weight:600}
.v2-chart-loading,.v2-chart-empty{position:absolute;inset:20px;display:flex;align-items:center;justify-content:center;gap:10px;color:#94a3b8;font-size:12px;text-align:center;margin:0;pointer-events:none}
.v2-chart-empty{inset:40% 24px auto;background:rgba(248,250,252,.94);padding:12px;border-radius:10px}
.v2-chart-loading::before{content:"";width:8px;height:8px;border-radius:50%;background:#c4cedc;animation:v2-placeholder 1.8s ease-in-out infinite}
body.dark .stat-value[data-state=loading]::before{background:#334155}
body.dark .stat-value[data-state=empty]{color:#94a3b8}
body.dark .traffic-panel{background:radial-gradient(circle at 0 0,rgba(37,99,235,.08),transparent 45%),#1e293b;border-color:#334155;box-shadow:none}
body.dark .traffic-card-stat{background:#192436;border-color:#334155;box-shadow:none}
body.dark .traffic-card-stat small,body.dark .traffic-card-head p,body.dark .v2-chart-period{color:#a5b4c8}
body.dark .traffic-chart-stage{background:radial-gradient(ellipse at 50% 0,rgba(37,99,235,.12),transparent 58%),#182334;border-color:#334155}
body.dark .v2-chart-grid{stroke:#334155}
body.dark .v2-chart-label{fill:#d8e2f0}
body.dark .v2-chart-date,body.dark .v2-chart-axis{fill:#a5b4c8}
body.dark .v2-chart-point{fill:#182334}
body.dark .v2-chart-empty{background:rgba(24,35,52,.94);color:#a5b4c8}
@media(min-width:901px) and (max-width:1240px){.traffic-card-head{flex-direction:column;align-items:stretch}.traffic-card-stat{min-width:0;max-width:none}.traffic-card-head p{min-height:0}}
@media(max-width:600px){.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat{padding:16px}.stat-title{font-size:12px}.stat-value{font-size:24px;min-height:32px}.stat-value[data-state=loading]::before{height:21px;margin:5px 0 6px}.traffic-panel{padding:16px}.traffic-card-head{gap:14px;flex-direction:column;align-items:stretch}.traffic-card-head h3{font-size:18px}.traffic-card-head p{font-size:12px;min-height:0}.traffic-card-stat{min-width:0;max-width:none;padding:10px 12px}.traffic-card-stat strong{font-size:17px}.traffic-chart-stage{height:340px;min-height:340px;padding:16px;border-radius:16px}.v2-chart-tooltip{font-size:10px}.v2-chart-tooltip strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.stat-value[data-state=loading]::before,.v2-chart-loading::before{animation:none}}

@media(max-width:900px){.dashboard-two-column-row{grid-template-columns:minmax(0,1fr)}.dashboard-two-column-row>section{min-width:0}#healthPanel table{table-layout:fixed}#healthPanel td{white-space:normal;overflow-wrap:anywhere}}

/* Freeze reserve and lease notices retain the existing panel geometry and Live palette. */
.freeze-balance-card{display:flex;flex-direction:column;min-width:0}
.freeze-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.freeze-card-head h3{margin:0}.freeze-account-label{font-size:10px;color:#64748b}
.freeze-balance-value{font-size:38px;font-weight:750;line-height:1.15;letter-spacing:-.03em;color:#0f172a;margin:24px 0 7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.freeze-balance-value[data-state=loading]{color:#94a3b8}.freeze-available{font-size:12px;color:#64748b;min-height:18px;margin:0 0 18px}
.freeze-update{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding-top:14px;border-top:1px solid #e2e8f0;font-size:11px}.freeze-update>span{color:#64748b}.freeze-update strong{text-align:right;font-weight:500;overflow-wrap:anywhere}
.freeze-card-copy{font-size:11px;line-height:1.7;color:#64748b;margin:15px 0}
.freeze-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:10px}.freeze-card-footer>span{font-size:10px;color:#64748b;overflow-wrap:anywhere}.freeze-card-footer .btn{flex-shrink:0}
#leaseOverviewStatus[data-state=active]{color:#047857;background:#ecfdf5;border-color:#a7f3d0}
#leaseOverviewStatus[data-state=grace_period]{color:#b45309;background:#fffbeb;border-color:#fde68a}
#leaseOverviewStatus[data-state=unknown],#leaseOverviewStatus[data-state=loading]{color:#64748b;background:#f1f5f9;border-color:#e2e8f0}
#leaseOverviewStatus[data-state=expired],#leaseOverviewStatus[data-state=terminated]{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
.lease-payment-notice{padding:12px 14px;margin-top:16px;border-radius:9px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.lease-payment-notice[data-state=expired]{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.lease-source-note{font-size:10px;color:#64748b;line-height:1.6;margin:12px 0 0;overflow-wrap:anywhere}
body.freeze-dialog-open{overflow:hidden}.freeze-history-summary{font-size:13px;font-weight:600;color:#334155}.freeze-transaction{padding:15px 0;border-bottom:1px solid #e2e8f0;overflow-wrap:anywhere}
.freeze-transaction-head{display:flex;justify-content:space-between;gap:16px;font-size:13px}.freeze-transaction time,.freeze-transaction small{display:block;font-size:11px;color:#64748b;margin-top:6px}.freeze-transaction p{font-size:12px;color:#475569;margin:8px 0;line-height:1.6;white-space:pre-wrap}
.freeze-amount-in{color:#047857}.freeze-amount-out{color:#b91c1c}
body.dark .freeze-balance-value{color:#f1f5f9}body.dark .freeze-account-label,body.dark .freeze-available,body.dark .freeze-card-copy,body.dark .freeze-card-footer>span,body.dark .freeze-update>span,body.dark .lease-source-note,body.dark .freeze-transaction time,body.dark .freeze-transaction small{color:#94a3b8}
body.dark .freeze-update,body.dark .freeze-transaction{border-color:#334155}body.dark .freeze-history-summary,body.dark .freeze-transaction p{color:#cbd5e1}
body.dark #leaseOverviewStatus[data-state=active]{color:#6ee7b7;background:rgba(16,185,129,.1);border-color:rgba(16,185,129,.25)}
body.dark #leaseOverviewStatus[data-state=grace_period],body.dark .lease-payment-notice{color:#fdba74;background:rgba(245,158,11,.1);border-color:rgba(245,158,11,.25)}
body.dark #leaseOverviewStatus[data-state=unknown],body.dark #leaseOverviewStatus[data-state=loading]{color:#94a3b8;background:#1e293b;border-color:#334155}
body.dark #leaseOverviewStatus[data-state=expired],body.dark #leaseOverviewStatus[data-state=terminated],body.dark .lease-payment-notice[data-state=expired]{color:#fca5a5;background:rgba(239,68,68,.1);border-color:rgba(239,68,68,.25)}
body.dark .freeze-amount-in{color:#6ee7b7}body.dark .freeze-amount-out{color:#fca5a5}
@media(max-width:480px){.freeze-balance-value{font-size:32px}.freeze-card-footer{flex-wrap:wrap;align-items:flex-start}.freeze-card-footer .btn{width:100%}.freeze-update{flex-wrap:wrap;gap:5px}.freeze-update strong{text-align:left}.freeze-transaction-head{flex-direction:column;gap:5px}}

/* Admin support shares the customer layout and assets on the admin origin. */
body[data-admin-support="true"]{padding-bottom:100px}
body[data-admin-support="true"] .bottom-bar{display:none}
.v2-support-banner{position:fixed;bottom:0;left:0;right:0;z-index:2000;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px;background:#fff;color:#0b1830;border-top:2px solid #c9aa64;box-shadow:0 -2px 12px #0b183014}
.v2-support-banner>div{min-width:0;flex:1}
.v2-support-banner strong,.v2-support-banner span{display:block;overflow-wrap:anywhere;line-height:1.5;font-size:12px}
.v2-support-banner span{font-size:11px;color:#596579}
.v2-support-banner button{flex-shrink:0}
@media(max-width:480px){.v2-support-banner{padding:10px;gap:8px;align-items:flex-start}.v2-support-banner strong{font-size:11px}.v2-support-banner span{font-size:10px}}

/* Both plans share the dashboard. Pro access is a quiet, consistent invitation. */
[data-pro-feature].is-pro-locked{position:relative;isolation:isolate;overflow:hidden;min-height:170px}
[data-pro-feature].is-pro-locked>:not(.pro-feature-lock){filter:blur(6px);opacity:.34;pointer-events:none;user-select:none}
.pro-feature-lock{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;padding:16px;border:0;border-radius:inherit;background:rgba(248,250,252,.18);text-align:center;font:inherit;cursor:pointer;box-sizing:border-box}
.pro-feature-lock[hidden]{display:none}
.pro-lock-surface{display:flex;flex-direction:column;align-items:center;gap:10px;width:230px;max-width:100%;padding:22px 24px;border:1px solid rgba(177,145,90,.3);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 12px 32px rgba(15,23,42,.07);box-sizing:border-box;backdrop-filter:blur(18px);transition:border-color .2s,box-shadow .2s,transform .2s}
.pro-lock-brand{display:flex;align-items:center;gap:9px;color:#94733f}
.pro-lock-emblem{display:grid;place-items:center;width:34px;height:34px;flex:none;border:1px solid #e7dcc7;border-radius:50%;background:#faf7f0}
.pro-lock-emblem svg{width:18px;height:18px;color:#a6854b}
.pro-lock-wordmark{font-size:10px;font-weight:600;letter-spacing:.16em;color:#8c7047}
.pro-lock-title{max-width:100%;font-size:13px;font-weight:500;line-height:1.5;color:#29374b;text-wrap:balance}
.pro-lock-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:2px;padding:8px 12px;border:1px solid #e2d4ba;border-radius:8px;background:#fcfaf5;color:#8a692f;font-size:10px;font-weight:600;line-height:1.4;letter-spacing:.02em}
.pro-lock-action svg{width:13px;height:13px;flex:none}
.pro-feature-lock:not(:disabled):hover .pro-lock-surface{border-color:#c8ad7f;box-shadow:0 14px 36px rgba(15,23,42,.1);transform:translateY(-1px)}
.pro-feature-lock:focus-visible{outline:0}
.pro-feature-lock:focus-visible .pro-lock-surface{outline:2px solid #b48e4c;outline-offset:4px}
.pro-feature-lock:disabled{cursor:default;opacity:1}
.stat.is-pro-locked{min-height:150px;box-sizing:border-box}
.stat .pro-feature-lock{padding:10px}
.stat .pro-lock-surface{width:210px;gap:6px;padding:13px 15px;border-radius:13px}
.stat .pro-lock-emblem{width:25px;height:25px}
.stat .pro-lock-emblem svg{width:14px;height:14px}
.stat .pro-lock-wordmark{font-size:8px}
.stat .pro-lock-title{font-size:11px}
.stat .pro-lock-action{padding:6px 9px;font-size:9px}
.menu a.pro-nav-locked::after{content:'PRO';display:inline-block;margin-left:5px;font-size:8px;font-weight:600;letter-spacing:.08em;color:#9b7b47}
body.dark .pro-feature-lock{background:rgba(15,23,42,.2)}
body.dark .pro-lock-surface{background:rgba(24,36,54,.96);border-color:rgba(192,161,104,.3);box-shadow:0 14px 36px rgba(0,0,0,.18)}
body.dark .pro-lock-emblem{background:#222d3c;border-color:#514839}
body.dark .pro-lock-emblem svg,body.dark .pro-lock-wordmark{color:#d2b780}
body.dark .pro-lock-title{color:#e7e9ed}
body.dark .pro-lock-action{background:#29303a;border-color:#5a4f3c;color:#dec694}
body.dark .menu a.pro-nav-locked::after{color:#c6ac7e}
/* Upgrade contact dialog. Card labels never become request status messages. */
body.pro-upgrade-open{overflow:hidden}
.pro-upgrade-dialog{position:fixed;width:620px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:36px;border:1px solid #e5d9c2;border-radius:24px;background:#fff;color:#26354a;box-shadow:0 28px 90px rgba(15,23,42,.24);box-sizing:border-box;overflow:auto;font-family:inherit}
.pro-upgrade-dialog::backdrop{background:rgba(10,20,36,.56);backdrop-filter:blur(6px)}
.pro-upgrade-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:32px;height:32px;padding:7px;border:1px solid #e9edf1;border-radius:50%;background:#fff;color:#728094;cursor:pointer}
.pro-upgrade-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.pro-upgrade-wordmark{display:inline-flex;align-items:center;gap:8px;color:#8d734c;font-size:10px;font-weight:600;letter-spacing:.2em}
.pro-upgrade-wordmark>span{padding:4px 7px;border:1px solid #e8dcc7;border-radius:5px;background:#fcfaf5;letter-spacing:.1em}
.pro-upgrade-heading h2{margin:18px 0 10px;padding-right:12px;color:#17283e;font-size:27px;font-weight:600;line-height:1.25;letter-spacing:-.035em}
.pro-upgrade-heading>p{margin:0;max-width:440px;color:#667386;font-size:12px;line-height:1.8}
.pro-upgrade-parcel{display:flex;align-items:center;gap:12px;margin:23px 0;padding:13px 15px;border:1px solid #e9e4da;border-radius:12px;background:#fcfbf8}
.pro-upgrade-parcel>svg{width:21px;height:21px;flex:none;fill:none;stroke:#a38a60;stroke-width:1.4}
.pro-upgrade-parcel>div{min-width:0}
.pro-upgrade-parcel span{display:block;margin-bottom:3px;font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:#9b8b70}
.pro-upgrade-parcel strong{display:block;overflow-wrap:anywhere;font-size:12px;font-weight:500;color:#3d4a5a}
.pro-upgrade-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.pro-upgrade-form label{display:block;min-width:0;font-size:11px;font-weight:600;line-height:1.5;color:#344256}
.pro-upgrade-form label>span{margin-left:4px;color:#6f7b8c;font-size:9px;font-weight:400}
.pro-upgrade-dialog .pro-upgrade-input{display:block;width:100%;margin-top:8px;padding:12px 13px;border:1px solid #dfe4ea;border-radius:10px;background:#fff;color:#233249;font:inherit;font-size:12px;font-weight:400;line-height:1.6;box-sizing:border-box;box-shadow:none;transition:border-color .2s,box-shadow .2s}
.pro-upgrade-dialog .pro-upgrade-input::placeholder{color:#6f7c8e;opacity:1}
.pro-upgrade-dialog .pro-upgrade-input:focus{outline:0;border-color:#baa071;box-shadow:0 0 0 3px rgba(185,157,106,.12)}
.pro-upgrade-dialog .pro-upgrade-input:disabled{background:#f6f7f8;color:#6d7784}
.pro-upgrade-message{margin-top:19px}
.pro-upgrade-message textarea{resize:vertical;min-height:104px;max-height:220px}
.pro-upgrade-privacy{margin:13px 0 0;font-size:10px;line-height:1.7;color:#6c7889}
.pro-upgrade-status{margin:12px 0 0;color:#956d23;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.pro-upgrade-status:empty{display:none}
.pro-upgrade-status[role=alert]{color:#b64d4d}
.pro-upgrade-existing{margin:0 0 17px;padding:10px 12px;border-left:2px solid #c7ad7e;color:#7b725f;background:#fcfaf6;font-size:11px;line-height:1.6}
.pro-upgrade-actions,.pro-upgrade-confirm-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:25px;padding-top:20px;border-top:1px solid #eef0f3}
.pro-upgrade-cancel{padding:9px 0;border:0;background:transparent;color:#647185;font:inherit;font-size:11px;cursor:pointer}
.pro-upgrade-submit{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:43px;padding:12px 18px;border:1px solid #26374f;border-radius:10px;background:#1b2a40;color:#f1dfbd;font:inherit;font-size:11px;font-weight:600;line-height:1.4;cursor:pointer;transition:background .2s}
.pro-upgrade-submit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.pro-upgrade-submit:hover{background:#2a3e59}
.pro-upgrade-submit:disabled{cursor:wait;opacity:.65}
.pro-upgrade-dialog button:focus-visible{outline:2px solid #b48e4c;outline-offset:4px}
.pro-upgrade-confirmation{text-align:center;padding-top:6px}
.pro-upgrade-confirm-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 16px;border:1px solid #e1d2b5;border-radius:50%;background:#faf6ed;color:#a78a54}
.pro-upgrade-confirm-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pro-upgrade-confirmation h3{margin:0 0 8px;color:#223247;font-size:22px;font-weight:500;letter-spacing:-.025em}
.pro-upgrade-confirmation>p{margin:0;color:#84909e;font-size:12px;line-height:1.7}
.pro-upgrade-receipt{margin-top:22px;padding:17px;border:1px solid #eee8dc;border-radius:12px;background:#fcfbf8}
.pro-upgrade-receipt span,.pro-upgrade-receipt small{display:block;color:#9b8c73;font-size:10px;line-height:1.8}
.pro-upgrade-receipt strong{display:block;margin:3px 0 5px;color:#415064;font-size:13px;font-weight:500;overflow-wrap:anywhere}
body.dark .pro-upgrade-dialog{background:#142036;border-color:#534b3e;color:#dbe2ec;box-shadow:0 28px 90px rgba(0,0,0,.4)}
body.dark .pro-upgrade-close{background:#192840;border-color:#30405a;color:#a9b6c7}
body.dark .pro-upgrade-wordmark,body.dark .pro-upgrade-parcel>svg{color:#cfb88d;stroke:#cfb88d}
body.dark .pro-upgrade-wordmark>span,body.dark .pro-upgrade-parcel,body.dark .pro-upgrade-receipt{background:#1c2a40;border-color:#41464b}
body.dark .pro-upgrade-heading h2,body.dark .pro-upgrade-confirmation h3{color:#eff1f5}
body.dark .pro-upgrade-heading>p,body.dark .pro-upgrade-confirmation>p,body.dark .pro-upgrade-privacy{color:#a0adbf}
body.dark .pro-upgrade-form label,body.dark .pro-upgrade-parcel strong,body.dark .pro-upgrade-receipt strong{color:#d7deea}
body.dark .pro-upgrade-dialog .pro-upgrade-input{background:#1a2940;border-color:#35455d;color:#e2e8f2}
body.dark .pro-upgrade-dialog .pro-upgrade-input:disabled{background:#17253c;color:#a5b0c2}
body.dark .pro-upgrade-existing{background:#222d3f;color:#d2c2a4}
body.dark .pro-upgrade-actions,body.dark .pro-upgrade-confirm-actions{border-color:#2b3a50}
body.dark .pro-upgrade-confirm-icon{background:#2b3040;border-color:#635a47;color:#d2b780}
@media(max-width:540px){.pro-upgrade-dialog{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:28px 22px;border-radius:20px}.pro-upgrade-heading h2{font-size:24px}.pro-upgrade-fields{grid-template-columns:1fr;gap:15px}.pro-upgrade-actions{align-items:center;gap:10px}.pro-upgrade-submit{padding:12px 13px}.pro-upgrade-parcel{margin:20px 0}.pro-feature-lock{padding:12px}.stat .pro-lock-surface{padding:12px 9px}.stat .pro-lock-wordmark{font-size:7px;letter-spacing:.13em}}
@media(prefers-reduced-motion:reduce){.pro-lock-surface,.pro-upgrade-input,.pro-upgrade-submit{transition:none}.pro-feature-lock:not(:disabled):hover .pro-lock-surface{transform:none}}

/* Parcel connection is part of the existing security card; no new plan/card variant. */
.parcel-object-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.parcel-object-card-head h3{margin:0}.parcel-object-open{display:flex;align-items:center;gap:9px;background:transparent;border:1px solid #dce2ea;border-radius:999px;padding:8px 12px;color:#1d2e48;font:inherit;font-size:12px;cursor:pointer}.parcel-object-open:disabled{cursor:default;opacity:.7}
#parcelObjectBadge{font-size:10px;font-weight:600;color:#677389;padding-left:8px;border-left:1px solid #dce2ea}#parcelObjectBadge[data-tone=good]{color:#16815b}#parcelObjectBadge[data-tone=warning]{color:#9b7026}
.parcel-object-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 28px));max-height:90vh;max-height:90dvh;padding:0;border:1px solid #dde3eb;border-radius:20px;background:#fff;color:#1d2e48;box-shadow:0 30px 90px #0c1a3533;overflow:auto}.parcel-object-dialog::backdrop{background:#101d35a6;backdrop-filter:blur(5px)}
.parcel-object-dialog-head{display:flex;justify-content:space-between;gap:20px;padding:27px 28px 21px;border-bottom:1px solid #e8ecf2;background:#f8fafc}.parcel-object-eyebrow{font-size:10px;letter-spacing:.16em;color:#9d7b44;font-weight:700}.parcel-object-dialog-head h2{font-size:25px;letter-spacing:-.03em;margin:7px 0 8px}.parcel-object-dialog-head p{font-size:13px;line-height:1.6;margin:0;color:#6b778d;max-width:530px}
.parcel-object-dialog-body{padding:24px 28px}.parcel-object-status{display:flex;align-items:flex-start;gap:13px;margin-bottom:16px}.parcel-object-indicator{flex:0 0 9px;height:9px;border-radius:50%;background:#ae8b51;box-shadow:0 0 0 5px #ae8b5112;margin-top:6px}.parcel-object-status strong{font-size:16px}.parcel-object-status p{font-size:13px;line-height:1.6;color:#66738b;margin:6px 0 0}.parcel-object-notice{font-size:12px;line-height:1.65;color:#66738b;margin:12px 0}.parcel-object-notice:empty{display:none}.parcel-object-notice[role=alert]{color:#a34436}
.parcel-object-details{display:grid;grid-template-columns:1fr 1fr;gap:15px 22px;padding:18px;border:1px solid #e6eaf0;border-radius:12px;margin:18px 0}.parcel-object-details>div{min-width:0;display:grid;gap:6px}.parcel-object-details span{color:#758197;font-size:11px}.parcel-object-details strong{font-size:12px;font-weight:600}.parcel-object-wide{grid-column:1/-1}.parcel-object-details code,.parcel-object-review code{font-size:12px;overflow-wrap:anywhere;word-break:break-word}.parcel-object-health{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.parcel-object-health>div{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #edf0f4;padding:10px 0;font-size:12px}.parcel-object-health strong{font-size:11px;text-align:right;max-width:65%;font-weight:600;overflow-wrap:anywhere}.parcel-object-report-note{font-size:11px;color:#8490a3;margin:12px 0 22px;line-height:1.6}
.parcel-object-guide{border:1px solid #e4e9f0;border-radius:12px;padding:14px 16px;font-size:12px;color:#69758c;line-height:1.75}.parcel-object-guide summary{font-weight:600;color:#273b58;cursor:pointer}.parcel-object-guide ol{padding-left:19px;margin:14px 0}.parcel-object-guide li{padding-left:3px;margin:9px 0}.parcel-object-guide a{color:#977542;text-underline-offset:3px}.parcel-object-guide p{margin-bottom:0}
.parcel-object-setup{margin-top:20px}.parcel-object-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.parcel-object-actions .btn{margin:0}.parcel-object-replace-note{font-size:12px;color:#758197;line-height:1.6}.parcel-object-code,.parcel-object-review{margin-top:18px;padding:18px;border:1px solid #daceb4;border-radius:12px;background:#fcfaf6}.parcel-object-code label,.parcel-object-review label{display:block;font-size:12px;font-weight:600;margin-bottom:10px}.parcel-object-code>div{display:flex;align-items:center;gap:12px}.parcel-object-code textarea{resize:none;flex:1;min-width:0;box-sizing:border-box;border:1px solid #ded6c8;border-radius:8px;padding:10px 12px;background:#fff;color:#243650;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}.parcel-object-code p,.parcel-object-review p{font-size:12px;line-height:1.6;color:#6c7789}.parcel-object-review h3{font-size:15px;margin:0 0 10px}.parcel-object-review input[type=text]{box-sizing:border-box;width:100%;padding:11px 12px;font:13px ui-monospace,SFMono-Regular,Consolas,monospace;border:1px solid #d7dfe9;border-radius:8px;background:#fff;color:#263b57}.parcel-object-review .btn{margin-top:4px}
.parcel-object-disconnect{border-top:1px solid #e7ebf0;margin-top:22px;padding-top:16px}.parcel-object-disconnect-link{border:0;background:none;padding:0;color:#9a5046;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:12px;cursor:pointer}.parcel-object-disconnect p,.parcel-object-disconnect label{font-size:12px;line-height:1.7}.parcel-object-disconnect label{display:flex;align-items:center;gap:10px;margin-bottom:12px}.parcel-object-danger{background:#a7463e;color:#fff;border:0;border-radius:8px;padding:10px 16px;font:inherit;font-size:12px;cursor:pointer}.parcel-object-danger:disabled{opacity:.45;cursor:default}.parcel-object-dialog-footer{padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f8fafc;border-top:1px solid #e7ebf0}.parcel-object-dialog-footer span{font-size:11px;color:#8390a2}
body.dark .parcel-object-open{color:#d9e1ef;border-color:#344055}body.dark .parcel-object-dialog{background:#182235;color:#e0e7f2;border-color:#354157}body.dark .parcel-object-dialog-head,body.dark .parcel-object-dialog-footer{background:#131d2f;border-color:#354157}body.dark .parcel-object-guide,body.dark .parcel-object-details{border-color:#354157}body.dark .parcel-object-guide summary{color:#dbe5f4}body.dark .parcel-object-code,body.dark .parcel-object-review{background:#242a35;border-color:#65543c}body.dark .parcel-object-code textarea,body.dark .parcel-object-review input[type=text]{background:#131d2f;color:#dbe5f4;border-color:#4c4a46}body.dark .parcel-object-health>div,body.dark .parcel-object-disconnect{border-color:#354157}body.dark #parcelObjectBadge[data-tone=good]{color:#6ed7ac}body.dark #parcelObjectBadge[data-tone=warning]{color:#dab47d}
@media(max-width:540px){.parcel-object-dialog-head{padding:22px 18px 18px}.parcel-object-dialog-body{padding:18px}.parcel-object-dialog-footer{padding:14px 18px}.parcel-object-dialog-head h2{font-size:22px}.parcel-object-health{grid-template-columns:1fr}.parcel-object-details{grid-template-columns:1fr;padding:14px}.parcel-object-code,.parcel-object-review{padding:14px}.parcel-object-code>div{align-items:stretch;flex-direction:column}.parcel-object-card-head{align-items:flex-start;gap:10px}.parcel-object-actions{align-items:stretch}.parcel-object-actions button{flex:1}.parcel-object-status p{font-size:12px}}
body.dark .parcel-object-dialog-head p,body.dark .parcel-object-status p,body.dark .parcel-object-notice,body.dark .parcel-object-guide,body.dark .parcel-object-code p,body.dark .parcel-object-review p,body.dark .parcel-object-replace-note{color:#adb9cd}
body.dark .parcel-object-details span,body.dark .parcel-object-report-note,body.dark .parcel-object-dialog-footer span{color:#a0aec4}

.prim-owner-uuid { font-size: 11px; overflow-wrap: anywhere; user-select: text; margin: 4px 0; }

/* Prim Owners follows the existing Visitor Analytics dialog. */
body.prim-dialog-open{overflow:hidden}
.prim-preview-person{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:13px 0;border:0;border-bottom:1px solid #e2e8f0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.prim-preview-person span:first-child{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.prim-preview-person span:last-child{flex-shrink:0;font-size:12px;color:#64748b}
.prim-preview-person:last-child{border-bottom:0}
.prim-analytics-dialog{width:min(900px,calc(100vw - 32px))}
#primDialog .prim-table-wrap{max-height:none;height:auto;overflow:visible}
#primDialog .prim-owner-table{table-layout:fixed;border-collapse:collapse}
#primDialog .prim-owner-table th{padding:12px 8px;text-align:left}
#primDialog .prim-owner-table td{padding:18px 8px;vertical-align:top;border-bottom:1px solid var(--visitor-border);line-height:1.5}
#primDialog .prim-owner-table th:first-child{width:62%}
#primDialog .prim-owner-table th:nth-child(2){width:55px;text-align:center}
#primDialog .prim-owner-table td:nth-child(2){text-align:center}

#primDialog .prim-owner-table td:first-child>strong{display:block;font-size:14px}
#primDialog .prim-owner-table td:first-child>div{color:var(--visitor-muted);font-size:12px}
#primDialog .prim-owner-uuid{margin:8px 0;font:11px/1.5 ui-monospace,monospace}
.prim-identity-copy,.prim-identity-profile{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid var(--visitor-border);border-radius:6px;background:var(--visitor-surface);color:inherit;font:11px/1.3 Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;margin:0 6px 4px 0}
.prim-preview-person:focus-visible,.prim-identity-copy:focus-visible,.prim-identity-profile:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
body.dark .prim-preview-person{border-color:#334155}
body.dark .prim-preview-person span:last-child{color:#94a3b8}
@media(max-width:600px){
 .prim-analytics-dialog{width:calc(100vw - 20px)}
 #primDialog .prim-owner-table thead{display:none}
 #primDialog .prim-owner-table,#primDialog .prim-owner-table tbody{display:block;width:100%}
 #primDialog .prim-owner-table tr{display:grid;grid-template-columns:1fr auto;padding:14px 0;border-bottom:1px solid var(--visitor-border)}
 #primDialog .prim-owner-table td{display:block;width:auto!important;border:0;padding:4px 0;text-align:left!important}
 #primDialog .prim-owner-table td:first-child{grid-column:1/-1}
 #primDialog .prim-owner-table td:nth-child(2)::after{content:' prims'}
 #primDialog .prim-owner-table td:nth-child(3){grid-column:2;text-align:right!important}

}


/* Customer tutorial: transparent modal spotlights preserve the existing panel layout. */
.customer-tutorial-help{position:fixed;left:18px;right:auto;bottom:80px;z-index:1000;display:grid;place-items:center;width:40px;height:40px;flex:none;border:1px solid #d5bb82;border-radius:50%;background:#f8f5ed;color:#584522;font-family:inherit;font-size:22px;font-weight:700;line-height:1;cursor:pointer}
.customer-tutorial-help[hidden]{display:none}
.customer-tutorial{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#30291e;overflow:hidden}
.customer-tutorial::backdrop{background:transparent}
.customer-tutorial-shade{position:absolute;inset:0;background:rgba(16,19,22,.66)}
.customer-tutorial-spot{position:fixed;pointer-events:none;border:2px solid #d7bb7c;border-radius:12px;box-shadow:0 0 0 9999px rgba(16,19,22,.66)}
.customer-tutorial-card{position:fixed;box-sizing:border-box;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;background:#fffdf8;border:1px solid #d8c49b;border-radius:16px;box-shadow:0 12px 40px #0003;overflow-wrap:anywhere;text-align:start}
.customer-tutorial-head{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#746a59}
.customer-tutorial-head button{width:30px;height:30px;flex:none;border:0;background:transparent;font-size:24px;color:inherit;cursor:pointer}
.customer-tutorial-card h2{margin:10px 0;font-size:21px;line-height:1.3;color:inherit}
.customer-tutorial-card p{margin:12px 0;font-size:14px;line-height:1.65;color:inherit}
.customer-tutorial-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:20px}
.customer-tutorial-actions span{flex:1}
.customer-tutorial-card button{font-family:inherit;cursor:pointer}
.customer-tutorial-actions button,.customer-tutorial-topics button,[data-tour-retry]{min-height:40px;border:1px solid #d7c9ac;border-radius:8px;padding:8px 12px;background:transparent;color:inherit;font-size:13px}
.customer-tutorial-actions [data-tour-next]{background:#785d2b;border-color:#785d2b;color:#fff}
.customer-tutorial-actions [data-tour-later]{padding-inline:0;border-color:transparent;color:#746a59}
.customer-tutorial-topics{display:grid;gap:8px;margin-top:18px}
.customer-tutorial-topics button{text-align:start}
.customer-tutorial .customer-tutorial-save{font-size:12px;color:#934d20}
.customer-tutorial .customer-tutorial-save:empty{display:none}
.customer-tutorial button:focus-visible,.customer-tutorial-help:focus-visible{outline:3px solid #d4ad62;outline-offset:3px}
.customer-tutorial [hidden]{display:none!important}
body.dark .customer-tutorial-card,body.dark-mode .customer-tutorial-card{background:#24272b;color:#f5eee2;border-color:#7b6c4e}
@media(max-width:420px){.customer-tutorial-card{padding:16px}.customer-tutorial-actions{gap:6px}.customer-tutorial-actions button{padding:8px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.customer-tutorial *{scroll-behavior:auto!important}}

/* Programmatic guide headings announce steps without an interactive focus ring. */
.customer-tutorial-card h2:focus{outline:none}

/* Panel Guide: searchable reference and existing walkthrough entry points. */
.customer-panel-guide{box-sizing:border-box;width:min(940px,calc(100vw - 28px));height:min(88dvh,840px);max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:0;border:1px solid #d7c6a3;border-radius:20px;background:#fffdf8;color:#302b22;overflow:hidden;font-family:inherit;text-align:start;box-shadow:0 24px 80px #0004}
.customer-panel-guide[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.customer-panel-guide::backdrop{background:#101820a8;backdrop-filter:blur(3px)}
.customer-panel-guide *{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
.panel-guide-head{display:flex;justify-content:space-between;align-items:start;gap:18px;padding:24px 28px 18px;border-bottom:1px solid #e8dfce}
.panel-guide-brand{font-size:10px;font-weight:700;letter-spacing:.16em;color:#937849}
.panel-guide-head h2{margin:8px 0;font-size:25px;line-height:1.25;color:inherit}
.panel-guide-head p{margin:0;font-size:13px;line-height:1.6;color:#746b5c}
.customer-panel-guide button,.customer-panel-guide input{font-family:inherit;font-size:13px}
.customer-panel-guide button{min-height:40px;padding:9px 13px;border:1px solid #d9cdb7;border-radius:9px;background:#fffdf8;color:inherit;cursor:pointer;line-height:1.45}
.customer-panel-guide button:disabled{opacity:.5;cursor:default}
.panel-guide-head .panel-guide-close{flex:none;width:34px;min-height:34px;padding:0;border:0;font-size:26px;line-height:1}
.panel-guide-scroll{overflow:auto;overscroll-behavior:contain;padding:20px 28px 28px;scrollbar-gutter:stable}
.panel-guide-start{padding:16px;border:1px solid #e6d9be;border-radius:13px;background:#f7f3e9}
.panel-guide-progress{display:block;margin-bottom:10px;font-size:11px;font-weight:600;color:#806737}
.panel-guide-tour-actions{display:flex;gap:8px;flex-wrap:wrap}
.customer-panel-guide .panel-guide-primary{border-color:#785d2b;background:#785d2b;color:#fff}
.panel-guide-search{margin:20px 0 16px}.panel-guide-search label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}
.panel-guide-search>div{display:flex;align-items:stretch;gap:8px}
.panel-guide-search input{flex:1;width:100%;border:1px solid #d8cbb2;border-radius:9px;background:#fff;color:inherit;padding:11px 13px;outline:none}
.panel-guide-search button{flex:none;max-width:42%}
.panel-guide-categories{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:22px}
.panel-guide-categories button{border-radius:999px;min-height:35px;padding:7px 11px;font-size:11px}
.panel-guide-categories button[aria-pressed="true"]{background:#efe5d1;border-color:#bb9f66;color:#574019}
.panel-guide-library h3{font-size:17px;margin:18px 0 8px;color:inherit}
.panel-guide-results{margin:0 0 12px;color:#7e725e;font-size:12px}
.panel-guide-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.customer-panel-guide .panel-guide-topic{display:flex;align-items:start;flex-direction:column;gap:8px;padding:16px;text-align:start;border-color:#e5ddcd;background:#fff;min-height:170px}
.panel-guide-topic strong{font-size:14px;line-height:1.45}.panel-guide-topic-category{font-size:10px;color:#927a4b}
.panel-guide-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.65;color:#746b5c}
.panel-guide-plan{font-size:10px;padding:3px 7px;border-radius:5px;background:#f4eddc;color:#80632d;margin-top:auto}
.panel-guide-faq{margin-top:28px}.panel-guide-faq details{border-bottom:1px solid #e8dfce;padding:14px 0;font-size:13px;line-height:1.75}
.panel-guide-faq summary{font-weight:600;cursor:pointer}.panel-guide-faq p{margin:10px 0 0;color:#746b5c}
.panel-guide-article>button:first-child{margin-bottom:22px}.panel-guide-article-category{display:block;font-size:11px;color:#927a4b}
.panel-guide-article h3{font-size:23px;line-height:1.4;margin:8px 0 18px}.panel-guide-article h4{font-size:16px;margin-top:25px}
.panel-guide-article-copy{font-size:14px;line-height:1.9;max-width:720px}.panel-guide-article-copy p{margin:0 0 18px}.panel-guide-article-copy ol{padding-inline-start:25px}.panel-guide-article-copy li{padding-inline-start:5px;margin:12px 0}
.panel-guide-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 28px;background:#f7f3e9;border-top:1px solid #e8dfce}.panel-guide-footer span{font-size:12px;color:#746b5c}
.customer-panel-guide [hidden]{display:none!important}
.customer-panel-guide button:focus-visible,.customer-panel-guide input:focus-visible,.customer-panel-guide summary:focus-visible{outline:3px solid #c7a66a;outline-offset:2px}
.customer-panel-guide h2:focus,.customer-panel-guide h3:focus{outline:none}
body.dark .customer-panel-guide{background:#24272b;color:#f5eee2;border-color:#786b50}
body.dark .panel-guide-head,body.dark .panel-guide-faq details,body.dark .panel-guide-footer{border-color:#4d483e}
body.dark .panel-guide-start,body.dark .panel-guide-footer{background:#302e28;border-color:#625740}
body.dark .customer-panel-guide button,body.dark .panel-guide-topic,body.dark .panel-guide-search input{background:#292d32;color:#f5eee2;border-color:#5c5548}
body.dark .customer-panel-guide .panel-guide-primary{background:#785d2b;border-color:#a98a50;color:#fff}
body.dark .panel-guide-categories button[aria-pressed="true"]{background:#57482d}
body.dark .panel-guide-head p,body.dark .panel-guide-excerpt,body.dark .panel-guide-faq p,body.dark .panel-guide-footer span,body.dark .panel-guide-results{color:#c7c0b3}
@media(max-width:760px){.panel-guide-topics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.customer-panel-guide{width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:15px}.panel-guide-head{padding:18px 16px 14px}.panel-guide-head h2{font-size:21px}.panel-guide-scroll{padding:16px}.panel-guide-footer{padding:12px 16px}.panel-guide-topics{grid-template-columns:minmax(0,1fr)}.customer-panel-guide .panel-guide-topic{min-height:145px}.panel-guide-tour-actions{gap:6px}.panel-guide-tour-actions button{font-size:12px;padding:8px 10px}.panel-guide-article h3{font-size:21px}.panel-guide-search button{padding-inline:8px;font-size:11px}}

@media(max-width:520px){.panel-guide-search input{font-size:16px}}
