
    :root{
      --bg:#f6f8fb;
      --card:#ffffff;
      --surface:#ffffff;
      --surface2:#fbfdff;
      --border:#e6ebf2;
      --shadowSm: 0 1px 2px rgba(16,24,40,.06);
      --shadowMd: 0 8px 24px rgba(16,24,40,.08);
      --ink:#0b1220;
      --muted:#667085;
      --line:#e5e7eb;

      /* VoltLog brand */
      --brand:#1d4ed8;        /* primary */
      --brand2:#06b6d4;       /* accent */
      --brandDark:#0b3aa6;    /* pressed */
      --ok:#16a34a;
      --bad:#dc2626;
      --warn:#f59e0b;

      --radius:12px;
      --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
      color:var(--ink);
      background:var(--bg);
      padding-bottom: 86px; /* space for sticky bottom bar */
    }
    .wrap{max-width:1080px;margin:0 auto;padding:18px}
    \.card{
      background:var(--surface);
      border:1px solid var(--border);
      border-radius:var(--radius);
      box-shadow: var(--shadowSm);
      padding:18px;
    }
    h1{margin:0;font-size:22px;line-height:1.2}
    .sub{margin-top:6px;color:var(--muted);font-size:13px}
    .topbar{
      display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;
      margin-bottom:14px;
    }

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

    button, .btn, input, select, textarea{ min-height:44px; } /* thumb-friendly */

    button, .btn{
      border:1px solid var(--border);
      background:var(--btn2);
      color:var(--ink);
      border-radius:14px;
      padding:12px 14px;
      font-weight:700;
      font-size:13px;
      cursor:pointer;
    }
    button.primary{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 10px 22px rgba(29,78,216,.22);}
    button.danger{ color:var(--bad); }
    button:disabled{opacity:.45;cursor:not-allowed}

    .grid{display:grid;gap:12px}
    @media(min-width:900px){
      .grid.cols3{grid-template-columns: 1fr 1fr 1fr;}
      .grid.cols2{grid-template-columns: 1fr 1fr;}
      .grid.cols12{grid-template-columns: repeat(12, 1fr);}
    }

    label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
    input, select, textarea{
      width:100%;
      border:1px solid var(--border);
      border-radius:14px;
      padding:12px 14px;
      font-size:14px;
      outline:none;
      background:#fff;
    }
    textarea{min-height:88px;resize:vertical}

    .section-title{margin:16px 0 8px;font-weight:800}
    .panel{
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:14px;
      background:#fff;
    }

    .row{display:flex;gap:10px;align-items:center;justify-content:space-between}

    .stats{display:grid;gap:10px}
    @media(min-width:700px){.stats{grid-template-columns:repeat(3,1fr)}}
    .stat{
      border:1px solid var(--border);
      border-radius:16px;
      padding:12px;
      background:#fff;
    }
    .stat .k{font-size:12px;color:var(--muted)}
    .stat .v{font-size:24px;font-weight:900;margin-top:6px}
    .v.ok{color:var(--ok)}
    .v.bad{color:var(--bad)}

    .hint{font-size:12px;color:var(--muted);margin-top:8px}

    table{width:100%;border-collapse:separate;border-spacing:0}
    thead th{
      text-align:left;
      font-size:12px;
      color:var(--muted);
      border-bottom:1px solid var(--line);
      padding:11px 10px;
      background:#fafafa;
      position:sticky;top:0;
      z-index: 2;
    }
    tbody td{
      border-bottom:1px solid var(--line);
      padding:12px 10px;
      font-size:13px;
      vertical-align:top;
    }
    .nowrap{white-space:nowrap}
    .result-pass{color:var(--ok);font-weight:800}
    .result-fail{color:var(--bad);font-weight:800}
    .groupRow td{background:#f9fafb;font-weight:800}
    .jobMeta{color:var(--muted);font-size:12px;margin-top:4px}
    .pill{display:inline-block;border:1px solid var(--border);border-radius:999px;padding:2px 8px;font-size:11px;color:var(--muted);margin-left:8px}
    .right{text-align:right}
    .small{font-size:12px}
    .muted{color:var(--muted)}

    .twoCol{display:grid;gap:12px}
    @media(min-width:900px){.twoCol{grid-template-columns: 1.2fr .8fr}}

    .clientList{border:1px solid var(--border);border-radius:16px;overflow:hidden}
    .clientItem{
      padding:10px 12px; display:flex; gap:10px; align-items:flex-start; justify-content:space-between;
      border-bottom:1px solid var(--line);
      background:#fff;
    }
    .clientItem:last-child{border-bottom:none}
    .clientItem.active{background:#f9fafb}

    .linkBtn{border:none;background:transparent;padding:0;color:#111827;text-decoration:underline;font-weight:700;cursor:pointer;font-size:12px}
    .linkBtn.red{color:var(--bad)}

    .fileInput{display:none}

    .banner{background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
      color:#fff;
      border-radius:16px;
      padding:10px 12px;
      font-size:12px;
      line-height:1.4;
    }

    .stickyBottom{
      position: fixed;
      left: 0; right: 0; bottom: 0;
      padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
      background: rgba(243,244,246,.92);
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--line);
      z-index: 50;
    }
    .stickyBottom .bar{
      max-width:1080px;
      margin:0 auto;
      display:flex;
      gap:10px;
      align-items:center;
      justify-content:space-between;
      flex-wrap:wrap;
    }
    .stickyBottom .big{
      flex:1;
      min-width: 160px;
      font-size: 14px;
      border-radius: 16px;
    }

    /* Table → cards on small screens */
    @media (max-width: 760px){
      .wrap{ padding:14px; }
      .card{ padding:14px; border-radius: 20px; }
      .topbar{ gap:10px; }
      h1{ font-size:20px; }
      .sub{ font-size:12px; }

      thead{ display:none; }
      table, tbody, tr, td{ display:block; width:100%; }
      tbody tr{ border-bottom: 1px solid var(--line); padding: 6px 8px 8px; }
      tbody td{ border-bottom:none; padding: 3px 0; font-size: 13px; }
      tbody td::before{
        content: attr(data-label);
        display:block;
        font-size:11px;
        color:var(--muted);
        text-transform: uppercase;
        letter-spacing:.06em;
        margin-bottom:2px;
      }
      tbody td.right{ text-align:left; }
      .result-pass, .result-fail{ font-size: 14px; }
    }
  
    /* --- Bold Modern SaaS Home (non-breaking) --- */
    .homeWrap{
      display:grid;
      gap:12px;
      margin-top:10px;
    }
    @media(min-width:700px){ .homeWrap{ grid-template-columns: repeat(3, 1fr);} }
    .homeCard{
      border:1px solid var(--border);
      border-radius:18px;
      padding:14px;
      background: linear-gradient(180deg, #ffffff, #fafafa);
      box-shadow: 0 12px 30px rgba(0,0,0,.08);
      text-align:left;
      position:relative;
      overflow:hidden;
      transition: transform .12s ease, box-shadow .12s ease;
      min-height: 92px;
    }
    .homeCard:hover{ transform: translateY(-1px); box-shadow: 0 16px 34px rgba(0,0,0,.10); }
    .homeCard:active{ transform: translateY(0px) scale(.99); }
    .homeCard .t{ font-size:14px; font-weight:900; margin:0; }
    .homeCard .d{ font-size:12px; color:var(--muted); margin-top:6px; line-height:1.3; }
    .homeCard .ic{
      width:40px;height:40px;border-radius:14px;
      display:flex;align-items:center;justify-content:center;
      font-size:18px;font-weight:900;
      background: #111827; color:#fff;
      margin-bottom:10px;
    }
    .homeCard.primaryCard{
      background: linear-gradient(180deg, #111827, #0b1220);
      color:#fff;
      border-color:#0b1220;
    }
    .homeCard.primaryCard .d{ color: rgba(255,255,255,.78); }
    .homeCard.primaryCard .ic{ background: rgba(255,255,255,.14); }

  
    
    .statusPill{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:4px 10px;
      border-radius:999px;
      font-size:12px;
      font-weight:850;
      border:1px solid var(--border);
      background:#fff;
      margin-left:8px;
      vertical-align:middle;
    }
    .stDraft{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
    .stInProgress{ background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
    .stAwaiting{ background:#f5f3ff; border-color:#ddd6fe; color:#5b21b6; }
    .stCompleted{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
    .stArchived{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }

/* --- Burger menu drawer --- */
    .appHeader{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin-bottom:12px;
    }
    .appHeader .left{
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }
    .appTitle{
      display:flex;
      flex-direction:column;
      min-width:0;
    }
    .appTitle .t{
      font-size:18px;
      font-weight:900;
      margin:0;
      line-height:1.15;
      letter-spacing:.01em;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      max-width: 70vw;
    }
    .appTitle .s{
      font-size:12px;
      color:var(--muted);
      margin-top:2px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      max-width: 70vw;
    }

    #viewSubtitle{display:none !important;}

    .iconBtn{
      width:44px;height:44px;
      border-radius:14px;
      border:1px solid var(--border);
      background:#fff;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:18px;
      font-weight:900;
      cursor:pointer;
      box-shadow: 0 8px 18px rgba(0,0,0,.06);
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, box-shadow .12s ease;
    }
    .iconBtn:active{ transform: translateY(1px) scale(.98); box-shadow: 0 6px 14px rgba(0,0,0,.08); }

    .drawerOverlay{
      position:fixed; inset:0;
      background: rgba(17,24,39,.35);
      backdrop-filter: blur(6px);
      z-index: 120;
      display:none;
    }
    .drawer{
      position:fixed;
      top:0; left:0; bottom:0;
      width:min(340px, 88vw);
      background:#fff;
      border-right:1px solid var(--line);
      box-shadow: 20px 0 50px rgba(0,0,0,.18);
      z-index: 121;
      transform: translateX(-105%);
      transition: transform .18s ease;
      display:flex;
      flex-direction:column;
    }
    .drawer.open{ transform: translateX(0); }
    .drawerHeader{
      padding:12px 16px 10px;
      border-bottom:1px solid var(--line);
      background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #111827 100%);
      color:#fff;
    }
    .drawerHeader .brand{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
    }
    .drawerHeader .brand .name{ font-weight:900; letter-spacing:.02em; }
    .drawerHeader .brand .close{
      width:40px;height:40px;border-radius:14px;
      border:1px solid rgba(255,255,255,.25);
      background: rgba(255,255,255,.10);
      color:#fff; font-size:18px; font-weight:900;
      display:flex; align-items:center; justify-content:center;
      cursor:pointer;
    }
    .drawerHeader .meta{
      margin-top:8px;
      font-size:12px;
      opacity:.9;
      line-height:1.35;
    }

    .drawerBody{
      padding:12px;
      overflow:auto;
    }
    .menuGroup{
      margin-bottom:12px;
      border:1px solid var(--border);
      border-radius: 16px;
      overflow:hidden;
      background:#fff;
    }
    .menuItem{
      display:flex;
      align-items:center;
      gap:12px;
      padding:12px 14px;
      border-bottom:1px solid var(--line);
      cursor:pointer;
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      transition: background .12s ease;
    }
    .menuItem:last-child{ border-bottom:none; }
    .menuItem:hover{ background:#f9fafb; }
    .menuI{
      width:34px;height:34px;border-radius:14px;
      display:flex;align-items:center;justify-content:center;
      background:#f3f4f6;
      font-size:16px;
      flex:0 0 auto;
    }
    .menuT{ font-weight:900; }
    .menuS{ font-size:12px; color:var(--muted); margin-top:2px; }
    .menuText{ display:flex; flex-direction:column; min-width:0; }
    .menuDanger .menuI{ background: #fee2e2; color: #991b1b; }
    .menuDanger .menuT{ color:#991b1b; }

    /* Hide old action row if still present */
    .actions.legacyActions{ display:none !important; }

  
    :root {
      --brand:#2563eb;
    }
    button.primary{
      background:var(--brand);
      border-color:var(--brand);
    }
    .banner{
      background:var(--brand);
    }
    
    /* VoltLog Modern (B) logo + header polish */
    .vlLogo{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
    .appHeader{align-items:center}
    .appTitle .t{display:flex;align-items:center;gap:10px}
    .appTitle .t .word{font-weight:950;letter-spacing:.01em}
    .appTitle .t .word span{background:linear-gradient(135deg,var(--brand),var(--brand2));-webkit-background-clip:text;background-clip:text;color:transparent}
    .appTitle .s{opacity:.95}


    /* --- Phase 1 Light SaaS shell --- */
    body{ background:#f6f8fb; }
    
    .appShell{ display:flex; min-height:100vh; }
    .sideNav{
      width:260px;
      transition: width 180ms ease, padding 180ms ease;
      background:var(--surface2);
      border-right:1px solid var(--border);
      padding:16px 14px;
      position:sticky;
      top:0;
      height:100vh;
    }
                            
    .sideBrand{
      font-weight:900;
      font-size:16px;
      letter-spacing:-.2px;
      margin:6px 8px 14px;
      color:#0f172a;
      display:flex;
      align-items:center;
      gap:8px;
    }
    .sideToggle{
      margin-left:auto;
      border:1px solid rgba(15,23,42,.10);
      background:rgba(255,255,255,.8);
      color:#334155;
      border-radius:10px;
      padding:6px 8px;
      font-weight:800;
      cursor:pointer;
      opacity:.85;
      transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease;
    }
    .sideToggle:hover{ background:#eef2ff; border-color:rgba(99,102,241,.25); opacity:1; }

    
    /* --- Phase 2: Sidebar grouping labels (Primary / Secondary / Utility) --- */
    .navGroupLabel{
      margin: 18px 8px 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: #94a3b8;
    }
    .sideNav .navGroupLabel:first-of-type{
      margin-top: 22px;
    }
    .sideNav .navBtn{
      width:100%;
      text-align:left;
      border:1px solid transparent;
      background:transparent;
      color:#0f172a;
      border-radius:10px;
      padding:10px 10px;
      margin-bottom:4px;
      font-weight:700;
      font-size:13px;
      box-shadow:none;
      display:flex;
      align-items:center;
      gap:10px;
    }
    .sideNav .navBtn:hover{
      background:#eef4ff;
      border-color:#d8e3ff;
    }
    .sideNav .navBtn.active{
      background:#e8f0ff;
      border-color:#cfe0ff;
      position:relative;
    }
    .sideNav .navBtn.active::before{
      content:"";
      position:absolute;
      left:6px;
      top:8px;
      bottom:8px;
      width:3px;
      border-radius:999px;
      background:var(--brand);
    }
    .sideNav .navBtn .ico{
      width:18px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      color:#334155;
    }
    .mainCol{ flex:1; min-width:0; }
    .topBar{
      margin:0 18px;
      padding:12px 16px;
      background:var(--surface);
      border:1px solid var(--border);
      border-top:none;
      border-radius:0 0 12px 12px;
      box-shadow:var(--shadowSm);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      position:sticky;
      top:0;
      z-index:60;
    }
    .topBarTitle{
      font-weight:900;
      letter-spacing:-.2px;
      color:#0f172a;
    
      display:none !important;
    }
    .ctxPill{
      font-size:12px;
      color:#475569;
      background:#f1f5f9;
      border:1px solid var(--border);
      padding:6px 10px;
      border-radius:999px;
      white-space:nowrap;
    }
    .mainContent{ padding:0 8px 0 0; }
    .wrap{ max-width:1200px; margin:0 auto; padding:18px; }
    \.card{ border-radius:12px; border-color:#e6ebf2; box-shadow: var(--shadowSm); }
    .kpiGrid{ display:grid; gap:12px; margin:0 0 12px; }
    .heroCard{
      display:grid;
      grid-template-columns: 1.2fr .8fr;
      gap:16px;
      background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,1));
      border:1px solid #e6ebf2;
      border-radius:16px;
      box-shadow: var(--shadowMd);
      padding:16px;
      margin: 0 0 12px;
      overflow:hidden;
    }
    .heroEyebrow{ font-size:12px; color:#64748b; letter-spacing:.02em; }
    .heroMain{ display:flex; align-items:baseline; gap:10px; margin-top:6px; }
    .heroPct{ font-size:44px; font-weight:950; line-height:1; color:#0f172a; }
    .heroPctSign{ font-size:22px; font-weight:800; color:#334155; margin-left:2px; }
    .heroSub{ font-size:13px; color:#475569; margin-top:6px; }
    .heroStats{ display:flex; gap:14px; margin-top:14px; flex-wrap:wrap; }
    .heroStat{ padding:10px 12px; background:#f8fafc; border:1px solid #e6ebf2; border-radius:12px; min-width:140px; }
    .heroStatK{ font-size:11px; color:#64748b; }
    .heroStatV{ font-size:14px; font-weight:800; color:#0f172a; margin-top:2px; }
    .heroRight{ background: radial-gradient(600px 220px at 30% 20%, rgba(37,99,235,.12), rgba(255,255,255,0)); border-radius:14px; border:1px solid #e6ebf2; padding:12px; }
    .heroChartHeader{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:6px; }
    .heroChartTitle{ font-size:12px; font-weight:800; color:#0f172a; }
    .heroChartMeta{ font-size:12px; color:#64748b; }
    .sparklineSvg{ width:100%; height:140px; }
    @media (max-width: 980px){
      .heroCard{ grid-template-columns:1fr; }
      .heroStat{ min-width:unset; flex:1; }
    }

    .kpiCard{ background:#fff; border:1px solid #e6ebf2; border-radius:12px; padding:12px; box-shadow:var(--shadowSm); }
    .kpiCard .k{ font-size:12px; color:#64748b; }
    .kpiCard .v{ font-size:24px; font-weight:900; margin-top:4px; color:#0f172a; }
    .kpiCard.clickable{ cursor:pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
    .kpiCard.clickable:hover{ transform: translateY(-1px); box-shadow:0 10px 20px rgba(15,23,42,.10); border-color:#cfd8e6; }
    .dashList{ display:grid; gap:8px; }
    .dashRowBtn{
      width:100%; text-align:left; border:1px solid #e6ebf2; background:#fff; border-radius:12px;
      padding:10px 12px; box-shadow:0 2px 8px rgba(15,23,42,.04); cursor:pointer;
    }
    .dashRowBtn:hover{ background:#f8fbff; }
    .dashRowTitle{ font-weight:800; color:#0f172a; }
    .dashRowMeta{ font-size:12px; color:#64748b; margin-top:4px; }
    .dashCards{ display:grid; gap:12px; margin-bottom:12px; }
    .dashInfoCard{ background:#fff; border:1px solid #e6ebf2; border-radius:12px; padding:12px; box-shadow:var(--shadowSm); }
    #dashboardView .jobsSection{ position:relative; z-index:2; }
    #dashboardView #jobsList{ min-height:220px; max-height:52vh; overflow:auto; }

    @media(min-width:900px){
      .kpiGrid{ grid-template-columns:repeat(4,1fr); }
      .dashCards{ grid-template-columns:1fr 1fr; }
    }
    @media(max-width:980px){
      .appShell{ display:block; }
      .sideNav{ width:auto; height:auto; position:relative; padding:10px 12px; border-right:none; border-bottom:1px solid #e6ebf2; }
      .topBar{ margin:10px 12px 0; }
      .mainContent{ padding:0; }
      .sideNav .navBtn{ display:inline-flex; width:auto; margin:0 8px 8px 0; }
    }

  

/* UX V2 Charts */
.kpiGrid{gap:14px;}
.kpiCard .sub{font-size:12px;color:var(--muted);margin-top:4px;}
.dashGrid2{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-top:14px;}
@media (max-width: 980px){.dashGrid2{grid-template-columns:1fr;}}
.chartCard{padding:14px;}
.chartHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;}
.chartTitle{font-weight:650;font-size:14px;}
.chartMeta{font-size:12px;color:var(--muted);}
.chartSvg{width:100%;height:160px;display:block;}
.donutWrap{display:flex;align-items:center;gap:14px;}
.donutSvg{width:160px;height:160px;flex:0 0 auto;}
.legend{display:flex;flex-direction:column;gap:8px;}
.legItem{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text);}
.dot{width:10px;height:10px;border-radius:50%;}
.tableLike{border:1px solid var(--border);border-radius:12px;overflow:hidden;}
.tableRow{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-top:1px solid var(--border);}
.tableRow:first-child{border-top:none;}
.tableRow:hover{background:rgba(2,6,23,.03);}

    /* --- Stripe-ish topbar search + user pill --- */
    .topBar{ gap:12px; }
    .topBarLeft{ display:flex; align-items:center; min-width: 140px; }
    .topBarRight{ display:flex; align-items:center; gap:10px; }
    .topBarSearch{ flex:1; max-width: 520px; position:relative; }
    .topBarSearchIcon{ position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:14px; color:#64748b; pointer-events:none; }
    #topBarSearchInput{
      width:100%; height:38px; border-radius:999px;
      border:1px solid #e6ebf2; background:#fff;
      padding:0 14px 0 34px;
      font-size:13px; color:#0f172a;
      box-shadow: var(--shadowSm);
    }
    #topBarSearchInput::placeholder{ color:#94a3b8; }
    #topBarSearchInput:focus{
      outline:none; border-color:#bfdbfe;
      box-shadow: 0 0 0 4px rgba(37,99,235,.10);
    }
    .userPill{
      display:flex; align-items:center; gap:8px;
      padding:6px 10px; border-radius:999px;
      background:#fff; border:1px solid #e6ebf2;
      box-shadow: var(--shadowSm);
      font-size:12px; color:#334155;
    }
    .userDot{ width:8px; height:8px; border-radius:999px; background:#22c55e; display:inline-block; }
    .userTxt{ font-weight:700; }

    /* --- KPI deltas --- */
    .kpiMeta{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px; }
    .kpiCard .sub{ font-size:12px; color:#64748b; }
    .delta{
      font-size:12px; font-weight:800;
      padding:3px 8px; border-radius:999px;
      border:1px solid #e6ebf2; background:#f8fafc;
      color:#64748b; white-space:nowrap;
    }
    .delta.pos{ color:#0f766e; border-color:#99f6e4; background:#ecfeff; }
    .delta.neg{ color:#b91c1c; border-color:#fecaca; background:#fef2f2; }

    /* --- Stripe-ish list rows (Recent activity / Alerts) --- */
    .dashList{ display:flex; flex-direction:column; gap:0; }
    .dashRowBtn{
      width:100%;
      text-align:left;
      border:none;
      background:transparent;
      padding:10px 10px;
      border-radius:10px;
      transition: background .12s ease, transform .12s ease;
    }
    .dashRowBtn + .dashRowBtn{ border-top:1px solid #eef2f7; border-radius:0; }
    .dashRowBtn:hover{ background:#f8fafc; }
    .dashRowTitle{ font-size:13px; font-weight:800; color:#0f172a; }
    .dashRowMeta{ font-size:12px; color:#64748b; margin-top:2px; }

    /* Home landing upgrades */
    .homeLandingGrid{ display:grid; grid-template-columns: 1.35fr .65fr; gap:14px; }
    @media (max-width: 980px){ .homeLandingGrid{ grid-template-columns: 1fr; } }
    .dashRows{ display:flex; flex-direction:column; border:1px solid #eef2f7; border-radius:14px; overflow:hidden; background:#fff; }
    .homeMiniStats{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
    .homeMiniStat{ border:1px solid #eef2f7; border-radius:14px; padding:12px; background:#fff; box-shadow:0 1px 0 rgba(2,6,23,.02); }
    .homeMiniStat .k{ font-size:12px; color:#64748b; font-weight:800; }
    .homeMiniStat .v{ font-size:20px; font-weight:900; color:#0f172a; margin-top:6px; }
    .homeMiniStat .s{ font-size:12px; color:#64748b; margin-top:4px; }


/* --- Mobile nav (Solution 1): Sidebar is primary; burger only toggles sidebar on small screens --- */
.drawer{ display:none !important; } /* retire old burger drawer */
@media (min-width: 901px){
  #btnMenu{ display:none !important; } /* no burger on desktop */
  .drawerOverlay{ display:none !important; }
}
@media (max-width: 900px){
  /* turn sidebar into off-canvas drawer */
  .sideNav{
    position:fixed;
    top:0; bottom:0; left:0;
    width:min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform .18s ease;
    z-index: 210;
  }
  body.vlNavOpen .sideNav{ transform: translateX(0); }
  /* reuse overlay */
  body.vlNavOpen .drawerOverlay{ display:block; z-index: 205; }
  /* keep content full width when sidebar hidden */
  .appShell{ grid-template-columns: 1fr !important; }
  body.vlNavOpen .appShell{ grid-template-columns: 1fr !important; }
}


    .pageHeader{display:flex; align-items:flex-end; justify-content:space-between; gap:12px;}
    .pageHeaderActions{display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-end;}
    .btn.danger{border-color:rgba(220,38,38,.35); color:var(--bad); background:#fff;}
    .btn.danger:hover{background:rgba(220,38,38,.06);}
    @media (max-width: 900px){
      .pageHeaderActions{display:none;} /* mobile uses sticky bottom bar + existing menus */
    }


/* ===== UX Premium Additions (v10.4) ===== */

/* ===== Phase 3: Table & data refinement ===== */

/* ===== Phase 3.1: Assets list refinement ===== */
/* Assets toolbar (search + actions) */
.assetsToolbar{
  display:flex;
  gap:12px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.assetsToolbar .assetsSearch{
  flex:1;
  min-width: 260px;
  max-width: 720px;
}
.assetsToolbar .assetsActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.assetsToolbar .assetsActionsLeft{
  display:flex;
  gap:8px;
  align-items:center;
  margin-right:auto;
}
.assetsToolbar .assetsActionsRight{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.assetsToolbar .btn{
  min-height:38px;
  padding:9px 12px;
  border-radius:12px;
}

.assetRow{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
}
.assetRow .assetMain{ flex:1; min-width:0; }
.assetTitle{
  font-weight:800;
  color:#0f172a;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.assetMeta{
  margin-top:3px;
  font-size:12px;
  color:#64748b;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.assetMeta span{ white-space:nowrap; }
.assetRight{ text-align:right; }
.assetDue{ margin-top:4px; font-size:12px; color:#64748b; }
.clientItem.active{
  background:#f1f5f9;
}
.clientItem.active:hover{
  background:#eef2f7;
}

/* Status pills (unified) */
.statusPill{ font-weight:800; }
.statusPill.stOk{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
.statusPill.stBad{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.statusPill.stNeutral{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }

tbody tr{ transition: background .12s ease; }
tbody tr:hover{ background: rgba(2,6,23,.03); }

/* Consistent numeric alignment */
th.right, td.right{ text-align:right; }
th.num, td.num{ text-align:right; }

/* Slightly calmer table header */
thead th{ color:#64748b; }

/* List row hover (assets/clients/jobs list containers) */
.clientItem{ transition: background .12s ease; }
.clientItem:hover{ background:#f8fafc; }

/* Unified warning treatment */
.statusPill.stWarn{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.delta.warn{ color:#9a3412; border-color:#fed7aa; background:#fff7ed; }

.pageHeader{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:4px 0 16px;}
.pageHeader h1{font-size:22px;line-height:1.2;margin:0;font-weight:700;letter-spacing:-0.01em;}
.pageHeader .sub{color:var(--muted);font-size:13px;margin-top:4px;}
.sectionLabel{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:18px 0 8px;}
/* Command palette */
#vlCmdkBackdrop{position:fixed;inset:0;background:rgba(17,24,39,.35);display:none;z-index:200;}
#vlCmdk{position:fixed;left:50%;top:14%;transform:translateX(-50%);width:min(720px, calc(100vw - 24px));
  background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadowMd);display:none;z-index:210;}
#vlCmdk .hdr{padding:12px 12px 10px;border-bottom:1px solid var(--border);}
#vlCmdk input{width:100%;padding:12px 12px;border-radius:12px;border:1px solid var(--border);background:#fff;font-size:14px;}
#vlCmdk .list{max-height:360px;overflow:auto;padding:6px;}
#vlCmdk .item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;cursor:pointer;}
#vlCmdk .item:hover{background:rgba(37,99,235,.08);}
#vlCmdk .k{font-size:12px;color:var(--muted);margin-left:auto;}
#vlCmdk .tag{font-size:11px;color:var(--muted);border:1px solid var(--border);padding:2px 8px;border-radius:999px;}


/* ===== Mobile layout fixes (Top bar + no horizontal scroll) ===== */
html, body{ overflow-x:hidden; }
@media (max-width: 900px){
  .topBar{
    flex-wrap:wrap;
    align-items:center;
  }
  .topBarLeft{
    min-width:auto;
    order:1;
  }
  .topBarSearch{
    order:2;
    flex: 1 1 100%;
    width:100%;
    max-width:none;
  }
  #topBarSearchInput{
    height:44px;
    border-radius:14px;
    padding:0 14px 0 36px;
  }
  .topBarSearchIcon{
    left:14px;
  }
  .topBarRight{
    order:3;
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:8px;
  }
  .ctxPill{
    max-width: calc(100% - 110px);
    overflow:hidden;
    text-overflow:ellipsis;
  }
}


@media (max-width: 420px){
  .wrap{ padding:14px 12px; }
  .topBar{ margin:10px 10px 0; }
}


/* ===== Phase 3.3: Jobs list polish ===== */

/* Table refinement (jobs-heavy screens) */
table{
  border-collapse: separate;
  border-spacing: 0;
}

thead th{
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  color:#64748b;
  background:#f8fafc;
}

tbody td{
  padding:14px 12px;
  font-size:13px;
}

tbody tr{
  transition: background .12s ease;
}

tbody tr:hover{
  background:#f8fafc;
}

/* Right align numeric-like columns */
td.num, th.num,
td[data-type="number"], th[data-type="number"]{
  text-align:right;
}

/* Job status pills alignment cleanup */
.statusPill{
  font-weight:700;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
}

/* Empty state refinement */
.emptyState{
  text-align:center;
  padding:28px 16px;
  color:#64748b;
  font-size:14px;
}


/* ===== Phase 3.4: Job creation flow spacing ===== */
#dashCreatePanel{
  border:1px solid #e6ebf2;
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadowSm);
}

#dashCreatePanel label{
  font-size:12px;
  font-weight:700;
  color:#64748b;
  margin-bottom:6px;
}

#dashCreatePanel input,
#dashCreatePanel select{
  border-radius:14px;
  border-color:#e6ebf2;
}

#dashCreatePanel .hint{
  margin-top:6px;
  font-size:12px;
  color:#94a3b8;
}

#dashCreatePanel button{
  min-height:38px;
  padding:9px 12px;
  border-radius:12px;
}

#dashCreatePanel .primary{
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}

@media (max-width: 900px){
  #dashCreatePanel{
    padding:12px;
    border-radius:14px;
  }
}


/* ===== Phase 3.5: Status system lock-in ===== */
.statusPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid #e6ebf2;
  background:#fff;
  color:#334155;
}
.statusPill::before{
  content:"";
  width:8px;height:8px;
  border-radius:999px;
  background: rgba(2,6,23,.25);
  display:inline-block;
}

/* Mappings */
.statusPill.stOk{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
.statusPill.stOk::before{ background:#16a34a; }

.statusPill.stWarn{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.statusPill.stWarn::before{ background:#f59e0b; }

.statusPill.stBad{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.statusPill.stBad::before{ background:#dc2626; }

.statusPill.stNeutral{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }
.statusPill.stNeutral::before{ background:#64748b; }

/* Delta pills align with status meaning */
.delta.warn{ color:#9a3412; border-color:#fed7aa; background:#fff7ed; }
.delta.neg{ color:#991b1b; border-color:#fecaca; background:#fef2f2; }
.delta.pos{ color:#065f46; border-color:#bbf7d0; background:#ecfdf5; }


/* ===== Phase 3.6: Test history + data tables refinement ===== */
.tableTight thead th{
  background:#f8fafc;
  color:#64748b;
  font-weight:700;
  padding:10px 12px;
}
.tableTight tbody td{
  padding:12px 12px;
}
.tableTight tbody tr:hover{
  background:#f8fafc;
}
.tableTight td.num, .tableTight th.num{ text-align:right; }
.tableTight .mutedCell{ color:#64748b; font-size:12px; }

/* Asset detail sections */
.assetDetailSectionLabel{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#94a3b8;
  margin:16px 0 8px;
  font-weight:800;
}


.tableTightHost table{ width:100%; }
.tableTightHost table thead th{ background:#f8fafc; color:#64748b; font-weight:700; padding:10px 12px; }
.tableTightHost table tbody td{ padding:12px 12px; }
.tableTightHost table tbody tr:hover{ background:#f8fafc; }


/* ===== Phase 3.6b: Scoped asset detail table styling (guaranteed) ===== */
#assetDetail .assetDetailSectionLabel{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#94a3b8;
  margin:16px 0 8px;
  font-weight:800;
}
#assetDetail table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
#assetDetail thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fafc;
  color:#64748b;
  font-weight:700;
  font-size:12px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
}
#assetDetail tbody td{
  padding:12px 12px;
  font-size:13px;
  border-bottom:1px solid var(--line);
}
#assetDetail tbody tr:hover{
  background:#f8fafc;
}
#assetDetail td.num, #assetDetail th.num{
  text-align:right;
}
#assetDetail .muted.small{
  color:#94a3b8;
  font-size:12px;
}


    :root{
      --bg:#f6f8fb;
      --card:#ffffff;
      --surface:#ffffff;
      --surface2:#fbfdff;
      --border:#e6ebf2;
      --shadowSm: 0 1px 2px rgba(16,24,40,.06);
      --shadowMd: 0 8px 24px rgba(16,24,40,.08);
      --ink:#0b1220;
      --muted:#667085;
      --line:#e5e7eb;

      /* VoltLog brand */
      --brand:#1d4ed8;        /* primary */
      --brand2:#06b6d4;       /* accent */
      --brandDark:#0b3aa6;    /* pressed */
      --ok:#16a34a;
      --bad:#dc2626;
      --warn:#f59e0b;

      --radius:12px;
      --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
      color:var(--ink);
      background:var(--bg);
      padding-bottom: 86px; /* space for sticky bottom bar */
    }
    .wrap{max-width:1080px;margin:0 auto;padding:18px}
    \.card{
      background:var(--surface);
      border:1px solid var(--border);
      border-radius:var(--radius);
      box-shadow: var(--shadowSm);
      padding:18px;
    }
    h1{margin:0;font-size:22px;line-height:1.2}
    .sub{margin-top:6px;color:var(--muted);font-size:13px}
    .topbar{
      display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;
      margin-bottom:14px;
    }

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

    button, .btn, input, select, textarea{ min-height:44px; } /* thumb-friendly */

    button, .btn{
      border:1px solid var(--border);
      background:var(--btn2);
      color:var(--ink);
      border-radius:14px;
      padding:12px 14px;
      font-weight:700;
      font-size:13px;
      cursor:pointer;
    }
    button.primary{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 10px 22px rgba(29,78,216,.22);}
    button.danger{ color:var(--bad); }
    button:disabled{opacity:.45;cursor:not-allowed}

    .grid{display:grid;gap:12px}
    @media(min-width:900px){
      .grid.cols3{grid-template-columns: 1fr 1fr 1fr;}
      .grid.cols2{grid-template-columns: 1fr 1fr;}
      .grid.cols12{grid-template-columns: repeat(12, 1fr);}
    }

    label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
    input, select, textarea{
      width:100%;
      border:1px solid var(--border);
      border-radius:14px;
      padding:12px 14px;
      font-size:14px;
      outline:none;
      background:#fff;
    }
    textarea{min-height:88px;resize:vertical}

    .section-title{margin:16px 0 8px;font-weight:800}
    .panel{
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:14px;
      background:#fff;
    }

    .row{display:flex;gap:10px;align-items:center;justify-content:space-between}

    .stats{display:grid;gap:10px}
    @media(min-width:700px){.stats{grid-template-columns:repeat(3,1fr)}}
    .stat{
      border:1px solid var(--border);
      border-radius:16px;
      padding:12px;
      background:#fff;
    }
    .stat .k{font-size:12px;color:var(--muted)}
    .stat .v{font-size:24px;font-weight:900;margin-top:6px}
    .v.ok{color:var(--ok)}
    .v.bad{color:var(--bad)}

    .hint{font-size:12px;color:var(--muted);margin-top:8px}

    table{width:100%;border-collapse:separate;border-spacing:0}
    thead th{
      text-align:left;
      font-size:12px;
      color:var(--muted);
      border-bottom:1px solid var(--line);
      padding:11px 10px;
      background:#fafafa;
      position:sticky;top:0;
      z-index: 2;
    }
    tbody td{
      border-bottom:1px solid var(--line);
      padding:12px 10px;
      font-size:13px;
      vertical-align:top;
    }
    .nowrap{white-space:nowrap}
    .result-pass{color:var(--ok);font-weight:800}
    .result-fail{color:var(--bad);font-weight:800}
    .groupRow td{background:#f9fafb;font-weight:800}
    .jobMeta{color:var(--muted);font-size:12px;margin-top:4px}
    .pill{display:inline-block;border:1px solid var(--border);border-radius:999px;padding:2px 8px;font-size:11px;color:var(--muted);margin-left:8px}
    .right{text-align:right}
    .small{font-size:12px}
    .muted{color:var(--muted)}

    .twoCol{display:grid;gap:12px}
    @media(min-width:900px){.twoCol{grid-template-columns: 1.2fr .8fr}}

    .clientList{border:1px solid var(--border);border-radius:16px;overflow:hidden}
    .clientItem{
      padding:10px 12px; display:flex; gap:10px; align-items:flex-start; justify-content:space-between;
      border-bottom:1px solid var(--line);
      background:#fff;
    }
    .clientItem:last-child{border-bottom:none}
    .clientItem.active{background:#f9fafb}

    .linkBtn{border:none;background:transparent;padding:0;color:#111827;text-decoration:underline;font-weight:700;cursor:pointer;font-size:12px}
    .linkBtn.red{color:var(--bad)}

    .fileInput{display:none}

    .banner{background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
      color:#fff;
      border-radius:16px;
      padding:10px 12px;
      font-size:12px;
      line-height:1.4;
    }

    .stickyBottom{
      position: fixed;
      left: 0; right: 0; bottom: 0;
      padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
      background: rgba(243,244,246,.92);
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--line);
      z-index: 50;
    }
    .stickyBottom .bar{
      max-width:1080px;
      margin:0 auto;
      display:flex;
      gap:10px;
      align-items:center;
      justify-content:space-between;
      flex-wrap:wrap;
    }
    .stickyBottom .big{
      flex:1;
      min-width: 160px;
      font-size: 14px;
      border-radius: 16px;
    }

    /* Table → cards on small screens */
    @media (max-width: 760px){
      .wrap{ padding:14px; }
      .card{ padding:14px; border-radius: 20px; }
      .topbar{ gap:10px; }
      h1{ font-size:20px; }
      .sub{ font-size:12px; }

      thead{ display:none; }
      table, tbody, tr, td{ display:block; width:100%; }
      tbody tr{ border-bottom: 1px solid var(--line); padding: 6px 8px 8px; }
      tbody td{ border-bottom:none; padding: 3px 0; font-size: 13px; }
      tbody td::before{
        content: attr(data-label);
        display:block;
        font-size:11px;
        color:var(--muted);
        text-transform: uppercase;
        letter-spacing:.06em;
        margin-bottom:2px;
      }
      tbody td.right{ text-align:left; }
      .result-pass, .result-fail{ font-size: 14px; }
    }
  
    /* --- Bold Modern SaaS Home (non-breaking) --- */
    .homeWrap{
      display:grid;
      gap:12px;
      margin-top:10px;
    }
    @media(min-width:700px){ .homeWrap{ grid-template-columns: repeat(3, 1fr);} }
    .homeCard{
      border:1px solid var(--border);
      border-radius:18px;
      padding:14px;
      background: linear-gradient(180deg, #ffffff, #fafafa);
      box-shadow: 0 12px 30px rgba(0,0,0,.08);
      text-align:left;
      position:relative;
      overflow:hidden;
      transition: transform .12s ease, box-shadow .12s ease;
      min-height: 92px;
    }
    .homeCard:hover{ transform: translateY(-1px); box-shadow: 0 16px 34px rgba(0,0,0,.10); }
    .homeCard:active{ transform: translateY(0px) scale(.99); }
    .homeCard .t{ font-size:14px; font-weight:900; margin:0; }
    .homeCard .d{ font-size:12px; color:var(--muted); margin-top:6px; line-height:1.3; }
    .homeCard .ic{
      width:40px;height:40px;border-radius:14px;
      display:flex;align-items:center;justify-content:center;
      font-size:18px;font-weight:900;
      background: #111827; color:#fff;
      margin-bottom:10px;
    }
    .homeCard.primaryCard{
      background: linear-gradient(180deg, #111827, #0b1220);
      color:#fff;
      border-color:#0b1220;
    }
    .homeCard.primaryCard .d{ color: rgba(255,255,255,.78); }
    .homeCard.primaryCard .ic{ background: rgba(255,255,255,.14); }

  
    
    .statusPill{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:4px 10px;
      border-radius:999px;
      font-size:12px;
      font-weight:850;
      border:1px solid var(--border);
      background:#fff;
      margin-left:8px;
      vertical-align:middle;
    }
    .stDraft{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
    .stInProgress{ background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
    .stAwaiting{ background:#f5f3ff; border-color:#ddd6fe; color:#5b21b6; }
    .stCompleted{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
    .stArchived{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }

/* --- Burger menu drawer --- */
    .appHeader{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin-bottom:12px;
    }
    .appHeader .left{
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }
    .appTitle{
      display:flex;
      flex-direction:column;
      min-width:0;
    }
    .appTitle .t{
      font-size:18px;
      font-weight:900;
      margin:0;
      line-height:1.15;
      letter-spacing:.01em;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      max-width: 70vw;
    }
    .appTitle .s{
      font-size:12px;
      color:var(--muted);
      margin-top:2px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      max-width: 70vw;
    }

    #viewSubtitle{display:none !important;}

    .iconBtn{
      width:44px;height:44px;
      border-radius:14px;
      border:1px solid var(--border);
      background:#fff;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:18px;
      font-weight:900;
      cursor:pointer;
      box-shadow: 0 8px 18px rgba(0,0,0,.06);
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, box-shadow .12s ease;
    }
    .iconBtn:active{ transform: translateY(1px) scale(.98); box-shadow: 0 6px 14px rgba(0,0,0,.08); }

    .drawerOverlay{
      position:fixed; inset:0;
      background: rgba(17,24,39,.35);
      backdrop-filter: blur(6px);
      z-index: 120;
      display:none;
    }
    .drawer{
      position:fixed;
      top:0; left:0; bottom:0;
      width:min(340px, 88vw);
      background:#fff;
      border-right:1px solid var(--line);
      box-shadow: 20px 0 50px rgba(0,0,0,.18);
      z-index: 121;
      transform: translateX(-105%);
      transition: transform .18s ease;
      display:flex;
      flex-direction:column;
    }
    .drawer.open{ transform: translateX(0); }
    .drawerHeader{
      padding:12px 16px 10px;
      border-bottom:1px solid var(--line);
      background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #111827 100%);
      color:#fff;
    }
    .drawerHeader .brand{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
    }
    .drawerHeader .brand .name{ font-weight:900; letter-spacing:.02em; }
    .drawerHeader .brand .close{
      width:40px;height:40px;border-radius:14px;
      border:1px solid rgba(255,255,255,.25);
      background: rgba(255,255,255,.10);
      color:#fff; font-size:18px; font-weight:900;
      display:flex; align-items:center; justify-content:center;
      cursor:pointer;
    }
    .drawerHeader .meta{
      margin-top:8px;
      font-size:12px;
      opacity:.9;
      line-height:1.35;
    }

    .drawerBody{
      padding:12px;
      overflow:auto;
    }
    .menuGroup{
      margin-bottom:12px;
      border:1px solid var(--border);
      border-radius: 16px;
      overflow:hidden;
      background:#fff;
    }
    .menuItem{
      display:flex;
      align-items:center;
      gap:12px;
      padding:12px 14px;
      border-bottom:1px solid var(--line);
      cursor:pointer;
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      transition: background .12s ease;
    }
    .menuItem:last-child{ border-bottom:none; }
    .menuItem:hover{ background:#f9fafb; }
    .menuI{
      width:34px;height:34px;border-radius:14px;
      display:flex;align-items:center;justify-content:center;
      background:#f3f4f6;
      font-size:16px;
      flex:0 0 auto;
    }
    .menuT{ font-weight:900; }
    .menuS{ font-size:12px; color:var(--muted); margin-top:2px; }
    .menuText{ display:flex; flex-direction:column; min-width:0; }
    .menuDanger .menuI{ background: #fee2e2; color: #991b1b; }
    .menuDanger .menuT{ color:#991b1b; }

    /* Hide old action row if still present */
    .actions.legacyActions{ display:none !important; }

  
    :root {
      --brand:#2563eb;
    }
    button.primary{
      background:var(--brand);
      border-color:var(--brand);
    }
    .banner{
      background:var(--brand);
    }
    
    /* VoltLog Modern (B) logo + header polish */
    .vlLogo{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
    .appHeader{align-items:center}
    .appTitle .t{display:flex;align-items:center;gap:10px}
    .appTitle .t .word{font-weight:950;letter-spacing:.01em}
    .appTitle .t .word span{background:linear-gradient(135deg,var(--brand),var(--brand2));-webkit-background-clip:text;background-clip:text;color:transparent}
    .appTitle .s{opacity:.95}


    /* --- Phase 1 Light SaaS shell --- */
    body{ background:#f6f8fb; }
    
    .appShell{ display:flex; min-height:100vh; }
    .sideNav{
      width:260px;
      transition: width 180ms ease, padding 180ms ease;
      background:var(--surface2);
      border-right:1px solid var(--border);
      padding:16px 14px;
      position:sticky;
      top:0;
      height:100vh;
    }
                            
    .sideBrand{
      font-weight:900;
      font-size:16px;
      letter-spacing:-.2px;
      margin:6px 8px 14px;
      color:#0f172a;
      display:flex;
      align-items:center;
      gap:8px;
    }
    .sideToggle{
      margin-left:auto;
      border:1px solid rgba(15,23,42,.10);
      background:rgba(255,255,255,.8);
      color:#334155;
      border-radius:10px;
      padding:6px 8px;
      font-weight:800;
      cursor:pointer;
      opacity:.85;
      transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease;
    }
    .sideToggle:hover{ background:#eef2ff; border-color:rgba(99,102,241,.25); opacity:1; }

    
    /* --- Phase 2: Sidebar grouping labels (Primary / Secondary / Utility) --- */
    .navGroupLabel{
      margin: 18px 8px 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: #94a3b8;
    }
    .sideNav .navGroupLabel:first-of-type{
      margin-top: 22px;
    }
    .sideNav .navBtn{
      width:100%;
      text-align:left;
      border:1px solid transparent;
      background:transparent;
      color:#0f172a;
      border-radius:10px;
      padding:10px 10px;
      margin-bottom:4px;
      font-weight:700;
      font-size:13px;
      box-shadow:none;
      display:flex;
      align-items:center;
      gap:10px;
    }
    .sideNav .navBtn:hover{
      background:#eef4ff;
      border-color:#d8e3ff;
    }
    .sideNav .navBtn.active{
      background:#e8f0ff;
      border-color:#cfe0ff;
      position:relative;
    }
    .sideNav .navBtn.active::before{
      content:"";
      position:absolute;
      left:6px;
      top:8px;
      bottom:8px;
      width:3px;
      border-radius:999px;
      background:var(--brand);
    }
    .sideNav .navBtn .ico{
      width:18px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      color:#334155;
    }
    .mainCol{ flex:1; min-width:0; }
    .topBar{
      margin:0 18px;
      padding:12px 16px;
      background:var(--surface);
      border:1px solid var(--border);
      border-top:none;
      border-radius:0 0 12px 12px;
      box-shadow:var(--shadowSm);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      position:sticky;
      top:0;
      z-index:60;
    }
    .topBarTitle{
      font-weight:900;
      letter-spacing:-.2px;
      color:#0f172a;
    
      display:none !important;
    }
    .ctxPill{
      font-size:12px;
      color:#475569;
      background:#f1f5f9;
      border:1px solid var(--border);
      padding:6px 10px;
      border-radius:999px;
      white-space:nowrap;
    }
    .mainContent{ padding:0 8px 0 0; }
    .wrap{ max-width:1200px; margin:0 auto; padding:18px; }
    \.card{ border-radius:12px; border-color:#e6ebf2; box-shadow: var(--shadowSm); }
    .kpiGrid{ display:grid; gap:12px; margin:0 0 12px; }
    .heroCard{
      display:grid;
      grid-template-columns: 1.2fr .8fr;
      gap:16px;
      background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,1));
      border:1px solid #e6ebf2;
      border-radius:16px;
      box-shadow: var(--shadowMd);
      padding:16px;
      margin: 0 0 12px;
      overflow:hidden;
    }
    .heroEyebrow{ font-size:12px; color:#64748b; letter-spacing:.02em; }
    .heroMain{ display:flex; align-items:baseline; gap:10px; margin-top:6px; }
    .heroPct{ font-size:44px; font-weight:950; line-height:1; color:#0f172a; }
    .heroPctSign{ font-size:22px; font-weight:800; color:#334155; margin-left:2px; }
    .heroSub{ font-size:13px; color:#475569; margin-top:6px; }
    .heroStats{ display:flex; gap:14px; margin-top:14px; flex-wrap:wrap; }
    .heroStat{ padding:10px 12px; background:#f8fafc; border:1px solid #e6ebf2; border-radius:12px; min-width:140px; }
    .heroStatK{ font-size:11px; color:#64748b; }
    .heroStatV{ font-size:14px; font-weight:800; color:#0f172a; margin-top:2px; }
    .heroRight{ background: radial-gradient(600px 220px at 30% 20%, rgba(37,99,235,.12), rgba(255,255,255,0)); border-radius:14px; border:1px solid #e6ebf2; padding:12px; }
    .heroChartHeader{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:6px; }
    .heroChartTitle{ font-size:12px; font-weight:800; color:#0f172a; }
    .heroChartMeta{ font-size:12px; color:#64748b; }
    .sparklineSvg{ width:100%; height:140px; }
    @media (max-width: 980px){
      .heroCard{ grid-template-columns:1fr; }
      .heroStat{ min-width:unset; flex:1; }
    }

    .kpiCard{ background:#fff; border:1px solid #e6ebf2; border-radius:12px; padding:12px; box-shadow:var(--shadowSm); }
    .kpiCard .k{ font-size:12px; color:#64748b; }
    .kpiCard .v{ font-size:24px; font-weight:900; margin-top:4px; color:#0f172a; }
    .kpiCard.clickable{ cursor:pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
    .kpiCard.clickable:hover{ transform: translateY(-1px); box-shadow:0 10px 20px rgba(15,23,42,.10); border-color:#cfd8e6; }
    .dashList{ display:grid; gap:8px; }
    .dashRowBtn{
      width:100%; text-align:left; border:1px solid #e6ebf2; background:#fff; border-radius:12px;
      padding:10px 12px; box-shadow:0 2px 8px rgba(15,23,42,.04); cursor:pointer;
    }
    .dashRowBtn:hover{ background:#f8fbff; }
    .dashRowTitle{ font-weight:800; color:#0f172a; }
    .dashRowMeta{ font-size:12px; color:#64748b; margin-top:4px; }
    .dashCards{ display:grid; gap:12px; margin-bottom:12px; }
    .dashInfoCard{ background:#fff; border:1px solid #e6ebf2; border-radius:12px; padding:12px; box-shadow:var(--shadowSm); }
    #dashboardView .jobsSection{ position:relative; z-index:2; }
    #dashboardView #jobsList{ min-height:220px; max-height:52vh; overflow:auto; }

    @media(min-width:900px){
      .kpiGrid{ grid-template-columns:repeat(4,1fr); }
      .dashCards{ grid-template-columns:1fr 1fr; }
    }
    @media(max-width:980px){
      .appShell{ display:block; }
      .sideNav{ width:auto; height:auto; position:relative; padding:10px 12px; border-right:none; border-bottom:1px solid #e6ebf2; }
      .topBar{ margin:10px 12px 0; }
      .mainContent{ padding:0; }
      .sideNav .navBtn{ display:inline-flex; width:auto; margin:0 8px 8px 0; }
    }

  

/* UX V2 Charts */
.kpiGrid{gap:14px;}
.kpiCard .sub{font-size:12px;color:var(--muted);margin-top:4px;}
.dashGrid2{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-top:14px;}
@media (max-width: 980px){.dashGrid2{grid-template-columns:1fr;}}
.chartCard{padding:14px;}
.chartHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;}
.chartTitle{font-weight:650;font-size:14px;}
.chartMeta{font-size:12px;color:var(--muted);}
.chartSvg{width:100%;height:160px;display:block;}
.donutWrap{display:flex;align-items:center;gap:14px;}
.donutSvg{width:160px;height:160px;flex:0 0 auto;}
.legend{display:flex;flex-direction:column;gap:8px;}
.legItem{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text);}
.dot{width:10px;height:10px;border-radius:50%;}
.tableLike{border:1px solid var(--border);border-radius:12px;overflow:hidden;}
.tableRow{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-top:1px solid var(--border);}
.tableRow:first-child{border-top:none;}
.tableRow:hover{background:rgba(2,6,23,.03);}

    /* --- Stripe-ish topbar search + user pill --- */
    .topBar{ gap:12px; }
    .topBarLeft{ display:flex; align-items:center; min-width: 140px; }
    .topBarRight{ display:flex; align-items:center; gap:10px; }
    .topBarSearch{ flex:1; max-width: 520px; position:relative; }
    .topBarSearchIcon{ position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:14px; color:#64748b; pointer-events:none; }
    #topBarSearchInput{
      width:100%; height:38px; border-radius:999px;
      border:1px solid #e6ebf2; background:#fff;
      padding:0 14px 0 34px;
      font-size:13px; color:#0f172a;
      box-shadow: var(--shadowSm);
    }
    #topBarSearchInput::placeholder{ color:#94a3b8; }
    #topBarSearchInput:focus{
      outline:none; border-color:#bfdbfe;
      box-shadow: 0 0 0 4px rgba(37,99,235,.10);
    }
    .userPill{
      display:flex; align-items:center; gap:8px;
      padding:6px 10px; border-radius:999px;
      background:#fff; border:1px solid #e6ebf2;
      box-shadow: var(--shadowSm);
      font-size:12px; color:#334155;
    }
    .userDot{ width:8px; height:8px; border-radius:999px; background:#22c55e; display:inline-block; }
    .userTxt{ font-weight:700; }

    /* --- KPI deltas --- */
    .kpiMeta{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px; }
    .kpiCard .sub{ font-size:12px; color:#64748b; }
    .delta{
      font-size:12px; font-weight:800;
      padding:3px 8px; border-radius:999px;
      border:1px solid #e6ebf2; background:#f8fafc;
      color:#64748b; white-space:nowrap;
    }
    .delta.pos{ color:#0f766e; border-color:#99f6e4; background:#ecfeff; }
    .delta.neg{ color:#b91c1c; border-color:#fecaca; background:#fef2f2; }

    /* --- Stripe-ish list rows (Recent activity / Alerts) --- */
    .dashList{ display:flex; flex-direction:column; gap:0; }
    .dashRowBtn{
      width:100%;
      text-align:left;
      border:none;
      background:transparent;
      padding:10px 10px;
      border-radius:10px;
      transition: background .12s ease, transform .12s ease;
    }
    .dashRowBtn + .dashRowBtn{ border-top:1px solid #eef2f7; border-radius:0; }
    .dashRowBtn:hover{ background:#f8fafc; }
    .dashRowTitle{ font-size:13px; font-weight:800; color:#0f172a; }
    .dashRowMeta{ font-size:12px; color:#64748b; margin-top:2px; }

    /* Home landing upgrades */
    .homeLandingGrid{ display:grid; grid-template-columns: 1.35fr .65fr; gap:14px; }
    @media (max-width: 980px){ .homeLandingGrid{ grid-template-columns: 1fr; } }
    .dashRows{ display:flex; flex-direction:column; border:1px solid #eef2f7; border-radius:14px; overflow:hidden; background:#fff; }
    .homeMiniStats{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
    .homeMiniStat{ border:1px solid #eef2f7; border-radius:14px; padding:12px; background:#fff; box-shadow:0 1px 0 rgba(2,6,23,.02); }
    .homeMiniStat .k{ font-size:12px; color:#64748b; font-weight:800; }
    .homeMiniStat .v{ font-size:20px; font-weight:900; color:#0f172a; margin-top:6px; }
    .homeMiniStat .s{ font-size:12px; color:#64748b; margin-top:4px; }


/* --- Mobile nav (Solution 1): Sidebar is primary; burger only toggles sidebar on small screens --- */
.drawer{ display:none !important; } /* retire old burger drawer */
@media (min-width: 901px){
  #btnMenu{ display:none !important; } /* no burger on desktop */
  .drawerOverlay{ display:none !important; }
}
@media (max-width: 900px){
  /* turn sidebar into off-canvas drawer */
  .sideNav{
    position:fixed;
    top:0; bottom:0; left:0;
    width:min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform .18s ease;
    z-index: 210;
  }
  body.vlNavOpen .sideNav{ transform: translateX(0); }
  /* reuse overlay */
  body.vlNavOpen .drawerOverlay{ display:block; z-index: 205; }
  /* keep content full width when sidebar hidden */
  .appShell{ grid-template-columns: 1fr !important; }
  body.vlNavOpen .appShell{ grid-template-columns: 1fr !important; }
}


    .pageHeader{display:flex; align-items:flex-end; justify-content:space-between; gap:12px;}
    .pageHeaderActions{display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-end;}
    .btn.danger{border-color:rgba(220,38,38,.35); color:var(--bad); background:#fff;}
    .btn.danger:hover{background:rgba(220,38,38,.06);}
    @media (max-width: 900px){
      .pageHeaderActions{display:none;} /* mobile uses sticky bottom bar + existing menus */
    }


/* ===== UX Premium Additions (v10.4) ===== */

/* ===== Phase 3: Table & data refinement ===== */

/* ===== Phase 3.1: Assets list refinement ===== */
/* Assets toolbar (search + actions) */
.assetsToolbar{
  display:flex;
  gap:12px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.assetsToolbar .assetsSearch{
  flex:1;
  min-width: 260px;
  max-width: 720px;
}
.assetsToolbar .assetsActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.assetsToolbar .assetsActionsLeft{
  display:flex;
  gap:8px;
  align-items:center;
  margin-right:auto;
}
.assetsToolbar .assetsActionsRight{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.assetsToolbar .btn{
  min-height:38px;
  padding:9px 12px;
  border-radius:12px;
}

.assetRow{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
}
.assetRow .assetMain{ flex:1; min-width:0; }
.assetTitle{
  font-weight:800;
  color:#0f172a;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.assetMeta{
  margin-top:3px;
  font-size:12px;
  color:#64748b;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.assetMeta span{ white-space:nowrap; }
.assetRight{ text-align:right; }
.assetDue{ margin-top:4px; font-size:12px; color:#64748b; }
.clientItem.active{
  background:#f1f5f9;
}
.clientItem.active:hover{
  background:#eef2f7;
}

/* Status pills (unified) */
.statusPill{ font-weight:800; }
.statusPill.stOk{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
.statusPill.stBad{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.statusPill.stNeutral{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }

tbody tr{ transition: background .12s ease; }
tbody tr:hover{ background: rgba(2,6,23,.03); }

/* Consistent numeric alignment */
th.right, td.right{ text-align:right; }
th.num, td.num{ text-align:right; }

/* Slightly calmer table header */
thead th{ color:#64748b; }

/* List row hover (assets/clients/jobs list containers) */
.clientItem{ transition: background .12s ease; }
.clientItem:hover{ background:#f8fafc; }

/* Unified warning treatment */
.statusPill.stWarn{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.delta.warn{ color:#9a3412; border-color:#fed7aa; background:#fff7ed; }

.pageHeader{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:4px 0 16px;}
.pageHeader h1{font-size:22px;line-height:1.2;margin:0;font-weight:700;letter-spacing:-0.01em;}
.pageHeader .sub{color:var(--muted);font-size:13px;margin-top:4px;}
.sectionLabel{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:18px 0 8px;}
/* Command palette */
#vlCmdkBackdrop{position:fixed;inset:0;background:rgba(17,24,39,.35);display:none;z-index:200;}
#vlCmdk{position:fixed;left:50%;top:14%;transform:translateX(-50%);width:min(720px, calc(100vw - 24px));
  background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadowMd);display:none;z-index:210;}
#vlCmdk .hdr{padding:12px 12px 10px;border-bottom:1px solid var(--border);}
#vlCmdk input{width:100%;padding:12px 12px;border-radius:12px;border:1px solid var(--border);background:#fff;font-size:14px;}
#vlCmdk .list{max-height:360px;overflow:auto;padding:6px;}
#vlCmdk .item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;cursor:pointer;}
#vlCmdk .item:hover{background:rgba(37,99,235,.08);}
#vlCmdk .k{font-size:12px;color:var(--muted);margin-left:auto;}
#vlCmdk .tag{font-size:11px;color:var(--muted);border:1px solid var(--border);padding:2px 8px;border-radius:999px;}


/* ===== Mobile layout fixes (Top bar + no horizontal scroll) ===== */
html, body{ overflow-x:hidden; }
@media (max-width: 900px){
  .topBar{
    flex-wrap:wrap;
    align-items:center;
  }
  .topBarLeft{
    min-width:auto;
    order:1;
  }
  .topBarSearch{
    order:2;
    flex: 1 1 100%;
    width:100%;
    max-width:none;
  }
  #topBarSearchInput{
    height:44px;
    border-radius:14px;
    padding:0 14px 0 36px;
  }
  .topBarSearchIcon{
    left:14px;
  }
  .topBarRight{
    order:3;
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:8px;
  }
  .ctxPill{
    max-width: calc(100% - 110px);
    overflow:hidden;
    text-overflow:ellipsis;
  }
}


@media (max-width: 420px){
  .wrap{ padding:14px 12px; }
  .topBar{ margin:10px 10px 0; }
}


/* ===== Phase 3.3: Jobs list polish ===== */

/* Table refinement (jobs-heavy screens) */
table{
  border-collapse: separate;
  border-spacing: 0;
}

thead th{
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  color:#64748b;
  background:#f8fafc;
}

tbody td{
  padding:14px 12px;
  font-size:13px;
}

tbody tr{
  transition: background .12s ease;
}

tbody tr:hover{
  background:#f8fafc;
}

/* Right align numeric-like columns */
td.num, th.num,
td[data-type="number"], th[data-type="number"]{
  text-align:right;
}

/* Job status pills alignment cleanup */
.statusPill{
  font-weight:700;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
}

/* Empty state refinement */
.emptyState{
  text-align:center;
  padding:28px 16px;
  color:#64748b;
  font-size:14px;
}


/* ===== Phase 3.4: Job creation flow spacing ===== */
#dashCreatePanel{
  border:1px solid #e6ebf2;
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadowSm);
}

#dashCreatePanel label{
  font-size:12px;
  font-weight:700;
  color:#64748b;
  margin-bottom:6px;
}

#dashCreatePanel input,
#dashCreatePanel select{
  border-radius:14px;
  border-color:#e6ebf2;
}

#dashCreatePanel .hint{
  margin-top:6px;
  font-size:12px;
  color:#94a3b8;
}

#dashCreatePanel button{
  min-height:38px;
  padding:9px 12px;
  border-radius:12px;
}

#dashCreatePanel .primary{
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}

@media (max-width: 900px){
  #dashCreatePanel{
    padding:12px;
    border-radius:14px;
  }
}


/* ===== Phase 3.5: Status system lock-in ===== */
.statusPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid #e6ebf2;
  background:#fff;
  color:#334155;
}
.statusPill::before{
  content:"";
  width:8px;height:8px;
  border-radius:999px;
  background: rgba(2,6,23,.25);
  display:inline-block;
}

/* Mappings */
.statusPill.stOk{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
.statusPill.stOk::before{ background:#16a34a; }

.statusPill.stWarn{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.statusPill.stWarn::before{ background:#f59e0b; }

.statusPill.stBad{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.statusPill.stBad::before{ background:#dc2626; }

.statusPill.stNeutral{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }
.statusPill.stNeutral::before{ background:#64748b; }

/* Delta pills align with status meaning */
.delta.warn{ color:#9a3412; border-color:#fed7aa; background:#fff7ed; }
.delta.neg{ color:#991b1b; border-color:#fecaca; background:#fef2f2; }
.delta.pos{ color:#065f46; border-color:#bbf7d0; background:#ecfdf5; }


/* ===== Phase 3.6: Test history + data tables refinement ===== */
.tableTight thead th{
  background:#f8fafc;
  color:#64748b;
  font-weight:700;
  padding:10px 12px;
}
.tableTight tbody td{
  padding:12px 12px;
}
.tableTight tbody tr:hover{
  background:#f8fafc;
}
.tableTight td.num, .tableTight th.num{ text-align:right; }
.tableTight .mutedCell{ color:#64748b; font-size:12px; }

/* Asset detail sections */
.assetDetailSectionLabel{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#94a3b8;
  margin:16px 0 8px;
  font-weight:800;
}


.tableTightHost table{ width:100%; }
.tableTightHost table thead th{ background:#f8fafc; color:#64748b; font-weight:700; padding:10px 12px; }
.tableTightHost table tbody td{ padding:12px 12px; }
.tableTightHost table tbody tr:hover{ background:#f8fafc; }


/* ===== Phase 3.6b: Scoped asset detail table styling (guaranteed) ===== */
#assetDetail .assetDetailSectionLabel{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#94a3b8;
  margin:16px 0 8px;
  font-weight:800;
}
#assetDetail table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
#assetDetail thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fafc;
  color:#64748b;
  font-weight:700;
  font-size:12px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
}
#assetDetail tbody td{
  padding:12px 12px;
  font-size:13px;
  border-bottom:1px solid var(--line);
}
#assetDetail tbody tr:hover{
  background:#f8fafc;
}
#assetDetail td.num, #assetDetail th.num{
  text-align:right;
}
#assetDetail .muted.small{
  color:#94a3b8;
  font-size:12px;
}



/* ===== Phase 5: Visual system lock-in (guaranteed insertion) ===== */
:root{
  --vl-bg:#f6f8fb;
  --vl-card:#ffffff;
  --vl-line:#e6ebf2;
  --vl-radius-1:12px;
  --vl-radius-2:16px;
  --vl-shadow-1:0 1px 1px rgba(2,6,23,.04), 0 1px 2px rgba(2,6,23,.06);
}

/* Strong but safe: unify the actual classes present in VoltLog */
.wrap{ background: var(--vl-bg) !important; }

.dashInfoCard,
.card,
.modal,
.modalCard,
.panel,
.kpiCard,
.heroCard,
.chartCard{
  background: var(--vl-card) !important;
  border: 1px solid var(--vl-line) !important;
  border-radius: var(--vl-radius-2) !important;
  box-shadow: var(--vl-shadow-1) !important;
}

/* Inputs / buttons */
input[type="text"], input[type="search"], input[type="date"], input[type="number"],
select, textarea,
.btn, button.btn, button{
  border-radius: var(--vl-radius-1) !important;
}

input, select, textarea{
  border-color: var(--vl-line) !important;
  box-shadow:none !important;
}

/* Kill any hover-lift / transforms that can make it feel gimmicky */
*[style*="transform"], .kpiCard:hover, .dashInfoCard:hover{
  transform:none !important;
}

/* Make card shadows consistent even if inline styles exist */
.dashInfoCard, .kpiCard, .heroCard, .chartCard{ filter:none !important; }

/* Tighten section label tone */
.navGroupLabel, .assetDetailSectionLabel{
  color:#94a3b8 !important;
}


/* ===== Phase 5.4: Spacing + Typography Discipline ===== */

/* Vertical rhythm */
.pageHeader{ margin-bottom:24px !important; }
.sectionBlock{ margin-bottom:24px !important; }

/* Card internal padding consistency */
.dashInfoCard,
.kpiCard,
.heroCard,
.chartCard{
  padding:20px !important;
}

/* Grid spacing consistency */
.grid,
.dashboardGrid{
  gap:24px !important;
}

/* Section labels */
.assetDetailSectionLabel,
.navGroupLabel{
  font-size:11px !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  margin-bottom:8px !important;
}

/* Headings tighten */
h1, h2, h3{
  letter-spacing:-.01em;
}

h1{ font-size:22px !important; }
h2{ font-size:18px !important; }
h3{ font-size:15px !important; }

/* Muted text consistency */
.muted, .textMuted{
  color:#94a3b8 !important;
}

/* Remove random small margins inside cards */
.dashInfoCard > *:last-child,
.kpiCard > *:last-child,
.heroCard > *:last-child{
  margin-bottom:0 !important;
}


/* ===== Phase 5.5: FORCED visual override (high specificity) ===== */

/* Force background */
html body .wrap{
  background:#f6f8fb !important;
}

/* Force card styling */
html body .dashInfoCard,
html body .kpiCard,
html body .heroCard,
html body .chartCard{
  background:#ffffff !important;
  border:1px solid #e6ebf2 !important;
  border-radius:16px !important;
  box-shadow:0 1px 1px rgba(2,6,23,.04), 0 1px 2px rgba(2,6,23,.06) !important;
  padding:20px !important;
}

/* Force KPI hover to stop lifting */
html body .kpiCard:hover{
  transform:none !important;
  box-shadow:0 1px 1px rgba(2,6,23,.04), 0 1px 2px rgba(2,6,23,.06) !important;
}

/* Force heading scale so you can SEE change */
html body h1{ font-size:22px !important; }
html body h2{ font-size:18px !important; }
html body h3{ font-size:15px !important; }

/* Force vertical spacing between dashboard blocks */
html body .dashboardGrid,
html body .grid{
  gap:24px !important;
}

/* Force section spacing */
html body .pageHeader{
  margin-bottom:24px !important;
}


/* ===== Client context in header (Phase 5.7) ===== */
.clientCtx{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid #e6ebf2;
  border-radius:999px;
  background:#ffffff;
  box-shadow:0 1px 1px rgba(2,6,23,.04), 0 1px 2px rgba(2,6,23,.06);
  color:#334155;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  max-width: 320px;
}
.clientCtx .muted{
  color:#64748b !important;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width: 900px){
  .clientCtx{ order:2; max-width: 100%; }
}


/* ===== Phase 5.8: Client context moved to right cluster ===== */
.topBarRight .clientCtx{
  order:-1;
  margin-right:8px;
}
@media (max-width:900px){
  .topBarRight .clientCtx{
    order:0;
    width:100%;
    justify-content:flex-start;
    margin:6px 0 0 0;
  }
}


/* ===== Phase 5.9: Header right cluster refinement ===== */
.topBarRight{
  align-items:center !important;
  gap:10px !important;
}
/* Group the pills visually */
.topBarRight .ctxPill,
.topBarRight .clientCtx{
  height:36px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid #e6ebf2;
  background:#ffffff;
  box-shadow:0 1px 1px rgba(2,6,23,.04), 0 1px 2px rgba(2,6,23,.06);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
/* Ensure the Local button matches */
.topBarRight .btn,
.topBarRight button{
  height:36px;
  padding:7px 12px;
  border-radius:999px !important;
  box-shadow:0 1px 1px rgba(2,6,23,.04), 0 1px 2px rgba(2,6,23,.06) !important;
}

/* Reduce visual noise inside the Offline pill */
.topBarRight .ctxPill{
  font-weight:700;
  color:#334155;
}
.topBarRight .ctxPill .muted{
  color:#64748b !important;
}

/* Mobile: stack neatly */
@media (max-width:900px){
  .topBarRight{
    width:100% !important;
    justify-content:flex-start !important;
    gap:8px !important;
  }
  .topBarRight .ctxPill,
  .topBarRight .clientCtx{
    max-width:100%;
  }
}


/* ===== Phase 7.1: Compliance Intelligence Hero ===== */
.complianceHeroCard{ padding:26px 20px !important; }
.compliancePct{ font-size:44px; font-weight:900; letter-spacing:-.03em; line-height:1; color:#0f172a; }
.complianceTitle{ margin-top:6px; font-weight:800; color:#334155; }
.complianceBand{ margin-top:10px; display:inline-flex; align-items:center; gap:8px; font-weight:800; color:#334155; }
.bandDot{ width:10px; height:10px; border-radius:999px; background:#94a3b8; display:inline-block; }
.complianceBreakdown{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
}
.bdItem{ min-width:120px; padding:10px 12px; border:1px solid #e6ebf2; border-radius:16px; background:#fff; box-shadow:0 1px 1px rgba(2,6,23,.04), 0 1px 2px rgba(2,6,23,.06); }
.bdVal{ font-weight:900; font-size:16px; color:#0f172a; }
.bdLbl{ margin-top:2px; font-size:12px; color:#64748b; font-weight:800; }

@media (max-width: 520px){
  .compliancePct{ font-size:38px; }
  .bdItem{ min-width: 44%; }
}


/* ===== Phase 7.2: Risk Overview Row ===== */
.riskRow{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}
.riskCard{
  background:#ffffff;
  border:1px solid #e6ebf2;
  border-radius:16px;
  box-shadow:0 1px 1px rgba(2,6,23,.04), 0 1px 2px rgba(2,6,23,.06);
  padding:14px 14px;
}
.riskLabel{
  font-size:12px;
  font-weight:800;
  color:#64748b;
}
.riskValue{
  margin-top:6px;
  font-size:18px;
  font-weight:900;
  color:#0f172a;
  letter-spacing:-.02em;
}
@media (max-width: 980px){
  .riskRow{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .riskRow{ grid-template-columns: 1fr; }
}


/* ===== Phase 7.3: Compliance by client table ===== */
.tableWrap{ width:100%; overflow:auto; }
.vlTable{ width:100%; border-collapse:separate; border-spacing:0; }
.vlTable thead th{
  position:sticky; top:0;
  background:#ffffff;
  z-index:1;
  border-bottom:1px solid #e6ebf2;
  padding:12px 16px;
  font-size:12px;
  font-weight:900;
  color:#64748b;
}
.vlTable tbody td{
  padding:12px 16px;
  border-bottom:1px solid #eef2f7;
  font-weight:800;
  color:#0f172a;
}
.vlTable tbody tr:hover td{ background:#f8fafc; }
.compPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
}
.compPill .dot{ width:8px; height:8px; border-radius:999px; background:#94a3b8; }
.compPill .pct{ font-weight:900; }


/* ===== Phase 7.4: Compliance trend ===== */
.trendTop{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.trendTitle{ font-weight:900; color:#0f172a; }
.trendMeta{ font-weight:800; color:#64748b; font-size:12px; }
.trendChartWrap{ margin-top:12px; height:180px; border:1px solid #eef2f7; border-radius:16px; overflow:hidden; background:#fff; }
.trendSvg{ width:100%; height:100%; color:#2563eb; }
.trendAxis{ margin-top:10px; display:flex; justify-content:space-between; gap:8px; font-size:11px; font-weight:800; color:#94a3b8; }
.trendFoot{ margin-top:10px; font-size:12px; font-weight:800; color:#94a3b8; }


/* ===== Dev-only controls ===== */
.devOnly{ display:none !important; }
body[data-dev="1"] .devOnly{ display:inline-flex !important; }
body[data-dev="1"] .devOnly{ height:32px; padding:6px 10px; border-radius:999px !important; font-weight:900; }


/* ===== Phase 7.5: High Risk Clients ===== */
.riskList{ display:flex; flex-direction:column; gap:12px; }
.riskItem{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:12px 14px;
  border:1px solid #eef2f7;
  border-radius:16px;
  background:#ffffff;
}
.riskItemLeft{ display:flex; align-items:flex-start; gap:10px; }
.riskDot{ width:10px; height:10px; border-radius:999px; margin-top:6px; }
.riskName{ font-weight:900; color:#0f172a; }
.riskMeta{ margin-top:4px; font-size:12px; font-weight:800; color:#64748b; }
.riskPct{ font-weight:900; font-size:16px; }
.riskEmpty{ font-weight:800; color:#64748b; padding:6px 2px; }


/* ===== Phase 7.6: Risk Drilldown ===== */
.drilldownBanner{
  margin:0 0 14px 0;
  padding:12px 14px;
  border:1px solid #e6ebf2;
  border-radius:16px;
  background:#f8fafc;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.drilldownBanner .drillText{
  font-weight:900;
  color:#0f172a;
}
.subtleBtn{
  background:#ffffff !important;
  border:1px solid #e6ebf2 !important;
  font-weight:900 !important;
  border-radius:999px !important;
}
.riskItem.isClickable{ cursor:pointer; }
.riskItem.isClickable:hover{ border-color:#d7deea; background:#f8fafc; }


/* ===== Phase 8.2: Sites (assets filter + editor) ===== */
.assetsSearch{ display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }
.assetsSearch > input{ flex:1; min-width:220px; }
.assetsSiteFilter{ min-width:180px; }
.assetsSiteFilter label{ display:block; margin-bottom:6px; font-size:12px; font-weight:800; color:#64748b; }
.assetsSiteFilter select{ width:100%; }




/* ===== Phase 8.2b: Manage sites ===== */
.vlSitesOverlay{ position:fixed; inset:0; background:rgba(2,6,23,.35); z-index:80; }
.vlSitesModal{
  position:fixed; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(720px, calc(100vw - 28px)); max-height: calc(100vh - 28px);
  overflow:auto; z-index:81; background:#ffffff; border:1px solid #e6ebf2;
  border-radius:20px; box-shadow:0 12px 35px rgba(2,6,23,.18);
  padding:14px 14px 12px;
}
.vlSitesHead{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:6px 6px 10px; border-bottom:1px solid #eef2f7; }
.vlSitesTitle{ font-weight:900; color:#0f172a; }
.vlSitesSub{ font-size:12px; font-weight:800; color:#64748b; margin-top:2px; }
.vlSitesBody{ padding:12px 6px 6px; }
.vlSitesList{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.vlSiteRow{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid #eef2f7; border-radius:16px; background:#fff; }
.vlSiteLeft{ display:flex; align-items:center; gap:10px; flex:1; }
.vlSiteBadge{ font-size:11px; font-weight:900; color:#64748b; border:1px solid #e6ebf2; padding:4px 8px; border-radius:999px; background:#f8fafc; }
.vlSiteName{ width:100%; min-width:160px; }
.vlSiteActions{ display:flex; gap:8px; }
.vlSiteActions .btn{ height:32px; padding:6px 10px; }



/* --- Assets page: ultra-minimal hierarchy --- */
.srOnly{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.assetsToolbar{display:flex;flex-direction:column;gap:12px;margin-bottom:10px;}
.assetsContextRow{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.assetsContextLeft{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;}
.assetsSiteInline{display:flex;flex-direction:column;gap:6px;min-width:220px;}
.assetsSiteInline select{min-width:220px;}
.assetsSearchRow input{width:100%;}
.assetsTableBar{display:flex;justify-content:flex-end;align-items:center;margin:6px 0 10px;}
.assetsTableActions{display:flex;gap:8px;flex-wrap:wrap;}
#assetsFilters{gap:8px;margin-bottom:6px;}
#assetsFilters .pill{border-radius:999px;padding:8px 12px;font-weight:800;}
#assetsFilters .pill.active,
#assetsFilters .pill.primary,
#assetsFilters .pill[data-active="1"]{background:#0f172a;color:#fff;border-color:#0f172a;}
/* Make subtle actions calmer */
.assetsTableActions .subtleBtn{font-weight:800;}

  /* --- Dashboard modern grid (Phase 10.1) --- */
  .dashKpiGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:10px 0 14px;}
  .dashKpiCard{background:#fff;border:1px solid #e8eef5;border-radius:18px;padding:14px 14px 12px;box-shadow:0 1px 0 rgba(15,23,42,.03);}
  .dashKpiTop{display:flex;align-items:center;gap:12px;}
  .dashKpiNum{width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-weight:950;font-size:18px;background:#f1f5f9;color:#0f172a;flex:0 0 auto;}
  .dashKpiMeta{min-width:0;}
  .dashKpiTitle{font-weight:950;font-size:13px;color:#0f172a;line-height:1.15;margin:0;}
  .dashKpiLink{display:inline-flex;gap:6px;align-items:center;margin-top:6px;font-weight:800;font-size:12px;color:#2563eb;text-decoration:none;}
  .dashKpiLink:hover{text-decoration:underline;}
  .dashGrid{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:14px;margin:10px 0 16px;}
  .dashCard{background:#fff;border:1px solid #e8eef5;border-radius:18px;box-shadow:0 1px 0 rgba(15,23,42,.03);overflow:hidden;}
  .dashCardHead{padding:12px 14px;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-between;gap:10px;}
  .dashCardTitle{font-weight:950;font-size:13px;color:#0f172a;margin:0;}
  .dashCardBody{padding:12px 14px;}
  .dashMiniList{display:flex;flex-direction:column;gap:10px;}
  .dashMiniItem{display:flex;gap:10px;align-items:flex-start;}
  .dashDot{width:10px;height:10px;border-radius:999px;background:#94a3b8;flex:0 0 auto;margin-top:4px;}
  .dashMiniMain{font-weight:900;font-size:12.5px;color:#0f172a;line-height:1.25;}
  .dashMiniSub{font-weight:750;font-size:12px;color:#64748b;margin-top:3px;}
  .dashBars{display:flex;flex-direction:column;gap:10px;}
  .dashBarRow{display:flex;align-items:center;gap:10px;}
  .dashBarLbl{width:74px;font-weight:850;font-size:12px;color:#334155;}
  .dashBarTrack{flex:1;height:10px;border-radius:999px;background:#f1f5f9;overflow:hidden;border:1px solid #eef2f7;}
  .dashBarFill{height:100%;border-radius:999px;background:#334155;}
  .dashBarVal{width:44px;text-align:right;font-weight:900;font-size:12px;color:#0f172a;}
  @media (max-width: 980px){.dashKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr));}.dashGrid{grid-template-columns:1fr;}}


  /* --- Top bar SaaS actions (Phase 10.2) --- */
  .topBarRight{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  .topPrimaryBtn{
    display:inline-flex;align-items:center;gap:8px;
    padding:9px 12px;border-radius:12px;border:1px solid rgba(15,23,42,.12);
    background:var(--brand); color:#fff; font-weight:900; letter-spacing:.01em;
    box-shadow:0 6px 18px rgba(29,78,216,.18);
  }
  .topPrimaryBtn:hover{filter:brightness(.98)}
  .topPrimaryBtn .chev{opacity:.9;font-size:12px;line-height:1}
  .topIconBtn{
    position:relative;
    display:inline-flex;align-items:center;justify-content:center;
    width:38px;height:38px;border-radius:12px;
    border:1px solid rgba(15,23,42,.12);
    background:#fff;color:#0f172a;
  }
  .topIconBtn:hover{background:#f8fafc}
  .topBadge{
    position:absolute; top:-6px; right:-6px;
    min-width:18px;height:18px;padding:0 5px;
    border-radius:999px;
    background:#ef4444;color:#fff;
    font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;
    border:2px solid #fff;
  }
  .avatarChip{
    display:inline-flex;align-items:center;gap:10px;
    padding:6px 10px;border-radius:999px;
    border:1px solid rgba(15,23,42,.12);
    background:#fff; cursor:pointer;
  }
  .avatarImg{
    width:26px;height:26px;border-radius:999px;
    background:linear-gradient(135deg,var(--brand2),var(--brand));
    display:inline-flex;align-items:center;justify-content:center;
    color:#fff;font-weight:900;font-size:12px;
  }
  .avatarName{font-weight:900;color:#0f172a}
  .popMenu{
    position:absolute; top:44px; right:0;
    min-width:220px;
    background:#fff;border:1px solid rgba(15,23,42,.12);
    border-radius:14px; box-shadow:0 18px 44px rgba(2,6,23,.12);
    padding:8px; z-index:50; display:none;
  }
  .popMenu.open{display:block}
  .popItem{
    display:flex;align-items:center;gap:10px;
    padding:10px 10px;border-radius:12px; cursor:pointer;
    color:#0f172a; font-weight:800;
  }
  .popItem:hover{background:#f8fafc}
  .popMeta{font-size:12px;color:#64748b;font-weight:800}
  .popDot{width:8px;height:8px;border-radius:999px;background:#94a3b8;flex:0 0 auto}
  .clientChip{
    display:inline-flex;align-items:center;gap:8px;
    padding:6px 10px;border-radius:999px;
    border:1px solid rgba(15,23,42,.12);
    background:#fff; font-weight:900; color:#0f172a;
  }
  .clientChip .muted{font-weight:900}


  /* --- Top bar clickability safety --- */
  .topBar{position:sticky; top:0; z-index:60;}
  .topBarRight{position:relative; z-index:61;}
  .popMenu{z-index:70;}



/* ===== Step 10: Premium visual polish ===== */
:root{
  --vl-shell-bg:#f4f7fb;
  --vl-card:#ffffff;
  --vl-card-border:#e7edf5;
  --vl-card-shadow:0 10px 30px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.03);
  --vl-card-shadow-hover:0 18px 45px rgba(15,23,42,.08), 0 4px 10px rgba(15,23,42,.04);
  --vl-soft-blue:#eff6ff;
  --vl-soft-slate:#f8fafc;
  --vl-soft-warn:#fff7ed;
  --vl-soft-danger:#fef2f2;
  --vl-soft-success:#f0fdf4;
}

body{
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(37,99,235,.08), transparent 55%),
    radial-gradient(1000px 480px at 100% 0%, rgba(14,165,233,.06), transparent 45%),
    var(--vl-shell-bg);
}

.wrap{
  max-width:1280px;
}

.mainContent{
  padding-right:10px;
}

/* Top bar */
.topBar{
  margin:10px 18px 0;
  padding:14px 18px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(226,232,240,.95);
  border-top:none;
  border-radius:0 0 18px 18px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  backdrop-filter: blur(12px);
  gap:14px;
}

.topBarLeft{
  gap:12px;
  min-width:0;
}

.topBarTitle{
  display:block !important;
  font-size:15px;
  font-weight:900;
  letter-spacing:-.02em;
  color:#0f172a;
  white-space:nowrap;
}

.topBarSearch{
  max-width:620px;
}

#topBarSearchInput{
  height:44px;
  border-radius:14px;
  border:1px solid #d9e3ef;
  background:linear-gradient(180deg,#fff,#fbfdff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 2px 10px rgba(15,23,42,.03);
  padding:0 16px 0 40px;
  font-size:13px;
  font-weight:600;
}

#topBarSearchInput:focus{
  outline:none;
  border-color:rgba(37,99,235,.45);
  box-shadow:0 0 0 4px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.75);
}

.topBarSearchIcon{
  left:14px;
  color:#64748b;
}

.topBarRight{
  gap:12px;
}

.topPrimaryBtn{
  min-height:42px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(29,78,216,.18);
  background:linear-gradient(180deg,#2563eb,#1d4ed8);
  box-shadow:0 12px 24px rgba(37,99,235,.18), inset 0 1px 0 rgba(255,255,255,.2);
}

.topPrimaryBtn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 28px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.2);
}

.topIconBtn,
.avatarChip,
.clientChip,
.ctxPill{
  min-height:42px;
  border-radius:14px;
  border:1px solid rgba(226,232,240,.95);
  background:rgba(255,255,255,.92);
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}

.topIconBtn{
  width:42px;
  height:42px;
}

.clientChip{
  padding:8px 12px;
  font-size:12px;
}

.ctxPill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  color:#475569;
  background:linear-gradient(180deg,#fff,#f8fafc);
}

.avatarChip{
  padding:7px 11px 7px 8px;
}

.avatarImg{
  width:28px;
  height:28px;
  box-shadow:0 4px 10px rgba(37,99,235,.2);
}

.popMenu{
  min-width:240px;
  border-radius:16px;
  border:1px solid #e2e8f0;
  box-shadow:0 18px 40px rgba(15,23,42,.12);
  padding:8px;
}

.popItem{
  padding:11px 11px;
  border-radius:12px;
  transition:background .15s ease, transform .15s ease;
}

.popItem:hover{
  background:#f8fbff;
  transform:translateX(1px);
}

.popMeta{
  color:#64748b;
}

/* Page sections */
.pageHeader h1{
  letter-spacing:-.03em;
  font-size:28px;
}

.pageHeader .sub{
  color:#64748b;
  font-weight:600;
}

.sectionLabel{
  font-size:10px;
  letter-spacing:.14em;
  font-weight:900;
  color:#64748b;
  margin:20px 0 10px;
}

/* Dashboard premium cards */
#dashboardView .pageHeader{
  margin-bottom:16px !important;
}

.dashKpiGrid{
  gap:16px;
  margin:12px 0 18px;
}

.dashKpiCard{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border:1px solid var(--vl-card-border);
  border-radius:20px;
  padding:16px 16px 14px;
  box-shadow:var(--vl-card-shadow);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashKpiCard:hover{
  transform:translateY(-2px);
  box-shadow:var(--vl-card-shadow-hover);
  border-color:#d9e7fb;
}

.dashKpiCard::after{
  content:"";
  position:absolute;
  inset:auto -20% -55% auto;
  width:160px;
  height:160px;
  border-radius:999px;
  background:radial-gradient(circle at center, rgba(37,99,235,.12), transparent 70%);
  pointer-events:none;
}

.dashKpiCard:nth-child(2)::after{ background:radial-gradient(circle at center, rgba(245,158,11,.12), transparent 70%); }
.dashKpiCard:nth-child(3)::after{ background:radial-gradient(circle at center, rgba(239,68,68,.12), transparent 70%); }
.dashKpiCard:nth-child(4)::after{ background:radial-gradient(circle at center, rgba(99,102,241,.10), transparent 70%); }

.dashKpiTop{
  align-items:flex-start;
  gap:14px;
}

.dashKpiNum{
  width:50px;
  height:50px;
  border-radius:16px;
  font-size:20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

.dashKpiCard:nth-child(1) .dashKpiNum{ background:var(--vl-soft-blue); color:#1d4ed8; }
.dashKpiCard:nth-child(2) .dashKpiNum{ background:var(--vl-soft-warn); color:#c2410c; }
.dashKpiCard:nth-child(3) .dashKpiNum{ background:var(--vl-soft-danger); color:#dc2626; }
.dashKpiCard:nth-child(4) .dashKpiNum{ background:#eef2ff; color:#4f46e5; }

.dashKpiTitle{
  font-size:13px;
  color:#0f172a;
  margin-top:2px;
}

.dashKpiLink{
  margin-top:7px;
  color:#2563eb;
  font-weight:900;
}

.dashGrid{
  gap:16px;
  margin:12px 0 18px;
}

.dashCard,
.dashInfoCard,
.chartCard,
.heroCard{
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border:1px solid var(--vl-card-border);
  border-radius:20px;
  box-shadow:var(--vl-card-shadow);
}

.dashCardHead,
.chartHeader{
  padding:14px 16px;
  border-bottom:1px solid #eef2f7;
}

.dashCardBody{
  padding:14px 16px 16px;
}

.dashCardTitle,
.chartTitle{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
  letter-spacing:.01em;
}

.chartMeta{
  font-weight:700;
  color:#64748b;
}

.chartCard{
  padding:0;
  overflow:hidden;
}

.chartSvg{
  padding:0 12px 12px;
}

.donutWrap{
  padding:0 16px 16px;
  gap:18px;
}

.legend{
  gap:10px;
}

.legItem{
  font-weight:700;
}

.homeMiniStat,
.tableLike{
  border-color:#e8eef5;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
}

/* General card polish */
.card,
.panel,
#dashboardView .jobsSection,
#assetsView .card,
#clientsPanel .card,
#settingsView .card{
  box-shadow:var(--vl-card-shadow);
}

button.btn,
button.primary,
.btn,
.primary{
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

button.btn:hover,
button.primary:hover,
.btn:hover,
.primary:hover{
  transform:translateY(-1px);
}

.table, table{
  border-collapse:separate;
  border-spacing:0;
}

@media (max-width: 980px){
  .topBar{
    margin:10px 12px 0;
    padding:12px;
    border-radius:0 0 16px 16px;
  }
  .topBarTitle{
    font-size:14px;
  }
  .topBarSearch{
    max-width:none;
  }
  .topBarRight{
    gap:8px;
  }
  .clientChip,
  .ctxPill{
    display:none;
  }
  .dashKpiGrid,
  .dashGrid{
    gap:12px;
  }
}



/* ===== Step 11: Full-app premium consistency pass ===== */

/* App shell + sidebar */
.sideNav{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border-right:1px solid #e7edf5;
  box-shadow:inset -1px 0 0 rgba(255,255,255,.7);
}

.sideNav .brand{
  padding:14px 12px 16px;
  border-bottom:1px solid #eef2f7;
}

.sideNav .brand .logo,
.sideNav .brandMark{
  box-shadow:0 10px 20px rgba(37,99,235,.15);
}

.sideNav .navBtn{
  border-radius:14px;
  transition:background .16s ease, transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sideNav .navBtn:hover{
  transform:translateX(1px);
  background:#f8fbff;
}

.sideNav .navBtn.active{
  background:linear-gradient(180deg,#eef5ff,#f7fbff);
  border-color:#d7e6fb;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}

.sideNav .navBtn .ico{
  opacity:.95;
}

/* General panels / cards */
.panel,
.card,
.dashInfoCard,
.jobsSection,
.tableLike,
#assetsView .card,
#clientsPanel .card,
#settingsView .card,
#jobView .card{
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border:1px solid #e7edf5;
  border-radius:20px;
  box-shadow:0 10px 26px rgba(15,23,42,.05), 0 2px 8px rgba(15,23,42,.03);
}

.panel{
  overflow:hidden;
}

.pageHeader{
  margin-bottom:16px;
}

.pageHeader h1{
  font-size:28px;
  font-weight:950;
  letter-spacing:-.03em;
  color:#0f172a;
}

.pageHeader .sub{
  font-size:13px;
  color:#64748b;
  font-weight:700;
}

/* Buttons */
.btn,
.primary,
.subtleBtn,
.iconBtn,
button.btn,
button.primary{
  border-radius:14px;
  min-height:40px;
  font-weight:800;
}

.btn,
button.btn{
  background:linear-gradient(180deg,#fff,#f8fafc);
  border:1px solid #e2e8f0;
  box-shadow:0 2px 8px rgba(15,23,42,.03);
}

.btn:hover,
button.btn:hover{
  background:#fff;
  border-color:#d8e2ee;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}

.primary,
button.primary{
  background:linear-gradient(180deg,#2563eb,#1d4ed8);
  border:1px solid rgba(29,78,216,.22);
  color:#fff;
  box-shadow:0 12px 24px rgba(37,99,235,.16);
}

.primary:hover,
button.primary:hover{
  box-shadow:0 16px 28px rgba(37,99,235,.22);
}

.subtleBtn{
  background:linear-gradient(180deg,#fff,#f8fafc);
}

/* Forms */
input,
select,
textarea{
  border-radius:14px;
  border:1px solid #d9e3ef;
  background:linear-gradient(180deg,#fff,#fbfdff);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:rgba(37,99,235,.45);
  box-shadow:0 0 0 4px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.8);
  background:#fff;
}

label{
  color:#334155;
  font-weight:850;
}

/* Tables / lists */
.table,
table{
  background:#fff;
}

.table th, table th{
  background:#f8fbff;
  color:#334155;
  font-weight:900;
  border-bottom:1px solid #e8eef5;
}

.table td, table td{
  border-bottom:1px solid #eef2f7;
}

.table tr:hover td,
table tr:hover td{
  background:#fbfdff;
}

/* Current job area */
#jobView .actions,
#jobView .legacyActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:12px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border:1px solid #e7edf5;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}

#itemsWrap,
#itemsCard,
#jobItemsCard{
  border-radius:20px;
}

#itemsBody tr td{
  vertical-align:middle;
}

.banner{
  border:1px solid #e7edf5;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}

/* Jobs / dashboard list rows */
.homeJobRow,
.jobRow,
.dashMiniItem,
.riskItem,
.tableRow{
  border-radius:14px;
  transition:background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.homeJobRow:hover,
.jobRow:hover,
.riskItem:hover,
.tableRow:hover{
  background:#fbfdff;
  transform:translateY(-1px);
}

/* Assets */
#assetsView .pageHeader,
#clientsPanel .pageHeader,
#settingsView .pageHeader{
  margin-bottom:16px;
}

.assetsActions,
.assetsToolbar,
#assetsFilters{
  gap:10px;
}

#assetsFilters button,
.filterPill,
.seg button{
  border-radius:999px;
}

#assetsFilters button[data-filter]{
  background:linear-gradient(180deg,#fff,#f8fafc);
  border:1px solid #e2e8f0;
  color:#334155;
  font-weight:800;
}

#assetsFilters button[data-filter].active,
#assetsFilters button[data-filter][aria-pressed="true"]{
  background:linear-gradient(180deg,#eef5ff,#f7fbff);
  border-color:#d7e6fb;
  color:#1d4ed8;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}

#assetsList .card,
.assetCard,
.assetRow{
  border-radius:18px;
}

/* Clients */
#clientsList .card,
.clientRow,
.clientSiteRow{
  border-radius:18px;
}

#clientSitesCard{
  border-radius:20px;
}

/* Settings */
#settingsView .grid .card,
.settingsCard{
  border-radius:20px;
}

.switch,
.toggle{
  box-shadow:inset 0 1px 2px rgba(15,23,42,.08);
}

/* Modals */
#finishModal > div,
.vlSitesModal,
.modalCard,
.modal{
  border-radius:22px !important;
  box-shadow:0 24px 60px rgba(15,23,42,.18), 0 6px 20px rgba(15,23,42,.08) !important;
}

#finishModal .btn,
.vlSitesModal .btn{
  border-radius:14px;
}

/* Empty states / hints */
.muted,
.hint,
.small{
  color:#64748b;
}

.emptyState,
.riskEmpty{
  border:1px dashed #d9e3ef;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  padding:18px;
}

/* Mobile polish */
@media (max-width: 980px){
  .pageHeader h1{
    font-size:24px;
  }
  .panel,
  .card,
  .dashInfoCard,
  #jobView .actions,
  #jobView .legacyActions{
    border-radius:18px;
  }
  .sideNav{
    border-right:none;
    border-bottom:1px solid #e7edf5;
  }
}




/* Step 12h: independent mobile bell sheet */
.vlBellBackdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.38);
  backdrop-filter:blur(4px);
  z-index:340;
}
.vlBellSheet{
  position:fixed;
  left:8px;
  right:8px;
  top:58px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 24px 60px rgba(15,23,42,.18), 0 6px 20px rgba(15,23,42,.08);
  z-index:341;
  overflow:hidden;
}
.vlBellSheetHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 12px;
  border-bottom:1px solid #eef2f7;
}
.vlBellSheetTitle{ font-size:15px; font-weight:950; color:#0f172a; }
.vlBellSheetSub{ font-size:12px; color:#64748b; font-weight:700; margin-top:4px; }
.vlBellSheetBody{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.vlBellRow{
  width:100%;
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px;
  border:1px solid #e6ebf2;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  text-align:left;
}
.vlBellText{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.vlBellText strong{ font-size:13px; color:#0f172a; }
.vlBellText span{
  font-size:12px;
  color:#64748b;
  font-weight:700;
  white-space:normal;
  overflow-wrap:anywhere;
}
.vlBellVal{
  flex:0 0 auto;
  font-size:12px;
  font-weight:900;
  color:#334155;
}
.vlBellDot{
  width:10px;
  height:10px;
  margin-top:5px;
  border-radius:999px;
  flex:0 0 auto;
  background:#94a3b8;
}
.vlBellDot.is-red{ background:#ef4444; }
.vlBellDot.is-amber{ background:#f59e0b; }
.vlBellDot.is-blue{ background:#2563eb; }
.vlBellDot.is-slate{ background:#94a3b8; }

@media (max-width: 900px){
  #topNotifMenu{ display:none !important; }
}
@media (min-width: 901px){
  .vlBellBackdrop,
  .vlBellSheet{ display:none !important; }
}

.vlBellBackdrop[data-open="true"]{ display:block !important; }
.vlBellSheet[data-open="true"]{ display:block !important; }

@media (max-width: 420px){
  .vlBellSheet{
    left:6px;
    right:6px;
    top:54px;
    border-radius:16px;
  }
}



/* ===== Step 13: Mobile jobs page edge padding fix ===== */
@media (max-width: 900px){
  #dashboardView,
  #jobView,
  #homeView{
    padding-left:10px !important;
    padding-right:10px !important;
    box-sizing:border-box !important;
  }

  #dashboardView .pageHeader,
  #jobView .pageHeader,
  #homeView .pageHeader{
    padding-left:2px !important;
    padding-right:2px !important;
  }

  #dashboardView .dashKpiGrid,
  #dashboardView .dashGrid,
  #dashboardView .dashGrid2,
  #dashboardView .dashCards,
  #dashboardView .jobsSection,
  #dashboardView #jobsList,
  #homeView .homeRecentJobs,
  #homeView #homeRecentJobs,
  #homeView .homeCardGrid,
  #jobView .panel,
  #jobView .card,
  #jobView .banner{
    margin-left:0 !important;
    margin-right:0 !important;
  }

  #dashboardView .dashInfoCard,
  #dashboardView .dashCard,
  #dashboardView .dashKpiCard,
  #dashboardView .jobsSection,
  #dashboardView .jobRow,
  #dashboardView .homeJobRow,
  #dashboardView .tableRow,
  #homeView .homeCard,
  #homeView .homeJobRow{
    margin-left:0 !important;
    margin-right:0 !important;
  }

  #dashboardView .dashCardHead,
  #dashboardView .dashCardBody,
  #dashboardView .chartHeader,
  #dashboardView .chartCard,
  #dashboardView .jobsSection,
  #dashboardView .jobsSection .hdr,
  #dashboardView .jobsSection .body{
    padding-left:14px !important;
    padding-right:14px !important;
    box-sizing:border-box !important;
  }

  #dashboardView .jobRow,
  #dashboardView .homeJobRow,
  #dashboardView .tableRow,
  #homeView .homeJobRow{
    padding-left:12px !important;
    padding-right:12px !important;
    box-sizing:border-box !important;
  }
}

@media (max-width: 560px){
  #dashboardView,
  #jobView,
  #homeView{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  #dashboardView .dashCardHead,
  #dashboardView .dashCardBody,
  #dashboardView .chartHeader,
  #dashboardView .chartCard,
  #dashboardView .jobsSection,
  #dashboardView .jobRow,
  #dashboardView .homeJobRow,
  #dashboardView .tableRow,
  #homeView .homeJobRow{
    padding-left:14px !important;
    padding-right:14px !important;
  }
}



/* ===== Step 13b: Mobile current-job form label/content inset fix ===== */
@media (max-width: 900px){
  /* Current job form shell */
  #jobView .pageHeader,
  #jobView .grid,
  #jobView .panel,
  #jobView .card,
  #jobView .banner,
  #jobView .section,
  #jobView .tableWrap,
  #jobView .toolbar{
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }

  /* Add true internal inset to the current-job cards/sections */
  #jobView .panel,
  #jobView .card,
  #jobView .banner,
  #jobView .grid > div,
  #jobView .grid .panel,
  #jobView .grid .card{
    padding-left:14px !important;
    padding-right:14px !important;
    box-sizing:border-box !important;
  }

  /* Labels and text blocks inside the current-job screen */
  #jobView label,
  #jobView .muted,
  #jobView .small,
  #jobView .sub,
  #jobView .hint,
  #jobView .sectionLabel,
  #jobView .fieldHelp{
    padding-left:2px !important;
    box-sizing:border-box !important;
  }

  /* Inputs/selects/textareas shouldn't visually touch edges */
  #jobView input,
  #jobView select,
  #jobView textarea{
    width:100% !important;
    box-sizing:border-box !important;
  }

  /* Specific rows often sitting flush left */
  #jobView .grid.cols2,
  #jobView .grid.cols3,
  #jobView .grid.cols4,
  #jobView .row,
  #jobView .formRow{
    padding-left:0 !important;
    padding-right:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  /* Current items table / list area */
  #jobView table,
  #jobView .table,
  #jobView .tableLike,
  #jobView #itemsCard,
  #jobView #itemsWrap{
    margin-left:0 !important;
    margin-right:0 !important;
  }

  #jobView th,
  #jobView td{
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

@media (max-width: 560px){
  #jobView .panel,
  #jobView .card,
  #jobView .banner,
  #jobView .grid > div,
  #jobView .grid .panel,
  #jobView .grid .card{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  #jobView label,
  #jobView .muted,
  #jobView .small,
  #jobView .sub,
  #jobView .hint,
  #jobView .sectionLabel,
  #jobView .fieldHelp{
    padding-left:4px !important;
  }

  #jobView th,
  #jobView td{
    padding-left:14px !important;
    padding-right:14px !important;
  }
}


/* ===== Desktop bell hard-open fix ===== */
@media (min-width: 901px){
  .vlBellBackdrop[data-open="true"]{
    display:block !important;
    background:transparent !important;
  }
  .vlBellSheet[data-open="true"]{
    display:block !important;
    top:72px;
    right:18px;
    left:auto;
    width:min(420px, calc(100vw - 36px));
    max-height:calc(100vh - 96px);
    overflow:auto;
  }
}


/* ===== New Job Wizard runtime modal ===== */
.jobWizardModal{position:fixed; inset:0; z-index:260; background:rgba(2,6,23,.55); display:none; align-items:center; justify-content:center; padding:20px;}
.jobWizardModal[data-open="true"]{display:flex !important;}
.jobWizardCard{width:min(920px, 100%); max-height:min(88vh, 840px); overflow:auto; background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:0 24px 80px rgba(2,6,23,.24);}
.jobWizardHeader{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 20px 12px; border-bottom:1px solid var(--line);}
.jobWizardTitle{font-size:22px; font-weight:900; letter-spacing:-.02em;}
.jobWizardSub{color:var(--muted); font-size:13px; margin-top:4px;}
.jobWizardSteps{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:14px 20px 8px;}
.jobWizardStep{border:1px solid var(--line); border-radius:16px; padding:12px 14px; background:#f8fafc;}
.jobWizardStepNum{color:var(--muted); font-size:12px; font-weight:800;}
.jobWizardStepLabel{font-weight:900; margin-top:4px;}
.jobWizardStep.isActive{border-color:#93c5fd; background:#eff6ff;}
.jobWizardStep.isDone{border-color:#bbf7d0; background:#f0fdf4;}
.jobWizardBody{padding:8px 20px 18px;}
.jobWizardSectionTitle{font-size:12px; font-weight:900; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; margin:12px 0 8px;}
.jobWizardInfo{border:1px solid var(--line); border-radius:18px; padding:14px; background:#f8fafc; color:var(--muted);}
.jobWizardItems{display:flex; flex-direction:column; gap:10px; margin-top:12px;}
.jobWizardItem{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; border:1px solid var(--line); border-radius:16px; padding:12px 14px; background:#fff;}
.jobWizardItemTitle{font-weight:800;}
.jobWizardItemMeta{color:var(--muted); font-size:13px; margin-top:4px;}
.jobWizardStats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px;}
.jobWizardStat{border:1px solid var(--line); border-radius:16px; padding:12px 14px; background:#f8fafc;}
.jobWizardStatNum{font-size:22px; font-weight:900;}
.jobWizardStatLbl{color:var(--muted); font-size:12px; margin-top:4px;}
.jobWizardFooter{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px 18px; border-top:1px solid var(--line);}
.jobWizardNote{color:var(--muted); font-size:13px;}
.jobWizardActions{display:flex; gap:10px; align-items:center;}
body.jobWizardOpen{overflow:hidden;}
@media (max-width: 760px){
  .jobWizardModal{padding:12px; align-items:flex-end;}
  .jobWizardCard{max-height:min(92vh, 100%); border-radius:22px 22px 0 0;}
  .jobWizardSteps{grid-template-columns:repeat(2,minmax(0,1fr));}
  .jobWizardHeader,.jobWizardBody,.jobWizardFooter{padding-left:14px; padding-right:14px;}
  .jobWizardFooter{flex-direction:column; align-items:stretch;}
  .jobWizardActions{width:100%; justify-content:flex-end; flex-wrap:wrap;}
  .jobWizardStats{grid-template-columns:1fr;}
  .jobWizardItem{flex-direction:column;}
}
