    .dashboard-wrap{
      max-width:1400px;
      margin:0 auto;
      padding:24px 16px 40px;
      position:relative;
      z-index:1;
    }

    .dash-topbar{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:16px;
      flex-wrap:wrap;
      margin-bottom:18px;
    }

    .dash-title{
      display:flex;
      flex-direction:column;
      gap:6px;
    }

    .dash-title h1{
      margin:0;
      color:var(--gold);
      font-size:28px;
    }

    .dash-title .sub{
      color:#5f5f5f;
      font-size:14px;
    }

    .dash-actions{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
    }

    .summary-grid{
      display:grid;
      grid-template-columns:repeat(4, minmax(0, 1fr));
      gap:14px;
      margin-bottom:18px;
    }

    .summary-card{
      background:var(--card);
      border:1px solid rgba(185,138,74,.22);
      border-radius:18px;
      box-shadow:var(--shadow);
      padding:16px;
      backdrop-filter:blur(10px);
    }

    .summary-label{
      font-size:13px;
      color:#6b6b6b;
      margin-bottom:8px;
    }

    .summary-value{
      font-size:28px;
      font-weight:700;
      color:var(--ink);
    }

    .summary-sub{
      margin-top:8px;
      font-size:13px;
      color:#7a6a55;
    }

    .dashboard-grid{
      display:grid;
      grid-template-columns:1.2fr .8fr;
      gap:18px;
    }

    .dash-card{
      background:var(--card);
      border:1px solid rgba(185,138,74,.22);
      border-radius:20px;
      box-shadow:var(--shadow);
      padding:18px;
      backdrop-filter:blur(10px);
    }

    .dash-card h2{
      margin:0 0 14px 0;
      color:var(--gold);
      font-size:18px;
    }

    .dash-list{
      display:flex;
      flex-direction:column;
      gap:10px;
    }

    .dash-item{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:12px;
      padding:12px 14px;
      border-radius:14px;
      background:rgba(255,255,255,.72);
      border:1px solid rgba(185,138,74,.14);
    }

    .dash-item-main{
      min-width:0;
    }

    .dash-item-title{
      font-weight:700;
      color:var(--ink);
      margin-bottom:4px;
    }

    .dash-item-meta{
      font-size:13px;
      color:#666;
      line-height:1.45;
    }

    .dash-badge{
      white-space:nowrap;
      padding:6px 10px;
      border-radius:999px;
      font-size:12px;
      font-weight:700;
      background:rgba(185,138,74,.12);
      color:#7b5b2f;
    }

    .next-event-box{
      display:flex;
      flex-direction:column;
      gap:10px;
      padding:16px;
      border-radius:18px;
      background:linear-gradient(135deg, rgba(185,138,74,.16), rgba(255,255,255,.85));
      border:1px solid rgba(185,138,74,.28);
      margin-bottom:16px;
    }

    .next-event-label{
      font-size:13px;
      color:#7a6a55;
    }

    .next-event-name{
      font-size:24px;
      font-weight:800;
      color:var(--ink);
    }

    .next-event-meta{
      font-size:14px;
      color:#5e5e5e;
      line-height:1.5;
    }

    .alert-group{
      display:flex;
      flex-direction:column;
      gap:12px;
    }

    .alert-box{
      border-radius:16px;
      padding:14px;
      background:rgba(255,255,255,.75);
      border:1px solid rgba(185,138,74,.15);
    }

    .alert-box h3{
      margin:0 0 10px 0;
      font-size:14px;
      color:#8b6430;
    }

    .empty-box{
      font-size:14px;
      color:#777;
      padding:10px 0;
    }

    .mini-links{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      margin-top:8px;
    }

    .dashboard-locked{
      filter:blur(6px);
      pointer-events:none;
      user-select:none;
    }

    .auth-overlay{
      position:fixed;
      inset:0;
      z-index:9999;
      display:flex;
      align-items:center;
      justify-content:center;
      padding:20px;
      background:rgba(12,12,12,.55);
      backdrop-filter:blur(6px);
    }

    .auth-overlay.hidden{
      display:none;
    }

    .auth-modal{
      width:min(460px, 100%);
      background:rgba(255,255,255,.96);
      border:1px solid rgba(185,138,74,.24);
      border-radius:24px;
      box-shadow:0 24px 60px rgba(0,0,0,.22);
      padding:24px 22px;
    }

    .auth-modal-head{
      display:flex;
      align-items:center;
      gap:14px;
      margin-bottom:14px;
    }

    .auth-modal-logo{
      width:64px;
      height:auto;
      flex:0 0 auto;
    }

    .auth-modal-title{
      margin:0;
      color:var(--gold);
      font-size:24px;
      line-height:1.2;
    }

    .auth-modal-sub{
      margin:6px 0 0 0;
      color:#666;
      font-size:14px;
      line-height:1.5;
    }

    .auth-form{
      display:flex;
      flex-direction:column;
      gap:12px;
      margin-top:18px;
    }

    .auth-form label{
      display:flex;
      flex-direction:column;
      gap:8px;
      font-size:14px;
      color:#5e5e5e;
      font-weight:600;
    }

    .auth-form input{
      width:100%;
      padding:12px 14px;
      border-radius:14px;
      border:1px solid rgba(185,138,74,.28);
      background:#fff;
      font-size:15px;
      outline:none;
      transition:border-color .2s ease, box-shadow .2s ease;
      box-sizing:border-box;
    }

    .auth-form input:focus{
      border-color:rgba(185,138,74,.6);
      box-shadow:0 0 0 3px rgba(185,138,74,.12);
    }

    .auth-actions{
      display:flex;
      justify-content:flex-end;
      gap:10px;
      margin-top:6px;
      flex-wrap:wrap;
    }

    .auth-error{
      min-height:20px;
      font-size:13px;
      color:#b42318;
      margin-top:2px;
    }
	
	    .payment-modal-grid{
      display:grid;
      gap:12px;
      margin-top:14px;
    }

    .payment-modal-grid label{
      display:flex;
      flex-direction:column;
      gap:6px;
      font-size:14px;
      color:#4f4f4f;
    }

    .payment-modal-grid input,
    .payment-modal-grid select{
      border:1px solid rgba(185,138,74,.22);
      border-radius:12px;
      min-height:44px;
      padding:10px 12px;
      font:inherit;
      background:#fff;
      color:#111;
    }

    .payment-edit-title{
      font-size:20px;
      font-weight:800;
      color:var(--gold);
      margin:0 0 4px 0;
    }

    .payment-edit-meta{
      font-size:14px;
      color:#666;
      margin-bottom:10px;
    }

    .payment-edit-status{
      min-height:20px;
      font-size:13px;
      color:#7a6a55;
      margin-top:8px;
    }

    @media (max-width: 1100px){
      .summary-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
      }

      .dashboard-grid{
        grid-template-columns:1fr;
      }
    }

    @media (max-width: 700px){
      .summary-grid{
        grid-template-columns:1fr;
      }

      .dash-item{
        flex-direction:column;
      }

      .auth-modal-head{
        align-items:flex-start;
      }
    }

/* Dashboard nav shell exact layout */
.dash-nav-shell{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(185,138,74,.18);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:16px;
  margin-bottom:18px;
}

.dash-nav-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}

.dash-eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:4px;
}

.dash-nav-head h1{
  margin:0;
  font-size:34px;
  line-height:1.1;
  color:var(--gold);
}

.dash-nav-note{
  max-width:420px;
  text-align:right;
  font-size:14px;
  line-height:1.5;
  color:#766f66;
  padding-top:22px;
}

.main-nav-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.dashboard-filter-row{
  display:flex;
  justify-content:flex-end;
  margin:0 0 14px 0;
}

.dashboard-year-filter{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:220px;
  font-size:13px;
  color:#6e6a64;
  font-weight:700;
}

.dashboard-year-filter select{
  min-height:42px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(185,138,74,.22);
  background:#fff;
  color:#111;
  font:inherit;
}

.main-nav-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:86px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(185,138,74,.18);
  background:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.05);
  text-decoration:none;
  color:inherit;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.main-nav-card:hover,
.main-nav-card:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(0,0,0,.08);
  border-color:rgba(185,138,74,.36);
}

button.main-nav-card{
  width:100%;
  text-align:left;
  font:inherit;
  cursor:pointer;
}

.main-nav-title{
  font-size:15px;
  font-weight:800;
  color:#111;
  margin-bottom:6px;
}

.main-nav-sub{
  font-size:13px;
  line-height:1.45;
  color:#6e6a64;
}

.dash-tabbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:10px 12px;
  margin:0 0 16px 0;
  border-radius:16px;
  border:1px solid rgba(185,138,74,.16);
  background:rgba(255,255,255,.88);
  box-shadow:var(--shadow);
}

.dash-priority-strip{
  margin:0 0 16px 0;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(185,138,74,.16);
  background:rgba(255,255,255,.88);
  box-shadow:var(--shadow);
}

.dash-tab{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:#f4efe8;
  color:#6a5634;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.dash-tab:hover,
.dash-tab:focus-visible{
  background:rgba(185,138,74,.16);
  color:#5a421e;
  transform:translateY(-1px);
}

.dashboard-section{
  margin-bottom:16px;
}

#dashboardEvents .stack,
#dashboardWarnings.stack{
  gap:14px !important;
}

#dashboardEvents .dash-card,
#dashboardWarnings .dash-card{
  padding:16px;
}

@media (max-width: 1100px){
  .main-nav-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .dash-nav-head{
    flex-direction:column;
  }

  .dash-nav-note{
    max-width:none;
    text-align:left;
    padding-top:0;
  }
}

@media (max-width: 700px){
  .dash-nav-shell{
    padding:14px;
  }

  .dash-nav-head h1{
    font-size:28px;
  }

  .dashboard-filter-row{
    justify-content:stretch;
  }

  .main-nav-grid{
    grid-template-columns:1fr;
  }

  .dashboard-year-filter{
    min-width:0;
    width:100%;
  }

  .dash-tabbar{
    padding:10px;
  }
}

.dashboard-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  gap:18px;
  align-items:start;
}

.dashboard-main{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.dashboard-side{
  min-width:0;
}

.sticky-card{
  position:sticky;
  top:18px;
}

.card-head-inline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.priority-pill-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.priority-pill,
.priority-level{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  text-align:center;
}

.priority-pill.critical,
.priority-level.critical{
  background:rgba(181,43,39,.12);
  color:#9f211e;
}

.priority-pill.high,
.priority-level.high{
  background:rgba(201,133,34,.16);
  color:#8a5a14;
}

.priority-pill.medium,
.priority-level.medium{
  background:rgba(55,102,189,.12);
  color:#284f96;
}

.priority-alert{
  position:relative;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(185,138,74,.16);
  background:rgba(255,255,255,.8);
  box-shadow:0 8px 22px rgba(34,26,15,.06);
  overflow:hidden;
}

.priority-alert::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  border-radius:16px 0 0 16px;
  background:rgba(185,138,74,.35);
}

.priority-alert.critical{
  border-color:rgba(181,43,39,.34);
  background:linear-gradient(180deg, rgba(181,43,39,.10) 0%, rgba(255,255,255,.96) 100%);
}
.priority-alert.critical::before{ background:#b52b27; }

.priority-alert.high{
  border-color:rgba(201,133,34,.34);
  background:linear-gradient(180deg, rgba(201,133,34,.12) 0%, rgba(255,255,255,.96) 100%);
}
.priority-alert.high::before{ background:#c98522; }

.priority-alert.medium{
  border-color:rgba(55,102,189,.28);
  background:linear-gradient(180deg, rgba(55,102,189,.10) 0%, rgba(255,255,255,.96) 100%);
}
.priority-alert.medium::before{ background:#3766bd; }

.priority-alert-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.finance-mini-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

.finance-mini-card{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(185,138,74,.14);
}

.finance-mini-value{
  font-size:22px;
  font-weight:800;
  color:var(--ink);
}
.finance-mini-card--wide{
  grid-column:span 2;
}
.finance-mini-lines{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,0.08);
  display:grid;
  gap:8px;
  max-height:180px;
  overflow:auto;
}
.finance-mini-line{
  font-size:13px;
  line-height:1.4;
  color:rgba(34,34,34,0.84);
  word-break:break-word;
}

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

.month-card{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(185,138,74,.14);
}

.month-name{
  font-size:13px;
  color:#7a6a55;
  margin-bottom:8px;
}

.month-total{
  font-size:20px;
  font-weight:800;
  color:var(--ink);
  margin-bottom:8px;
}

.month-meta,
.emphasis,
.overdue-text{
  font-size:13px;
}

.ops-panel-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.compact-box{
  padding:12px;
}

.compact-list .dash-item,
.compact-item{
  padding:10px 12px;
}

.compact-list .dash-item .mini-links .btn,
.compact-item .mini-links .btn{
  padding:6px 10px;
  min-height:auto;
}

.compact-list .dash-item-title,
.compact-item .dash-item-title{
  font-size:14px;
}

@media (max-width: 1180px){
  .dashboard-layout{ grid-template-columns:1fr; }
  .sticky-card{ position:static; }
}

@media (max-width: 900px){
  .month-grid,
  .finance-mini-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .month-grid,
  .finance-mini-grid{ grid-template-columns:1fr; }
}


.system-health-section{
  margin-bottom:16px;
}

.system-health-shell{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(185,138,74,.18);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:16px;
}

.system-health-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}

.system-health-head h2{
  margin:0;
  color:var(--gold);
  font-size:24px;
  line-height:1.2;
}

.system-health-summary-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

.system-health-meta{
  font-size:13px;
  color:#766f66;
  text-align:right;
}

.system-health-overall{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  border:1px solid transparent;
}

.system-health-overall.ok,
.system-health-badge.ok{
  background:rgba(27,139,77,.12);
  color:#17663b;
  border-color:rgba(27,139,77,.18);
}

.system-health-overall.warn,
.system-health-badge.warn{
  background:rgba(201,133,34,.14);
  color:#8a5a14;
  border-color:rgba(201,133,34,.18);
}

.system-health-overall.error,
.system-health-badge.error{
  background:rgba(181,43,39,.12);
  color:#9f211e;
  border-color:rgba(181,43,39,.18);
}

.system-health-overall.neutral,
.system-health-badge.neutral{
  background:rgba(55,102,189,.10);
  color:#284f96;
  border-color:rgba(55,102,189,.16);
}

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

.system-health-card{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(185,138,74,.14);
}

.system-health-card.ok{
  border-color:rgba(27,139,77,.18);
}

.system-health-card.warn{
  border-color:rgba(201,133,34,.2);
}

.system-health-card.error{
  border-color:rgba(181,43,39,.22);
}

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

.system-health-card-title{
  font-size:14px;
  font-weight:800;
  color:var(--ink);
}

.system-health-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:68px;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid transparent;
}

.system-health-card-detail{
  font-size:13px;
  line-height:1.45;
  color:#6e6a64;
  word-break:break-word;
}

@media (max-width: 1180px){
  .system-health-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px){
  .system-health-head{ flex-direction:column; }
  .system-health-summary-wrap{ align-items:flex-start; }
  .system-health-meta{ text-align:left; }
  .system-health-grid{ grid-template-columns:1fr; }
}


    .finance-mini-lines--invoices{
      margin-top:8px;
    }

    .finance-mini-line--invoice{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:12px;
      padding:6px 0;
      border-bottom:1px dashed rgba(185,138,74,.18);
    }

    .finance-mini-line--invoice:last-child{
      border-bottom:none;
      padding-bottom:0;
    }

    .invoice-line-left{
      font-weight:600;
      color:var(--ink);
      min-width:0;
      word-break:break-word;
    }

    .invoice-line-right{
      font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      color:#7b5b2f;
      text-align:right;
      white-space:nowrap;
      flex:0 0 auto;
    }
