
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background: var(--bg);
      color: var(--txt);
      font-family: 'Inter', sans-serif;
      min-height: 100vh;
    }
    /* APP */
    #app {
      display: none;
      min-height: 100vh;
    }

    .shell {
      display: flex;
      min-height: 100vh;
    }

    /* SIDEBAR */
    .sb {
      width: 215px;
      background: #fff;
      border-right: 1.5px solid var(--brd);
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      z-index: 200;
      overflow-y: auto;
    }

    .sb-logo {
      padding: 13px 15px 9px;
      border-bottom: 1.5px solid var(--brd);
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .sb-logo img {
      height: 28px;
      object-fit: contain;
    }

    .sb-brand {
      font-size: .69rem;
      font-weight: 800;
      color: var(--navy);
      line-height: 1.3;
    }

    .sb-sub {
      font-size: .57rem;
      color: var(--mut);
    }

    .sb-sec {
      padding: 7px 7px 2px;
    }

    .sb-lbl {
      font-size: .57rem;
      font-weight: 700;
      color: var(--mut2);
      text-transform: uppercase;
      letter-spacing: .8px;
      padding: 0 7px;
      margin-bottom: 2px;
    }

    .ni {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 7px 9px;
      border-radius: 7px;
      cursor: pointer;
      font-size: .75rem;
      font-weight: 500;
      color: var(--mut);
      transition: all .13s;
      margin-bottom: 1px;
      white-space: nowrap;
    }

    .ni:hover {
      background: var(--nlight);
      color: var(--navy);
    }

    .ni.on {
      background: var(--navy);
      color: #fff;
      font-weight: 700;
    }

    .ni-ic {
      font-size: .86rem;
      width: 14px;
      text-align: center;
      flex-shrink: 0;
    }

    .ni-bd {
      background: var(--red);
      color: #fff;
      border-radius: 100px;
      font-size: .57rem;
      font-weight: 700;
      padding: 1px 5px;
      margin-left: auto;
    }

    .ni-parent {
      position: relative;
    }

    .ni-parent.open {
      background: var(--nlight);
      color: var(--navy);
    }

    .sb-ft {
      margin-top: auto;
      padding: 9px 7px;
      border-top: 1.5px solid var(--brd);
    }

    /* MAIN */
    .main {
      margin-left: 215px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .topbar {
      background: #fff;
      border-bottom: 1.5px solid var(--brd);
      padding: 9px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .tb-title {
      font-size: .88rem;
      font-weight: 700;
      color: var(--navy);
    }

    .tb-sub {
      font-size: .68rem;
      color: var(--mut);
    }

    .role-switch-panel {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      background: #fff;
      border: 1.5px solid var(--brd2);
      border-radius: 12px;
      padding: 10px;
      margin: 14px 20px 4px;
      box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    }

    .rp {
      flex: 1 1 150px;
      padding: 10px 12px;
      border-radius: 9px;
      font-size: .74rem;
      font-weight: 700;
      cursor: pointer;
      border: 1.5px solid var(--brd2);
      transition: all .14s;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rp:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(16, 24, 40, .08);
    }

    .rp.on {
      background: var(--navy);
      color: #fff;
      border-color: var(--navy);
    }

    @media (max-width: 640px) {
      .role-switch-panel {
        margin: 10px 12px 4px;
      }
      .rp { flex-basis: 45%; }
    }

    .av {
      width: 29px;
      height: 29px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .72rem;
      font-weight: 800;
      color: #fff;
      flex-shrink: 0;
    }

    .ddot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--grn);
      display: inline-block;
      animation: pulse 2s infinite;
    }

    .ddot.amb {
      background: #e67e22;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .4
      }
    }

    /* CONTENT */
    .content {
      padding: 18px 20px;
      flex: 1;
    }

    .pg {
      display: none;
      animation: fadeUp .2s ease;
    }

    .pg.on {
      display: block;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(7px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    .ph {
      font-size: 1.18rem;
      font-weight: 800;
      color: var(--navy);
      margin-bottom: 3px;
    }

    .ps {
      font-size: .78rem;
      color: var(--mut);
      margin-bottom: 14px;
    }
