    :root {
      --erg-navy: #071331;
      --erg-ink: #0f172a;
      --erg-muted: #64748b;
      --erg-line: #dbe3ef;
      --erg-soft: #f8fafc;
      --erg-white: #ffffff;
    }

    .app-shell {
      min-height: 100vh;
    }

    .erg-appbar {
      position: sticky;
      top: 0;
      z-index: 30;
      isolation: isolate;
      border-radius: 0;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--erg-line);
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    }

    .erg-appbar-inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 12px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      min-width: 0;
    }

    .erg-brand {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      gap: 1px;
      min-width: 185px;
      color: inherit;
      text-decoration: none;
      cursor: pointer;
      border-radius: 6px;
    }

    .erg-brand:hover .erg-brand-main {
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    .erg-brand:focus-visible {
      outline: 2px solid var(--erg-navy);
      outline-offset: 5px;
    }

    .erg-brand-main {
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--erg-navy);
      font-size: 1.02rem;
      line-height: 1.1;
    }

    .erg-brand-sub {
      color: var(--erg-muted);
      font-size: 0.82rem;
      line-height: 1.15;
      white-space: nowrap;
    }

    .erg-nav {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: nowrap;
    }

    .erg-user-context {
      flex: 1 1 auto;
      min-width: 0;
      max-width: 330px;
      color: var(--erg-muted);
      font-size: 0.88rem;
      font-weight: 700;
      line-height: 1;
      margin-right: 4px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .erg-nav a,
    .erg-nav button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid var(--erg-line);
      background: var(--erg-white);
      color: var(--erg-ink);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 700;
      line-height: 1;
      box-sizing: border-box;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
      cursor: pointer;
      flex: 0 0 auto;
    }

    .erg-nav a:hover,
    .erg-nav button:hover {
      border-color: #cbd5e1;
      background: var(--erg-soft);
    }

    .erg-nav a.erg-nav-destination.is-active {
      border-color: rgba(15,139,141,.34);
      background: rgba(240,253,250,.88);
      color: #0f766e;
      box-shadow: 0 8px 18px rgba(15,139,141,.08);
    }

    .erg-nav a.erg-nav-destination.is-active:hover {
      border-color: rgba(15,139,141,.42);
      background: rgba(240,253,250,.96);
      color: #0f766e;
    }

    .erg-nav .erg-nav-primary {
      color: #ffffff;
      background: var(--erg-navy);
      border-color: var(--erg-navy);
    }

    .erg-nav .erg-nav-primary:hover {
      background: #0f1d3f;
      border-color: #0f1d3f;
    }

    .erg-nav .erg-nav-quiet {
      color: var(--erg-muted);
      background: transparent;
      box-shadow: none;
    }

    .erg-nav form {
      flex: 0 0 auto;
      margin: 0;
    }

    .page {
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 0;
    }

    .report-action-stack {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
      min-width: 190px;
    }

    .report-action-stack .report-action {
      display: block;
      width: 100%;
      box-sizing: border-box;
      text-align: left;
      line-height: 1.15;
      padding: 7px 10px;
      border-radius: 10px;
      white-space: normal;
    }

    .report-action-stack .report-action-primary {
      font-weight: 700;
    }

    .report-action-stack .report-action-muted {
      opacity: 0.86;
    }

    .report-action-stack .report-action-empty {
      color: var(--erg-muted);
      font-size: 0.92rem;
      padding: 4px 0;
    }



    /* Shared green-accent report/action pills used across Job, Sessions, and Admin pages. */
    .report-action-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--erg-green, var(--accent, #0f8b8d)) !important;
      background: #ffffff !important;
      border: 1px solid var(--erg-line, #dbe3ef) !important;
      border-radius: 999px !important;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
      font-weight: 800 !important;
      text-decoration: none !important;
      transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
    }

    .report-action-button:hover {
      color: var(--erg-green-dark, #0f766e) !important;
      border-color: rgba(15, 139, 141, 0.34) !important;
      background: rgba(15, 139, 141, 0.055) !important;
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(15, 139, 141, 0.10);
    }

    .report-action-button-primary {
      color: var(--erg-green-dark, #0f766e) !important;
      border-color: rgba(15, 139, 141, 0.40) !important;
      background: rgba(15, 139, 141, 0.075) !important;
      box-shadow: 0 10px 22px rgba(15, 139, 141, 0.10);
    }

    .report-action-button-muted {
      opacity: 0.90;
    }

    .home-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      margin-top: 18px;
    }

    .home-card {
      min-height: 165px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .home-card h2 {
      margin-bottom: 8px;
    }

    .home-card .actions {
      margin-top: 18px;
    }



    /* Mobile workspace launcher v8: backdrop outside header and below app bar. */
    .erg-nav-toggle,
    .erg-nav-backdrop,
    .erg-nav-mobile-head {
      display: none;
    }

    @media (max-width: 900px) {
      body.erg-nav-open {
        overflow: hidden;
        overscroll-behavior: none;
      }

      .erg-appbar {
        position: sticky;
        top: 0;
        z-index: 60;
        isolation: isolate;
        overflow: visible;
        border-radius: 0;
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      }

      body.erg-nav-open .erg-appbar {
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15,23,42,.08);
      }

      .erg-appbar-inner {
        position: relative;
        z-index: 1;
        min-height: 68px;
        border-radius: 0;
        background: transparent;
        padding: 10px 16px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
      }

      .erg-brand { min-width: 0; }
      .erg-brand-main { font-size: 1rem; }
      .erg-brand-sub { font-size: .76rem; }

      .erg-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 42px;
        padding: 0 14px;
        border: 1px solid var(--erg-line);
        border-radius: 999px;
        background: #fff;
        color: var(--erg-navy);
        box-shadow: 0 8px 20px rgba(15,23,42,.06);
        font: inherit;
        font-size: .88rem;
        font-weight: 800;
        cursor: pointer;
      }

      .erg-nav-toggle-icon { display: grid; gap: 3px; width: 14px; }
      .erg-nav-toggle-icon i {
        display: block;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
      }

      .erg-nav-backdrop {
        position: fixed;
        top: 68px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: block;
        width: auto;
        min-width: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        appearance: none;
        -webkit-appearance: none;
        background: rgba(7,19,49,.48);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease;
      }
      .erg-nav-backdrop[aria-hidden="true"] {
        display: none;
      }

      .erg-nav-backdrop.is-open {
        display: block;
        opacity: 1;
        pointer-events: auto;
      }

      .erg-nav {
        position: absolute;
        z-index: 80;
        top: calc(100% + 8px);
        left: 50%;
        width: min(520px, calc(100vw - 24px));
        max-height: min(620px, calc(70vh - 12px));
        max-height: min(620px, calc(70dvh - 12px));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
        padding: 11px;
        border: 1px solid rgba(203,213,225,.92);
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 28px 80px rgba(7,19,49,.28);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, -8px) scale(.99);
        transform-origin: top center;
        transition: opacity 150ms ease, transform 170ms ease, visibility 0s linear 170ms;
      }

      .erg-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0) scale(1);
        transition-delay: 0s;
      }

      .erg-nav-mobile-head {
        position: sticky;
        top: -12px;
        z-index: 2;
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: -11px -11px 2px;
        padding: 10px 12px 9px;
        border-bottom: 1px solid var(--erg-line);
        border-radius: 20px 20px 0 0;
        background: #ffffff;
        color: var(--erg-muted);
        font-size: .68rem;
        font-weight: 900;
        letter-spacing: .1em;
        text-transform: uppercase;
      }

      .erg-nav .erg-nav-close {
        min-height: 32px;
        padding: 0 8px;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: var(--erg-muted);
        font-size: .76rem;
      }

      .erg-user-context {
        grid-column: 1 / -1;
        max-width: none;
        min-height: 34px;
        display: block;
        margin: 0 0 3px;
        padding: 8px 10px;
        border-radius: 12px;
        background: var(--erg-soft);
        color: #475569;
        font-size: .78rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .erg-nav a.erg-nav-destination,
      .erg-nav button:not(.erg-nav-close) {
        width: 100%;
        min-height: 42px;
        padding: 7px 9px;
        border-radius: 13px;
        font-size: .81rem;
        text-align: center;
        white-space: normal;
      }

      .erg-nav a.erg-nav-destination.is-active {
        border-color: rgba(15,139,141,.34);
        background: rgba(240,253,250,.88);
        color: #0f766e;
        box-shadow: 0 8px 18px rgba(15,139,141,.08);
      }

      .erg-nav a.erg-nav-destination.is-active:hover {
        border-color: rgba(15,139,141,.42);
        background: rgba(240,253,250,.96);
        color: #0f766e;
      }

      .erg-nav a.erg-nav-destination-utility {
        min-height: 42px;
        border-color: var(--erg-line);
        background: #ffffff;
        color: var(--erg-ink);
        box-shadow: 0 1px 2px rgba(15,23,42,.03);
      }

      .erg-nav-signout {
        grid-column: 1 / -1;
        width: 100%;
        margin: 1px 0 0;
        padding-top: 7px;
        border-top: 1px solid var(--erg-line);
      }

      .erg-nav-signout .erg-nav-quiet {
        width: 100%;
        min-height: 38px;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
      }

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

    @media (max-width: 390px) {
      .erg-appbar,
      .erg-appbar-inner {
        border-radius: 0;
      }
      .erg-nav {
        width: calc(100vw - 16px);
        gap: 7px;
        padding: 10px;
        border-radius: 19px;
      }
      .erg-nav-mobile-head {
        top: -10px;
        margin: -10px -10px 1px;
        border-radius: 19px 19px 0 0;
      }
      .erg-nav a.erg-nav-destination,
      .erg-nav button:not(.erg-nav-close) {
        min-height: 42px;
        padding-inline: 7px;
        font-size: .78rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .erg-nav,
      .erg-nav-backdrop { transition: none; }
    }
